/* ==========================================================================
   Style
   ページ固有スタイル（PC + 共通スタイル）
   ========================================================================== */

/* ==========================================================================
   Hero（ファーストビュー）
   2カラム: 左テキスト + 右ビジュアル（fv-img.png）
   参考: docs/references/top/top-fv.png
   ========================================================================== */
.hero {
  position: relative;
  /* min-height の指定は解除。コンテンツ量に応じた自然な高さに */
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 75%,
    rgba(164, 228, 255, 1) 100%);
  overflow: hidden;
}

/* Hero の container は base.css の .container ルール（max-width 1440 + padding 5%/3%）と統一 */
.hero > .container {
  width: 100%;
}

/* 濃青グラデ上の装飾ハロー（白と暖色） */
.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -8%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -14%;
  left: -8%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 184, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  /* 左カラム（テキスト）をやや広げてタイトル1行目「最先端の AI ソリューションで、」が
     中小画面でも折り返されないようにする */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Eyebrow: メインアクセント（青）に戻す */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  width: fit-content;
  font-family: var(--font-en);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-lg);
  color: var(--color-accent);
  text-transform: uppercase;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  background: rgba(0, 113, 185, 0.06);
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Hero タイトル: 確実に2行に収まる + 1行目が折り返されないサイズ */
.hero-title {
  font-family: var(--font-jp);
  font-size: clamp(1.4rem, -0.4rem + 3vw, 2.375rem);  /* 22.4 → 38px */
  font-weight: var(--fw-bold);
  font-style: italic;
  line-height: 1.45;
  letter-spacing: 0.5px;
  color: var(--color-white);
  text-shadow: 0 2px 12px rgba(15, 31, 53, 0.18);
}

/* タイトル内の強調語: 白背景ボックス（イタリックに合わせ斜め）
   + 子要素 .hero-title-accent-text にブルー系グラデ文字 */
.hero-title-accent {
  display: inline-block;
  background: var(--color-white);
  padding: 0em 0.2em;
  /* 前後の日本語文字（「の」「で」等）との余白を確保 */
  margin: 0 0.3em;
  border-radius: 4px;
  transform: skewX(-12deg);
  text-shadow: none;
  white-space: nowrap;
}

.hero-title-accent-text {
  display: inline-block;
  transform: skewX(12deg);  /* 親の skew を打ち消し、文字はイタリック角度のみ */
  background-image: linear-gradient(135deg, #003a6b 0%, #0071B9 40%, #4395d5 75%, #a4e4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  font-weight: var(--fw-bold);
  line-height: var(--lh-lg);
  letter-spacing: 0.5px;
  color: var(--color-white);
  margin-top: 0;
}

/* カタカナ部分の letter-spacing を詰める（Hero タイトル/リード内で使用） */
.hero-title .kana,
.hero-lead .kana {
  letter-spacing: -0.5px;
}

/* 訴求バッジ: 月桂冠SVG+テキスト構造（ul） */
.hero-features {
  margin: 0;
}

ul.hero-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-white);
}

/* 月桂冠: SVG（PNG内包）を mask-image として使用し、
   background-color で #f5a55c に着色する */
.hero-feature-laurel {
  display: inline-block;
  width: 40px;
  height: 76px;
  flex-shrink: 0;
  background-color: #f5a55c;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.hero-feature-laurel--left {
  mask-image: url("../image/fv-gekkei-lft.svg");
  -webkit-mask-image: url("../image/fv-gekkei-lft.svg");
}

.hero-feature-laurel--right {
  mask-image: url("../image/fv-gekkei-rgt.svg");
  -webkit-mask-image: url("../image/fv-gekkei-rgt.svg");
}

.hero-feature-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  min-width: 90px;
}

.hero-feature-text {
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--color-white);
  text-align: center;
}

/* 「3倍」「80%」などの数値を大きく強調（月桂冠と同色のオレンジ） */
.hero-feature-highlight {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 2.4em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f5a55c;
  text-shadow: 0 2px 8px rgba(15, 31, 53, 0.25);
  vertical-align: -0.08em;
}

/* v2: img 形式 */
.hero-features-img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-left: calc(var(--space-md) * -1);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* Hero CTA: 濃青背景に合わせて色を上書き（枠線なし） */
/* 資料請求(primary): オレンジグラデ + 白文字、ホバーで白塗りオレンジ文字 */
.hero .btn--primary {
  background: linear-gradient(135deg, #f5a55c 0%, #e97e2b 50%, #c9621a 100%);
  color: var(--color-white);
}
.hero .btn--primary::before {
  background: var(--color-white);
}
.hero .btn--primary:hover {
  color: var(--color-accent-warm);
}

/* 個別相談(secondary): Hero の濃青背景に白塗り+青文字+青枠線
   → ユーザー指定で Hero 個別相談ボタンには枠線を残す
   .btn base の border は none になっているため、ここで完全宣言 */
.hero .btn--secondary {
  background: var(--color-white);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.hero .btn--secondary::before {
  background: var(--color-accent);
}
.hero .btn--secondary:hover {
  color: var(--color-white);
}

.hero-visual {
  position: relative;
  /* prev/next (各40px) + ギャップ ぶん広げて、スライド本体は ~540px を維持 */
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  justify-self: end;
}

/* 画像背後の装飾：白ハロー + 暖色アクセント（濃青背景に合わせる） */
.hero-visual::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 10%;
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.25) 0%, transparent 65%);
  z-index: 0;
  animation: hero-orb 9s ease-in-out infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  bottom: -4%;
  right: 0;
  width: 36%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 217, 184, 0.22) 0%, transparent 65%);
  z-index: 0;
  animation: hero-orb 12s ease-in-out infinite reverse;
}

.hero-visual-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Hero カルーセル（導入事例）
   ========================================================================== */
.hero-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  /* grid: prev | track | next、下段に dots */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: var(--space-sm);
  row-gap: var(--space-md);
}

.hero-carousel-track {
  position: relative;
  display: grid;
  grid-template-areas: "stack";
  grid-column: 2;
  grid-row: 1;
}

