/* ============================================================
   sections-a.css — LUXNOIR LP
   担当B: §0 LOADING / §1 HERO / §2 PAIN / §3 WORKS / §4 APPROACH
   ブレークポイント: 768px / 1024px（モバイルファースト）
   依存: tokens.css（変数） / base.css（共通） / motion.css（キーフレーム・reveal基盤）
   ============================================================ */

/* ============================================================
   §0 LOADING（.s-load）
   ベース（fixed / 背景 / z-index / .s-load__line のアニメ）は
   motion.css が担当。ここでは仕上げ差分のみ追加する。
   ============================================================ */

/* JS が .is-done を付与したときのフェードアウト */
.s-load.is-done{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .6s var(--e-out);
}

/* ブランドロゴ：letter-spacing と金グラデ文字化
   （motion.css の .s-load__brand と特異性で競合するため
   子孫セレクタで意図的に優先させる） */
.s-load .s-load__brand{
  letter-spacing: .4em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   §1 HERO（.s-hero）
   ============================================================ */
.s-hero{
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.s-hero__inner{
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px,3.6vw,36px);
  text-align: center;
  padding-block: clamp(120px,16vw,168px) clamp(72px,9vw,104px);
}

/* ---------- 背景グロー ---------- */
.s-hero__glow{
  position: absolute;
  /* 画面中央ではなく下寄りに配置し、黒の面積を確保して金タイトルのコントラストを上げる */
  inset: 20% -20% -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 28%, var(--neon-pur), transparent 55%),
    radial-gradient(circle at 68% 58%, var(--neon-cyn), transparent 58%);
  filter: blur(80px);
  opacity: .16;
}

/* ---------- 浮遊粒子 ---------- */
.s-hero__particles{
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.s-hero__p:nth-child(1){ top:12%; left:14%; width:3px; height:3px; background-color:var(--gold-lt); opacity:.4; animation-duration:9s; animation-delay:0s; }
.s-hero__p:nth-child(2){ top:26%; left:82%; width:2px; height:2px; background-color:var(--neon-cyn); opacity:.3; animation-duration:10s; animation-delay:1.2s; }
.s-hero__p:nth-child(3){ top:58%; left:8%; width:4px; height:4px; background-color:var(--gold-lt); opacity:.25; animation-duration:8s; animation-delay:2.4s; }
.s-hero__p:nth-child(4){ top:80%; left:54%; width:2px; height:2px; background-color:var(--neon-cyn); opacity:.5; animation-duration:11s; animation-delay:.6s; }
.s-hero__p:nth-child(5){ top:16%; left:44%; width:3px; height:3px; background-color:var(--gold-lt); opacity:.35; animation-duration:7s; animation-delay:3s; }
.s-hero__p:nth-child(6){ top:36%; left:92%; width:2px; height:2px; background-color:var(--neon-cyn); opacity:.2; animation-duration:12s; animation-delay:1.8s; }
.s-hero__p:nth-child(7){ top:70%; left:28%; width:4px; height:4px; background-color:var(--gold-lt); opacity:.45; animation-duration:9.5s; animation-delay:4.2s; }
.s-hero__p:nth-child(8){ top:6%; left:70%; width:2px; height:2px; background-color:var(--neon-cyn); opacity:.3; animation-duration:8.5s; animation-delay:2.1s; }
.s-hero__p:nth-child(9){ top:50%; left:4%; width:3px; height:3px; background-color:var(--gold-lt); opacity:.2; animation-duration:10.5s; animation-delay:5s; }
.s-hero__p:nth-child(10){ top:90%; left:86%; width:2px; height:2px; background-color:var(--neon-cyn); opacity:.4; animation-duration:7.5s; animation-delay:.9s; }
.s-hero__p:nth-child(11){ top:20%; left:24%; width:4px; height:4px; background-color:var(--gold-lt); opacity:.3; animation-duration:11.5s; animation-delay:3.6s; }
.s-hero__p:nth-child(12){ top:44%; left:64%; width:2px; height:2px; background-color:var(--neon-cyn); opacity:.5; animation-duration:9s; animation-delay:1.5s; }
.s-hero__p:nth-child(13){ top:64%; left:96%; width:3px; height:3px; background-color:var(--gold-lt); opacity:.25; animation-duration:8s; animation-delay:4.8s; }
.s-hero__p:nth-child(14){ top:8%; left:36%; width:2px; height:2px; background-color:var(--neon-cyn); opacity:.35; animation-duration:10s; animation-delay:2.7s; }
.s-hero__p:nth-child(15){ top:54%; left:50%; width:4px; height:4px; background-color:var(--gold-lt); opacity:.4; animation-duration:12s; animation-delay:.3s; }
.s-hero__p:nth-child(16){ top:30%; left:12%; width:2px; height:2px; background-color:var(--neon-cyn); opacity:.2; animation-duration:7s; animation-delay:3.3s; }
.s-hero__p:nth-child(17){ top:76%; left:72%; width:3px; height:3px; background-color:var(--gold-lt); opacity:.3; animation-duration:9s; animation-delay:5.4s; }
.s-hero__p:nth-child(18){ top:40%; left:38%; width:2px; height:2px; background-color:var(--neon-cyn); opacity:.45; animation-duration:11s; animation-delay:1.1s; }
.s-hero__p:nth-child(19){ top:86%; left:20%; width:4px; height:4px; background-color:var(--gold-lt); opacity:.15; animation-duration:8.5s; animation-delay:4.5s; }
.s-hero__p:nth-child(20){ top:12%; left:58%; width:2px; height:2px; background-color:var(--neon-cyn); opacity:.5; animation-duration:10s; animation-delay:2.9s; }

/* ---------- アイキャッチ ---------- */
.s-hero__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-num);
  color: var(--gold);
  letter-spacing: .3em;
  font-size: clamp(.65rem,1.4vw,.8rem);
  text-transform: uppercase;
}

