/* ============================================================
   sections-b.css — LUXNOIR LP
   セクション固有スタイル: §5 STRENGTH 〜 §9 CONTACT
   ブレークポイント: 768 / 1024（tokens.css / base.css と統一）
   ============================================================ */

/* ============================================================
   §5 STRENGTH
   ============================================================ */
/* 罫線の描き方：親に background-color:var(--line) を敷いて 1px の gap を金色として
   見せる方式は、子が [data-reveal] で opacity:0 のあいだ親の金色が全面露出し
   「金色の板」に見えてしまう不具合があった（空セルでも同様）。
   そのため罫線は各アイテム側の box-shadow で描く方式に切り替える。
   これなら opacity:0 の状態でも板状には見えない。 */
.s-strength__grid{
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px){
  .s-strength__grid{
    grid-template-columns: repeat(2,1fr);
  }
}

.s-strength__item{
  background-color: var(--bg-1);
  padding: clamp(32px,4.5vw,52px);
  box-shadow: 0 0 0 1px var(--line);
  transition: background-color .5s var(--e-out);
}

.s-strength__item:hover{
  background-color: var(--bg-2);
}

.s-strength__no{
  display: block;
  font-family: var(--f-num);
  font-size: clamp(1.6rem,3vw,2.2rem);
  line-height: 1;
  margin-bottom: 14px;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.s-strength__title{
  font-family: var(--f-jp-head);
  font-weight: 600;
  font-size: clamp(1.05rem,2.3vw,1.35rem);
  color: var(--tx);
  line-height: 1.6;
}

.s-strength__text{
  margin-top: 12px;
  color: var(--tx-mid);
  font-size: .87rem;
  line-height: 2;
}

/* ============================================================
   §6 PRICE
   ============================================================ */
.s-price__grid{
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(16px,2.2vw,24px);
}

/* タブレットでも3プラン比較できるよう 1024px → 768px に変更。
   ただし .s-price__card--feat の scale(1.045) は下の 1024px 用ブロックのままとし、
   768〜1023px でのはみ出しを防ぐ。
   grid-template-columns は 1fr ではなく minmax(0,1fr) を使う：素の 1fr は
   トラックの自動最小サイズが「中身の min-content」になるため、CTAボタンなどの
   nowrap テキストがある場合に 768px 幅ではみ出す（横スクロールが発生する）。 */
@media (min-width: 768px){
  .s-price__grid{
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

.s-price__card{
  position: relative;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px,3.5vw,40px);
}

.s-price__card--feat{
  background-color: var(--bg-1);
  border: 1px solid var(--gold);
}

@media (min-width: 1024px){
  /* motion.css の [data-reveal].is-in{transform:none} (JS がリビール完了後に付与) が
     同等以上の詳細度で transform を上書きするため、ここは詳細度を意図的に上げて対抗する */
  .s-price__grid .s-price__card.s-price__card--feat{
    transform: scale(1.045);
    z-index: 2;
  }
}

.s-price__badge{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%,-50%);
  padding: 5px 18px;
  border-radius: 999px;
  background: var(--grad-gold);
  color: var(--bg-0);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
}

.s-price__name{
  font-family: var(--f-num);
  font-size: clamp(1.5rem,3vw,2rem);
  color: var(--gold-lt);
  letter-spacing: .14em;
}

.s-price__was{
  margin-top: 12px;
  color: var(--tx-mid);
  font-size: .85rem;
  text-decoration: line-through;
  text-decoration-color: var(--tx-dim);
}

.s-price__price{
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-block: 12px 6px;
}

.s-price__num{
  font-family: var(--f-num);
  font-size: clamp(2.2rem,5vw,3rem);
  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-price__from{
  /* WCAG AA 4.5:1 確保のため --tx-dim ではなく --tx-mid を使用 */
  color: var(--tx-mid);
  font-size: 1rem;
}

.s-price__desc{
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--tx-mid);
  font-size: .85rem;
}

.s-price__card--feat .s-price__desc{
  padding-bottom: 0;
  border-bottom: none;
}

.s-price__cond{
  margin-top: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--tx-mid);
  font-size: .78rem;
  line-height: 1.7;
}

.s-price__spec{
  display: flex;
  flex-direction: column;
}

.s-price__spec li{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 11px;
}

.s-price__spec li:not(:last-child){
  border-bottom: 1px solid rgba(201,162,39,.1);
}

.s-price__speclabel{
  /* WCAG AA 4.5:1 確保のため --tx-dim ではなく --tx-mid を使用 */
  color: var(--tx-mid);
  font-size: .78rem;
  white-space: nowrap;
}

.s-price__specval{
  color: var(--tx);
  font-size: .85rem;
  font-weight: 500;
  text-align: right;
}

