/* ============================================
   Digitect LP — style.css
   ============================================ */

:root {
  --navy: #0d3b5e;
  --cyan: #2fc3e4;
  --ink: #12283a;
  --bg-light: #f9f9fa; /* HP本体のProject flowセクションと同じ背景色 */
  --border: rgba(13, 59, 94, .14);
  /* HP本体(digitect.co.jp)のブランド色。ロゴ実測値+テーマ設定値 */
  --hp-cyan: #02b7d5;
  --hp-primary: #005278;
  --hp-primary-dark: #004260;
  --hp-text: #333333;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Barlow', sans-serif;
  --font-en-cond: 'Barlow Condensed', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--cyan);
}

img {
  max-width: 100%;
}

h1, h2, h3, p {
  margin: 0;
}

section[id] {
  scroll-margin-top: 72px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}

/* ---------- Kicker ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.kicker-center {
  justify-content: center;
}

/* シアンだとカジュアルに寄るため、HP本体の見出しと同じプライマリ色で落ち着かせる */
.kicker-line {
  width: 34px;
  height: 2px;
  background: var(--hp-primary);
}

.kicker-text {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--hp-primary);
}

/* 紺帯(CONTACT)上では白の透かしに反転 */
.cta .kicker-line {
  background: rgba(255, 255, 255, .55);
}

.cta .kicker-text {
  color: rgba(255, 255, 255, .82);
}

/* ---------- Watermarks ---------- */