.s-hero__eyebrow::before,
.s-hero__eyebrow::after{
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--grad-gold);
}

/* ---------- タイトル ---------- */
.s-hero__title{
  font-family: var(--f-jp-head);
  font-weight: 700;
  font-size: clamp(1.85rem,6.4vw,5.6rem);
  line-height: 1.28;
}

.s-hero__line{
  display: block;
}

.s-hero__line:last-child{
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.s-hero__lead{
  max-width: 34em;
  color: var(--tx-mid);
  line-height: 2;
  font-size: clamp(.85rem,1.7vw,1rem);
}

/* ---------- バッジ ---------- */
.s-hero__badges{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px,5vw,64px);
  border-block: 1px solid var(--line);
  padding-block: 28px;
  width: 100%;
}

.s-hero__badge{
  position: relative;
  text-align: center;
}

.s-hero__badge + .s-hero__badge::before{
  content: '';
  position: absolute;
  left: calc(-1 * clamp(12px,2.5vw,32px));
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: var(--line);
}

.s-hero__num{
  font-family: var(--f-num);
  font-size: clamp(2.4rem,6vw,4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.s-hero__unit{
  font-family: var(--f-num);
  color: var(--gold-lt);
  font-size: clamp(1.2rem,3vw,2rem);
}

.s-hero__label{
  display: block;
  margin-top: 8px;
  /* .75rem未満のため --tx-dim ではなく --tx-mid でコントラストを確保 */
  color: var(--tx-mid);
  font-size: clamp(.62rem,1.3vw,.75rem);
  letter-spacing: .08em;
}

/* ---------- CTA ---------- */
.s-hero__cta{
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.s-hero__cta .c-btn{
  width: 100%;
}

@media (min-width: 768px){
  .s-hero__cta{
    flex-direction: row;
    justify-content: center;
    width: auto;
  }

  .s-hero__cta .c-btn{
    width: auto;
  }
}

/* ---------- スクロール誘導ライン ---------- */
.s-hero::after{
  content: '';
  position: absolute;
  left: 50%;
  bottom: clamp(20px,3vw,32px);
  z-index: 2;
  width: 1px;
  height: 56px;
  background: var(--grad-gold);
  animation: s-hero-scroll 2.6s var(--e-io) infinite;
}

@keyframes s-hero-scroll{
  0%{ transform: translate(-50%,-10px) scaleY(.5); opacity: .25; }
  50%{ transform: translate(-50%,0) scaleY(1); opacity: 1; }
  100%{ transform: translate(-50%,10px) scaleY(.5); opacity: .25; }
}

/* ============================================================
   §2 PAIN（.s-pain）
   ============================================================ */
.s-pain__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px,2.5vw,28px);
}

@media (min-width: 1024px){
  .s-pain__grid{
    grid-template-columns: repeat(3,1fr);
  }
}

.s-pain__card{
  position: relative;
  overflow: hidden;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(28px,4vw,40px);
  transition: transform .5s var(--e-out), border-color .5s var(--e-out);
}

.s-pain__card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 14px 14px 0 0;
  background: var(--grad-gold);
  transition: width .5s var(--e-out);
}

.s-pain__card:hover{
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--gold) 30%, transparent);
}

