@charset "utf-8";

/* =========================================================
   Hair Simulator LP — "Editorial Beauty Lab"
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --paper: #FAF6F1;
  --ink: #211A16;
  --ink-soft: #6B5F56;
  --brand: #C99FFF;
  --brand-deep: #7B4FD8;
  --brand-soft: #F1E8FF;
  --mint: #A2FF9F;
  --line: rgba(33, 26, 22, .14);
  --dark: #1C1520;
  --dark-text: #F5EFE8;

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --script: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;

  --shell: 1080px;
  --pad: 22px;
  --sec-y: 76px;
  --hdr: 58px;

  /* color-lab live values (JS overwrites these on #lab-stage) */
  --swatch: #FF66CC;
  --swatch-light: #FFB3E6;
  --swatch-dark: #B3007A;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 12px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: .035em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- paper grain ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- layout primitives ---------- */
.lp-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.lp-shell--narrow { max-width: 760px; }
.lp-section { padding-block: var(--sec-y); }

/* ---------- editorial headings ---------- */
.lp-kicker {
  font-family: var(--script);
  font-style: italic;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brand-deep);
  line-height: 1.4;
  margin-bottom: .9em;
  display: flex;
  align-items: center;
  gap: .9em;
}
.lp-kicker::after {
  content: "";
  flex: 0 0 auto;
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}
.lp-kicker--sm { font-size: .82rem; letter-spacing: .26em; }
.lp-kicker--light { color: var(--brand); }

/* 文単位で折り返す（改行が「。」の後に来るように） */
.lp-sent { display: inline-block; }

.lp-h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.55rem, 6.4vw, 2.5rem);
  line-height: 1.62;
  letter-spacing: .045em;
}
.lp-h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 5.6vw, 2rem);
  line-height: 1.62;
  letter-spacing: .045em;
}
.lp-head { margin-bottom: 42px; }

/* =========================================================
   HEADER
   ========================================================= */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.lp-header__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--pad);
  height: var(--hdr);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.lp-brand__icon { width: 24px; height: 24px; border-radius: 7px; }
.lp-brand__name {
  font-family: var(--script);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .05em;
  line-height: 1;
  white-space: nowrap;
}
.lp-nav { display: none; gap: 26px; }
.lp-nav__link {
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
  transition: color .25s ease;
}
.lp-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--brand-deep);
  transition: right .3s ease;
}
.lp-nav__link:hover { color: var(--ink); }
.lp-nav__link:hover::after { right: 0; }

.lp-header__cta {
  font-size: .7rem;
  letter-spacing: .06em;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.lp-header__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand-deep);
  transform: translateY(101%);
  transition: transform .34s cubic-bezier(.4, 0, .2, 1);
}
.lp-header__cta:hover::before { transform: translateY(0); }

/* ---------- language menu ---------- */
.lp-lang-menu { position: relative; }
.lp-lang-menu__btn {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease;
}
.lp-lang-menu__btn::after { content: " ▾"; font-size: .62em; font-style: normal; }
.lp-lang-menu__btn:hover { color: var(--ink); border-color: var(--ink); }
.lp-lang-menu[open] .lp-lang-menu__btn { color: var(--ink); border-color: var(--ink); }
.lp-lang-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 110;
  min-width: 128px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(33, 26, 22, .12);
}
.lp-lang-menu__list a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  transition: background-color .2s ease, color .2s ease;
}
.lp-lang-menu__list a:hover { background: var(--brand-soft); color: var(--ink); }
.lp-lang-menu__list a[aria-current="true"] { color: var(--brand-deep); font-weight: 700; }

/* =========================================================
   BLOBS
   ========================================================= */