.hero-case {
  grid-area: stack;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.5s var(--easing),
              transform 0.5s var(--easing),
              visibility 0.5s var(--easing);
}

.hero-case.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* スライド本体: 1枚画像で完結（ロゴ・タイトル・効果・説明文すべて画像に含む） */
.hero-case-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(15, 31, 53, 0.18);
}


/* prev/next ボタン: grid 列で track の左右に配置（コンテンツに被らない） */
.hero-carousel-nav {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 31, 53, 0.18);
  z-index: 5;
  flex-shrink: 0;
  transition: background var(--transition-speed) var(--easing),
              color var(--transition-speed) var(--easing),
              transform var(--transition-speed) var(--easing);
}

.hero-carousel-nav svg {
  width: 12px;
  height: 18px;
  display: block;
}

.hero-carousel-nav--prev {
  grid-column: 1;
  grid-row: 1;
}

.hero-carousel-nav--next {
  grid-column: 3;
  grid-row: 1;
}

.hero-carousel-nav:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.05);
}

.hero-carousel-nav:focus-visible {
  outline: 2px solid var(--color-accent-warm);
  outline-offset: 2px;
}

/* ドット: grid 下段の中央列に配置（track と同じ列） */
.hero-carousel-dots {
  grid-column: 2;
  grid-row: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-carousel-dots button {
  display: block;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width var(--transition-speed) var(--easing),
              background var(--transition-speed) var(--easing);
}

.hero-carousel-dots button.is-active {
  background: var(--color-white);
  width: 24px;
  border-radius: var(--radius-full);
}

.hero-carousel-dots button:hover {
  background: var(--color-white);
}

/* ==========================================================================
   Hero パターン2（.hero--v2）: fv-bg.png 背景版
   - 左側は白系・右側は濃青の斜め分割画像
   - 左側コンテンツは暗色テキスト、右側カルーセルは既存のまま
   ========================================================================== */
.hero--v2 {
  background: url("../image/fv-bg.png") center top / cover no-repeat;
}

/* 装飾ハローは画像と干渉するため非表示 */
.hero--v2::before,
.hero--v2::after {
  display: none;
}

/* テキスト色: 左の白系背景に合わせて濃紺へ。イタリックも解除 */
.hero--v2 .hero-title {
  color: var(--color-primary);
  text-shadow: none;
  font-style: normal;
}

.hero--v2 .hero-lead {
  color: var(--color-primary);
}

/* 強調語: 背景色を削除（透明）+ skew も解除、文字は #0071B9 のソリッドブルー */
.hero--v2 .hero-title-accent {
  background: transparent;
  transform: none;
  padding: 0;
  margin: 0;
}

.hero--v2 .hero-title-accent-text {
  transform: none;
  background-image: none;
  color: var(--color-accent);
  -webkit-text-fill-color: var(--color-accent);
}

/* 訴求バッジは fv-feature.png 画像化済み（v2 専用オーバーライドは不要） */

/* v2 の資料請求(primary): グラデを解除してソリッドカラーに（枠線なし） */
.hero--v2 .btn--primary {
  background: var(--color-accent-warm);
}

/* CTA: primary（オレンジグラデ）はそのまま、secondary は白背景+青(#0071B9)文字（枠線なし） */
.hero--v2 .btn--secondary {
  background: var(--color-white);
  color: var(--color-accent);
  border-color: transparent;
}
.hero--v2 .btn--secondary::before {
  background: var(--color-accent);
}
.hero--v2 .btn--secondary:hover {
  color: var(--color-white);
}

/* カルーセルの右側装飾ブロブも淡く（濃青背景に溶けるため） */
.hero--v2 .hero-visual::before {
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.30) 0%, transparent 65%);
}

.hero--v2 .hero-visual::after {
  background: radial-gradient(circle at 40% 40%, rgba(255, 217, 184, 0.18) 0%, transparent 65%);
}

@keyframes hero-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(6%, -4%) scale(1.06); }
}

/* ==========================================================================
   About（サービス概要）
   左テキスト + 右にカスタム図解（中央ロゴ + 6サービス内輪 + 4フェーズ外輪）
   ========================================================================== */
.about {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--color-white);
  overflow: hidden;
}

/* 見出しはセクション上部の中央に配置 */
.about-intro {
  text-align: center;
  margin: 0 auto var(--space-xl);
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-2xl);
  align-items: center;
  z-index: 1;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ==========================================================================
   セクション見出し統一クラス（全セクション共通）
   構造例:
     <h2 class="section-title section-heading-bg" data-bg-text="SUPPORT">
       <span class="section-title-text">伴走サポート</span>
     </h2>
   モディファイア:
     .section-title--center : 中央寄せ + watermark も中央寄せ
   ========================================================================== */
.section-title {
  font-family: var(--font-jp);
  font-size: var(--fz-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-sm);
  letter-spacing: var(--ls-sm);
  margin-bottom: var(--space-lg);
}

/* v1: 内側 span にブルー系グラデを適用（::before watermark に影響を与えない） */
.section-title-text {
  display: inline-block;
  background-image: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 75%,
    rgba(164, 228, 255, 1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* v2 では単色 #0071B9 */
body.page-v2 .section-title-text {
  background-image: none;
  color: var(--color-accent);
  -webkit-text-fill-color: var(--color-accent);
}

.section-title-accent {
  color: var(--color-accent-warm);
}

/* 中央寄せモディファイア */
.section-title--center {
  text-align: center;
}

.about-description {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  line-height: var(--lh-lg);
  color: var(--color-primary);
}

/* 強調テキスト（最適な導入支援サービス / ワンストップ / 専任チーム / 使われるAI） */
.about-em {
  font-size: 1.15em;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: var(--ls-sm);
}

/* ==========================================================================
   About: カスタム図解（自作版）
   - 中央ハブ: ai e-ize / AIソリューション
   - 内輪 6ノード: 提供サービス（60°おき）
   - 外輪 4ラベル: 4フェーズ（NSEW）
   - SVG: 軌道円 + 各種接続線
   ========================================================================== */
.about-figure {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-diagram {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
}

@media (min-width: 1600px) {
  .about-diagram {
    max-width: none;
  }
}

/* 図解背後の極薄い青の円形背景 */
.about-diagram::before {
  content: "";
  position: absolute;
  inset: -2% -2% -2% -2%;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(220, 233, 244, 0.35) 0%,
    rgba(220, 233, 244, 0.18) 60%,
    transparent 95%);
  z-index: 0;
}

.about-diagram-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

/* リング外周の循環矢印 */
.about-diagram-cycle {
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.7;
}

/* 中央ハブ（さらに縮小し、リング+サービスを目立たせる） */
.about-diagram-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 19%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 75%,
    rgba(164, 228, 255, 1) 100%);
  box-shadow: 0 10px 36px rgba(0, 113, 185, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--color-white);
  text-align: center;
  z-index: 3;
}

