:root {
  --body-color: #181616;
  --border-color:#181616;
  --normal-font-weight: 400;
  --bold-font-weight: 700;
  --line-color: #444;
  --line-duration: 1.1s;
  --line-gap: 0.35s;
  --line2-width: 45px;
  --line3-width: 30px;
  --shutter-color: #000;
  --shutter-duration: 1.4s;
}

@media(max-width: 767px) {
   :root { 
      --line2-width: 30px;
      --line3-width: 15px;
   }
}

* {
  box-sizing: border-box;
  word-break: break-word;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--body-color);
  font-weight: var(--normal-font-weight);
  padding: 0;
  margin: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html {
  height: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

strong, b {
  font-weight: var(--bold-font-weight);
}

h1, h2, h3, h4, h5, h6 {
  font-size: 16px;
  font-weight: var(--bold-font-weight);
  margin-block-start: 0;
  margin-block-end: 0;
}

ul, ol, p {
  margin-block-start: 0;
  margin-block-end: 0;
}

p {
    text-align: justify;
}

p:not(:last-child) {
  margin-bottom: 1em;
}

svg, img, embed, object {
    display: block;
    height: auto;
    max-width: 100%;
}

img[src$=".svg"] {
    width: 100%;
}

@media (max-width:575px) {
  .hidden-xs {
    display: none !important;
  }
}

@media (min-width:576px) and (max-width:767px) {
  .hidden-sm {
    display: none !important;
  }
}

@media (min-width:768px) and (max-width:991px) {
  .hidden-md {
    display: none !important;
  }
}

@media (min-width:992px) and (max-width:1199px) {
  .hidden-lg {
    display: none !important;
  }
}

@media (min-width:1200px) {
  .hidden-xl {
    display: none !important;
  }
}

@media (min-width: 576px) {
  .visible-xs {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .visible-xs, .visible-sm {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .visible-xs, .visible-sm, .visible-md {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .visible-xs, .visible-sm, .visible-md, .visible-lg {
    display: none !important;
  }
}

.container {
  margin-right: 15px;
  margin-left: 15px;
  max-width: 100%;
  width: calc(100% - 30px);
  max-width: 100%;
}

@media (min-width: 576px) {
  .container {
    width: 85%;
    margin-right: auto;
    margin-left: auto
  }
}

@media (min-width: 768px) {
  .container {
    /* width: 750px; */
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .container {
    width: 85vw;
    max-width: 100%;
  }
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.center {
  text-align: center;
}

.anker {
  display: block;
  margin-top: -100px !important;
  padding-top: 100px !important;
  visibility: hidden;
}

header {
    padding:30px 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,1.0);
    width: 100%;
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.05);
    z-index: 2000;
    isolation: isolate;
}

.header-container {
    position: relative;
}

.header-container::before {
    position: absolute;
    top: 50px;
    border-top: 1px solid #111;
}

.header-logo { 
    width: 160px;
    opacity: 0;
    background: #fff;
    padding: 0 20px 0 0;
    transform: translateY(8px);
    animation: logoReveal 0.8s ease forwards;
    animation-delay: calc(var(--line-duration) * 3 + var(--line-gap) * 2 + 0.15s);
}

@media(max-width:767px) {
    header {
        padding: 30px;
    }

    .header-logo img {
      height: 20px; 
      width: auto;
      width: 120px;
    }
}

.intro-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.intro-overlay.is-active {
    opacity: 1;
    visibility: visible;
    animation: overlayFade 0.6s ease forwards;
    animation-delay: calc(var(--line-duration) * 3 + var(--line-gap) * 2 + 0.4s);
}

.shutter-overlay {
    position: fixed;
    inset: 0;
    background: var(--shutter-color);
    transform: translateX(-100%);
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.shutter-overlay.is-active {
    animation: shutterSweep var(--shutter-duration) ease-in-out forwards;
}

.shutter-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
}

.line-stack {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 62px;
    pointer-events: none;
}

.intro-line {
    position: relative;
    display: block;
    height: 1px;
    background: var(--line-color);
    overflow: hidden;
    animation-play-state: paused;
}

.line-1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 0;
    animation: line1Draw var(--line-duration) ease forwards;
    animation-delay: 0s;
}

.line-2 {
    position: absolute;
    top: 11px;
    right: 7.5px;
    width: var(--line2-width);
    transform: translateX(-50%) scaleX(0);
    transform-origin: left center;
    animation: line2Draw var(--line-duration) ease forwards;
    animation-delay: calc(var(--line-duration) + var(--line-gap));
}

.line-3 {
    position: absolute;
    top: 22px;
    right: 15px;
    width: var(--line3-width);
    transform: translateX(-50%) scaleX(0);
    transform-origin: left center;
    animation: line3Draw var(--line-duration) ease forwards;
    animation-delay: calc(var(--line-duration) * 2 + var(--line-gap) * 2);
}

.line-stack.is-active .intro-line {
    animation-play-state: running;
}

.line-stack.no-anim .intro-line {
    animation: none;
    animation-play-state: paused;
}

.line-stack.no-anim .line-1 {
    width: 100%;
}

.line-stack.no-anim .line-2,
.line-stack.no-anim .line-3 {
    transform: translateX(-50%) scaleX(1);
}

@keyframes line1Draw {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes line2Draw {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@keyframes line3Draw {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@keyframes shutterSweep {
    0% { transform: translateX(-100%); }
    35% { transform: translateX(0); }
    55% { transform: translateX(0); } /* fully覆ったまま静止 */
    100% { transform: translateX(-100%); } /* 右→左へ巻き戻す */
}

@keyframes overlayFade {
    to { opacity: 0; visibility: hidden; }
}

@keyframes logoReveal {
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width:767px) {
    .line-2 {
        top: 11px;
        right: 7.5px;
    }

    .line-3 {
        top: 22px;
        right: 15px;
    }
}

/*
    first-view
*/
#fv {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 150svh;
    margin-top: 80px;
    background-color: #fefefe;
}

.fv-hero {
    height: 150svh;
    position: relative;
    --fv-brush-size: clamp(360px, 60dvw, 1300px);
    --fv-ios-offset: -20vh;
    width: 100%;
    margin-left: 0;
    padding-left: max(15px, calc((100vw - 85vw) / 2));
    padding-right: max(15px, calc((100vw - 85vw) / 2));
    box-sizing: border-box;
    background: url(../img/fv-brush.png);
    background-repeat: no-repeat;
    background-position: left 0 top 15%;
    background-attachment: fixed;
    background-size: var(--fv-brush-size) auto;
    opacity: 0;
    will-change: background-position, background-size, opacity;
    color: #fff;
}

.fv-title {
    font-size: clamp(2.25rem, 1.071rem + 5.24vw, 5rem);
    line-height: 1.5;
    margin-bottom: 80px;
    min-height: 1.2em;
    white-space: pre-line;
    position: relative;
    z-index: 0;
    isolation: isolate;
    color: #fff;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
    padding-top: 8%;
}

#fv p {
    line-height: 2.0;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#fv p:not(:last-child) {
    margin-bottom: 2rem;
}

@media(max-width:767px) {
    #fv {
        height: 800px;
    }

    #fv p {
        font-size: 16px;
    }

    #fv p > br {
        display: none;
    }

    .fv-title {
      padding-top: 15%;
      margin-bottom: 60px;
    }

    .fv-hero {
        --fv-brush-size: clamp(420px, 80vw, 820px);
        padding-left: 7.5vw;
        padding-right: 7.5vw;
        height: 100%;
        padding-bottom: 100px;
    }
}

@supports (-webkit-touch-callout: none) {
  .fv-hero { will-change: auto; }
}

@supports (-webkit-touch-callout: none) {
  .fv-hero { background-attachment: scroll; }
}

.fv-title.typing-active::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 1em;
    margin-left: 4px;
    background: #111;
    animation: caretBlink 0.8s steps(1) infinite;
    vertical-align: bottom;
}