.lp-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.lp-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(58px);
}
.lp-blob--a {
  width: 62vw; height: 62vw;
  max-width: 460px; max-height: 460px;
  top: -12%; right: -16%;
  background: var(--brand);
  opacity: .5;
}
.lp-blob--b {
  width: 50vw; height: 50vw;
  max-width: 380px; max-height: 380px;
  bottom: 4%; left: -22%;
  background: #FFD9F2;
  opacity: .62;
}
.lp-blob--c {
  width: 26vw; height: 26vw;
  max-width: 190px; max-height: 190px;
  top: 44%; right: 34%;
  background: var(--mint);
  opacity: .2;
}
.lp-blob--d {
  width: 70vw; height: 70vw;
  max-width: 520px; max-height: 520px;
  top: -22%; left: -14%;
  background: #6B3FB8;
  opacity: .42;
}
.lp-blob--e {
  width: 46vw; height: 46vw;
  max-width: 340px; max-height: 340px;
  bottom: -18%; right: -10%;
  background: #3E2A5C;
  opacity: .7;
}

/* =========================================================
   HERO
   ========================================================= */
.lp-hero {
  position: relative;
  padding-block: 52px 68px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.lp-hero__inner { position: relative; z-index: 1; }
.lp-hero__spine { display: none; }

.lp-hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.42rem, 7.05vw, 2.72rem);
  line-height: 1.55;
  letter-spacing: .04em;
  text-wrap: balance;
  margin-bottom: .7em;
}
.lp-hero__lead {
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 2.15;
  max-width: 34em;
  margin-bottom: 30px;
}
.lp-hero__note {
  margin-top: 18px;
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

.lp-hero__visual { margin-top: 46px; position: relative; }
.lp-hero__frame {
  position: relative;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .42);
  border-radius: 2px;
}
.lp-hero__frame::before,
.lp-hero__frame::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--brand-deep);
  opacity: .5;
}
.lp-hero__frame::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.lp-hero__frame::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.lp-hero__frame img { width: 100%; }
.lp-hero__caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--script);
  font-style: italic;
  font-size: .96rem;
  letter-spacing: .2em;
  color: var(--ink-soft);
}

/* ---------- store badges ---------- */
.lp-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-badge { display: block; transition: transform .28s cubic-bezier(.4, 0, .2, 1); }
.lp-badge:hover { transform: translateY(-3px); }
.lp-badge__svg { height: 50px; width: auto; }
.lp-badge__bg { fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; }
.lp-badge__mark { fill: var(--paper); }
.lp-badge__t1,
.lp-badge__t2 { fill: var(--paper); font-family: var(--sans); }
.lp-badge__t1 { font-size: 9.5px; letter-spacing: .06em; font-weight: 400; }
.lp-badge__t2 { font-size: 17px; letter-spacing: .012em; font-weight: 700; }

.lp-badge--dark .lp-badge__bg { fill: transparent; stroke: rgba(245, 239, 232, .55); }
.lp-badge--dark .lp-badge__mark,
.lp-badge--dark .lp-badge__t1,
.lp-badge--dark .lp-badge__t2 { fill: var(--dark-text); }
.lp-badge--dark:hover .lp-badge__bg { stroke: var(--brand); }

/* =========================================================
   MARQUEE
   ========================================================= */
.lp-marquee {
  padding-block: 30px 32px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.lp-marquee__row { display: flex; width: max-content; }
.lp-marquee__row + .lp-marquee__row { margin-top: 12px; }
.lp-marquee__track {
  display: flex;
  gap: 12px;
  padding-right: 12px;
  flex: 0 0 auto;
  will-change: transform;
}
.lp-marquee__track--left { animation: lp-marq-l 62s linear infinite; }
.lp-marquee__track--right { animation: lp-marq-r 68s linear infinite; }
@keyframes lp-marq-l { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-100%, 0, 0); } }
@keyframes lp-marq-r { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }

.lp-marquee img {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  background: #EFE8E0;
  filter: saturate(.9);
  transition: filter .35s ease, transform .35s ease;
}
.lp-marquee img:hover { filter: saturate(1.12); transform: scale(1.035); }
.lp-marquee:hover .lp-marquee__track { animation-play-state: paused; }
/* JSがimgをボタンで包む（ライトボックス起動用）。幅100%指定を打ち消す */
.lp-marquee .lp-zoom { width: auto; flex: 0 0 auto; border-radius: 16px; }
/* キーボードフォーカスが流れていかないよう停止 */
.lp-marquee__row:focus-within .lp-marquee__track { animation-play-state: paused; }

/* =========================================================
   EMPATHY
   ========================================================= */