.s-price__cta{
  margin-top: auto;
  padding-top: 24px;
  width: 100%;
  /* .c-btn の white-space:nowrap のままだと 768px の3カラム表示で
     ボタン文言がカードの折り返し不可な最小幅を押し上げ、グリッドが
     横方向にはみ出す（横スクロールが発生する）ため、ここだけ折り返しを許可する */
  white-space: normal;
  line-height: 1.4;
  text-align: center;
}

.s-price__guide{
  margin-top: clamp(24px,3vw,32px);
  color: var(--tx-mid);
  font-size: .85rem;
  line-height: 1.9;
  text-align: center;
}

.s-price__guide strong{
  color: var(--gold-lt);
  font-weight: 700;
}

.s-price__payback{
  margin-top: clamp(24px,3vw,32px);
  background-color: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px,4vw,44px);
}

.s-price__paybacktitle{
  font-family: var(--f-jp-head);
  font-weight: 600;
  font-size: clamp(1.1rem,2.4vw,1.4rem);
  color: var(--tx);
  text-align: center;
}

.s-price__paybacklead{
  margin-top: 10px;
  color: var(--tx-mid);
  font-size: .85rem;
  line-height: 1.8;
  text-align: center;
}

.s-price__paybackgrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px,2.2vw,24px);
  margin-top: clamp(24px,3vw,32px);
}

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

.s-price__paybackitem{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(20px,2.5vw,28px);
  border-top: 1px solid rgba(201,162,39,.1);
}

@media (min-width: 1024px){
  .s-price__paybackitem{
    padding-top: 0;
    border-top: none;
  }

  .s-price__paybackitem:not(:first-child){
    border-left: 1px solid rgba(201,162,39,.1);
  }
}

.s-price__paybackplan{
  font-family: var(--f-num);
  font-size: clamp(1rem,2vw,1.2rem);
  letter-spacing: .1em;
  color: var(--gold-lt);
}

.s-price__paybackprice{
  margin-top: 6px;
  color: var(--tx-mid);
  font-size: .8rem;
}

