/* GAMADAS 下層ページの共通部品（site.css の後に読む） */

/* ページの頭 */
.page-hero { padding-block: 40px 88px; }
.page-hero.gridded::before { mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-xs); color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: #b5b5b5; }
.page-hero .en-label { margin-top: 56px; font-family: var(--font-en); font-size: var(--fs-s); font-weight: 500; color: var(--muted); }
.page-hero h1 { margin-top: 8px; font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem); font-weight: 500; line-height: 1.4; }
.page-hero h1 span { white-space: nowrap; }
.page-hero .lead { margin-top: 20px; max-width: 40em; color: var(--ink-2); }
.page-hero .hero-cta { margin-top: 32px; }
.page-hero.split .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: end; }
.page-hero.split .crumbs { grid-column: 1 / -1; }
.page-hero.split .ph-text .en-label { margin-top: 0; }
.ph-visual { align-self: stretch; min-height: 380px; }
.facts { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dd { font-family: var(--font-en); font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; font-feature-settings: "palt"; }
.facts dd small { font-family: var(--font-ja); font-size: var(--fs-s); font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.facts dt { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }

/* 節の頭（説明つき） */
.sec-head .sec-lead { order: 3; flex: 0 0 100%; max-width: none; padding-right: max(0px, calc(100% - 44em)); color: var(--ink-2); }
/* 語の途中で折らない */
.nw { white-space: nowrap; }

/* 白い面の並び（悩み・条件など） */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tiles.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { padding: 28px 32px; background: var(--white); border-radius: var(--radius); }
.on-white .tile { background: var(--paper); }
.tile h3 { font-size: var(--fs-l); font-weight: 600; }
.tile p, .tile li { font-size: var(--fs-s); color: var(--ink-2); }
.tile h3 + p, .tile h3 + ul { margin-top: 10px; }
.worry .tile { display: flex; gap: 14px; align-items: baseline; font-weight: 500; }
.worry .tile::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.6em; background: var(--ink); border-radius: 50%; transform: translateY(-2px); }

/* 特徴（番号つきの3列） */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.feature .no { font-family: var(--font-en); font-size: 2.5rem; font-weight: 500; line-height: 1; color: #c9c9c7; }
.feature h3 { margin-top: 20px; font-size: var(--fs-l); font-weight: 600; line-height: 1.5; }
.feature p { margin-top: 12px; font-size: var(--fs-s); color: var(--ink-2); }

/* プランの比較表 */
.plan-table thead th { vertical-align: bottom; }
.plan-table thead th .pick { display: inline-block; margin-bottom: 6px; padding: 1px 8px; background: var(--white); font-size: var(--fs-xs); font-weight: 600; border-radius: 2px; }
.plan-table thead th b { display: block; font-size: var(--fs-l); font-weight: 600; }
.plan-table tbody th { font-weight: 500; color: var(--ink-2); }
.plan-table td { font-size: var(--fs-s); }
.plan-table tr.price td strong { font-family: var(--font-en); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
.plan-table tr.price td strong small { font-family: var(--font-ja); font-size: var(--fs-s); font-weight: 600; }
.plan-table thead th.rec, .plan-table td.rec { background: #e2e2e0; }
.plan-cards { display: none; }
.extras { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.extras .tile { background: var(--paper); }
.extras ul { display: grid; gap: 6px; }
.extras li { padding-left: 1em; text-indent: -1em; }
.extras li::before { content: "・"; }
.opt-table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.opt-table th, .opt-table td { padding: 10px 0; text-align: left; font-weight: 400; }
.opt-table tr + tr th, .opt-table tr + tr td { border-top: 1px solid rgba(17, 17, 17, 0.08); }
.opt-table td { text-align: right; font-weight: 600; white-space: nowrap; }
.note { margin-top: 20px; font-size: var(--fs-xs); color: var(--muted); }

/* 公開後の運用（月額） */
.support { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.support .tile { display: flex; flex-direction: column; }
.support .price { margin-top: 8px; font-family: var(--font-en); font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.support .price small { font-family: var(--font-ja); font-size: var(--fs-s); font-weight: 600; }
.support ul { margin-top: 16px; display: grid; gap: 6px; }
.support li { padding-left: 1em; text-indent: -1em; }
.support li::before { content: "・"; }

/* 事例（横長1件） */
.case-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; text-decoration: none; }
.case-row .case-img { aspect-ratio: 16 / 10; }
.case-row h3 { font-size: var(--fs-l); font-weight: 600; }
.case-row .case-body { padding-top: 0; }
.names { margin-top: 32px; font-size: var(--fs-s); color: var(--ink-2); }
.related { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; background: var(--paper); border-radius: var(--radius); font-size: var(--fs-s); font-weight: 600; text-decoration: none; transition: background-color 0.2s; }
.related a::after { content: "→"; font-family: var(--font-en); }
.related a:hover { background: var(--paper-2); }

/* よくある質問（開閉しない） */
.faq { display: grid; gap: 8px; max-width: 920px; }
.faq div { padding: 28px 32px; background: var(--paper); border-radius: var(--radius); }
.faq dt { display: flex; gap: 14px; font-weight: 600; }
.faq dd { display: flex; gap: 14px; margin-top: 12px; font-size: var(--fs-s); color: var(--ink-2); }
.faq dt::before, .faq dd::before { flex: none; font-family: var(--font-en); font-weight: 700; }
.faq dt::before { content: "Q"; }
.faq dd::before { content: "A"; color: var(--muted); }

/* 下層の節は少し詰める */
.page .section { padding-block: 104px; }
.page .section:not(.textured) + .section:not(.textured):not(.cta) { padding-top: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flow-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .flow-4 { grid-template-columns: 1fr 1fr; }
  .page-hero.split .container { grid-template-columns: 1fr; }
  .ph-visual { min-height: 0; aspect-ratio: 4 / 3; }
  .features { grid-template-columns: 1fr; gap: 40px; }
  .support, .tiles.cols-3 { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 860px) {
  .plan-table-wrap { display: none; }
  .plan-cards { display: grid; gap: 8px; }
  .plan-card { padding: 24px 22px; background: var(--paper); border-radius: var(--radius); }
  .plan-card.rec { background: #e2e2e0; }
  .plan-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--fs-l); font-weight: 600; }
  .plan-card h3 strong { font-family: var(--font-en); font-size: 1.5rem; font-weight: 700; }
  .plan-card h3 strong small { font-family: var(--font-ja); font-size: var(--fs-xs); }
  .plan-card .pick { display: inline-block; margin-bottom: 8px; padding: 1px 8px; background: var(--white); font-size: var(--fs-xs); font-weight: 600; border-radius: 2px; }
  .plan-card dl { margin-top: 14px; display: grid; gap: 10px; font-size: var(--fs-s); }
  .plan-card dt { font-size: var(--fs-xs); color: var(--muted); }
  .extras { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .flow-4 { grid-template-columns: 1fr; }
  .page-hero { padding-block: 24px 56px; }
  .page-hero .en-label { margin-top: 36px; }
  .page-hero h1 { font-size: 1.3rem; }
  .facts { gap: 12px 28px; }
  .facts dd { font-size: 1.375rem; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .faq div { padding: 22px 20px; }
  .page .section { padding-block: 72px; }
}

/* ヘッダーの現在地 */
.gnav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* 実績の画像が流れる動きはトップだけ。下層では動かさない（2026-10-17 坂本さん） */
.page .case-img img, .page .case:hover .case-img img, .page .case:focus-visible .case-img img { object-position: 50% 0; transition: none; }

/* ページの頭のすぐ後の白い節は、上の余白を詰める */
.page .page-hero + .section:not(.textured) { padding-top: 16px; }