.lp-worries {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.lp-worry {
  border-bottom: 1px solid var(--line);
  padding: 30px 0 32px;
  position: relative;
}
.lp-worry__mark { display: block; color: var(--brand-deep); margin-bottom: 16px; opacity: .85; }
.lp-worry__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.75;
  letter-spacing: .04em;
  margin-bottom: .55em;
}
.lp-worry__body { font-size: .86rem; line-height: 2.05; color: var(--ink-soft); }

.lp-empathy__turn {
  margin-top: 54px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 5.2vw, 1.85rem);
  line-height: 1.9;
  letter-spacing: .06em;
  position: relative;
  display: block;
}
.lp-empathy__turn::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin: 26px auto 0;
  background: var(--brand-deep);
  opacity: .5;
}

/* =========================================================
   PHOTO BAND
   ========================================================= */
.lp-band {
  width: 100%;
  background: var(--paper);
}
.lp-band__media {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.lp-band img {
  width: 100%;
  height: clamp(240px, 40vw, 480px);
  object-fit: cover;
  object-position: center;
}
.lp-band__media::before,
.lp-band__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 22%;
  pointer-events: none;
  z-index: 1;
}
.lp-band__media::before { top: 0; background: linear-gradient(to bottom, var(--paper), rgba(250, 246, 241, 0)); }
.lp-band__media::after { bottom: 0; background: linear-gradient(to top, var(--paper), rgba(250, 246, 241, 0)); }
.lp-band__caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--script);
  font-style: italic;
  font-size: .78rem;
  letter-spacing: .16em;
  line-height: 1.9;
  color: var(--ink-soft);
  padding-inline: var(--pad);
}

/* =========================================================
   FEATURES
   ========================================================= */
.lp-feature {
  position: relative;
  padding-block: 52px;
  border-top: 1px solid var(--line);
}
.lp-feature:first-of-type { border-top: 0; padding-top: 8px; }
.lp-feature__num {
  position: absolute;
  top: 8px;
  right: -4px;
  font-family: var(--script);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(6rem, 26vw, 11rem);
  line-height: .8;
  color: var(--brand-deep);
  opacity: .1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.lp-feature__head { position: relative; z-index: 1; max-width: 40em; }
.lp-feature__body {
  margin-top: 1.1em;
  font-size: .89rem;
  line-height: 2.15;
  color: var(--ink-soft);
}

/* ---------- feature 01 : color lab ---------- */
.lp-lab {
  margin-top: 34px;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  background: rgba(255, 255, 255, .34);
}
.lp-lab__stage {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(201, 159, 255, .34), rgba(201, 159, 255, 0) 62%),
    linear-gradient(168deg, #EFE6D9 0%, #E4D9F0 100%);
  display: grid;
  place-items: center;
  min-height: 235px;
  padding: 26px 0;
}
.lp-lab__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(33, 26, 22, .05) 1px, transparent 1px);
  background-size: 44px 100%;
  pointer-events: none;
}
.lp-lab__photo {
  position: relative;
  z-index: 1;
  width: min(330px, 84%);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(33, 26, 22, .18);
}
.lp-lab__photo img {
  display: block;
  width: 100%;
  height: auto;
}
#lab-photo-next {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}
#lab-photo-next.is-in { opacity: 1; }
.lp-lab__hint {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 16px;
  font-family: var(--script);
  font-style: italic;
  font-size: .82rem;
  letter-spacing: .2em;
  color: var(--ink-soft);
}

.lp-lab__readout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.lp-lab__chip {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(33, 26, 22, .18);
  transition: background-color .4s ease;
}
.lp-lab__label { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; line-height: 1.4; }
.lp-lab__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .05em;
}
.lp-lab__hex {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums;
}