.watermark {
  position: absolute;
  font-family: var(--font-en-cond);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

.wm-issue {
  left: -10px;
  top: 28px;
  font-size: 150px;
  letter-spacing: .04em;
  -webkit-text-stroke: 1px rgba(13, 59, 94, .1);
}

.wm-service {
  left: -8px;
  top: 30px;
  font-size: 150px;
  letter-spacing: .04em;
  -webkit-text-stroke: 1px rgba(13, 59, 94, .09);
}

.wm-flow {
  right: -16px;
  top: 30px;
  font-size: 150px;
  letter-spacing: .04em;
  -webkit-text-stroke: 1px rgba(13, 59, 94, .1);
}

.wm-faq {
  left: -8px;
  top: 30px;
  font-size: 150px;
  letter-spacing: .04em;
  -webkit-text-stroke: 1px rgba(13, 59, 94, .1);
}

.wm-price {
  right: -10px;
  top: 26px;
  font-size: 150px;
  letter-spacing: .04em;
  -webkit-text-stroke: 1px rgba(13, 59, 94, .1);
}

.wm-contact {
  right: -10px;
  top: 26px;
  font-size: 150px;
  letter-spacing: .02em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .1);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

/* HP本体(digitect.co.jp)のヘッダーに合わせ、全幅+左6em/右1.5em */
.header-inner {
  padding: 0 24px 0 96px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  height: 43px; /* HP本体のロゴ実寸(180x43)に合わせる */
  display: block;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 17px; /* HP本体のナビと同サイズ */
  font-weight: 500;
}

.btn-nav-solid {
  height: 42px;
  padding: 0 26px;
  background: var(--navy);
  color: #ffffff;
  font-size: 15px; /* ナビ17pxとのバランスで拡大 */
}

.btn-nav-solid:hover {
  background: var(--cyan);
  color: #ffffff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
}

/* さりげないドットパターン(左下) */
.hero::before {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 480px;
  height: 320px;
  background-image: radial-gradient(rgba(13, 59, 94, .13) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at bottom left, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at bottom left, #000 30%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: minmax(650px, 11fr) 9fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
  border-bottom: 3px solid var(--navy);
  padding-bottom: 10px;
  margin-bottom: 28px;
}

.hero-title {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 48px;
  line-height: 1.42;
  font-weight: 900;
  letter-spacing: .02em;
}

/* 語句の途中で折り返さないよう、意味単位ごとに改行位置を制御 */
.hero-title span {
  display: inline-block;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.7;
  font-weight: 700;
  letter-spacing: .02em;
}

.hero-lead {
  margin: 0 0 32px;
  color: var(--ink);
  font-size: 16px;
  line-height: 2;
  max-width: 660px; /* 「レビューを通じて、」まで1行に収める */
  text-wrap: pretty;
}

/* 強調ワードにはシアンのマーカーを引く */
.hero-lead strong,
.service-desc strong {
  background: linear-gradient(transparent 62%, rgba(47, 195, 228, .35) 62%);
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  min-width: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  max-width: 540px; /* 正方形イラストのため高さを抑える */
  height: auto;
  margin: 0 auto;
}

/* ---------- Feature strip ---------- */

.feature-strip {
  background: var(--navy);
}

.feature-strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.feature-item {
  border-left: 3px solid var(--cyan);
  padding: 2px 0 4px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.feature-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.feature-key {
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.feature-en {
  font-family: var(--font-en-cond);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .05em;
  line-height: 1;
  vertical-align: -1px;
}

.feature-sub {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  letter-spacing: .03em;
}

/* ---------- Sections (shared) ---------- */

.section {
  position: relative;
  overflow: hidden;
}

.section-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 110px 24px 100px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: .02em;
  text-wrap: pretty; /* 行末の1文字孤立を防ぐ */
  line-break: strict; /* 「ー」等が行頭に来ないようにする */
  word-break: auto-phrase; /* 文節単位で折り返す(非対応ブラウザは通常折返し) */
}

/* リード文を持たないセクションは見出し下に直接コンテンツが来るため余白を確保 */
.section-issue .section-title,
.section-service .section-title {
  margin-bottom: 48px;
}

.section-lead {
  margin: 0 0 56px;
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
}

/* ---------- Issue ---------- */

.section-issue {
  background: var(--bg-light);
}

.issue-voices {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.issue-voice {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 28px 18px 20px;
  box-shadow: 0 6px 18px rgba(13, 59, 94, .06);
  width: fit-content;
  max-width: 720px;
}

.issue-person {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--hp-cyan); /* HP本体ロゴのシアン */
}

.issue-person svg {
  width: 24px;
  height: 24px;
}

.issue-quote {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
  text-wrap: pretty;
  color: var(--ink);
}

/* ---------- Concept ---------- */

.concept {
  background: #ffffff;
}

.wm-concept {
  right: -10px;
  top: 26px;
  font-size: 150px;
  letter-spacing: .04em;
  -webkit-text-stroke: 1px rgba(13, 59, 94, .09);
}

.concept-title {
  margin: 0 0 48px; /* リード文なしのため見出し下に直接余白を確保 */
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.6;
  text-wrap: pretty;
  line-break: strict;
  word-break: auto-phrase;
}

.concept-chart {
  max-width: 980px;
  margin: 0 auto;
}

.concept-legend {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}

.concept-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
}

.concept-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.concept-lg-you i {
  background: var(--cyan);
}

.concept-lg-dt i {
  background: var(--navy);
}

.concept-row {
  margin-bottom: 26px;
}

.concept-phase {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.concept-phase-name {
  white-space: nowrap;
}

.concept-phase small {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: .03em;
}

.concept-bar {
  display: flex;
  width: 100%;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
}

.concept-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

.concept-seg-you {
  background: var(--cyan);
}

.concept-seg-dt {
  background: var(--navy);
}

.concept-row-1 .concept-seg-you { width: 24%; }
.concept-row-1 .concept-seg-dt { width: 76%; }
.concept-row-2 .concept-seg-you { width: 50%; }
.concept-row-2 .concept-seg-dt { width: 50%; }
.concept-row-3 .concept-seg-you { width: 76%; }
.concept-row-3 .concept-seg-dt { width: 24%; }

.concept-notes {
  display: none;
}


/* ---------- Service ---------- */

.section-service {
  background: var(--bg-light);
}

.service-list {
  display: block;
  max-width: 880px;
}

/* 数字レールの縦リスト: 罫線区切り+輪郭線ナンバー */
.service-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: 1px solid var(--border);
}

.service-num {
  font-family: var(--font-en-cond);
  font-weight: 700;
  font-size: 76px;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(13, 59, 94, .4);
}

.service-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
  text-wrap: pretty;
  line-break: strict;
  word-break: auto-phrase;
}

.service-desc {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
  text-wrap: pretty;
}

.service-stack {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

/* スクロールで画面に入ったら1つずつふわっと表示する */
.service-stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

.service-stack.is-visible .service-stack-item {
  opacity: 1;
  transform: none;
}

.service-stack-item:nth-child(2) { transition-delay: .08s; }
.service-stack-item:nth-child(3) { transition-delay: .16s; }
.service-stack-item:nth-child(4) { transition-delay: .24s; }
.service-stack-item:nth-child(5) { transition-delay: .32s; }
.service-stack-item:nth-child(6) { transition-delay: .4s; }

.service-stack-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(13, 59, 94, .12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-stack-badge svg {
  display: block;
}

.stack-aws svg { fill: #232f3e; }
.stack-terraform svg { fill: #7b42bc; }
.stack-docker svg { fill: #2496ed; }
.stack-github svg { fill: #181717; }
.stack-claude svg { fill: #d97757; }
.stack-codex svg { fill: #10a37f; }

.service-stack-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
}


/* ---------- Breaker (セクション間のパララックス帯) ---------- */

.breaker {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.breaker-img {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* SERVICE→FLOW間: 白地の幾何学。画像はビューポート固定
   (clip-path窓+fixedレイヤー: iOSでも動くbackground-attachment: fixedの代替)で、
   スクロールしても模様自体は動かず、帯の窓だけが通過する。
   ぼかし+薄グレー被せで周囲に溶け込ませ、上下は罫線で区切る */
.breaker-geometric {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  clip-path: inset(0);
}

.breaker-geometric .breaker-img {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  background-image: url("../assets/breaker-geometric.png");
  filter: blur(2px);
}

.breaker-geometric::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(249, 249, 250, .45);
}

/* FAQ→CONTACT間: 俯瞰の街並み。HP本体フッターと同じ処理
   (ぼかし+彩度低下+白い霞)で淡いブルーグレー調にし、JSで視差(22%遅れ)を付ける。
   上下のはみ出し(-130px)は視差移動分の逃げ */
.breaker-city .breaker-img {
  position: absolute;
  inset: -130px 0;
  background-image: url("../assets/breaker-cityscape.jpg");
  filter: blur(2.5px) saturate(.6) brightness(1.05);
  will-change: transform;
}

.breaker-city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .42);
}

/* ---------- Flow ---------- */

.section-flow {
  background: #ffffff;
}

.section-flow .section-lead {
  margin-bottom: 60px;
}

.flow-timeline {
  position: relative;
  max-width: 860px;
}

/* HP本体(development)のVKステップと同じ: 3px / rgba(0,0,0,.15) の縦線 */
.flow-timeline::before {
  content: "";
  position: absolute;
  left: 23.5px;
  top: 12px;
  bottom: 30px;
  width: 3px;
  background: rgba(0, 0, 0, .15);
}

.flow-group {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 20px;
  margin-bottom: 26px;
}

.flow-group:last-child {
  margin-bottom: 0;
}

/* フェーズ帯はステッパーの上に表示(スマホ版と同じ配置) */
.flow-glabel {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .12em;
}

.flow-glabel-1,
.flow-glabel-2 {
  background: var(--bg-light);
  color: var(--navy);
  border: 1px solid var(--hp-primary); /* ステッパードットと同じネイビーの枠線 */
}

.flow-glabel-3 {
  background: var(--navy);
  color: #ffffff;
}

.flow-gsteps {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.flow-step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 22px;
}

/* スクロールでフェーズ帯・ステップをふわっと表示 */
.flow-glabel,
.flow-step,
.member-scroller-wrap,
.price-body {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

.flow-glabel.is-visible,
.flow-step.is-visible,
.member-scroller-wrap.is-visible,
.price-body.is-visible {
  opacity: 1;
  transform: none;
}

.flow-step:nth-child(2) {
  transition-delay: .1s;
}


/* HP本体のVKステップドットと同じ: 50px円 / プライマリ地 / STEP+数字 */
.flow-node {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--hp-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.flow-node-cap {
  font-family: var(--font-en);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1;
}

.flow-node-num {
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.flow-body {
  padding-top: 5px;
}

.flow-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.flow-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--hp-primary-dark); /* HP本体のステップ見出しと同色 */
}

.flow-tag {
  display: inline-flex;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
}

.flow-tag-dt,
.flow-tag-both {
  background: var(--bg-light);
  color: var(--navy);
  border: 1px solid var(--hp-primary); /* ステッパードットと同じネイビーの枠線 */
}

.flow-tag-you {
  background: var(--navy);
  color: #ffffff;
}

.flow-desc {
  margin: 0;
  font-size: 16px; /* HP本体の本文と同サイズ */
  line-height: 1.9;
  color: var(--hp-text); /* HP本体の本文と同色 */
  max-width: 600px;
}

/* ---------- Member ---------- */

.section-member {
  background: var(--bg-light); /* FLOW(白)/PRICE(白)と交互になるよう薄地に */
}

.wm-member {
  right: -10px;
  top: 28px;
  font-size: 150px;
  letter-spacing: .04em;
  -webkit-text-stroke: 1px rgba(13, 59, 94, .1);
}

/* センターフォーカス型カルーセル。
   フォーカス中のカードを中央に置き、隣のカードはぼかして両端に覗かせる。
   メンバー追加時は .member-card を増やすだけ */
.member-scroller-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.member-scroller {
  --card-w: min(400px, 74vw);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card-w);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* 先頭・末尾のカードも中央に来るよう左右に余白を確保 */
  padding: 8px calc(50% - var(--card-w) / 2) 44px;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 59, 94, .25) transparent;
}

.member-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(13, 59, 94, .07);
  scroll-snap-align: center;
  transition: filter .35s ease, opacity .35s ease;
}

/* フォーカスの当たっていないカードはぼかす(JS有効時のみ) */
.member-scroller.is-enhanced .member-card:not(.is-focus) {
  filter: blur(3px);
  opacity: .5;
}

.member-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--bg-light);
}

.member-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.member-body {
  padding: 24px 28px 28px;
}

.member-name {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--ink);
}

.member-name-en {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(18, 40, 58, .45);
  vertical-align: baseline;
}

.member-role {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  color: rgba(18, 40, 58, .75);
}

.member-bio {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  text-wrap: pretty;
}

/* 準備中カード */
.member-card-soon {
  background: #ffffff; /* セクションが薄地になったため沈まないよう白に */
  border-style: dashed;
  box-shadow: none;
  align-items: center;
  justify-content: center;
}

.member-soon-inner {
  text-align: center;
  padding: 40px 20px;
}

.member-soon-inner svg {
  width: 46px;
  height: 46px;
  color: rgba(13, 59, 94, .3);
}

.member-soon-en {
  display: block;
  margin-top: 14px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .22em;
  color: rgba(18, 40, 58, .45);
}

.member-soon-text {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(18, 40, 58, .55);
}

/* 左右移動ボタン(スクロール・スワイプでも動く補助) */
.member-nav {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(13, 59, 94, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  cursor: pointer;
  transition: opacity .25s, color .2s;
}

.member-nav svg {
  width: 18px;
  height: 18px;
}

.member-nav:hover {
  color: var(--cyan);
}

.member-nav-prev { left: -20px; }
.member-nav-next { right: -20px; }

.member-nav[disabled] {
  opacity: .35;
  pointer-events: none;
}

/* ---------- Price ---------- */

.section-price {
  background: #ffffff;
}

/* 個別見積を前提に、目安2行だけを罫線リストで示す(SaaS的なカード表現は使わない) */
.price-rows {
  max-width: 760px;
  border-top: 1px solid var(--border);
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
}

.price-row-name {
  font-size: 18px; /* FLOWステップ名・FAQ質問と同じ項目見出しサイズ */
  font-weight: 700;
}

.price-row-name small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(18, 40, 58, .6);
}

.price-row-price {
  font-size: 16px;
  white-space: nowrap;
}

/* 金額のみ強調(タイポスケールの例外扱い) */
.price-row-price b {
  font-size: 20px;
  font-weight: 700;
}

.price-foot {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(18, 40, 58, .65);
}

.btn-price-outline {
  margin-top: 40px;
  height: 54px;
  padding: 0 44px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 15px;
  letter-spacing: .06em;
}

.btn-price-outline:hover {
  background: var(--navy);
  color: #ffffff;
}

/* ---------- FAQ ---------- */

.section-faq {
  background: var(--bg-light);
}

.faq-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
  align-items: start;
}

.faq-side .section-title {
  margin-bottom: 18px;
}

.faq-lead {
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
}

.btn-faq-contact {
  height: 50px;
  padding: 0 36px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 15px;
}

.btn-faq-contact:hover {
  background: var(--navy);
  color: #ffffff;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 6px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-q-body {
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.faq-q-mark {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--cyan);
  font-size: 18px;
}

.faq-q-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.faq-toggle-mark {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform .35s ease;
}

.faq-toggle-mark::before,
.faq-toggle-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 1px;
}

