/* ============================================================
   shin-nosuke.net — v9「実績」 2026-09-02
   一枚目は暗い現場写真×実績主語の旗、本文は紙白。
   色は4役: 地(紙白/現場の暗) / 文字(墨) / 差し色(青緑) / 注記(灰)。
   余白は8の階段(8/16/24/32/48/64/96/128)。書体は2種(Noto Sans JP・Inter)。
   グラデーション・絵文字・飾りの演出は使わない(写真の下端の可読性用の陰だけ例外)。
   ============================================================ */

:root {
  --paper: #f4f2ec;        /* 紙白(地) */
  --paper-2: #ebe8e0;      /* 紙白の一段濃い面(区切りは線でなく面で) */
  --ink: #161512;          /* 墨(見出し) */
  --text: #3d3a35;         /* 本文 */
  --note: #5f5d59;         /* 注記(これ以上薄くしない: 紙白上 5.75:1) */
  --accent: #08737c;       /* アバターの青緑。明るい地では読みやすく濃くする */
  --on-accent: #fff;
  --required: #b03418;     /* 必須・エラーの赤はブランド色と分ける */
  --dark: #0e0e0f;         /* 現場の暗(ヒーロー・足元) */
  --on-dark: #f2efe9;      /* 暗の上の文字 */
  --on-dark-2: rgba(242, 239, 233, .72);
  --accent-on-dark: #62cbd1;
  --shu: var(--accent);   /* ページ固有CSSとの互換 */
  --shu-dark: var(--accent-on-dark);
  --line: rgba(22, 21, 18, .14);
  --line-strong: rgba(22, 21, 18, .6);
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --num: "Inter", "Helvetica Neue", Arial, sans-serif;
  --field: #fff;           /* 入力欄の地 */
  --hover-tint: rgba(22, 21, 18, .05);
  --pad: clamp(24px, 5vw, 48px);
  --sec: clamp(64px, 10vw, 128px);
  --radius: 4px;
  color-scheme: light;
}

/* ---------- 暗テーマ ----------
   既定は端末の設定（読めない時は明るい方）。右上の切り替えボタンで選んだ方が勝つ（:root の data-theme）。
   同じ値を2か所に書くのは、端末が暗い時と、ボタンで暗くした時の両方で効かせるため。 */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141311;      /* 地(暗) */
    --paper-2: #1e1c1a;    /* 一段明るい面(区切りは線でなく面で) */
    --ink: #f0ede7;        /* 見出し(暗地 15.89:1) */
    --text: #d3cfc7;       /* 本文(暗地 11.95:1 / 面 10.94:1) */
    --note: #96928a;       /* 注記(暗地 5.99:1 / 面 5.48:1) */
    --accent: #62cbd1;
    --on-accent: #141311;
    --required: #d98a78;   /* 既存の必須表示を保つ */
    --line: rgba(240, 237, 231, .16);
    --line-strong: rgba(240, 237, 231, .52);   /* 枠線 4.97:1 */
    --field: #1b1917;
    --hover-tint: rgba(240, 237, 231, .07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141311;      /* 地(暗) */
  --paper-2: #1e1c1a;    /* 一段明るい面(区切りは線でなく面で) */
  --ink: #f0ede7;        /* 見出し(暗地 15.89:1) */
  --text: #d3cfc7;       /* 本文(暗地 11.95:1 / 面 10.94:1) */
  --note: #96928a;       /* 注記(暗地 5.99:1 / 面 5.48:1) */
  --accent: #62cbd1;
  --on-accent: #141311;
  --required: #d98a78;   /* 既存の必須表示を保つ */
  --line: rgba(240, 237, 231, .16);
  --line-strong: rgba(240, 237, 231, .52);   /* 枠線 4.97:1 */
  --field: #1b1917;
  --hover-tint: rgba(240, 237, 231, .07);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--paper); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, li, dd, dt { text-wrap: pretty; overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible, .hero :focus-visible, .close :focus-visible, .foot :focus-visible { outline-color: var(--on-dark); }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 760px; }

/* ---------- 表札(ヘッダー) ---------- */

.top {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: flex-start; gap: 16px;
  width: 100%; max-width: 1240px; margin-inline: auto;
  padding: 16px var(--pad);
}
.brand {
  font-weight: 700; letter-spacing: .08em; font-size: 16px;
  text-decoration: none; color: var(--ink); white-space: nowrap;
  padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center;
  margin-right: auto;
}
.brand small { font-family: var(--num); font-weight: 400; font-size: 13px; letter-spacing: .22em; color: var(--note); margin-left: 12px; text-transform: uppercase; }
.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
  font-size: 13px; font-weight: 400; letter-spacing: .08em; color: var(--text);
  text-decoration: none; border-radius: 999px; transition: color .2s ease, background-color .2s ease;
}
.top nav a:hover { color: var(--accent); }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.top nav a.cta {
  margin-left: 8px; padding: 8px 16px; background: var(--ink); color: var(--paper); font-weight: 700;
}
.top nav a.cta:hover { background: var(--accent); color: var(--on-accent); }