.s-price__paybacknum{
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.s-price__paybackmonth{
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: var(--tx-mid);
  font-size: .82rem;
}

.s-price__paybackval{
  font-family: var(--f-num);
  font-size: clamp(1.8rem,3.6vw,2.3rem);
  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-price__paybackmonth .s-price__paybackval{
  font-size: clamp(1.2rem,2.4vw,1.5rem);
}

.s-price__paybackunit{
  color: var(--tx-mid);
  font-size: .75rem;
}

.s-price__paybacknote{
  margin-top: clamp(20px,2.5vw,28px);
  color: var(--tx-mid);
  font-size: .75rem;
  line-height: 1.8;
  text-align: center;
}

.s-price__note{
  margin-top: clamp(24px,3vw,36px);
  color: var(--tx-mid);
  font-size: .78rem;
  line-height: 1.8;
  text-align: center;
}

/* ============================================================
   §7 FLOW
   ============================================================ */
.s-flow__list{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(28px,6vw,40px);
  padding-left: 24px;
}

.s-flow__list::before{
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 1px;
  background: var(--grad-gold);
  opacity: .35;
}

.s-flow__step{
  position: relative;
}

.s-flow__step::before{
  content: '';
  position: absolute;
  top: 6px;
  left: -16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

@media (min-width: 768px) and (max-width: 1023px){
  .s-flow__list{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: clamp(32px,4vw,48px) clamp(20px,3vw,32px);
    padding-left: 0;
  }

  .s-flow__list::before,
  .s-flow__step::before{
    display: none;
  }
}

@media (min-width: 1024px){
  .s-flow__list{
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 0 clamp(12px,1.6vw,20px);
    padding-left: 0;
    padding-top: 28px;
  }

  .s-flow__list::before{
    display: block;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }

  .s-flow__step{
    text-align: center;
  }

  .s-flow__step::before{
    display: block;
    top: -28px;
    left: 50%;
    transform: translate(-50%,-50%);
  }
}

.s-flow__no{
  display: block;
  font-family: var(--f-num);
  font-size: clamp(1.5rem,3vw,2rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}

.s-flow__name{
  margin-top: 10px;
  color: var(--tx);
  font-size: clamp(.85rem,1.8vw,.95rem);
  font-weight: 700;
  line-height: 1.6;
}

.s-flow__days{
  margin-top: 8px;
  font-family: var(--f-num);
  font-size: clamp(1.1rem,2.4vw,1.5rem);
  color: var(--gold-lt);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  line-height: 1.3;
  word-break: keep-all;
}

.s-flow__totals{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(12px,2vw,20px);
  margin-top: clamp(40px,5vw,64px);
}

@media (max-width: 767px){
  .s-flow__totals{
    flex-direction: column;
  }
}

.s-flow__total{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin-inline: auto;
  padding: 18px clamp(28px,4vw,48px);
  background-color: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
}

.s-flow__totalnum{
  font-family: var(--f-num);
  font-size: clamp(2.2rem,5vw,3.2rem);
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* お客様側の作業量 pill。.s-flow__total と同じ見た目のトーンで揃える */
.s-flow__burden{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin-inline: auto;
  padding: 18px clamp(24px,3.5vw,40px);
  background-color: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  color: var(--tx-mid);
  font-size: .85rem;
}

.s-flow__burdennum{
  font-family: var(--f-num);
  color: var(--gold-lt);
  font-size: 1.05rem;
  margin-inline: 2px;
}

.s-flow__note{
  margin-top: 14px;
  color: var(--tx-mid);
  font-size: .78rem;
  text-align: center;
}

/* ============================================================
   §8 FAQ
   ============================================================ */
.s-faq__list{
  max-width: 840px;
  margin-inline: auto;
}

.s-faq__item{
  border-bottom: 1px solid var(--line);
  padding-block: 4px;
}

.s-faq__q{
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 22px;
  color: var(--tx);
  font-size: clamp(.9rem,1.9vw,1rem);
  font-weight: 500;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
  transition: color .3s var(--e-out);
}

.s-faq__q::-webkit-details-marker{
  display: none;
}

.s-faq__q::before{
  content: 'Q';
  flex-shrink: 0;
  font-family: var(--f-num);
  font-size: 1.2rem;
  color: var(--gold);
}

.s-faq__q::after{
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-left: auto;
  background:
    linear-gradient(var(--gold-lt),var(--gold-lt)) center / 12px 1px no-repeat,
    linear-gradient(var(--gold-lt),var(--gold-lt)) center / 1px 12px no-repeat;
  transition: transform .4s var(--e-out);
}

.s-faq__item[open] .s-faq__q::after{
  transform: rotate(45deg);
}

.s-faq__q:hover{
  color: var(--gold-lt);
}

.s-faq__a{
  position: relative;
  padding: 0 0 24px 34px;
  color: var(--tx-mid);
  font-size: .87rem;
  line-height: 2;
}

.s-faq__a::before{
  content: 'A';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--f-num);
  /* WCAG AA 4.5:1 確保のため --gold-deep ではなく --gold を使用 */
  color: var(--gold);
}

@keyframes faq-in{
  from{
    opacity: 0;
    transform: translateY(-6px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.s-faq__item[open] .s-faq__a{
  animation: faq-in .4s var(--e-out) both;
}

/* ============================================================
   §9 CONTACT
   ============================================================ */
.s-contact{
  position: relative;
  overflow: hidden;
  background-color: var(--bg-1);
}

.s-contact::before{
  content: '';
  position: absolute;
  z-index: 0;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px,120vw);
  height: 600px;
  background: radial-gradient(circle, var(--neon-pur) 0%, var(--gold) 55%, transparent 72%);
  filter: blur(90px);
  opacity: .22;
  pointer-events: none;
}

.s-contact::after{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-gold);
}

.s-contact > .u-wrap{
  position: relative;
  z-index: 1;
}

.s-contact .u-section-head{
  text-align: center;
  align-items: center;
}

.s-contact .u-section-head p{
  margin-inline: auto;
}

.s-contact__cta{
  margin-top: clamp(32px,4vw,48px);
  text-align: center;
}

.s-contact__cta .c-btn{
  min-width: clamp(260px,40vw,360px);
}

.s-contact__sub{
  display: block;
  margin-top: 20px;
  color: var(--gold-lt);
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .3s var(--e-out);
}

.s-contact__sub:hover{
  color: var(--gold-hi);
}

.s-contact__bar{
  --bar-gap: clamp(20px,5vw,64px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--bar-gap);
  margin-top: clamp(48px,6vw,72px);
  padding-block: 26px;
  border-block: 1px solid var(--line);
}

.s-contact__baritem{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.s-contact__baritem + .s-contact__baritem::before{
  content: '';
  position: absolute;
  top: 50%;
  left: calc(var(--bar-gap) / -2);
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  background: var(--line);
}

@media (max-width: 767px){
  .s-contact__baritem + .s-contact__baritem::before{
    display: none;
  }
}

.s-contact__barlabel{
  margin-bottom: 6px;
  /* WCAG AA 4.5:1 確保のため --tx-dim ではなく --tx-mid を使用 */
  color: var(--tx-mid);
  font-size: .7rem;
  letter-spacing: .1em;
}

.s-contact__barnum{
  /* var(--f-num), var(--f-jp-head), sans-serif は変数展開時に総称フォントが
     途中に混ざり無効なフォントスタックになるため、実フォント名を直接並べる */
  font-family: 'Bebas Neue','Shippori Mincho B1','Noto Sans JP',sans-serif;
  font-size: clamp(1.4rem,3vw,1.9rem);
  line-height: 1;
  white-space: nowrap;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