.faq-toggle-mark::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-toggle-mark::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  transition: transform .35s ease;
}

.faq-item.is-open .faq-toggle-mark {
  transform: rotate(180deg);
}

.faq-item.is-open .faq-toggle-mark::after {
  transform: translateX(-50%) scaleY(0);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease, transform .35s ease;
}

.faq-item.is-open .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

.faq-answer-inner {
  display: flex;
  gap: 18px;
  padding: 2px 6px 28px;
}

.faq-a-mark {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
}

.faq-a-text {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

.cta-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}

.cta .kicker {
  margin-bottom: 16px;
}

.cta-title {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .02em;
  text-wrap: pretty;
  line-break: strict;
  word-break: auto-phrase;
}

.cta-lead {
  margin: 0 auto 44px;
  max-width: 620px; /* 16px化後も「伺ったうえで、」まで1行に収める */
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  line-height: 2;
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* 紺帯上の主CTAは白地紺字(シアンはカジュアルに寄るため不使用) */
.btn-cta-primary {
  height: 58px;
  padding: 0 48px;
  background: #ffffff;
  color: var(--navy);
  font-size: 16px;
  letter-spacing: .06em;
}

.btn-cta-primary:hover {
  background: rgba(255, 255, 255, .86);
  color: var(--hp-primary);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .14); /* CTAと同色のため境目を示す */
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-logo {
  height: 32px;
  display: block;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  margin: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  line-height: 2;
}

.footer-col-title {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-link {
  color: rgba(255, 255, 255, .7);
}

.footer-link:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  color: rgba(255, 255, 255, .4);
  font-size: 12px;
}

.footer-credit {
  color: rgba(255, 255, 255, .3);
  font-size: 11px;
}

.footer-credit:hover {
  color: rgba(255, 255, 255, .55);
}

/* ---------- To top ---------- */

/* 一定量スクロールするまでは非表示かつタップ不能(誤タップ防止)。
   見た目はHP本体のTOPへ戻るボタン(to-topプラグイン実測値)に合わせる:
   46px円(36px+padding5px相当)/背景#005278/白シェブロン/右下20px/透過0.9 */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s, visibility .25s, transform .25s;
}