.about-diagram-hub-brand {
  font-family: var(--font-en);
  font-size: var(--fz-sm);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1;
}

.about-diagram-hub-brand-accent {
  color: var(--color-accent-warm-light);
}

.about-diagram-hub-sub {
  font-family: var(--font-jp);
  font-size: 8px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-md);
  opacity: 0.9;
}

/* ==========================================================================
   リング内の4フェーズラベル（中央ハブを囲む）
   ========================================================================== */
.about-diagram-phase {
  position: absolute;
  top: var(--py);
  left: var(--px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

.about-diagram-phase-num {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  color: var(--color-accent);
  line-height: 1;
}

.about-diagram-phase-name {
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  color: var(--color-primary);
  line-height: 1;
}

/* リング帯（半径55〜110）の中央（半径82.5 = 15.3%）に各フェーズを配置 */
.about-diagram-phase--01 { --px: 50%;   --py: 34.7%; }  /* 検討 - top */
.about-diagram-phase--02 { --px: 65.3%; --py: 50%;   }  /* 検証 - right */
.about-diagram-phase--03 { --px: 50%;   --py: 65.3%; }  /* 導入 - bottom */
.about-diagram-phase--04 { --px: 34.7%; --py: 50%;   }  /* 運用 - left */

/* 6サービスノード（アイコン版・最も目立たせる）
   ドーナツリングを置くため width を 30%→26% に縮小、位置 radius は 35%→36% */
.about-service {
  position: absolute;
  top: var(--py);
  left: var(--px);
  transform: translate(-50%, -50%);
  width: 26%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-accent-light);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4%;
  padding: 6% 4%;
  text-align: center;
  z-index: 4;
}

.about-service-icon {
  display: block;
  width: 62%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
}

.about-service-label {
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* サービス配置: 中心(50%,50%) / 半径36% / 60°おき */
.about-service--01 { --px: 50%;    --py: 14%;   }  /* top */
.about-service--02 { --px: 81.2%;  --py: 32%;   }  /* top-right */
.about-service--03 { --px: 81.2%;  --py: 68%;   }  /* bottom-right */
.about-service--04 { --px: 50%;    --py: 86%;   }  /* bottom */
.about-service--05 { --px: 18.8%;  --py: 68%;   }  /* bottom-left */
.about-service--06 { --px: 18.8%;  --py: 32%;   }  /* top-left */

/* ==========================================================================
   Services（提供サービス6柱の詳細カード / About セクション内に配置）
   ========================================================================== */
.services-grid {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.service-card {
  display: block;
}

.service-card > article {
  /* 図解と同色系だがさらに薄く（0.35 → 0.18） */
  background: rgba(220, 233, 244, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  height: 100%;
  position: relative;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-gray-border);
}

.service-card-title {
  font-family: var(--font-jp);
  font-size: clamp(0.9375rem, 0.75rem + 0.6vw, 1.0625rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-sm);
  letter-spacing: 0;
  color: var(--color-primary);
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.service-card-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  text-decoration: none;
  transition: background var(--transition-speed) var(--easing),
              color var(--transition-speed) var(--easing),
              transform var(--transition-speed) var(--easing);
}

.service-card-link:hover {
  opacity: 1;
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateX(2px);
}

.service-card-link svg {
  width: 14px;
  height: 14px;
  display: block;
}

.service-card-desc {
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  line-height: var(--lh-md);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.service-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
}

/* リンク版と非リンク（span）版 共通のレイアウト */
.service-card-list a,
.service-card-list > li > span {
  /* flex + justify-content: space-between で
     テキストを左寄せ / chevron を右端 + 上下中央に配置 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  width: 100%;
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: var(--ls-sm);
  transition: color var(--transition-speed) var(--easing);
}

/* chevron はリンクにのみ表示（非公開の項目は矢印なしで非クリック感を出す） */
.service-card-list a::after {
  content: "›";
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 1.4em;
  font-weight: var(--fw-regular);
  color: var(--color-gray);
  transition: color var(--transition-speed) var(--easing);
}

.service-card-list a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.service-card-list a:hover::after {
  color: var(--color-accent);
}

/* span はカーソルを default に固定してリンクではないことを明示 */
.service-card-list > li > span {
  cursor: default;
}

.services-cta {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Support（伴走サポート 4ステップ）
   参考: docs/references/top/top-support.jpg
   右上がりの階段状に配置された矢印型バナー + フェーズ名 + 1行説明
   ========================================================================== */
.support {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.support-intro {
  text-align: center;
  margin: 0 auto var(--space-xl);
  max-width: 760px;
}

.support-lead {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  line-height: var(--lh-lg);
  color: var(--color-primary);
  margin: 0;
}

.support-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  max-width: 1000px;
}

.support-step {
  position: relative;
  padding: 0 var(--space-sm);
  text-align: center;
}

/* ステップ間の縦点線（1つ目以外の左側） */
.support-step:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30%;
  bottom: 0;
  border-left: 1px dashed rgba(15, 31, 53, 0.18);
}

/* 階段状オフセット: 左に行くほど下（padding-top を大きく） */
.support-step--1 { padding-top: 120px; }
.support-step--2 { padding-top: 80px; }
.support-step--3 { padding-top: 40px; }
.support-step--4 { padding-top: 0; }

/* 矢印型バナー（右向きの五角形、clip-path で作成）
   角にチャンファーを付けて少し丸みを帯びた印象に */
.support-step-banner {
  display: block;
  width: 88%;
  max-width: 180px;
  margin: 0 auto var(--space-md);
  padding: 10px 24px 10px 14px;
  clip-path: polygon(
    8px 0,
    calc(100% - 22px) 0,
    calc(100% - 18px) 4px,
    100% 50%,
    calc(100% - 18px) calc(100% - 4px),
    calc(100% - 22px) 100%,
    8px 100%,
    0 calc(100% - 8px),
    0 8px
  );
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: var(--fz-md);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-lg);
  text-align: center;
}

/* 4段階のブルー（下から段々濃く） */
.support-step--1 .support-step-banner { background: #a9c9ec; }
.support-step--2 .support-step-banner { background: #7dabe0; }
.support-step--3 .support-step-banner { background: #4586cf; }
.support-step--4 .support-step-banner { background: var(--color-accent); }

.support-step-content {
  padding-top: var(--space-xs);
}

.support-step-name {
  font-family: var(--font-jp);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-md);
  color: var(--color-primary);
  margin: 0 0 var(--space-xs);
}

.support-step-desc {
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  line-height: var(--lh-md);
  color: var(--color-primary);
  margin: 0;
}

/* ==========================================================================
   Section CTA（ページ中段の挿入型CTA）
   参考: docs/references/top/sec-cta.jpg
   既存グラデを再利用:
     - 背景: Hero V1 と同じブルーグラデ
     - 個別相談ボタン: Hero primary と同じオレンジグラデ
     - 資料請求ボタン: 白塗り + accent ブルー文字
   ========================================================================== */
.sec-cta {
  position: relative;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 75%,
    rgba(164, 228, 255, 1) 100%);
  overflow: hidden;
}

.sec-cta-inner {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.sec-cta-title {
  font-family: var(--font-jp);
  font-size: var(--fz-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-sm);
  letter-spacing: var(--ls-sm);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.sec-cta-sub {
  font-family: var(--font-jp);
  font-size: var(--fz-base);
  color: var(--color-white);
  margin: 0 0 var(--space-xl);
}

.sec-cta-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 820px;
  margin: 0 auto;
}

/* ラッパ: tag を button の overflow:hidden 外に置くために必要 */
.sec-cta-btn-wrap {
  position: relative;
  display: flex;
}

.sec-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  font-weight: var(--fw-bold);
  text-decoration: none;
  letter-spacing: var(--ls-sm);
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--transition-speed) var(--easing);
}

/* ::before で左→右スイープ（.btn と同じパターン、tag は wrap の外側にあるので影響なし） */
.sec-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--easing);
  z-index: -1;
}

.sec-cta-btn:hover {
  opacity: 1;
}

.sec-cta-btn:hover::before {
  transform: scaleX(1);
}

/* Primary: オレンジグラデ → hover で白がスイープ、文字色が accent-warm に */
.sec-cta-btn--primary {
  background: linear-gradient(135deg, #f5a55c 0%, #e97e2b 50%, #c9621a 100%);
  color: var(--color-white);
}
.sec-cta-btn--primary::before {
  background: var(--color-white);
}
.sec-cta-btn--primary:hover {
  color: var(--color-accent-warm);
}

/* Secondary: 初期は白 + accent 文字 + 青枠、hover でブルーグラデがスイープ、文字色 → 白 */
.sec-cta-btn--secondary {
  background: var(--color-white);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.sec-cta-btn--secondary::before {
  background: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 75%,
    rgba(164, 228, 255, 1) 100%);
}
.sec-cta-btn--secondary:hover {
  color: var(--color-white);
}

/* tag に対応するボタン色の枠線を付与（親 wrap に対する :has() で判定） */
.sec-cta-btn-wrap:has(.sec-cta-btn--primary) .sec-cta-btn-tag {
  border: 1px solid var(--color-accent-warm);
}

.sec-cta-btn-wrap:has(.sec-cta-btn--secondary) .sec-cta-btn-tag {
  border: 1px solid var(--color-accent);
}

.sec-cta-btn-label {
  flex: 1;
  text-align: center;
}

.sec-cta-btn-arrow {
  font-family: var(--font-en);
  font-size: 1.4em;
  line-height: 1;
  font-weight: var(--fw-regular);
}

/* ボタン上部に重なる白タグ（wrap の子として絶対配置 → button の overflow に影響されない） */
.sec-cta-btn-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-jp);
  font-size: var(--fz-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: var(--ls-sm);
  z-index: 2;
}

/* ==========================================================================
   Common Concerns（お悩み 5項目・吹き出し + 人物）
   参考: docs/references/top/top-problem.jpg
   構成: 中央の人物 SVG の周りに 5つの吹き出しを絶対配置
   ========================================================================== */
.concerns {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--color-white);
  overflow: hidden;
}