.s-pain__card:hover::before{
  width: 100%;
}

.s-pain__no{
  display: block;
  margin-bottom: 12px;
  font-family: var(--f-num);
  font-size: clamp(2.6rem,6vw,4rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-deep);
  opacity: .7;
}

.s-pain__title{
  margin-bottom: 12px;
  font-family: var(--f-jp-head);
  font-weight: 600;
  font-size: clamp(1.05rem,2.2vw,1.3rem);
  color: var(--tx);
  line-height: 1.6;
}

.s-pain__text{
  color: var(--tx-mid);
  line-height: 2;
  font-size: .9rem;
}

/* ============================================================
   §3 WORKS（.s-works）
   ============================================================ */
.s-works__case{
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(32px,5vw,72px);
}

.s-works__case + .s-works__case{
  margin-block-start: clamp(80px,10vw,140px);
}

@media (min-width: 1024px){
  .s-works__case{
    grid-template-columns: 1.05fr 1fr;
  }

  .s-works__case--rev .s-works__media{
    order: 2;
  }

  .s-works__case--rev .s-works__body{
    order: 1;
  }
}

.s-works__media{
  min-width: 0;
}

.s-works__frame{
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: var(--bg-2);
  overflow: hidden;
  /* ドロップシャドウ（発光ではないため許容） */
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}

.s-works__framebar{
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-inline: 12px;
  background-color: var(--bg-1);
  border-bottom: 1px solid var(--line);
}

.s-works__dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3A3A45;
}

.s-works__img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/11;
  object-fit: cover;
  object-position: top center;
  transition: object-position 2.4s var(--e-out);
}

.s-works__frame:hover .s-works__img{
  object-position: bottom center;
}

.s-works__body{
  min-width: 0;
}

.s-works__case-no{
  font-family: var(--f-num);
  color: var(--gold);
  letter-spacing: .3em;
  font-size: .8rem;
}

.s-works__title{
  margin-top: 10px;
  font-family: var(--f-jp-head);
  font-weight: 700;
  font-size: clamp(1.4rem,3vw,2.1rem);
}

.s-works__role{
  margin-top: 10px;
  /* .78rem は .8rem未満のため --tx-mid でコントラストを確保 */
  color: var(--tx-mid);
  font-size: .78rem;
  letter-spacing: .06em;
}

.s-works__subhead{
  position: relative;
  margin-top: 24px;
  padding-left: 16px;
  color: var(--gold-lt);
  font-size: .8rem;
  font-weight: 700;
}

.s-works__subhead::before{
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 12px;
  background: var(--grad-gold);
}

.s-works__issue{
  margin-top: 10px;
  color: var(--tx-mid);
  line-height: 1.95;
}

.s-works__list{
  margin-top: 10px;
}

.s-works__list li{
  position: relative;
  padding-left: 20px;
  color: var(--tx-mid);
  font-size: .87rem;
  line-height: 1.9;
}

.s-works__list li + li{
  margin-top: 4px;
}

.s-works__list li::before{
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* 罫線の描き方：STRENGTH と同じ理由（親の金色 background-color が
   [data-reveal] の opacity:0 中／空セルで全面露出する不具合）で、
   罫線は各セル側の box-shadow で描く方式に統一する。 */
.s-works__stats{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(96px,1fr));
  gap: 1px;
  margin-top: 24px;
  border-radius: 10px;
  overflow: hidden;
}

.s-works__stat{
  min-width: 0;
  padding: 14px 10px;
  text-align: center;
  background-color: var(--bg-1);
  box-shadow: 0 0 0 1px var(--line);
}

.s-works__statnum{
  display: block;
  font-family: var(--f-num);
  font-size: clamp(1rem,2vw,1.35rem);
  line-height: 1.1;
  word-break: keep-all;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.s-works__statlabel{
  display: block;
  margin-top: 6px;
  /* .62rem は .8rem未満のため --tx-mid でコントラストを確保 */
  color: var(--tx-mid);
  font-size: .62rem;
  line-height: 1.4;
}

.s-works__link{
  position: relative;
  margin-top: 24px;
  color: var(--gold-lt);
}

.s-works__link::before{
  content: '';
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 10px;
  height: 1px;
  background-color: var(--gold-lt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--e-out);
}

.s-works__link::after{
  content: '→';
  display: inline-block;
  margin-left: 6px;
  transition: transform .35s var(--e-out);
}

.s-works__link:hover::before{
  transform: scaleX(1);
}

.s-works__link:hover::after{
  transform: translateX(4px);
}

/* ============================================================
   §4 APPROACH（.s-approach）★最も丁寧に
   ============================================================ */
section.s-approach{
  position: relative;
  /* section:nth-of-type(even) の bg-1 指定を上書き */
  background-color: var(--bg-0);
}

section.s-approach::before,
section.s-approach::after{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,transparent,var(--gold) 50%,transparent);
  opacity: .4;
}