.to-top svg {
  width: 30px;
  height: 30px;
}

.to-top.is-shown {
  opacity: .9;
  visibility: visible;
  transform: none;
}

.to-top.is-shown:hover {
  opacity: 1;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 24px 48px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-lead {
    max-width: 560px;
  }

  .section-title {
    font-size: 30px;
  }

  .breaker {
    height: 170px;
  }

  .concept-title,
  .cta-title {
    font-size: 28px;
  }

  .section-inner,
  .concept-inner {
    padding: 80px 24px 72px;
  }

  .faq-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wm-issue, .wm-concept, .wm-service, .wm-flow, .wm-member, .wm-price, .wm-faq, .wm-contact {
    font-size: 100px;
  }
}

@media (max-width: 860px) {
  .nav-link {
    display: none;
  }

  /* ナビ非表示幅ではHP本体のモバイルヘッダー同様に左余白を戻す */
  .header-inner {
    padding: 0 24px;
  }

  .global-nav {
    gap: 12px;
  }

  .feature-strip-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 24px;
  }

  .feature-key {
    font-size: 20px;
  }

  .feature-en {
    font-size: 26px;
  }
}

/* スマホ専用のCONCEPT表示(デスクトップでは非表示) */
.concept-sp {
  display: none;
}

@media (max-width: 640px) {
  /* PC向けの改行はスマホでは無効化して自然に折り返す */
  .br-pc {
    display: none;
  }

  /* スマホではイラストを非表示(ヒーローは下の背面ウォッシュで代替) */
  .hero-visual {
    display: none;
  }

  /* ヒーローイラストをテキスト背面のウォッシュとして敷く */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url(../assets/hero-illustration.svg) right -70px bottom -70px / 330px auto no-repeat;
    opacity: .16;
    mask-image: linear-gradient(to bottom, transparent 2%, #000 45%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 45%);
    pointer-events: none;
  }

  /* お悩みボックス: スクロールに合わせて左からスライドイン */
  .issue-voice {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity .5s ease, transform .5s ease;
  }

  .issue-voice.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  /* CONCEPT: バー図の代わりにスクロール連動パネルを表示 */
  .concept-chart {
    display: none;
  }

  /* overflow: hidden のままだと子孫の position: sticky が効かない */
  .concept.section {
    overflow-x: clip;
    overflow-y: visible;
  }

  .concept-sp {
    display: block;
  }

  .concept-sp-stage {
    height: 240vh;
    position: relative;
  }

  .concept-sp-sticky {
    /* ヘッダーを除いた画面領域の縦中央にピン留めする(パネル高さ約290px想定) */
    position: sticky;
    top: calc(50vh - 105px);
  }

  /* ドット2層のパララックス背景。stickyボックス(パネル高のみ)から上下に伸ばして
     ピン留め中の画面全体(ヘッダー72px直下〜画面下端)を覆う。
     オフセットはピン位置 top: calc(50vh - 105px) とパネル高290pxから逆算。
     はみ出しはセクションのoverflow:hiddenで刈られる */
  .concept-sp-dots {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-50vh + 177px);
    bottom: calc(-50vh + 185px);
    overflow: hidden;
    pointer-events: none;
  }

  .concept-sp-dots i {
    position: absolute;
    inset: -120px 0;
    background-image: radial-gradient(rgba(13, 59, 94, .12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    will-change: transform;
  }

  /* 2層目はシアン・粗め・半位相ずらしで奥行きを出す */
  .concept-sp-dots i:nth-child(2) {
    background-image: radial-gradient(rgba(47, 195, 228, .16) 1.5px, transparent 1.5px);
    background-size: 44px 44px;
    background-position: 12px 12px;
  }

  /* パネルはドット層より手前に */
  .concept-sp-panel {
    position: relative;
    z-index: 1;
  }

  .concept-sp-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
  }

  /* ピル自体がスクロール進捗のメーターになる(左から塗りが溜まる) */
  .concept-sp-step {
    position: relative;
    flex: 1;
    border-radius: 8px;
    background: var(--bg-light);
    overflow: hidden;
  }

  .concept-sp-step-label,
  .concept-sp-step-fill {
    display: block;
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 800;
  }

  .concept-sp-step-label {
    color: var(--ink);
    opacity: .55;
  }

  .concept-sp-step-fill {
    position: absolute;
    inset: 0;
    background: var(--navy);
    color: #ffffff;
    clip-path: inset(0 100% 0 0);
  }

  .concept-sp-desc {
    font-size: 16px; /* PC版のフェーズ行(16px)と同格 */
    font-weight: 700;
    color: var(--ink);
    opacity: .8;
    text-align: center;
    margin-bottom: 14px;
    min-height: 24px;
    transition: opacity .25s;
  }

  .concept-sp-bar {
    display: flex;
    height: 20px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-light);
  }

  .concept-sp-bar i {
    display: block;
    height: 100%;
    transition: width .7s cubic-bezier(.4, 0, .2, 1);
  }

  .concept-sp-bar-you { background: var(--cyan); }
  .concept-sp-bar-dt { background: var(--navy); }

  .concept-sp-role {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px;
    align-items: start;
    margin-top: 6px;
  }

  .concept-sp-tag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #ffffff;
  }

  .concept-sp-role-you .concept-sp-tag { background: var(--cyan); }
  .concept-sp-role-dt .concept-sp-tag { background: var(--navy); }

  .concept-sp-role p {
    font-size: 14px;
    line-height: 1.75;
    font-weight: 600;
    color: var(--ink);
    padding-top: 3px;
    margin: 0;
    transition: opacity .25s;
  }

  /* 2行になる最長テキストに合わせて高さを固定し、切り替え時のガタつきを防ぐ */
  .concept-sp-role-dt p {
    min-height: 44px;
  }

  .concept-sp-panel.is-swapping .concept-sp-desc,
  .concept-sp-panel.is-swapping .concept-sp-role p {
    opacity: 0;
  }

  .hero-inner {
    padding: 40px 24px 44px;
    z-index: 1; /* 背面ウォッシュより手前に */
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 30px 0;
  }

  .service-num {
    font-size: 54px;
  }

  .service-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 20px 0;
    margin-top: 28px;
  }

  .service-stack-badge {
    width: 50px;
    height: 50px;
  }

  .service-stack-badge svg {
    width: 23px;
    height: 23px;
  }

  .hero-kicker {
    font-size: 18px;
  }

  .hero-title {
    font-size: 31px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 26px;
  }

  .breaker {
    height: 130px;
  }

  /* CONCEPT見出しは他セクションの見出しサイズと揃える */
  .concept-title {
    font-size: 26px;
  }

  /* セクション見出し(26px)との階層差を確保 */
  .service-title {
    font-size: 20px;
  }

  .concept-title,
  .cta-title {
    font-size: 24px;
  }

  .flow-group {
    row-gap: 18px;
    margin-bottom: 20px;
  }

  .flow-glabel {
    padding: 9px 16px;
    font-size: 14px;
  }

  .flow-gsteps {
    gap: 20px;
  }

  .flow-step {
    gap: 14px;
  }

  .issue-voice {
    width: auto;
    max-width: none;
    align-items: flex-start; /* 複数行時はアイコンを先頭行に合わせる */
  }

  .issue-person {
    margin-top: 4px;
  }

  .concept-legend {
    margin-bottom: 20px;
  }

  .concept-row {
    margin-bottom: 22px;
  }

  .concept-bar {
    height: 22px;
    border-radius: 6px;
  }

  .concept-seg span {
    display: none;
  }

  .concept-notes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 9px;
  }

  .concept-notes span {
    position: relative;
    padding-left: 18px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--ink);
  }

  .concept-notes span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
  }

  .concept-note-you::before {
    background: var(--cyan);
  }

  .concept-note-dt::before {
    background: var(--navy);
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* MEMBER: 画面いっぱいを使って隣のカードを覗かせる */
  .member-scroller-wrap {
    margin-inline: -24px;
  }

  /* スマホは従来どおり4:3(縮小はPCのみ) */
  .member-photo {
    aspect-ratio: 4 / 3;
  }

  .member-scroller {
    gap: 18px;
    padding-bottom: 38px;
  }

  .member-body {
    padding: 20px 20px 24px;
  }

  .member-nav {
    top: 20%;
    width: 34px;
    height: 34px;
  }

  .member-nav svg {
    width: 16px;
    height: 16px;
  }

  .member-nav-prev { left: 10px; }
  .member-nav-next { right: 10px; }

  .wm-issue, .wm-concept, .wm-service, .wm-flow, .wm-member, .wm-price, .wm-faq, .wm-contact {
    font-size: 72px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* 後方のメディアクエリ内ルールにも勝てるよう最後に置く */
@media (prefers-reduced-motion: reduce) {
  .concept-sp-desc,
  .concept-sp-bar i,
  .concept-sp-role p {
    transition: none;
  }

  .issue-voice,
  .service-stack-item,
  .flow-glabel,
  .flow-step,
  .member-scroller-wrap,
  .price-body {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .member-card {
    transition: none;
  }

  .to-top {
    transition: none;
  }
}