.fv-title.typing-complete::after {
    display: none;
}

@keyframes caretBlink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.fv-hero.brush-active {
    animation: fvBrushReveal 1.1s ease forwards;
}

.fade-observe,
.content-observe {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-observe.is-visible,
.content-observe.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-bg {
    --parallax-base-y: 50%;
    --parallax-ios-offset: -12vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center var(--parallax-base-y);
    background-repeat: no-repeat;
    position: relative;
    z-index: 0;
}

@supports (-webkit-touch-callout: none) {
  #who-is { --bg: url(../img/who-is-lumetia-bg.jpg); --bg-pos: top center;    --bg-size: 200% auto; }
  #what-is { --bg: url(../img/what-is-lumetia-bg.jpg); --bg-pos: top center; --bg-size: 200% auto; }
  #why-is  { --bg: url(../img/why-is-lumetia-bg.jpg);  --bg-pos: bottom center; --bg-size: 200% auto; }
  
  /* 固定背景は一番後ろ */
  #ios-parallax{
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100svh;
    background-color: #000;
    background-image: var(--active-bg);
    background-repeat: no-repeat;
    background-position: var(--active-bg-pos, center);
    background-size: var(--active-bg-size, 200% auto); 
    z-index: 0;
    pointer-events: none;
    transform: translateZ(0);
    opacity: 1;
    transition: opacity 1.0s ease-in-out;
  }

  .ios-bg-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
  }


  /* iOSではセクション自身の背景を消す（ここが超重要） */
  section:not(#fv){
    background-color: transparent !important;  /* ← none ではなく transparent */
    background-image: none !important;
    background-attachment: scroll !important;
  }

  .parallax-bg{
    background-image: none !important;
    background-color: #000 !important;
    background-attachment: scroll !important;
  }

  body.is-iphone.is-fv #ios-parallax{
    --active-bg: var(--fv-ios-bg);
    --active-bg-pos: var(--fv-ios-bg-pos);
    --active-bg-size: var(--fv-ios-bg-size);
    background-color: var(--fv-ios-bg-color, #fefefe);
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
  }
  body.is-iphone #ios-parallax{
    height: 100dvh;
  }

  body.is-iphone.is-fv .fv-hero {
    background: none;
  }

  body.is-iphone {
    --fv-ios-bg: url(../img/fv-brush.png);
    --fv-ios-bg-pos: left 0 top 15%;
    --fv-ios-bg-size: clamp(360px, 60dvw, 1300px);
    --fv-ios-bg-color: #fefefe;
  }

  @media(max-width:767px) {
    body.is-iphone {
      --fv-ios-bg-size: clamp(420px, 80vw, 820px);
      --fv-ios-bg-pos: left 0 top 20%;
    }
  }

  /* iPhoneではfixedを使わないのでdvhで高さを確保 */
  body.is-iphone #fv,
  body.is-iphone .fv-hero {
    height: 120dvh !important;
  }

  /* コンテンツは前へ */
  .parallax-bg > *{
    position: relative;
    z-index: 2;
  }

  section:not(#fv){
    opacity: 1 !important;
    visibility: visible !important;
  }
  /* 黒ベールで隠す設計なので、ベールは残す */
  section:not(#fv)::before{
    opacity: 1;
    z-index: 1;
  }
}