/* 暗い地の上(ヒーロー) */
.hero .top .brand { color: var(--on-dark); }
.hero .top .brand small { color: rgba(242, 239, 233, .72); }
.hero .top nav a { color: var(--on-dark-2); }
.hero .top nav a:hover { color: var(--on-dark); }
.hero .top nav a.cta { background: var(--on-dark); color: var(--dark); }
.hero .top nav a.cta:hover { background: #fff; color: var(--dark); }

@media (max-width: 720px) {
  /* スマホ: 1段目にロゴと切り替え、2段目にメニュー */
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0; padding-bottom: 8px; }
  .top .brand { grid-column: 1; grid-row: 1; margin-right: 0; }
  .top .theme-toggle { grid-column: 2; grid-row: 1; }
  .brand small { display: none; }
  .top nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: flex-start; margin-left: -12px; }
  .top nav a { font-size: 13px; padding: 8px 8px; }
  .top nav a.cta { margin-left: auto; }
}

/* ---------- ヒーロー(一枚目=現場写真×実績主語) ---------- */

.hero {
  position: relative; display: flex; flex-direction: column;
  min-height: min(100dvh, 920px); overflow: hidden;
  background: var(--dark); color: var(--on-dark);
}
.hero > img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  filter: brightness(.55) contrast(1.08) saturate(.85);
}
/* 写真の下端を沈めて文字を読ませる(装飾でなく可読性の陰) */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 14, 15, .18) 0%, rgba(14, 14, 15, .28) 45%, rgba(14, 14, 15, .94) 100%);
}
.hero .top, .hero .hbody { position: relative; z-index: 2; }
.hbody { margin-top: auto; padding: 48px var(--pad) 48px; width: 100%; max-width: 1240px; margin-inline: auto; }

.kick {
  font-family: var(--num), var(--sans); font-size: 13px; letter-spacing: .28em; font-weight: 600;
  color: var(--accent-on-dark); margin-bottom: 24px;
}
.kick::before { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 82px); line-height: 1.08; font-weight: 900; letter-spacing: -.01em; color: var(--on-dark);
  max-width: 14em;
}
.hero .sub {
  margin-top: 24px; max-width: 40em; font-size: 18px; font-weight: 700; line-height: 1.75;
  color: rgba(242, 239, 233, .84);
}
.hero .sub2 { margin-top: 16px; max-width: 40em; font-size: 16px; font-weight: 400; line-height: 1.8; color: rgba(242, 239, 233, .7); }

.hero .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stats > div { border-left: 1px solid rgba(242, 239, 233, .3); padding-left: 16px; }
.stats em { font-style: normal; font-family: var(--num); font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.02em; font-feature-settings: "tnum" 1; }
.stats .u { font-size: 13px; margin-left: 4px; font-weight: 400; }
.stats .k { display: block; font-size: 13px; color: rgba(242, 239, 233, .7); margin-top: 4px; letter-spacing: .04em; }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 0; }
@media (max-width: 720px) {
  .hbody { padding-bottom: 32px; }
  .hero .row { margin-top: 32px; gap: 24px; }
  .stats { gap: 16px; }
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 24px; border-radius: 999px; font-size: 16px; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn.main { background: var(--ink); color: var(--paper); }
.btn.main:hover { background: var(--accent); color: var(--on-accent); }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--ink); background: var(--hover-tint); }
.btn.arrow::after { content: "→"; font-family: var(--num); }
.hero .btn.main { background: var(--on-dark); color: var(--dark); }
.hero .btn.main:hover { background: #fff; color: var(--dark); }
.hero .btn.ghost { border-color: rgba(242, 239, 233, .6); color: var(--on-dark); }
.hero .btn.ghost:hover { border-color: var(--on-dark); background: rgba(242, 239, 233, .1); }

/* ---------- 章(本文の区画) ---------- */

.sec { padding-block: var(--sec); }
.sec.tint { background: var(--paper-2); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2, .h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.35; color: var(--ink); letter-spacing: 0; }
.sec-head h2 .en, .h2 .en { display: block; font-family: var(--num); font-size: 13px; letter-spacing: .3em; color: var(--accent); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; }
.sec-head p { font-size: 13px; color: var(--note); font-family: var(--num), var(--sans); letter-spacing: .04em; }
.lead { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.35; color: var(--ink); letter-spacing: 0; }
.lead b { color: var(--accent); font-weight: 900; }
.body { margin-top: 24px; max-width: 40em; font-size: 16px; line-height: 2; color: var(--text); }
.body + .body { margin-top: 16px; }
.note { font-size: 13px; line-height: 1.8; color: var(--note); }
.acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 32px; }

