/* =========================================================
   components.css — J's KOREAN HAIR
   骨格は1・2本目で検証済みのものを継承（--col 450px の縦列＋固定翼）。
   スキンと写真設計のみ本件用（調査 §4-5 の差別化4点）。
   ========================================================= */

/* ---------------------------------------------------------
   1. 骨格
   --------------------------------------------------------- */
.stage { position: relative; }

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  background: var(--bg);
  overflow: hidden;
}

.wing {
  display: none;
  position: fixed;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}
.wing__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.wing__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 25, .52) 0%,
    rgba(26, 26, 25, .14) 28%,
    rgba(26, 26, 25, .10) 56%,
    rgba(26, 26, 25, .38) 78%,
    rgba(26, 26, 25, .66) 100%
  );
}

.wing__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: #FFF;
}
.wing__logo { width: 88px; }
.wing__logo img { width: 100%; filter: brightness(0) invert(1); }
.wing__tag {
  margin-top: 14px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.wing__foot { font-size: 12px; line-height: 2; color: rgba(255, 255, 255, .82); }
.wing__foot strong { display: block; font-weight: 500; letter-spacing: .04em; color: #FFF; }

.wingnav {
  text-align: right;
  padding: 16px 20px;
  background: rgba(26, 26, 25, .5);
}
.wingnav li + li { margin-top: 13px; }
.wingnav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: #FFF;
  transition: opacity 240ms var(--ease);
}
.wingnav a:hover { opacity: .68; }

.wing__ctas { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wing__ctas-head {
  margin-bottom: 2px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.wing__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 208px;
  padding: 14px 22px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background 240ms var(--ease);
}
.wing__cta:hover { background: var(--beige); }
.wing__cta:active { background: var(--line); }

@media (min-width: 1100px) {
  .wing { display: block; }
  .wing--l { left: 0; right: calc(50% + var(--col) / 2); }
  .wing--r { right: 0; left: calc(50% + var(--col) / 2); }
}
@media (min-width: 1500px) {
  .wing { width: 525px; }
  .wing--l { left: auto; right: calc(50% + var(--col) / 2); }
  .wing--r { right: auto; left: calc(50% + var(--col) / 2); }
}

/* ---------------------------------------------------------
   2. セクション
   リズム：1本目の厳密ABAB交互をやめ、
   スタイル2つごとに余白ゼロのフルブリード帯を挟む（調査 §4-5）
   --------------------------------------------------------- */
.section { padding: var(--sp-section) var(--gut); }
.section + .section { padding-top: calc(var(--sp-section) * .66); }
.section--tint { background: var(--bg-2); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--bg); }
.section--ink .lead { color: rgba(237, 235, 231, .74); }
.section--ink .label-en { color: rgba(237, 235, 231, .7); }

.section__head { margin-bottom: var(--sp-block); }
.section__head .label-en { display: block; margin-bottom: 12px; }
.section__head .h2 { margin-bottom: 16px; }

/* 英字ラベルは大トラッキング（JOY187 実測 0.2em） */
.label-en {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lead { font-size: var(--fs-sm); line-height: 2.05; color: var(--ink-2); }
.note { font-size: var(--fs-note); line-height: 1.85; color: var(--ink-3); }

/* フルブリード帯（余白ゼロ・縦のリズムを1箇所だけ壊す） */
.band { position: relative; line-height: 0; }
.band img { width: 100%; height: auto; }
.band__cap {
  position: absolute;
  left: var(--gut);
  bottom: 14px;
  font-size: var(--fs-note);
  line-height: 1.6;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .88);
}

/* ---------------------------------------------------------
   3. ボタン
   --------------------------------------------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 20px;
  background: var(--cv);
  color: var(--cv-ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background 240ms var(--ease);
}
.btn:hover { background: var(--cv-hover); }
.btn:active { background: var(--ink-2); }
.btn__arrow { font-weight: 400; }

.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--bg-2); }

.cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cta2 .btn { flex-direction: column; gap: 3px; padding: 15px 10px; font-size: 14px; line-height: 1.45; }
.cta2 .btn span {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.cta2-head {
  margin-bottom: 9px;
  text-align: center;
  font-size: var(--fs-note);
  color: var(--ink-2);
}
.btn-note { margin-top: 10px; text-align: center; font-size: var(--fs-note); color: var(--ink-3); }

/* ---------------------------------------------------------
   4. 追従CTA
   --------------------------------------------------------- */
.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(237, 235, 231, .95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 420ms var(--ease);
}
.sticky.is-on { transform: translateY(0); }
.sticky .btn { padding: 13px 10px; font-size: 14px; }
.sticky__label {
  display: block;
  margin-bottom: 6px;
  text-align: center;
  font-size: var(--fs-note);
  color: var(--ink-2);
}
.sticky__label b { font-weight: 500; color: var(--ink); }
.sticky__label, .sticky .cta2 { max-width: var(--col); margin-inline: auto; }

@media (min-width: 1100px) { .sticky { display: none; } }

/* ---------------------------------------------------------
   5. スタイルカード
   連番を大きく左上に。写真の比率は交互に変える（4/5 と 9/16）
   --------------------------------------------------------- */
.style + .style { margin-top: 46px; }

.style__num {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-num);
  font-weight: 300;
  letter-spacing: .1em;
  line-height: 1;
  color: var(--ink-3);
}