#fv.fv-inked .fv-title,
#fv.fv-inked p {
    color: #fff;
}

#fv.fv-inked .fv-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@keyframes fvBrushReveal {
    0% {
        opacity: 0;
    }
    60% {
        opacity: 1.0;
    }
    100% {
        opacity: 1.0;
    }
}

.inner-l {
  max-width: 600px;
  margin-left: auto;
}

.inner-r {
  max-width: 600px;
  margin-right: auto;
}

section:not(#fv){
  padding: 100px 0 300px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  position: relative;
  z-index: 0;
  /* overflow: hidden; */
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-color: #000;
}

@media(max-width:767px) {
  .inner-l {
    max-width: 250px;
  }

  .inner-r {
    max-width: 250px;
  }

  section:not(#fv){
    padding: 100px 0;
  }
}


section:not(#fv) * {
  color: #fff;
}

section:not(#fv).section-bg-visible {
  opacity: 1;
  visibility: visible;
}

section:not(#fv)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1;
  transition: opacity 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

section:not(#fv).section-bg-visible::before {
  opacity: 0;
}

body.is-iphone section:not(#fv) {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

body.is-iphone section:not(#fv)::before {
  opacity: 0 !important;
  transition: none !important;
}

body.is-iphone section:not(#fv) .content-observe,
body.is-iphone section:not(#fv) .content-observe.is-visible,
body.is-iphone section:not(#fv) .fade-observe,
body.is-iphone section:not(#fv) .fade-observe.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.five-w-sec h2 {
  font-size: 96px;
  line-height: 1.15;
  letter-spacing: 0.15em;
  text-align: justify;
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 100px;
  margin-top: 40svh;
}

/* .five-w-sec h2::after {
  content: "?";
  font-size: 200px;
  font-weight: var(--normal-font-weight);
  opacity: 0;
  transition: opacity 0.3s ease;
} */

.section-heading.typing-active::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1em;
  margin-left: 6px;
  background: #fff;
  animation: caretBlink 0.8s steps(1) infinite;
  vertical-align: bottom;
}

section:not(#fv) .container,
section:not(#fv) .inner-l,
section:not(#fv) .inner-r {
  position: relative;
  z-index: 2;
}


#who-is {
  background-image: url(../img/who-is-lumetia-bg.jpg);
  background-position: top center;
  --parallax-base-y: 0%;
  --parallax-ios-offset: -8vh;
  background-color: #0B0B0B!important;
}

#what-is {
    background-image: url(../img/what-is-lumetia-bg.jpg);  
    background-position: top center;
    --parallax-base-y: 0%;
    --parallax-ios-offset: -8vh;
}

#why-is {
    background-image: url(../img/why-is-lumetia-bg.jpg);  
    background-position: bottom center;
    --parallax-base-y: 100%;
    --parallax-ios-offset: -12vh;
}

#contact {
    --parallax-base-y: 0%;
    --parallax-ios-offset: -8vh;
}

#what-is ul {
  margin-bottom: 60px;
}

#what-is li {
  line-height: 2.0;
}