/* ---------- 立ち上げた現場(写真の格子) ---------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid figure { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #1a1a1a; border-radius: var(--radius); }
.grid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .4s ease; }
.grid figure:hover img { transform: scale(1.03); }
.grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 12px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 11, .6) 45%, rgba(10, 10, 11, .96) 100%);
}
.grid figcaption span { font-family: var(--num); font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.grid figcaption small { display: block; font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .8); margin-top: 4px; }
.more { margin-top: 24px; font-size: 13px; line-height: 1.9; color: var(--note); max-width: 52em; }
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .grid figure:first-child { grid-column: 1 / 3; }
  .grid figcaption { font-size: 13px; padding: 40px 8px 8px; }
}

/* ---------- 二段(見出し左・本文右) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 歩み(工程表) ---------- */

.arc { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line-strong); }
.arc li { position: relative; padding: 16px 16px 0 0; }
/* 年の印は図面の寸法線の目盛り（短い縦の線）。丸は押せる物とアバターだけ（docs/世界観と決まり.md・2026-10-17） */
.arc li::before { content: ""; position: absolute; top: -4px; left: 0; width: 1px; height: 9px; background: var(--ink); }
.arc li.now::before { left: -1px; width: 3px; background: var(--accent); }
.arc .y { display: block; font-family: var(--num); font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--note); }
.arc li.now .y { color: var(--accent); }
.arc .t { display: block; margin-top: 4px; font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.arc .d { display: block; margin-top: 4px; font-size: 13px; line-height: 1.7; color: var(--note); }
@media (max-width: 860px) {
  .arc { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-strong); }
  .arc li { padding: 0 0 24px 24px; }
  .arc li:last-child { padding-bottom: 0; }
  .arc li::before { top: .8em; left: -4px; width: 9px; height: 1px; }
  .arc li.now::before { top: calc(.8em - 1px); left: -4px; width: 9px; height: 3px; }
}

/* ---------- 人物(署名) ---------- */

.person { display: flex; gap: 24px; align-items: center; margin-top: 32px; }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person .name { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .1em; }
.person .role { font-size: 13px; color: var(--note); margin-top: 4px; }

/* ---------- 記事一覧 ---------- */


/* ---------- 締め(相談)・足元 ---------- */

.close { background: var(--dark); color: var(--on-dark); }
.close .lead { color: var(--on-dark); }
.close .body { color: rgba(242, 239, 233, .82); }
.close .btn.main { background: var(--on-dark); color: var(--dark); }
.close .btn.main:hover { background: #fff; }
.close .btn.ghost { border-color: rgba(242, 239, 233, .6); color: var(--on-dark); }
.close .btn.ghost:hover { border-color: var(--on-dark); background: rgba(242, 239, 233, .1); }
.close .note { color: rgba(242, 239, 233, .7); }
.close .note a { color: var(--on-dark); }

.foot { background: var(--dark); color: rgba(242, 239, 233, .72); border-top: 1px solid rgba(242, 239, 233, .14); }
.foot .wrap { padding-block: 32px; }
.foot-main, .foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 32px; }
.foot-main { padding-bottom: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -12px; }
.foot a { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 44px; min-width: 44px; padding: 8px 12px; font-size: 13px; letter-spacing: .04em; text-decoration: none; color: var(--on-dark-2); white-space: nowrap; }
.foot .foot-nav a { color: var(--on-dark); font-size: 14px; }
.foot .foot-social { margin-right: -12px; }
.foot a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 5px; }
.foot-bottom { border-top: 1px solid rgba(242, 239, 233, .14); padding-top: 16px; gap: 4px 24px; }
.foot .foot-legal { margin-left: -12px; font-size: 12px; }
.foot .copy { font-family: var(--sans); font-size: 12px; letter-spacing: .04em; }
@media (max-width: 600px) {
  .foot-main, .foot-bottom { align-items: flex-start; flex-direction: column; }
  .foot-main { gap: 4px; }
  .foot .copy { margin-top: 4px; }
}

/* ---------- 下層ページの扉 ---------- */

.phead { padding: 48px 0 0; }
.phead .en { font-family: var(--num); font-size: 13px; letter-spacing: .3em; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.phead h1 { margin-top: 12px; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.2; font-weight: 900; color: var(--ink); letter-spacing: -.005em; }
.phead .body { margin-top: 24px; }
.phead + .sec .sec-head, .after-head { margin-top: 48px; }

/* ---------- 汎用: 札・表・札束 ---------- */

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--ink); background: var(--paper-2); padding: 8px 14px; border-radius: 999px; }
.tint .tags li { background: var(--paper); }