.concerns-intro {
  text-align: center;
  margin: 0 auto var(--space-xl);
  max-width: 760px;
}

.concerns-lead {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  line-height: var(--lh-lg);
  color: var(--color-primary);
  margin: 0;
}

.concerns-lead-accent {
  color: var(--color-accent);
  font-weight: var(--fw-bold);
}

/* シーン: 5つの吹き出し + 人物を1枚の画像 (top-problem.png) で表示 */
.concerns-scene {
  max-width: 1000px;
  margin: 0 auto;
}

.concerns-scene-img {
  width: 100%;
  height: auto;
}
/* PC/SP の表示切替は .pc-only / .sp-only ユーティリティに委ねる（display を上書きしない） */
.concerns-scene-img.pc-only { display: block; }
.concerns-scene-img.sp-only { display: none; }
@media (max-width: 768px) {
  .concerns-scene-img.pc-only { display: none; }
  .concerns-scene-img.sp-only { display: block; }
}

/* ==========================================================================
   Featured（AI提携サービス フォーカスカルーセル）
   参考: docs/references/top/partner-service.jpg
   ========================================================================== */
.featured {
  position: relative;
  padding: var(--space-3xl) 0;
  background: #dce9f42e; /* rgba(220, 233, 244, 0.18) */
}

.featured-intro {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.featured-lead {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  line-height: var(--lh-lg);
  color: var(--color-primary);
  margin: 0;
}

.featured-carousel {
  position: relative;
}

.featured-viewport {
  overflow: hidden;
  padding: var(--space-md) 0;
}

.featured-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-md);
  transition: transform 0.5s var(--easing);
  will-change: transform;
}