.style__name {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.6;
}
.style__name em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.style__media { margin: 18px 0; background: var(--paper); }
.style__media img { width: 100%; height: 100%; object-fit: cover; }
/* 比率を交互に：奇数は縦長、偶数は横広（1本目の単一比率との差別化） */
.style:nth-of-type(odd)  .style__media { aspect-ratio: 4 / 5; }
.style:nth-of-type(even) .style__media { aspect-ratio: 9 / 11; }

.style__desc { font-size: var(--fs-sm); line-height: 2.05; color: var(--ink-2); }

.spec { margin-top: 18px; border-top: 1px solid var(--line); }
.spec div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt {
  margin-bottom: 3px;
  font-size: var(--fs-note);
  letter-spacing: .06em;
  color: var(--ink-3);
}
.spec dd { margin: 0; font-size: var(--fs-sm); line-height: 1.8; color: var(--ink); }

/* ★オーダー文＝2本目で有効だった構造を継承 */
.order {
  margin: 20px 0;
  padding: 16px;
  background: var(--paper);
  border-left: 2px solid var(--ink);
}
.order__label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.order__text { font-size: var(--fs-body); line-height: 1.9; color: var(--ink); }

/* ---------------------------------------------------------
   6. FAQ
   --------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.75;
}
.faq__q:active { background: var(--bg-2); }
.faq__q em { font-style: normal; white-space: nowrap; }
.faq__mark {
  flex-shrink: 0;
  width: 14px;
  font-size: 15px;
  color: var(--ink-3);
  transition: transform 320ms var(--ease), color 240ms var(--ease);
}
.faq__q[aria-expanded="true"] .faq__mark { transform: rotate(45deg); }
.faq__q:hover .faq__mark { color: var(--ink); }

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--ease); }
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 0 22px; font-size: var(--fs-sm); line-height: 2.05; color: var(--ink-2); }

/* ---------------------------------------------------------
   7. スクロール・イン（JSが動いた時だけ隠す）
   --------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------------------------------------------------------
   8. 相互送客（1本目カラーLPへ。1箇所のみ・控えめに）
   --------------------------------------------------------- */
.cross {
  margin: 0 0 var(--sp-block);
  text-align: center;
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--ink-3);
}
.cross a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cross a:hover { color: var(--ink); }

.skiplink { position: absolute; left: -9999px; z-index: 100; }
.skiplink:focus {
  left: 12px; top: 12px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}
.section--ink :focus-visible { outline-color: var(--bg); }
