/* ===== ほかのページを、トップ（映像ヒーロー版）の色と質感に合わせる（2026-11-12） =====
   対象：service / about / simulator / works（body.page-case）。style.css は変えず、ここで読み替える
   - ページの頭：紙の色＋方眼（トップのヒーローと同じ）
   - 暗い欄（実績の「見えないところ」、料金の見積もりメモ）：紙・墨・エンジに
   - 写真の帯：紙や手書きが写る写真をやめ、コードで描く実演（.dm。motion-top.css）に */

/* ---------- ページの頭 ---------- */
body.page-case .cs-hero { position: relative; overflow: clip; background: #F1EFEA; border-bottom: 1px solid var(--line); }
body.page-case .cs-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 70% at 82% 40%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 72%),
    radial-gradient(30% 40% at 96% 0%, rgba(121, 50, 63, .08), rgba(121, 50, 63, 0) 70%); }
body.page-case .cs-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 23, 26, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 26, .075) 1px, transparent 1px),
    linear-gradient(rgba(21, 23, 26, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 26, .03) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  -webkit-mask-image: linear-gradient(100deg, transparent 34%, #000 100%); mask-image: linear-gradient(100deg, transparent 34%, #000 100%); }
body.page-case .cs-hero > * { position: relative; z-index: 1; }
body.page-case .cs-title { font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.18; letter-spacing: -.005em; }

/* ---------- 写真の帯 → 実演の帯 ---------- */
.dmband { position: relative; display: grid; place-items: center; height: clamp(220px, 27vw, 330px); margin: 0 0 clamp(32px, 4vw, 48px); border-radius: 14px; overflow: hidden;
  background: #F1EFEA; box-shadow: inset 0 0 0 1px var(--line); }
.dmband::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(21, 23, 26, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 26, .05) 1px, transparent 1px); background-size: 32px 32px; }
.dmband::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 80% at 50% 50%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); }
.dmband .dm { z-index: 1; width: min(100%, 460px); height: 100%; aspect-ratio: auto; margin: 0; background: none; box-shadow: none; border-radius: 0; }
.dmband .dm::before { display: none; }
.dmband--inline { height: clamp(200px, 24vw, 280px); margin: 28px 0 0; }
.dmband--hero { margin: clamp(28px, 4vw, 48px) 0 0; background: rgba(255, 255, 255, .5); }