.featured-card {
  flex: 0 0 22%;
  background: var(--color-white);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  opacity: 0.55;
  transition: opacity var(--transition-speed) var(--easing),
              transform var(--transition-speed) var(--easing),
              border-color var(--transition-speed) var(--easing),
              box-shadow var(--transition-speed) var(--easing);
}

.featured-card.is-active {
  opacity: 1;
  border-color: var(--color-accent);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.featured-card-title {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  font-weight: var(--fw-bold);
  line-height: var(--lh-sm);
  letter-spacing: var(--ls-sm);
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 var(--space-xs);
  min-height: 2.6em;
}

/* ブランドロゴ表示エリア: 各社の実ロゴを contain 表示（背景なし） */
.featured-card-brand {
  height: 72px;
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-card-brand img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ロゴ画像が用意されていない場合のテキスト表記
   （画像ロゴと同等の存在感になるよう、コンテキストごとにフォントサイズを上書き） */
.brand-text {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: var(--ls-sm);
  line-height: 1;
  white-space: nowrap;
}

.featured-card-brand .brand-text {
  font-size: 22px;
}

.featured-card-desc {
  font-family: var(--font-jp);
  font-size: var(--fz-xs);
  line-height: var(--lh-md);
  color: var(--color-primary);
  margin: 0;
  flex: 1;
}

.featured-card-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.featured-card-tags li {
  font-family: var(--font-jp);
  font-size: var(--fz-xs);
  background: var(--color-gray-light);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ナビゲーション（中央 active カード両端の上に絶対配置） */
.featured-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  /* ブルーグラデ (btn--primary と同色系) */
  background: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 75%,
    rgba(164, 228, 255, 1) 100%);
  color: var(--color-white);
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter var(--transition-speed) var(--easing),
              transform var(--transition-speed) var(--easing);
}

.featured-nav:hover {
  filter: brightness(0.9);
}

.featured-nav svg {
  width: 14px;
  height: 20px;
  display: block;
}

/* active カードの幅 ≒ viewport の 1/5（20%）= 中央±10%。
   さらに scale(1.05) で広がるので、中央から ±11% 程度に配置。 */
.featured-nav--prev {
  left: calc(50% - 13.5%);
  transform: translate(-50%, -50%);
}

.featured-nav--next {
  left: calc(50% + 13.5%);
  transform: translate(-50%, -50%);
}

/* ドット */
.featured-dots {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
}

.featured-dots button {
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(15, 31, 53, 0.2);
  cursor: pointer;
  transition: all var(--transition-speed) var(--easing);
}

.featured-dots button.is-active {
  background: var(--color-accent);
  width: 28px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Partners（パートナー企業 5社ロゴ）
   ========================================================================== */
.partners {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.partners-intro {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.partners-lead {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  line-height: var(--lh-lg);
  color: var(--color-primary);
  margin: 0;
}

.partners-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-md);
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.partner-item-logo {
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* ==========================================================================
   Flow（お問い合わせ後の流れ 3ステップ）
   参考: docs/references/top/top-flow.jpg
   構成: 縦積みカード + 左に立体的な番号バブル + カード間の点線コネクター
   ========================================================================== */
.flow {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.flow-intro {
  text-align: center;
  margin: 0 auto var(--space-2xl);
  max-width: 760px;
}

.flow-eyebrow {
  font-family: var(--font-en);
  font-size: var(--fz-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-lg);
  color: var(--color-accent);
  text-transform: uppercase;
  margin: var(--space-sm) 0 0;
  opacity: 0.75;
}

.flow-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* 各ステップ: 白カード + 左に番号バブル */
.flow-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 8px 24px rgba(15, 31, 53, 0.06);
}

/* 前のカードの pseudo（点線・矢印）が次のカードより前面に来るよう z-index を降順に */
.flow-step:nth-child(1) { z-index: 3; }
.flow-step:nth-child(2) { z-index: 2; }
.flow-step:nth-child(3) { z-index: 1; }

/* カード間の縦点線 + 下端の矢印
   pseudo は親カードの stacking context 内で高 z-index を持つが、
   .flow-step の z-index 降順により次のカードの上に描画される */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--space-xl) + 30px);
  top: 100%;
  width: 2px;
  height: var(--space-xl);
  background-image: linear-gradient(to bottom, var(--color-accent) 45%, transparent 45%);
  background-size: 2px 8px;
  background-repeat: repeat-y;
  transform: translateX(-1px);
  z-index: 5;
}

.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(var(--space-xl) + 22px);
  top: calc(100% + var(--space-xl) - 4px);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--color-accent);
  z-index: 6;
}

/* 番号バブル: 既存デザイン統一の linear-gradient
   （.btn--primary / .section-title-text / .support-step-badge と同色） */
.flow-step-num {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 75%,
    rgba(164, 228, 255, 1) 100%);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: var(--fz-lg);
  font-weight: 900;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 113, 185, 0.25);
  position: relative;
  z-index: 2;
}

.flow-step-body {
  flex: 1;
  min-width: 0;
  padding-top: var(--space-xs);
}

.flow-step-title {
  font-family: var(--font-jp);
  font-size: var(--fz-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: var(--ls-sm);
  line-height: var(--lh-sm);
  margin: 0 0 var(--space-xs);
}

.flow-step-desc {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: var(--lh-lg);
  color: var(--color-primary);
  margin: 0;
}

/* Step 03 内の項目リスト（点線区切り） */
.flow-step-list {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
}

.flow-step-list li {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) 20px;
  border-bottom: 1px dashed var(--color-gray-border);
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: var(--lh-md);
  color: var(--color-primary);
}

.flow-step-list li:last-child {
  border-bottom: none;
}