section.s-approach::before{
  top: 0;
}

section.s-approach::after{
  bottom: 0;
}

.s-approach__formula{
  background-color: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px,4vw,48px);
}

.s-approach__formula + .s-approach__formula{
  margin-top: clamp(20px,3vw,32px);
}

.s-approach__formhead{
  margin-bottom: 16px;
  font-family: var(--f-num);
  color: var(--gold);
  letter-spacing: .2em;
  font-size: .85rem;
}

.s-approach__eq{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(8px,1.6vw,16px);
}

.s-approach__res{
  font-family: var(--f-jp-head);
  font-weight: 700;
  font-size: clamp(1.1rem,2.6vw,1.7rem);
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.s-approach__op{
  font-family: var(--f-num);
  /* WCAG AA 4.5:1 確保のため --gold-deep ではなく --gold を使用 */
  color: var(--gold);
  font-size: clamp(1rem,2.2vw,1.5rem);
  transition: .4s var(--e-out);
}

.s-approach__op.is-lit{
  color: var(--gold-hi);
  text-shadow: 0 0 14px color-mix(in srgb, var(--gold-lt) 80%, transparent);
}

.s-approach__term{
  color: var(--tx);
  font-size: clamp(.85rem,1.9vw,1.05rem);
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--bg-2);
  transition: border-color .4s var(--e-out);
}

.s-approach__term.is-lit{
  border-color: var(--gold);
}

/* ---------- テーブル ---------- */
.s-approach__table{
  width: 100%;
  border-collapse: collapse;
  margin-top: clamp(24px,3vw,36px);
}

.s-approach__table th{
  padding: 14px 12px;
  color: var(--gold-lt);
  font-size: .75rem;
  letter-spacing: .1em;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.s-approach__table td{
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

.s-approach__table tbody td:first-child{
  color: var(--tx);
  font-weight: 700;
  white-space: nowrap;
}

.s-approach__table tbody td:nth-child(2){
  color: var(--tx-mid);
  font-size: .85rem;
}

/* 768px未満：テーブルをカード積みに変換 */
@media (max-width: 767px){
  .s-approach__table thead{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }

  .s-approach__table,
  .s-approach__table tbody,
  .s-approach__table tr,
  .s-approach__table td{
    display: block;
    width: 100%;
  }

  .s-approach__table tr{
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
  }

  .s-approach__table tr + tr{
    margin-top: 10px;
  }

  .s-approach__table td{
    padding: 4px 0;
    border-bottom: none;
  }

  .s-approach__table tbody td:first-child{
    font-family: var(--f-num);
    color: var(--gold-lt);
    letter-spacing: .05em;
    font-size: .85rem;
    white-space: normal;
  }
}

/* ---------- 掛け算ブロック ---------- */
.s-approach__mult{
  position: relative;
  z-index: 0;
  margin-top: clamp(48px,7vw,88px);
  padding: clamp(36px,5vw,64px);
  background-color: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
}

.s-approach__mult::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 20%, var(--neon-pur), transparent 55%),
    radial-gradient(circle at 76% 82%, var(--neon-cyn), transparent 55%);
  opacity: .1;
}

.s-approach__multnum{
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}

.s-approach__big{
  font-family: var(--f-num);
  font-size: clamp(4.5rem,16vw,11rem);
  line-height: .9;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* background-clip:text の要素に box-shadow は使えない（矩形の黒いグローが出る）ため
     drop-shadow フィルターで発光を表現する */
  filter: drop-shadow(0 0 18px rgba(201,162,39,.45)) drop-shadow(0 0 42px rgba(201,162,39,.18));
}

.s-approach__bigunit{
  margin-left: 8px;
  font-family: var(--f-jp-head);
  font-size: clamp(1.4rem,4vw,2.6rem);
  color: var(--gold-lt);
}

.s-approach__multtext{
  margin-top: 24px;
  color: var(--tx);
  font-size: clamp(.95rem,2vw,1.15rem);
  line-height: 1.9;
}

.s-approach__multnote{
  margin-top: 10px;
  /* WCAG AA 4.5:1 確保のため --tx-dim ではなく --tx-mid を使用 */
  color: var(--tx-mid);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