.table { width: 100%; max-width: 760px; margin-top: 24px; border-top: 1px solid var(--line-strong); }
.table .row { display: grid; grid-template-columns: 8em 1fr; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }   /* 左の端は本文と同じ線（4px 内へ寄せない） */
.table dt { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .06em; }
.table dd { font-size: 16px; line-height: 1.8; color: var(--text); }
.table dd a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 3px; }
.table dd small { display: block; font-size: 13px; color: var(--note); margin-top: 4px; }
@media (max-width: 560px) { .table .row { grid-template-columns: 1fr; gap: 4px; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.card { background: var(--paper-2); border-radius: var(--radius); padding: 24px; }
.tint .card { background: var(--paper); }
.card .no { font-family: var(--num); font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--accent); }
.card .no.ja { font-family: var(--sans); letter-spacing: .08em; }
.card h3 { margin-top: 8px; font-size: 18px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.card p { margin-top: 8px; font-size: 16px; line-height: 1.9; color: var(--text); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- 相談フォーム ---------- */

.cform { margin-top: 24px; max-width: 640px; }
.cform .f + .f { margin-top: 16px; }
.cform label {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 700; line-height: 1.7; letter-spacing: .06em; color: var(--ink);
}
.cform label .n { font-family: var(--num); font-weight: 600; letter-spacing: .1em; color: var(--accent); margin-right: 8px; }
.cform label .req, .cform label .opt { font-weight: 400; letter-spacing: .04em; margin-left: 8px; }
.cform label .req { color: var(--required); }
.cform label .opt { color: var(--note); }
.cform input, .cform textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 16px;
  font-family: inherit; font-size: 16px; line-height: 1.7; letter-spacing: .01em; color: var(--text);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease;
}
.cform textarea { min-height: 96px; resize: vertical; }
.cform input:hover, .cform textarea:hover { border-color: var(--ink); }
.cform input:focus-visible, .cform textarea:focus-visible { border-color: var(--accent); }
.cform button[type="submit"] { min-height: 48px; font-family: inherit; cursor: pointer; }
.cform button[disabled] { opacity: .55; cursor: default; }
.cform-msg { margin-top: 16px; font-size: 16px; line-height: 1.9; color: var(--text); }
.cform-msg:empty { display: none; }
.cform-msg.err { color: var(--required); font-weight: 700; }
.cform-msg a { color: var(--ink); text-underline-offset: 3px; }
.cform-done { margin-top: 24px; font-size: 18px; font-weight: 700; line-height: 1.8; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .cform input, .cform textarea { transition: none; } }

/* ---------- 出現(控えめ。JS無効・動きの抑制時は最初から完成形) ---------- */

.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .grid img, .btn, .top nav a { transition: none; }
}

/* ---------- ボタンを押す手ざわり（2026-09-27 本人「カーソルを合わせた時に…水色」「ボタンがこう沈むみたいな…アニメーション結構大事」） ---------- */
/* カーソルを合わせると、どのボタンも同じ水色（アバターの青緑の明るい方）になり、少し沈む。押すともう少し沈む */
.btn, .top nav a.cta { box-shadow: 0 3px 0 rgba(14, 14, 15, .18); transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease, box-shadow .12s ease; }
.btn.ghost { box-shadow: none; }
.btn:hover, .btn.main:hover, .btn.ghost:hover,
.hero .btn.main:hover, .hero .btn.ghost:hover, .close .btn.main:hover, .close .btn.ghost:hover,
.top nav a.cta:hover, .hero .top nav a.cta:hover {
  background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--dark);
  transform: translateY(2px); box-shadow: 0 1px 0 rgba(14, 14, 15, .18);
}
.btn:active, .top nav a.cta:active { transform: translateY(3px); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .btn, .top nav a.cta { transition: none; }
  .btn:hover, .btn:active, .top nav a.cta:hover, .top nav a.cta:active { transform: none; }
}

/* ---------- 相談の欄のボタンの下の一言（2026-09-27）----------
   一言はボタンの並びの最後に置き、ボタンが縦に並ぶ幅では主のボタンのすぐ下へ回す（どのボタンの話か分かるように） */
.close .acts > .note { flex-basis: 100%; margin: 0; text-wrap: pretty; }
@media (max-width: 560px) { .close .acts > .btn.ghost { order: 2; } }
#cf-after { text-wrap: pretty; }

/* ---------- 明暗の切り替え（b-CADと同じ記号＝丸の右半分を塗った形） ----------
   押せる所は44px四方、見える絵は20px。JavaScriptが動かない時は出さない（html.js が付いた時だけ出す）。 */
.theme-toggle {
  display: none; flex: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, background-color .2s ease;
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle:hover { color: var(--accent); background: var(--hover-tint); }
.hero .theme-toggle { color: var(--on-dark); }
.hero .theme-toggle:hover { color: #fff; background: rgba(242, 239, 233, .12); }
@media (prefers-reduced-motion: reduce) { .theme-toggle { transition: none; } }