.flow-step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--space-sm) + 0.4em);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ==========================================================================
   Page CTA（全ページ最下部の共通CTA / includes/footer-cta.php で読み込み）
   参考: docs/references/common/cta.jpg
   デザイン: 現サイトのトンマナに準拠
     - 背景: Hero V1 / sec-cta と同じブルーグラデ
     - 見出し: .section-title + section-heading-bg（白色オーバーライド）
     - ボタン: .btn btn--primary btn--pill btn--lg btn--arrow-circle をそのまま使用
     - カード: 白背景 + accent色アイコン枠
   ========================================================================== */
.page-cta {
  position: relative;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 75%,
    rgba(164, 228, 255, 1) 100%);
  overflow: hidden;
}

.page-cta-intro {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* .section-title 系を .page-cta 内で白オーバーライド（背景が青グラデのため） */
.page-cta .section-title-text {
  background-image: none;
  color: var(--color-white);
  -webkit-text-fill-color: var(--color-white);
}

.page-cta .section-heading-bg::before {
  color: rgba(255, 255, 255, 0.12);
}

.page-cta-lead {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  line-height: var(--lh-lg);
  color: var(--color-white);
  margin: 0;
}

.page-cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.page-cta-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  color: var(--color-primary);
}

.page-cta-card-title {
  font-family: var(--font-jp);
  font-size: var(--fz-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-sm);
  letter-spacing: var(--ls-sm);
  color: var(--color-accent);
  margin: 0;
}

.page-cta-card-desc {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: var(--lh-lg);
  color: var(--color-primary);
  margin: 0;
  flex: 1;
}

/* ボタンは .btn 系をそのまま使用。カード内で幅を揃えるための位置調整のみ */
.page-cta-card-btn {
  align-self: flex-start;
  margin-top: var(--space-sm);
}

/* ==========================================================================
   ============================================================
   AI Platform 導入支援ページ (ai-platform.php) 専用スタイル
   ============================================================
   ========================================================================== */

/* 共通: セクションイントロ */
.aip-section-intro {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.aip-section-lead {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  line-height: var(--lh-lg);
  color: var(--color-primary);
  margin: 0;
}

/* 共通: タイプバッジ（開発型 / OSS型 等） */
.aip-platform-type {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(220, 233, 244, 0.7);
  color: var(--color-accent);
  font-family: var(--font-jp);
  font-size: var(--fz-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-sm);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.aip-hero {
  position: relative;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 75%,
    rgba(164, 228, 255, 1) 100%);
  overflow: hidden;
  color: var(--color-white);
}

/* aip-hero-grid は不要（Hero visual を廃止して単一カラム左寄せに） */

.aip-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.aip-hero-eyebrow {
  font-family: var(--font-en);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-lg);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  margin: 0;
}

.aip-hero-title {
  font-family: var(--font-jp);
  font-size: var(--fz-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-sm);
  letter-spacing: var(--ls-sm);
  color: var(--color-white);
  margin: 0;
}

.aip-hero-title .kana {
  font-feature-settings: "palt";
}

.aip-hero-title-accent {
  display: inline-block;
}

.aip-hero-title-accent-text {
  background-image: linear-gradient(135deg, #ffd9b8 0%, #ffb26b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.aip-hero-lead {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  line-height: var(--lh-lg);
  color: var(--color-white);
  margin: 0;
}

.aip-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

/* Hero 直下の対応プラットフォームロゴ帯 */
.aip-hero-logos {
  padding: var(--space-xl) 0;
  background: var(--color-white);
}

.aip-hero-logo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl) var(--space-xl);
}

.aip-hero-logo-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.aip-hero-logo-list img {
  display: block;
  max-height: 48px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.aip-hero-logo-list .brand-text {
  font-size: 22px;
}

/* ==========================================================================
   Section 2: プラットフォーム一覧
   ========================================================================== */
.aip-platforms {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.aip-platform-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

/* 4番目と5番目のカードを中央寄せ配置（3 + 2 レイアウト） */
.aip-platform-card:nth-child(4) { grid-column: 1 / 2; grid-row: 2; }
.aip-platform-card:nth-child(5) { grid-column: 2 / 4; grid-row: 2; }

.aip-platform-card {
  background: rgba(220, 233, 244, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.aip-platform-card-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aip-platform-card-head .aip-platform-type {
  align-self: flex-start;
}

.aip-platform-name {
  font-family: var(--font-en);
  font-size: var(--fz-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: var(--ls-sm);
  margin: 0;
}

.aip-platform-tagline {
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-md);
  color: var(--color-primary);
  margin: 0;
}

.aip-platform-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--color-gray-border);
  padding-top: var(--space-sm);
}

.aip-platform-features li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  line-height: var(--lh-md);
  color: var(--color-primary);
}

.aip-platform-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10 L8 14 L16 6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10 L8 14 L16 6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  mask-size: contain;
  -webkit-mask-size: contain;
}

.aip-platform-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-gray-border);
}

.aip-platform-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aip-platform-meta dt {
  font-family: var(--font-jp);
  font-size: var(--fz-xs);
  color: var(--color-gray);
  letter-spacing: var(--ls-sm);
}

.aip-platform-meta dd {
  margin: 0;
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

.aip-platform-link {
  align-self: flex-start;
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  letter-spacing: var(--ls-sm);
  text-decoration: none;
  margin-top: auto;
}

.aip-platform-link span {
  margin-left: 6px;
  font-family: var(--font-en);
  font-size: 1.2em;
}

.aip-platform-link:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* 対象サービス詳細ブロック内のCTAボタン（Taskhub「詳しく見る」等） */
.aip-detail-cta {
  margin-top: var(--space-md);
}

/* ==========================================================================
   Section 3: 対象サービス（5プラットフォーム統合セクション）
   各ブロックは --reverse で左右レイアウトを交互に切替
   ========================================================================== */
.aip-services {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

/* 各サービスブロック（1つのプラットフォーム） */
.aip-service-block {
  padding: var(--space-2xl) 0;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--color-gray-border);
}

.aip-service-block:first-of-type {
  border-top: none;
  padding-top: var(--space-lg);
}

.aip-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-xl);
  align-items: start;
}

