/* =========================================================
   plan.css — プラン専用ページ（plan-parts-design / plan-3d-printing）
   既存 style.css / sub.css の配色・余白トーンに合わせた追加分のみ定義。
   基調色：黒 #0a0a0a ／ アクセント：黄 #FDD000 ／ グレー各種
   既存クラス（.page-hero / .section-* / .flow-detail-* / .related-* /
   .cta-banner）はそのまま流用し、ここでは重複定義しない。
   ========================================================= */

/* ---------- リード文：コンテナ幅いっぱいまで使う（プランページ限定） ----------
   共通の .lead / .section-lead は max-width が狭く（720〜960px）、
   1280px コンテナ内で文末だけ折り返す不自然な改行になる。
   プランページ（body.plan-page）に限り、コンテナ幅いっぱいまで広げて
   画面幅に合わせた自然な折返しにする。他ページの共通定義には影響しない。 */
.plan-page .page-hero .lead,
.plan-page .section-lead {
  max-width: none;
}

/* ---------- Hero：サブキー（見出し直下の対象者表記） ----------
   既存サブページの .lead トーンに合わせ、控えめなグレー文字。 */
.page-hero .plan-hero-key {
  font-size: 15px;
  font-weight: 600;
  color: #555;
  margin: -18px 0 20px;
  letter-spacing: 0.01em;
}

/* ---------- Hero：英字大見出し（実プラン名の英語表記に対応） ----------
   ヒーロー＝最上位見出し。他ページ（pricing / flow / methods 等）と完全同一サイズ
   （共通 sub.css の clamp(56px, 10vw, 128px)）に揃え、全ページで統一感を持たせる。
   セクション見出し .section-title .en は下で縮小し、階層の逆転を防ぐ。 */
.plan-page .page-hero h1 .en {
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

/* ---------- セクション見出し（ABOUT / FLOW / PRICE）----------
   128px のヒーローに対し明確に従属させるため、共通の 96px 上限より一段小さく。 */
.plan-page .section-title .en {
  font-size: clamp(38px, 6vw, 72px);
}

/* ---------- Hero：ページ内目次（黒ソリッドボタン） ----------
   ページ内リンクだと明確に伝わるよう、黒背景＋白文字のソリッドボタンに。
   角丸なし（直角）。末尾の↓でページ内スクロール（アンカー）を示す。 */
.plan-hero-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #ececec;
}
.plan-hero-nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #aaa;
  margin-right: 4px;
}
.plan-hero-navlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.plan-hero-navlink .navlink-index {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.plan-hero-navlink .navlink-arrow {
  font-size: 12px;
  color: #ccc;
  transition: transform 0.2s ease, color 0.2s ease;
}
.plan-hero-navlink:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}
.plan-hero-navlink:hover .navlink-arrow {
  color: #fff;
  transform: translateY(2px);
}

/* ---------- 共通セクション枠 ---------- */
.plan-section {
  padding: 70px 0;
  scroll-margin-top: 90px;   /* 固定ヘッダー分のアンカーオフセット */
}
.plan-section-alt {
  background: #fafafa;
}

/* ---------- About：このプランについて（統一カード） ----------
   3枚（おすすめ／できる／できない）を「完全に同じ枠・角丸・余白・等高」で
   並べる。BtoB向けに装飾は最小限：色分けは左上の小ラベル文字のみで表現し、
   丸背景アイコンや過剰なボーダー・黄色リストマーカーは使わない。
   Plan A=3カラム / Plan B=2カラム（.plan-about-grid-2）。 */
.plan-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;          /* 全カード等高 */
  margin-top: 40px;
}
.plan-about-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
}

/* 統一カード本体：3枚すべて同一（角丸なしのシャープな矩形） */
.plan-about-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-top: 3px solid #d8d8d8;   /* 上部アクセントラインで種別を識別 */
  padding: 28px 30px 30px;
}

/* カード見出し（小ラベル＋タイトル） */
.plan-about-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.plan-about-card-mark {
  flex: none;
  min-width: 38px;
  padding: 4px 0;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #888;
  background: #f4f4f4;           /* 角丸なしの矩形バッジ */
}
.plan-about-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #0a0a0a;
}