.lp-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.lp-swatch {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 42px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(33, 26, 22, .16);
  transition: transform .22s cubic-bezier(.34, 1.4, .64, 1), box-shadow .22s ease;
  justify-self: center;
}
.lp-swatch:hover { transform: scale(1.14); }
.lp-swatch.is-active {
  box-shadow: inset 0 0 0 1px rgba(33, 26, 22, .16),
              0 0 0 2px var(--paper),
              0 0 0 3.5px var(--ink);
}
.lp-lab__note {
  margin-top: 20px;
  font-size: .72rem;
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

/* ---------- feature 02 : tabs ---------- */
.lp-tabs { margin-top: 32px; position: relative; z-index: 1; }
.lp-tabs__list {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 26px;
  background: rgba(255, 255, 255, .5);
}
.lp-tab {
  padding: 8px 22px;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--ink-soft);
  transition: background-color .28s ease, color .28s ease;
}
.lp-tab.is-active { background: var(--ink); color: var(--paper); }

.lp-styles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 12px;
}
.lp-styles figure { margin: 0; }
/* JSがimgをボタンで包む（ライトボックス起動用） */
.lp-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 14px;
  cursor: zoom-in;
}
.lp-styles img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: #EFE8E0;
  filter: saturate(.92);
  transition: transform .38s cubic-bezier(.4, 0, .2, 1), filter .38s ease;
}
.lp-styles figure:hover img { transform: scale(1.04); filter: saturate(1.14); }
.lp-styles figcaption {
  margin-top: 8px;
  font-size: .7rem;
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}
/* progressive enhancement: both panels visible without JS */
.js .lp-tabs__panel[hidden] { display: none; }
.js .lp-tabs__panel + .lp-tabs__panel { margin-top: 0; }
.lp-tabs__panel + .lp-tabs__panel { margin-top: 26px; }

/* ---------- feature 03 : chips ---------- */
.lp-chips {
  margin-top: 30px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.lp-chip {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .5);
}

/* ---------- feature 04 : langs ---------- */
.lp-langs {
  margin-top: 28px;
  position: relative;
  z-index: 1;
  font-family: var(--script);
  font-size: 1.15rem;
  letter-spacing: .16em;
  color: var(--ink-soft);
}
.lp-langs span { color: var(--brand-deep); opacity: .6; padding-inline: .3em; }

/* =========================================================
   HOW
   ========================================================= */
/* features の末尾記事が自前の余白を持つため、HOW/FAQ の上余白は圧縮する */
.lp-features { padding-bottom: 0; }
.lp-how {
  background: linear-gradient(180deg, rgba(241, 232, 255, 0), rgba(241, 232, 255, .55), rgba(241, 232, 255, 0));
  padding-top: calc(var(--sec-y) * .45);
  padding-bottom: calc(var(--sec-y) * .55);
}
.lp-faq { padding-top: calc(var(--sec-y) * .5); }
.lp-steps { border-top: 1px solid var(--line); }
.lp-step {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 30px;
  display: grid;
  grid-template-columns: 76px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: baseline;
}
.lp-step__num {
  grid-row: 1 / 3;
  font-family: var(--script);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  line-height: 1;
  color: var(--brand-deep);
  opacity: .42;
}
.lp-step__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.14rem;
  letter-spacing: .06em;
  line-height: 1.7;
  margin-bottom: .35em;
}
.lp-step__body {
  grid-column: 2;
  font-size: .85rem;
  line-height: 2.05;
  color: var(--ink-soft);
}

/* =========================================================
   FAQ
   ========================================================= */
.lp-qa { border-top: 1px solid var(--line); }
.lp-qa__item { border-bottom: 1px solid var(--line); }
.lp-qa__q {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: .99rem;
  line-height: 1.8;
  letter-spacing: .045em;
  transition: color .25s ease;
}
.lp-qa__q:hover { color: var(--brand-deep); }
.lp-qa__q::before,
.lp-qa__q::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 1px;
  background: var(--brand-deep);
  transition: transform .34s cubic-bezier(.4, 0, .2, 1);
}
.lp-qa__q::after { transform: rotate(90deg); }
.lp-qa__item[open] .lp-qa__q::after { transform: rotate(0deg); }
.lp-qa__item[open] .lp-qa__q { color: var(--brand-deep); }
.lp-qa__a {
  padding: 0 0 24px;
  font-size: .85rem;
  line-height: 2.1;
  color: var(--ink-soft);
}
.lp-qa__a a {
  color: var(--brand-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* =========================================================
   CTA (dark)
   ========================================================= */
.lp-cta {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-text);
  padding-block: 84px 76px;
}
.lp-cta__inner { position: relative; z-index: 1; text-align: center; }
.lp-cta .lp-kicker { justify-content: center; }
.lp-cta .lp-kicker::before {
  content: "";
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}
.lp-cta__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.16rem, 5.75vw, 2.5rem);
  line-height: 1.68;
  letter-spacing: .045em;
  text-wrap: balance;
  margin-bottom: 36px;
}
.lp-badges--dark { justify-content: center; }
.lp-cta__note {
  margin-top: 22px;
  font-size: .76rem;
  letter-spacing: .12em;
  color: rgba(245, 239, 232, .68);
}