/* 左右反転: 情報カードを右、メニューを左に */
.aip-service-block--reverse .aip-detail-body {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.aip-service-block--reverse .aip-detail-info {
  order: 2;
}

.aip-service-block--reverse .aip-detail-menus {
  order: 1;
}

.aip-detail-info {
  background: rgba(220, 233, 244, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.aip-detail-info .aip-platform-type {
  align-self: flex-start;
}

.aip-detail-name {
  font-family: var(--font-en);
  font-size: var(--fz-xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: var(--ls-sm);
  margin: 0;
  white-space: nowrap;
}

.aip-detail-desc {
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  line-height: var(--lh-lg);
  color: var(--color-primary);
  margin: 0;
}

/* プラットフォームロゴ */
.aip-detail-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  margin-top: var(--space-xs);
  overflow: hidden;
}

.aip-detail-visual img {
  max-width: 80%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.aip-detail-visual .brand-text {
  font-size: 30px;
}

.aip-detail-target {
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-gray-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aip-detail-target dt {
  font-family: var(--font-jp);
  font-size: var(--fz-xs);
  color: var(--color-gray);
  letter-spacing: var(--ls-sm);
}

.aip-detail-target dd {
  margin: 0;
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

.aip-detail-menus {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.aip-menu-group-title {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: var(--ls-sm);
  margin: 0 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid rgba(0, 113, 185, 0.25);
}

.aip-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.aip-menu-list > li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-md);
}

.aip-menu-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f5a55c 0%, #e97e2b 50%, #c9621a 100%);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.aip-menu-check svg {
  width: 18px;
  height: 18px;
  display: block;
}

.aip-menu-list h5 {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: var(--ls-sm);
  margin: 0 0 4px;
}

.aip-menu-list p {
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  line-height: var(--lh-md);
  color: var(--color-primary);
  margin: 0;
}

/* ==========================================================================
   Section 8: サービス比較表
   ========================================================================== */
.aip-comparison {
  padding: var(--space-3xl) 0;
  background: #dce9f42e;
}

.aip-compare-table {
  width: 100%;
  min-width: 800px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.aip-compare-table th,
.aip-compare-table td {
  padding: var(--space-md);
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  line-height: var(--lh-md);
  text-align: left;
  border-bottom: 1px solid var(--color-gray-border);
  vertical-align: top;
}

.aip-compare-table thead th {
  background: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 100%);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-sm);
  border-bottom: none;
}

.aip-compare-table tbody th {
  font-family: var(--font-en);
  font-size: var(--fz-md);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: var(--ls-sm);
  background: rgba(220, 233, 244, 0.35);
}

.aip-compare-table tbody tr:last-child th,
.aip-compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Section 9: 導入支援の流れ
   ========================================================================== */
.aip-flow {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.aip-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  position: relative;
}

.aip-flow-step {
  background: rgba(220, 233, 244, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  position: relative;
}

.aip-flow-num {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 3vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  background-image: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 75%,
    rgba(164, 228, 255, 1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-xs);
}

.aip-flow-title {
  font-family: var(--font-jp);
  font-size: var(--fz-lg);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: var(--ls-sm);
  margin: 0;
}

.aip-flow-lead {
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  margin: 0;
}

.aip-flow-desc {
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  line-height: var(--lh-md);
  color: var(--color-primary);
  margin: 0;
}

/* ==========================================================================
   ============================================================
   Taskhub 導入支援ページ (taskhub.php) 専用スタイル
   ============================================================
   ========================================================================== */

/* 共通: セクションイントロ */
.th-section-intro {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.th-section-lead {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  line-height: var(--lh-lg);
  color: var(--color-primary);
  margin: 0;
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.th-hero {
  position: relative;
  padding: var(--space-2xl) 0;
  background: var(--color-white);
  overflow: hidden;
  color: var(--color-white);
}

/* 左半分に元のブルーグラデーションを敷く */
.th-hero::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: linear-gradient(135deg,
    rgba(0, 113, 185, 1) 0%,
    rgba(98, 169, 246, 1) 75%,
    rgba(164, 228, 255, 1) 100%);
  z-index: 0;
}

.th-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.th-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Taskhub 公式パートナーのバッジ（title の上に少し目立つように） */
.th-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  letter-spacing: var(--ls-md);
  margin: 0 0 -8px 0;
}

.th-hero-title {
  font-family: var(--font-jp);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-sm);
  letter-spacing: var(--ls-sm);
  color: var(--color-white);
  margin: 0;
  white-space: nowrap;
}

.th-hero-lead {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  line-height: var(--lh-lg);
  color: var(--color-white);
  margin: 0;
}

.th-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

/* Hero 右カラム: Taskhub 画面画像 */
.th-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}

.th-hero-visual-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Section 2: こんなお悩み（6件）
   ========================================================================== */
.th-concerns {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.th-concerns-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.th-concerns-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(220, 233, 244, 0.18);
  border-radius: var(--radius-md);
}

.th-concerns-item p {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-md);
  color: var(--color-primary);
}

.th-concerns-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-warm);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: var(--fz-md);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ==========================================================================
   Section 3: まず使えるアプリ3選
   ========================================================================== */
.th-apps {
  padding: var(--space-3xl) 0;
  background: #dce9f42e;
}

.th-apps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.th-app-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.th-app-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-app-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.th-app-title {
  font-family: var(--font-jp);
  font-size: var(--fz-lg);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: var(--ls-sm);
  margin: 0;
}

.th-app-desc {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: var(--lh-md);
  color: var(--color-primary);
  margin: 0;
}

/* ==========================================================================
   Section 4: 主な機能（機能01〜06 統合）
   ========================================================================== */
.th-features {
  padding: var(--space-3xl) 0 0;
  background: var(--color-white);
}

.th-feature-group {
  padding: var(--space-2xl) 0;
  background: var(--color-white);
}

.th-feature-group + .th-feature-group {
  margin-top: var(--space-lg);
}

.th-feature-group--alt {
  background: #dce9f42e;
  padding: var(--space-2xl) 0;
  margin-left: calc(var(--container-padding) * -1);
  margin-right: calc(var(--container-padding) * -1);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  border-radius: var(--radius-lg);
}