/* 種別ごとの識別：上部ラインとラベルのトーン（最小限のアクセント） */
.plan-about-card--suited { border-top-color: #FDD000; }
.plan-about-card--suited .plan-about-card-mark {
  color: #0a0a0a;
  background: #FDD000;           /* 黄はおすすめのみ */
}
.plan-about-card--ok { border-top-color: #0a0a0a; }
.plan-about-card--ok .plan-about-card-mark {
  color: #fff;
  background: #0a0a0a;           /* できる=黒 */
}
.plan-about-card--ng { border-top-color: #cfcfcf; }
.plan-about-card--ng .plan-about-card-mark {
  color: #999;
  background: #f0f0f0;           /* できない=グレー（赤は使わない） */
}

/* リスト（3枚共通・マーカーは細ダッシュで統一） */
.plan-about-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}
.plan-about-card-list li {
  position: relative;
  padding: 0 0 0 20px;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #333;
}
.plan-about-card-list li:last-child { margin-bottom: 0; }
.plan-about-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: #bbb;
}
.plan-about-card-list strong {
  font-weight: 700;
  color: #0a0a0a;
}

/* 補足文（できない／プラン誘導） */
.plan-about-card-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid #eee;
  font-size: 13px;
  line-height: 1.8;
  color: #777;
}
.plan-about-card-note a {
  color: #0a0a0a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- About直後のインラインCTA ----------
   Aboutセクションの末尾（Flowの手前）に置く帯。
   料金セクションの pricing-free-banner と色を統一：黄背景＋黒ボタン。角丸なし。 */
.plan-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding: 28px 34px;
  background: #FDD000;
}
.plan-inline-cta-text {
  flex: 1 1 340px;
  min-width: 0;
}
.plan-inline-cta-lead {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: #0a0a0a;
}
.plan-inline-cta-sub {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #3a3320;
}
.plan-inline-cta-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #0a0a0a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid #0a0a0a;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.plan-inline-cta-btn .arrow {
  transition: transform 0.2s ease;
}
.plan-inline-cta-btn:hover {
  background: #fff;
  color: #0a0a0a;
}
.plan-inline-cta-btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- 料金カード：右側の余白解消（プランページ限定） ----------
   pricing.html では右カラムに「おすすめ＋注記」が入るため2カラムが成立するが、
   プランページでは右に注記しか無く大きな余白が出る。プランページでは2カラムを
   解除し、価格＋内訳を上、注記を全幅の薄いバーとして下に敷く縦構成にする。 */
.plan-page .pricing-card-cols {
  display: block;
}
.plan-page .pricing-card-body-sub {
  margin-top: 22px;
}
.plan-page .pricing-card-body-sub .pricing-card-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: #555;
}
/* 注記ボックスの角丸を廃止（プランページは全て直角で統一） */
.plan-page .pricing-card-note { border-radius: 0; }
/* 価格ブロックと内訳を横並びにして上段を充実させる（余白を活かす） */
.plan-page .pricing-card-body-main {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.plan-page .pricing-card-body-main .pricing-card-price { margin-bottom: 0; }
.plan-page .pricing-card-body-main .pricing-card-breakdown { margin: 0; }

/* ---------- オプション：プランページ用の枠線補正 ----------
   既存 pricing.html ではグレー背景に白カードが浮くが、プランページは
   淡い背景内に置くため境界が消える。枠線＋余白で明確にカード化する。 */
.plan-section .pricing-option-item {
  border: 1px solid #e8e8e8;
  padding: 28px 30px;
}

/* flow-detail の見出しはこのページでは h3 を使うため、h2 相当に補正 */
.plan-section .flow-detail-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 14px;
  line-height: 1.35;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  .plan-section { padding: 48px 0; }
  .page-hero .plan-hero-key { margin: -10px 0 18px; font-size: 14px; }
  .plan-hero-nav { gap: 10px; }
  .plan-hero-nav-label { width: 100%; margin-bottom: 2px; }
  .plan-hero-navlink { font-size: 13px; padding: 8px 14px; }
  .plan-section .flow-detail-content h3 { font-size: 21px; }
  .plan-about-grid,
  .plan-about-grid-2 { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .plan-about-card { padding: 24px 22px 26px; }
  .plan-inline-cta { padding: 24px 22px; margin-top: 32px; }
  .plan-inline-cta-lead { font-size: 15.5px; }
}

/* タブレット幅では About を1カラムに */
@media (max-width: 900px) {
  .plan-about-grid,
  .plan-about-grid-2 { grid-template-columns: 1fr; max-width: 640px; }
  /* 料金カードの価格＋内訳の横並びも縦積みに戻す */
  .plan-page .pricing-card-body-main { grid-template-columns: 1fr; gap: 24px; }
  /* インラインCTAは縦積みに。text の flex 伸長を止め、余分な余白を排除 */
  .plan-inline-cta { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 18px; }
  .plan-inline-cta-text { flex: none; width: 100%; }
  .plan-inline-cta-btn { width: 100%; justify-content: center; padding: 14px 20px; }
}