/* =========================================================
   FOOTER (dark continuation)
   ========================================================= */
.lp-footer {
  background: var(--dark);
  color: var(--dark-text);
  border-top: 1px solid rgba(245, 239, 232, .16);
}
.lp-footer__inner {
  padding-block: 34px 38px;
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
}
.lp-brand--dark .lp-brand__name { color: var(--dark-text); }
.lp-brand--dark { margin-right: 0; }
.lp-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.lp-footer__links a {
  font-size: .76rem;
  letter-spacing: .08em;
  color: rgba(245, 239, 232, .74);
  transition: color .25s ease;
}
.lp-footer__links a:hover { color: var(--brand); }
.lp-footer__copy {
  font-family: var(--script);
  font-size: .82rem;
  letter-spacing: .16em;
  color: rgba(245, 239, 232, .5);
}

/* =========================================================
   LIGHTBOX (style catalog)
   ========================================================= */
.lp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 68px;
  background: rgba(28, 21, 32, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
}
.lp-lightbox[hidden] { display: none; }
.lp-lightbox.is-open { opacity: 1; }
.lp-lightbox__figure {
  margin: 0;
  width: min(78vw, 430px);
  transform: scale(.965);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.lp-lightbox.is-open .lp-lightbox__figure { transform: none; }
.lp-lightbox__frame {
  padding: 8px;
  border: 1px solid rgba(245, 239, 232, .3);
  background: rgba(255, 255, 255, .05);
  border-radius: 2px;
}
.lp-lightbox__frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}
.lp-lightbox__caption {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  color: var(--dark-text);
}
.lp-lightbox__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .1em;
}
.lp-lightbox__count {
  font-family: var(--script);
  font-style: italic;
  font-size: .85rem;
  letter-spacing: .16em;
  color: rgba(245, 239, 232, .6);
  font-variant-numeric: lining-nums tabular-nums;
}
.lp-lightbox__btn {
  position: fixed;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 239, 232, .42);
  border-radius: 50%;
  color: var(--dark-text);
  background: rgba(28, 21, 32, .55);
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.lp-lightbox__btn:hover { border-color: var(--brand); background: rgba(123, 79, 216, .4); }
.lp-lightbox__btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-lightbox__close { top: 16px; right: 16px; }
.lp-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lp-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lp-lightbox__prev:hover { transform: translateY(-50%) translateX(-2px); }
.lp-lightbox__next:hover { transform: translateY(-50%) translateX(2px); }

@media (min-width: 720px) {
  .lp-lightbox { padding: 40px 96px; }
  .lp-lightbox__figure { width: min(60vw, 460px); }
  .lp-lightbox__close { top: 26px; right: 26px; }
  .lp-lightbox__prev { left: 28px; }
  .lp-lightbox__next { right: 28px; }
}

/* =========================================================
   localized font stacks（en/ko/zh ページ用。jaでは無効）
   ========================================================= */