.th-feature-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.th-feature-group-title {
  font-family: var(--font-jp);
  font-size: var(--fz-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: var(--ls-sm);
  line-height: var(--lh-sm);
  margin: 0;
}

.th-feature-head .th-section-lead {
  margin-top: var(--space-sm);
}

.th-feature-num {
  font-family: var(--font-en);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-lg);
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0 0 var(--space-xs);
}

/* Section 4: マルチAI Chat — 2カラム */
.th-feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.th-feature-visual {
  aspect-ratio: 16 / 10;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.th-feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.th-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.th-feature-list > li {
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-accent);
}

.th-feature-list h4,
.th-feature-list h5 {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: var(--ls-sm);
  margin: 0 0 4px;
}

.th-feature-list p {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: var(--lh-md);
  color: var(--color-primary);
  margin: 0;
}

/* Section 5: 2カラム pair */
.th-feature-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.th-feature-block {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.th-feature-group--alt .th-feature-block {
  background: var(--color-white);
}

.th-feature-group:not(.th-feature-group--alt) .th-feature-block {
  background: rgba(220, 233, 244, 0.18);
}

.th-feature-block-tag {
  font-family: var(--font-en);
  font-size: var(--fz-xs);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: var(--ls-lg);
  text-transform: uppercase;
  margin: 0;
}

.th-feature-block-title {
  font-family: var(--font-jp);
  font-size: var(--fz-lg);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: var(--ls-sm);
  line-height: var(--lh-sm);
  margin: 0;
}

/* Section 6: 3カラム trio */
.th-feature-trio {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

/* コンパクト版のリスト（マーカー・チェックだけの短い項目） */
.th-feature-list--compact {
  gap: var(--space-xs);
}

.th-feature-list--compact > li {
  padding-left: 20px;
  border-left: none;
  position: relative;
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: var(--lh-md);
  color: var(--color-primary);
}

.th-feature-list--compact > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ==========================================================================
   Section 7: サポート体制
   ========================================================================== */
.th-support {
  padding: var(--space-3xl) 0;
  background: #dce9f42e;
}

.th-support-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.th-support-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.th-support-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(220, 233, 244, 0.5);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-bottom: var(--space-xs);
}

.th-support-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.th-support-title {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: var(--ls-sm);
  line-height: var(--lh-sm);
  margin: 0;
}

.th-support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.th-support-list li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: var(--lh-md);
  color: var(--color-primary);
}

.th-support-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ==========================================================================
   Section 8: 料金プラン
   ========================================================================== */
.th-pricing {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.th-pricing-grid {
  list-style: none;
  margin: 0;
  padding: var(--space-lg) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

.th-pricing-card {
  position: relative;
  background: rgba(220, 233, 244, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--transition-speed) var(--easing);
}

.th-pricing-card--featured {
  background: linear-gradient(160deg,
    rgba(0, 113, 185, 0.06) 0%,
    rgba(164, 228, 255, 0.15) 100%),
    var(--color-white);
  border: 3px solid var(--color-accent-warm);
  box-shadow: 0 20px 40px rgba(233, 126, 43, 0.18), var(--shadow-md);
  transform: translateY(-12px) scale(1.04);
  z-index: 1;
}

.th-pricing-card--featured .th-pricing-name {
  background: linear-gradient(135deg, #f5a55c 0%, #e97e2b 50%, #c9621a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.th-pricing-card--featured .th-pricing-price {
  color: var(--color-accent-warm);
}

.th-pricing-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: linear-gradient(135deg, #f5a55c 0%, #e97e2b 50%, #c9621a 100%);
  color: var(--color-white);
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  letter-spacing: var(--ls-sm);
  margin: 0;
  box-shadow: 0 6px 16px rgba(233, 126, 43, 0.35);
  white-space: nowrap;
}

.th-pricing-badge::before {
  content: "★ ";
  color: #fff8ea;
}

.th-pricing-tag {
  font-family: var(--font-jp);
  font-size: var(--fz-xs);
  color: var(--color-gray);
  letter-spacing: var(--ls-sm);
  margin: 0;
}

.th-pricing-name {
  font-family: var(--font-en);
  font-size: var(--fz-xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: var(--ls-sm);
  margin: 0;
}

.th-pricing-price {
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin: 0;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-gray-border);
}

.th-pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.th-pricing-features li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  line-height: var(--lh-md);
  color: var(--color-primary);
}

.th-pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10 L8 14 L16 6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10 L8 14 L16 6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  mask-size: contain;
  -webkit-mask-size: contain;
}

.th-pricing-note {
  margin: var(--space-md) 0 0;
  font-family: var(--font-jp);
  font-size: var(--fz-xs);
  color: var(--color-gray);
  text-align: center;
  letter-spacing: var(--ls-sm);
}

/* ==========================================================================
   Section 9: FAQ（アコーディオン仕様）
   ========================================================================== */
.th-faq {
  padding: var(--space-3xl) 0;
  background: #dce9f42e;
}

.th-faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.th-faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-border);
  overflow: hidden;
  transition: box-shadow var(--transition-speed) var(--easing);
}

.th-faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.th-faq-question {
  list-style: none;
  cursor: pointer;
  padding: var(--space-md) var(--space-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-jp);
  font-size: var(--fz-md);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: var(--ls-sm);
}

.th-faq-question::-webkit-details-marker,
.th-faq-question::marker {
  display: none;
  content: "";
}

.th-faq-question-text {
  line-height: var(--lh-md);
}

.th-faq-toggle {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.th-faq-toggle::before,
.th-faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform var(--transition-speed) var(--easing);
}

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

.th-faq-toggle::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.th-faq-item[open] .th-faq-toggle::after {
  transform: translateX(-50%) scaleY(0);
}

.th-faq-answer {
  padding: 0 var(--space-lg) var(--space-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
  border-top: 1px solid var(--color-gray-border);
  padding-top: var(--space-md);
}

.th-faq-answer p {
  margin: 0;
  font-family: var(--font-jp);
  font-size: var(--fz-sm);
  line-height: var(--lh-lg);
  color: var(--color-primary);
}

.th-faq-mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: var(--fz-md);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.th-faq-mark--a {
  background: var(--color-accent-warm);
}