/* ---------- 暗い欄 → 紙・墨・エンジ ---------- */
body.page-case :is(.cs-tech, .memo) { --dark-sub: var(--sub); --dark-line: var(--line); --dark-2: var(--surface); color: var(--ink); }
body.page-case .cs-tech { background: #F1EFEA; border-top: 1px solid var(--line); }
body.page-case .cs-tech .sec-num { color: var(--enji); }
body.page-case .memo { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 50px -40px rgba(21, 23, 26, .5); }
body.page-case .memo__title .mono { color: var(--enji); }
body.page-case .memo__rows li.is-add span { color: var(--enji); }
body.page-case .memo__incl li span { background: #E9F1E6; color: #2F6B3F; }
body.page-case .memo__total { border-top-color: var(--ink); }
body.page-case .memo__other div { background: var(--bg); }
body.page-case .memo .btn--line { color: var(--ink); border-color: var(--line-strong); }

/* ---------- 角とカード：トップの入口と同じ、やわらかい角に ---------- */
body.page-case :is(.plan, .witem) { border-radius: 14px; }
body.page-case .witem { overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
body.page-case a.witem:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -36px rgba(21, 23, 26, .5); }
body.page-case .witem__img { background: #ECE9E2; }
body.page-case .cs-next { background: #F1EFEA; border-top: 1px solid var(--line); }

/* ---------- 維持プラン（.keep・2026-11-13）：月々のサポートの上に、横長の帯で置く ---------- */
.keep { display: grid; grid-template-columns: 1.1fr auto 1.2fr; gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: clamp(36px, 5vw, 56px); padding: clamp(24px, 3vw, 36px); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.keep__tag { font-size: .75rem; color: var(--enji); letter-spacing: .12em; }
.keep__name { margin-top: 4px; font-size: 1.375rem; font-weight: 700; }
.keep__fit { margin-top: 6px; font-size: .875rem; color: var(--sub); }
.keep__price { padding: 0 clamp(20px, 4vw, 56px); border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; }
.keep__price .plan__price { margin-top: 10px; padding: 0; border: 0; font-size: 2rem; }
.keep__free { display: inline-block; padding: 3px 14px; border-radius: 99px; background: var(--enji); color: #fff; font-size: .8125rem; font-weight: 700; }
.keep .plan__sub { max-width: 16em; margin-inline: auto; }
.keep .plan__list { margin-top: 0; font-size: .875rem; }
.keep .plan__list .tbd { margin-left: .4em; }
.plans__label { margin-bottom: 24px; font-size: .9375rem; color: var(--sub); }
.plans__label b { display: block; margin-bottom: 2px; font-size: 1.25rem; color: var(--ink); }
@media (max-width: 900px) {
  .keep { grid-template-columns: 1fr; }
  .keep__price { padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}

/* ---------- プランの切り替えの決まり（.rules・2026-11-13） ---------- */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.rules > div { padding: 22px 24px 24px 0; }
.rules > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.rules dt { margin-bottom: 8px; font-size: .9375rem; font-weight: 700; color: var(--enji); }
.rules dd { font-size: .875rem; line-height: 1.9; color: var(--sub); }
.rules dd b { color: var(--ink); }
@media (max-width: 900px) { .rules { grid-template-columns: 1fr; } .rules > div, .rules > div + div { padding: 18px 0; border-left: 0; } .rules > div + div { border-top: 1px solid var(--line); } }

/* ---------- 仕上げ（2026-11-13）：フッターのリンクを全ページに／つくる人に「始めた理由」 ---------- */
.foot__more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .875rem; }
.foot__more a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.about__why { margin-top: 24px; padding: 20px 24px; border-left: 3px solid var(--enji); background: var(--surface); border-radius: 0 12px 12px 0; font-size: 1rem; line-height: 2; }
.about__why a { display: inline-block; margin-left: .6em; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--enji); color: var(--enji-deep); }
.about__why a i { margin-left: .4em; font-style: normal; }

/* ---------- 税抜き表記（2026-11-13）：大きい字は税抜き、下に小さく税込み ---------- */
.plan__tax { display: block; margin-top: 2px; font-family: var(--font-jp); font-size: .8125rem; font-weight: 500; color: var(--sub); letter-spacing: .03em; }
.price-rows dd .tax { display: block; margin-top: 2px; font-size: .75rem; font-weight: 400; color: var(--sub); }
.memo__tax { margin-top: 4px; text-align: right; font-size: .8125rem; color: var(--sub); }

/* ---------- つくり方と代表の作り込み（2026-11-13）：大切にしていること／話の聞き方／あらましのカード ---------- */
.vow { background: #F1EFEA; }
.vow__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.vow__head { position: sticky; top: calc(var(--head-h) + 32px); margin-bottom: 0; }
.vow__list { border-top: 1px solid var(--ink); }
.vow__list li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line-strong); }
.vow__list .mono { padding-top: .5em; font-size: .875rem; color: var(--enji); }
.vow__list h3 { font-size: clamp(1.1875rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.6; }
.vow__list p { margin-top: 8px; max-width: 34em; font-size: .9375rem; color: var(--sub); line-height: 1.95; }
.listen__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: l; }
.listen__steps li { position: relative; padding: 28px 26px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.listen__steps li + li::before { content: "→"; position: absolute; left: -17px; top: 50%; z-index: 1; display: grid; place-items: center; width: 18px; height: 18px; transform: translateY(-50%); color: var(--enji); font-size: .875rem; background: var(--bg); border-radius: 50%; }
.listen__steps .mono { font-size: .75rem; color: var(--enji); letter-spacing: .12em; }
.listen__steps h3 { margin-top: 10px; font-size: 1.125rem; font-weight: 700; line-height: 1.6; }
.listen__steps p { margin-top: 10px; font-size: .9375rem; color: var(--sub); line-height: 1.95; }
body.page-case .about__grid--prof { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); max-width: none; align-items: start; }
.prof { position: relative; padding: 28px 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 40px 70px -50px rgba(21, 23, 26, .5); overflow: hidden; }
.prof::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(21, 23, 26, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 26, .04) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 55%); mask-image: linear-gradient(200deg, #000, transparent 55%); }
.prof > * { position: relative; }
.prof__top { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); font-size: .75rem; color: var(--enji); letter-spacing: .12em; }
.prof__mark { width: 40px; height: 31px; fill: var(--enji); }
.prof__rows { font-size: .9375rem; }
.prof__rows div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.8; }
.prof__rows dt { color: var(--sub); font-size: .8125rem; padding-top: .1em; }
.prof__go { display: flex; justify-content: space-between; margin-top: 18px; font-size: .875rem; font-weight: 700; text-decoration: none; }
.prof__go i { font-style: normal; color: var(--enji); transition: transform .3s var(--ease); }
.prof__go:hover i { transform: translateX(4px); }
@media (max-width: 900px) {
  .vow__grid, .listen__steps, body.page-case .about__grid--prof { grid-template-columns: 1fr; }
  .vow__head { position: static; }
  .listen__steps li + li::before { content: "↓"; left: 50%; top: -17px; transform: translateX(-50%); }
}

/* ---------- 細かい決まりの一覧（.fine・2026-11-13）：長い注意書きを、短い行に分けた ---------- */
.fine { display: grid; gap: 6px; margin-top: 24px; font-size: .875rem; color: var(--sub); line-height: 1.85; }
.fine li { position: relative; padding-left: 1.2em; }
.fine li::before { content: ""; position: absolute; left: .2em; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.fine b { color: var(--ink); }

/* 小さいスマホ（360幅より下）で、実績の数字の欄が横にはみ出さないように（2026-11-13） */
.nums > * { min-width: 0; }
@media (max-width: 420px) {
  .num { padding-right: 12px; }
  .num + .num { padding-left: 12px; }
  .num__val { flex-wrap: wrap; gap: 4px 6px; }
  .num__val b { font-size: 1.75rem; }
  .num__val s { font-size: 1rem; }
  .num__label { overflow-wrap: anywhere; }
}