:root:lang(en) { --serif: "Cormorant Garamond", "Shippori Mincho", serif; }
html:lang(en) body { line-height: 1.9; letter-spacing: .015em; }
html:lang(en) .lp-h2, html:lang(en) .lp-h3, html:lang(en) .lp-hero__title { letter-spacing: .02em; line-height: 1.3; }
:root:lang(ko) {
  --serif: "Noto Serif KR", "Shippori Mincho", serif;
  --sans: "Noto Sans KR", "Zen Kaku Gothic New", sans-serif;
}
/* Hangulは既定で音節折り返しされるため、見出しは語境界で折り返す */
html:lang(ko) .lp-hero__title,
html:lang(ko) .lp-h2,
html:lang(ko) .lp-h3,
html:lang(ko) .lp-worry__title,
html:lang(ko) .lp-step__title,
html:lang(ko) .lp-qa__q,
html:lang(ko) .lp-cta__title {
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 台湾・香港ターゲットのため繁体字フォント（TC）を使用 */
:root:lang(zh) {
  --serif: "Noto Serif TC", "Shippori Mincho", serif;
  --sans: "Noto Sans TC", "Zen Kaku Gothic New", sans-serif;
}

/* =========================================================
   REVEAL (progressive enhancement)
   ========================================================= */
.js .lp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--rd, 0) * 95ms);
}
.js .lp-reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   >= 720px
   ========================================================= */
@media (min-width: 720px) {
  :root { --pad: 40px; --sec-y: 100px; --hdr: 66px; }
  body { font-size: 15.5px; }

  .lp-nav { display: flex; }
  .lp-header__inner { gap: 16px; }
  .lp-brand__name { font-size: 1.14rem; letter-spacing: .07em; }
  .lp-header__cta { font-size: .78rem; letter-spacing: .1em; padding: 10px 20px; }

  .lp-hero { padding-block: 76px 92px; }
  .lp-hero__lead { font-size: 1rem; }
  .lp-hero__visual { margin-top: 60px; max-width: 620px; margin-inline: auto; }

  .lp-marquee img { width: 168px; height: 168px; }

  .lp-worries { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .lp-worry { padding: 34px 26px 38px; border-bottom: 0; }
  .lp-worry + .lp-worry { border-left: 1px solid var(--line); }
  .lp-worry:first-child { padding-left: 0; }
  .lp-worry:last-child { padding-right: 0; }

  .lp-lab { padding: 26px; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); align-items: stretch; gap: 32px; }
  .lp-lab__stage { min-height: 320px; }
  .lp-lab__panel { display: flex; flex-direction: column; justify-content: center; }
  .lp-swatch { max-width: 44px; }

  .lp-styles { grid-template-columns: repeat(6, 1fr); gap: 18px 14px; }
  .lp-styles figcaption { font-size: .72rem; }

  .lp-step { grid-template-columns: 130px 1fr; padding: 36px 0 40px; column-gap: 20px; }
  .lp-step__num { font-size: 4.2rem; }
  .lp-step__title { font-size: 1.24rem; }

  .lp-feature { padding-block: 72px; }
  .lp-feature__num { font-size: 13rem; top: 24px; right: 0; }

  .lp-qa__q { font-size: 1.06rem; padding-block: 26px; }

  .lp-cta { padding-block: 120px 108px; }

  .lp-footer__inner {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    align-items: center;
    text-align: left;
    padding-block: 40px 44px;
  }
  .lp-footer__links { justify-content: center; justify-self: center; }
  .lp-footer__copy { justify-self: end; }
}

/* =========================================================
   >= 1024px
   ========================================================= */
@media (min-width: 1024px) {
  :root { --sec-y: 124px; }

  .lp-hero { padding-block: 104px 118px; }
  .lp-hero__inner {
    display: grid;
    grid-template-columns: 55fr 45fr;
    align-items: center;
    gap: 56px;
  }
  .lp-hero__visual { margin-top: 0; max-width: none; }
  .lp-hero__title { margin-bottom: .8em; }
  .lp-hero__spine {
    display: block;
    position: absolute;
    left: 10px;
    top: 50%;
    z-index: 2;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    font-family: var(--script);
    font-style: italic;
    font-size: .82rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: .6;
    white-space: nowrap;
  }

  .lp-head { margin-bottom: 56px; }
  .lp-lab { padding: 34px; gap: 44px; }
  .lp-lab__stage { min-height: 380px; }
  .lp-swatches { gap: 14px; }
  .lp-swatch { max-width: 54px; }

  .lp-feature__head { max-width: 46em; }
  .lp-feature__num { font-size: 15rem; }

  .lp-band img { height: clamp(320px, 30vw, 480px); }
}

/* =========================================================
   reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .lp-marquee__track { animation: none !important; }
  .js .lp-reveal { opacity: 1 !important; transform: none !important; }
}