@media(max-width:767px) {
  section:not(#fv) {
    background-size: 200% auto;
  }

  section:not(#fv) p,
  section:not(#fv) li {
    font-size: 14px;
  }

  .five-w-sec h2 {
    font-size: 36px;
    margin-bottom: 40px;
    margin-top: 100px;
  }

  .five-w-sec h2::after {
    font-size: 90px;
  }

  #what-is h3 {
    font-size: 14px;
  }
}  

footer {
  color: #fff;
}

.footer-txt-container {
  background-color: #000;
  padding: 100px 0;
}

.footer-bg-container {
  height: 100svh;
  background: url(../img/contact-us-bg.jpg) no-repeat;
  background-color: #000;
  background-size: 100% auto;
  background-position: center top 100px;
  padding: 60px 60px;
}

.footer-txt-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.footer-links {
  max-width: 200px;
  margin-left: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
}

.footer-logo {
  max-width: 170px;
  margin-bottom: 30px;
}

footer a {
  display: block;
  color: #fff;
}

.copy-right {
  margin-top: 20px;
}

@media(max-width:767px) {
  footer {
    font-size: 14px;
  }

  footer .inner-l {
    max-width: 100%;
    width: 100%;
  }

  .footer-bg-container {
    padding: 60px 15px 15px 15px;
    height: 100%;
    background-position: center bottom;
  }

  .footer-logo {
    max-width: 120px;
  }

  .footer-links {
    max-width: 180px;
    margin-top: 30px;
  }
}

/* iPhoneではdvhを使い空白を防ぐ */
body.is-iphone .footer-bg-container {
  height: 100dvh;
}

.contact-us-btn {
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #fff;
  border-radius: 0.5rem;
  margin-top: 40px;
}

a.contact-us-btn-svg {
  line-height: 54px;
  width: 204px;
  height: 54px;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  background-color: transparent;
}

a.contact-us-btn-svg svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

a.contact-us-btn-svg svg rect {
  -webkit-transition: all 400ms ease;
  transition: all 400ms ease;
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 200px, 16px;
  stroke-dashoffset: 70px;
}

a.contact-us-btn-svg:hover svg rect {
  stroke-dashoffset: 284px;
}

a.contact-us-btn-svg span {
  color: #fff;
}

@media (max-width: 768px) {
  .contact-us-btn {
    padding: 0.85rem 3rem;
    border-radius: 0.45rem;
    margin-top: 28px;
    letter-spacing: 0.08em;
    margin-bottom: 100px;
  }

  a.contact-us-btn-svg {
    width: 170px;    
    height: 46px;    
    line-height: 46px;
  }

  a.contact-us-btn-svg svg rect {
    width: 160px;    
    height: 40px;
  }
}
