/* 紀ノ川DX ─ サイト全体のスタイル
   レイアウトの考え方：紺の帯（ヒーロー・相談の帯）で始まり、紙の白と淡い水色の面を交互に流す。
   ロゴの「紺・青・水色・オレンジ」と、川の2本線を全体の部品に使う。 */

/* Webフォント：サイトで使う文字だけに絞った自前のファイル（監査 B-11、2026-11-01 に軽量化）。作り直しは scripts/subset-fonts.py。
   本文（KDX Body）は data/fonts/charset.txt、見出し（KDX Display）は data/fonts/display.txt の文字だけ。ない文字は端末のフォントで表示される（docs/fonts.md） */
@font-face { font-family: "KDX Body"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/biz-400.woff2?v=100fc29e") format("woff2"); }
@font-face { font-family: "KDX Body"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/biz-700.woff2?v=dccd7a5e") format("woff2"); }
@font-face { font-family: "KDX Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/zen-900.woff2?v=7d5daadb") format("woff2"); }
:root {
  --paper: #F5F8FB;
  --surface: #FFFFFF;
  --tint: #EAF2F9;
  --ink: #142640;
  --ink-soft: #33475F;
  --muted: #5B6C81;
  --line: #D6E0EA;
  --navy: #18345C;
  --navy-deep: #0F2443;
  --on-navy: #FFFFFF;
  --on-navy-soft: #C9DBEE;
  --blue: #3498DB;
  --link: #1C68A8;
  --sky: #A9D4EF;
  --sky-soft: #E1EFFA;
  --orange: #E9661E;
  --orange-ink: #B64A0E;
  --orange-soft: #FDEDE2;
  /* 強調の色：オレンジは「相談する」ボタンだけに使い、それ以外の強調は青にする */
  --hl: var(--blue);
  --hl-ink: var(--link);
  --hl-soft: var(--sky-soft);
  --shadow: 0 1px 2px rgba(20, 38, 64, .06), 0 8px 24px rgba(20, 38, 64, .07);
  --shadow-lift: 0 2px 4px rgba(20, 38, 64, .08), 0 14px 32px rgba(20, 38, 64, .12);

  --f-display: "KDX Display", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-body: "KDX Body", "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --radius: 14px;
  --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1626; --surface: #122036; --tint: #0F1C30; --ink: #E6EDF6; --ink-soft: #C3D0E0; --muted: #94A7BF; --line: #24364F;
    --navy: #122B4E; --navy-deep: #0A1A33; --on-navy: #FFFFFF; --on-navy-soft: #BCD2EA;
    --blue: #5AAEE8; --link: #8CC7F2; --sky: #A9D4EF; --sky-soft: #15294A;
    --orange: #F08A4E; --orange-ink: #F5A574; --orange-soft: #3A2516;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 14px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C1626; --surface: #122036; --tint: #0F1C30; --ink: #E6EDF6; --ink-soft: #C3D0E0; --muted: #94A7BF; --line: #24364F;
  --navy: #122B4E; --navy-deep: #0A1A33; --on-navy: #FFFFFF; --on-navy-soft: #BCD2EA;
  --blue: #5AAEE8; --link: #8CC7F2; --sky: #A9D4EF; --sky-soft: #15294A;
  --orange: #F08A4E; --orange-ink: #F5A574; --orange-soft: #3A2516;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 14px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.85; letter-spacing: .02em;
  font-feature-settings: "palt" 0; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--f-display); letter-spacing: .03em; }
h1, h2, h3 { font-weight: 900; } /* 見出しの太さは 900 だけを読み込む（Zen Kaku 700 は使わない） */
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap-narrow { max-width: 860px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 900; font-size: 1.32rem; letter-spacing: .06em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); background: var(--sky-soft); }
.site-nav .nav-cta { margin-left: 8px; background: var(--orange); color: #fff; font-weight: 700; padding: 9px 16px; border-radius: 999px; }
.site-nav .nav-cta:hover { background: #D4560F; color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .85rem; }
.nav-toggle-bars { display: grid; gap: 3px; }
.nav-toggle-bars i { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav a { font-size: 1rem; padding: 12px 8px; }
  .site-nav .nav-cta { margin: 10px 0 0; text-align: center; padding: 12px 16px; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn small { font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .22); letter-spacing: .06em; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(233, 102, 30, .32); }
.btn-accent:hover { background: #D4560F; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; color: var(--on-navy);
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(52, 152, 219, .30), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(169, 212, 239, .12), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding-block: 64px 0;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 52px; align-items: center; }
.hero-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--on-navy-soft); border: 1px solid rgba(169, 212, 239, .45); padding: 5px 14px; border-radius: 999px; }
.hero h1 { margin-top: 22px; font-weight: 900; font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.36; letter-spacing: .04em; }
.hero h1 .ln { display: block; }
@media (min-width: 420px) { .hero h1 .ln { white-space: nowrap; } }
.hero h1 .hl { color: var(--sky); }
.hero-lead { margin-top: 22px; color: var(--on-navy-soft); font-size: 1.02rem; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-visual { position: relative; padding-bottom: 64px; min-width: 0; }
.browser { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(4, 14, 30, .45); border: 1px solid rgba(255, 255, 255, .25); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #EEF2F6; border-bottom: 1px solid #DCE3EA; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9D3DD; }
.browser-bar span { margin-left: 10px; font-size: .72rem; color: #66788D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; }
.hero-feed {
  position: absolute; left: -28px; bottom: 0; width: min(380px, 92%);
  background: var(--surface); color: var(--ink); border-radius: 14px; padding: 14px 16px 10px; box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
.hero-feed-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .86rem; }
.hero-feed-note { margin-left: auto; font-size: .7rem; font-weight: 700; color: var(--hl-ink); background: var(--hl-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2EAD6B; box-shadow: 0 0 0 0 rgba(46, 173, 107, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 173, 107, .45); } 70% { box-shadow: 0 0 0 8px rgba(46, 173, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 173, 107, 0); } }
#hero-feed { list-style: none; margin-top: 6px; }
#hero-feed li + li { border-top: 1px dashed var(--line); }
#hero-feed a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 0; text-decoration: none; color: var(--ink); font-size: .84rem; line-height: 1.5; }
#hero-feed a:hover .hf-title { color: var(--link); text-decoration: underline; }
#hero-feed time { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.hf-kind { font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--sky-soft); color: var(--link); white-space: nowrap; }
.hf-tool, .hf-paid { background: var(--hl-soft); color: var(--hl-ink); }
.hf-article { background: var(--tint); color: var(--ink-soft); }
.hf-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero-facts {
  position: relative; z-index: 2; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(169, 212, 239, .25);
}
.hero-facts div { padding: 18px 20px 26px 0; }
.hero-facts div + div { padding-left: 20px; border-left: 1px solid rgba(169, 212, 239, .2); }
.hero-facts dt { font-size: .78rem; color: var(--on-navy-soft); letter-spacing: .08em; }
.hero-facts dd { margin: 4px 0 0; font-size: .95rem; color: var(--on-navy); display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.hero-facts b { font-family: var(--f-mono); font-size: 2rem; font-weight: 500; line-height: 1.1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.hero-facts b.small { font-family: var(--f-body); font-size: 1.15rem; font-weight: 700; }
.hero-facts small { font-size: .72rem; color: var(--on-navy-soft); margin-left: 4px; }
.hero-wave { display: block; width: 100%; height: 64px; margin-top: -8px; }
.hero-wave .wave-fill { fill: var(--paper); }
.hero-wave .wave-line1 { fill: none; stroke: var(--sky); stroke-width: 3; opacity: .7; }
.hero-wave .wave-line2 { fill: none; stroke: var(--blue); stroke-width: 3; }

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-visual { padding-bottom: 120px; }
  .hero-feed { left: 12px; right: 12px; width: auto; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
  .hero-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts div:nth-child(n+3) { border-top: 1px solid rgba(169, 212, 239, .2); }
}

/* ---------- お知らせ（kintoneから） ---------- */
.news-band { padding-block: 8px 8px; }
.news-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.news-label { font-size: .9rem; font-weight: 700; color: var(--hl-ink); padding-top: 10px; white-space: nowrap; }
.news-list { list-style: none; }
.news-list li + li { border-top: 1px solid var(--line); }
.news-list a, .news-list div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.news-list time { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); }
.news-title { font-weight: 700; }
.news-text { grid-column: 2; color: var(--muted); font-size: .9rem; }
.news-list a:hover .news-title { color: var(--link); text-decoration: underline; }

/* ---------- セクション共通 ---------- */
.section { padding-block: 96px; }
.section-tint { background: var(--tint); }
.sec-head { display: grid; gap: 12px; margin-bottom: 44px; max-width: 760px; }
.sec-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; flex-wrap: wrap; }
.sec-head-row > div:first-child { display: grid; gap: 12px; max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--link); } /* 2026-11-01：英語の小見出しを日本語にしたので、本文の書体に */
.eyebrow::before {
  content: ""; width: 30px; height: 10px; flex: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M1 3.5c4-3 8 3 13 0s9-3 15 0' fill='none' stroke='%23A9D4EF' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M1 7.5c4-3 8 3 13 0s9-3 15 0' fill='none' stroke='%233498DB' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sec-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 900; line-height: 1.4; }
.lead { color: var(--ink-soft); font-size: 1.02rem; }
.sub { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }
.sub-wide { margin-top: 56px; }
.note { margin-top: 18px; font-size: .84rem; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--link); }
.more span { transition: transform .15s; }
.more:hover span { transform: translateX(3px); }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 17px; height: 17px; border-radius: 5px;
  background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.3' fill='none' stroke='%231C68A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

@media (max-width: 720px) {
  .section { padding-block: 68px; }
  .sec-head { margin-bottom: 32px; }
}

/* ---------- できること ---------- */
.services { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 24px; }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--sky-soft); display: grid; place-items: center; }
.service-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .service-icon svg { stroke: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .service-icon svg { stroke: var(--sky); } }
.service-icon svg .fill { fill: var(--hl); stroke: var(--hl); }
.service-icon svg .check { stroke: #fff; stroke-width: 2.2; }
.service-icon svg .accent { stroke: var(--hl); }
.service h3 { font-size: 1.22rem; font-weight: 900; line-height: 1.5; }
.service > p { color: var(--ink-soft); font-size: .95rem; }
.service .ticks { margin-top: 2px; }
.service-price { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: baseline; gap: 8px; font-family: var(--f-mono); font-size: 1.7rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.service-price span { font-family: var(--f-body); font-size: .78rem; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; align-self: center; }
.service-price small { font-family: var(--f-body); font-size: .85rem; color: var(--muted); }
.service-price .estimate { font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; }
@media (max-width: 980px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 制作実績 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 5px; border-radius: 999px; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: .88rem; color: var(--ink-soft); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; font-weight: 700; }
:root[data-theme="dark"] .tabs button[aria-selected="true"] { background: var(--blue); color: #08121F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs button[aria-selected="true"] { background: var(--blue); color: #08121F; } }
.works { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-btn { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: zoom-in; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.work-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.frame { display: block; background: #fff; border-bottom: 1px solid var(--line); }
.frame-bar { display: flex; gap: 5px; align-items: center; height: 22px; padding: 0 10px; background: #EEF2F6; border-bottom: 1px solid #E0E6ED; }
.frame-bar i { width: 7px; height: 7px; border-radius: 50%; background: #C9D3DD; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.work[data-group="excel"] .frame img { aspect-ratio: 16 / 13; }
.work-body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.work-tags { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; color: var(--hl-ink); }
.work-tags i { font-style: normal; color: var(--muted); }
.work-title { font-family: var(--f-display); font-weight: 900; font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.work-desc { color: var(--ink-soft); font-size: .9rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work.is-kintone-live .work-tags { color: #2E9A62; }
@media (max-width: 980px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .works { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 2px 14px; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .work { scroll-snap-align: start; }
  .tabs { border-radius: 14px; }
  .works-hint { display: block; }
}
.works-hint { display: none; margin-top: 4px; font-size: .8rem; color: var(--muted); }

/* ---------- ご依頼メニュー ---------- */
.menu { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.menu li { border-bottom: 1px solid var(--line); }
.menu a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag price" "name price" "desc price"; gap: 2px 20px; padding: 18px 4px; text-decoration: none; color: var(--ink); border-radius: 8px; transition: background .15s; }
.menu a:hover { background: var(--sky-soft); }
.menu-tag { grid-area: tag; font-size: .74rem; font-weight: 700; color: var(--hl-ink); letter-spacing: .06em; }
.menu-name { grid-area: name; font-weight: 700; font-size: 1.02rem; }
.menu-desc { grid-area: desc; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.menu-price { grid-area: price; align-self: center; text-align: right; font-family: var(--f-mono); font-size: 1.3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-price small { font-family: var(--f-body); font-size: .78rem; color: var(--muted); }
.menu-price em { display: block; font-style: normal; font-family: var(--f-body); font-size: .74rem; color: var(--muted); }
@media (max-width: 860px) { .menu { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .menu a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tag" "name" "desc" "price"; }
  .menu-price { text-align: left; margin-top: 6px; }
  .menu-price em { display: inline; margin-left: 8px; }
}

/* ---------- ホームページ制作 ---------- */
.web-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.web-copy { display: grid; gap: 10px; }
.web-copy .sub { margin-top: 18px; }
.web-copy .sub:first-child { margin-top: 0; }
.web-copy > p { color: var(--ink-soft); }
.web-cta { margin-top: 14px; }
.mech { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; }
.mech-cap { font-family: var(--f-display); font-weight: 900; font-size: 1.05rem; }
.mech-flow { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1.25fr) 52px minmax(0, 1fr); align-items: center; gap: 6px; }
.mech-node { display: grid; gap: 4px; padding: 14px 12px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); text-align: center; min-height: 112px; align-content: center; }
.mech-node b { font-family: var(--f-display); font-weight: 900; font-size: 1rem; }
.mech-node span { font-size: .76rem; color: var(--muted); line-height: 1.55; }
.mech-site { background: var(--navy); border-color: var(--navy); }
.mech-site b { color: #fff; }
.mech-site span { color: var(--on-navy-soft); }
.mech-arrow { display: grid; justify-items: center; gap: 2px; }
.mech-arrow svg { width: 48px; height: 20px; fill: none; stroke: var(--hl); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mech-arrow span { font-size: .66rem; font-weight: 700; color: var(--hl-ink); white-space: nowrap; }
.mech-note { font-size: .84rem; color: var(--muted); }
.includes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.includes li { display: grid; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.includes b { font-family: var(--f-display); font-weight: 900; font-size: 1rem; }
.includes span { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
@media (max-width: 980px) { .web-grid { grid-template-columns: minmax(0, 1fr); } .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .includes { grid-template-columns: minmax(0, 1fr); }
  .mech-flow { grid-template-columns: minmax(0, 1fr); }
  .mech-node { min-height: 0; }
  .mech-arrow svg { transform: rotate(90deg); }
  .mech-arrow-rev svg { transform: rotate(90deg); }
}

/* ---------- 流れ ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.steps li { position: relative; display: grid; gap: 6px; padding-top: 62px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--blue); color: var(--link); font-family: var(--f-mono); font-size: 1.1rem; }
.steps b { font-family: var(--f-display); font-weight: 900; font-size: 1.02rem; }
.steps span { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
.assure { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.assure li { display: grid; gap: 6px; padding: 20px 22px; border-radius: 12px; background: var(--hl-soft); }
.assure b { font-weight: 700; color: var(--ink); }
.assure span { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; background: linear-gradient(180deg, var(--sky), var(--blue)); }
  .steps li { padding: 0 0 22px 66px; min-height: 64px; }
  .assure { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- テンプレート ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.plan { display: grid; gap: 8px; align-content: start; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.plan > p:not(.plan-name):not(.plan-price) { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
.plan-price { font-family: var(--f-mono); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-price small { font-family: var(--f-body); font-size: .9rem; color: var(--muted); }
.plan-common { background: transparent; border-style: dashed; }
.plan-common .plan-name { font-weight: 700; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; line-height: 1.5; }
.badge-lite { background: var(--sky-soft); color: var(--link); }
.badge-std { background: var(--hl-soft); color: var(--hl-ink); }
.badge-tool { background: var(--navy); color: #fff; }
.badge-howto { background: var(--tint); color: var(--ink-soft); border: 1px solid var(--line); }
.badge-cat { font-size: .72rem; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; }
.filters { display: grid; gap: 12px; margin-bottom: 22px; }
.seg, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .chips button { border: 1px solid var(--line); background: var(--surface); padding: 7px 15px; border-radius: 999px; cursor: pointer; font-size: .86rem; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #08121F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #08121F; } }
.chips button[aria-pressed="true"] { background: var(--sky-soft); border-color: var(--blue); color: var(--link); font-weight: 700; }
.count { font-size: .84rem; color: var(--muted); }
.tpls { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tpl-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
a.tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tpl-shot { display: block; aspect-ratio: 16 / 10; background: #F1F4F8; border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.tpl-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.tpl-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; padding: 16px; text-align: center; color: #fff; font-family: var(--f-display); font-weight: 900; font-size: 1.05rem; line-height: 1.4;
  background: linear-gradient(135deg, var(--navy) 0%, #24538A 100%); }
.tpl-ph-mark { width: 34px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='3' width='11' height='11' rx='2.5' fill='%233498DB'/%3E%3Crect x='18' y='3' width='11' height='11' rx='2.5' fill='%23A9D4EF'/%3E%3Crect x='3' y='18' width='11' height='11' rx='2.5' fill='%23A9D4EF'/%3E%3Crect x='18' y='18' width='11' height='11' rx='2.5' fill='%233498DB'/%3E%3Cpath d='M20.8 23.6l2.2 2.1 3.8-4.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.tpl-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.tpl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-name { font-family: var(--f-display); font-weight: 900; font-size: 1.04rem; line-height: 1.5; }
.tpl-desc { color: var(--ink-soft); font-size: .86rem; line-height: 1.7; }
.tpl-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--f-mono); font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--f-body); font-size: .72rem; color: var(--muted); margin-left: 6px; }
.go { font-size: .82rem; font-weight: 700; color: var(--link); }
.soon { font-size: .76rem; font-weight: 700; color: var(--muted); background: var(--tint); padding: 2px 9px; border-radius: 999px; }
.tpl.is-soon .tpl-card { opacity: .78; }
.tpl.is-soon .tpl-shot img { filter: grayscale(.55); }
.feed-status { margin-top: 22px; }
.tpl-more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); min-height: 48px; }
.btn-outline:hover { border-color: var(--blue); color: var(--link); }
@media (max-width: 980px) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .plan-common { grid-column: 1 / -1; } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0, 1fr); } .tpls { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 記事 ---------- */
.articles-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.mags { display: grid; gap: 16px; }
.mag { display: grid; gap: 6px; padding: 22px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--blue); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.mag:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mag-it { border-left-color: var(--hl); }
.mag-when { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.mag b { font-family: var(--f-display); font-weight: 900; font-size: 1.2rem; }
.mag span:last-child { color: var(--ink-soft); font-size: .9rem; line-height: 1.75; }
.posts-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px 22px; display: grid; gap: 8px; }
.posts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; }
.posts-head span { font-size: .74rem; font-weight: 700; color: var(--hl-ink); }
.posts { list-style: none; }
.post + .post { border-top: 1px solid var(--line); }
.post a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 12px 0; text-decoration: none; color: var(--ink); }
.post time { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.post-tag { font-size: .7rem; font-weight: 700; color: var(--link); background: var(--sky-soft); padding: 1px 8px; border-radius: 4px; white-space: nowrap; }
.post-title { font-size: .94rem; line-height: 1.6; }
.post a:hover .post-title { color: var(--link); text-decoration: underline; }
@media (max-width: 900px) { .articles-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .post a { grid-template-columns: auto minmax(0, 1fr); } .post-title { grid-column: 1 / -1; } }

/* ---------- 紀ノ川DXについて ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.about-grid .sec-head { margin-bottom: 0; }
.about-grid .lead + .lead { margin-top: 4px; }
.logo-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.logo-card img { width: 112px; height: 112px; border-radius: 22px; }
.logo-card p { color: var(--ink-soft); font-size: .9rem; line-height: 1.75; }
.basin { margin: 48px 0 0; }
.basin-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.basin svg { display: block; width: 100%; min-width: 640px; height: auto; }
.basin text { fill: var(--ink); font-family: var(--f-body); font-size: 13px; }
.basin .b-sub, .basin .b-pref { fill: var(--muted); font-size: 11px; }
.basin .b-pref { letter-spacing: .1em; }
.basin .b-name { fill: var(--link); font-family: var(--f-display); font-weight: 900; font-size: 16px; letter-spacing: .2em; }
.basin .b-home { fill: var(--link); font-weight: 700; font-size: 12px; letter-spacing: .12em; }
.basin .b-hl { font-weight: 700; font-size: 15px; }
.basin .b-home-bg { fill: var(--sky-soft); }
.basin .b-border { stroke: var(--muted); stroke-dasharray: 3 5; }
.basin .b-river { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; }
.basin circle { fill: var(--surface); stroke: var(--blue); stroke-width: 2.5; }
.basin circle.hl { fill: var(--hl); stroke: var(--surface); stroke-width: 3; }
.basin figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.pledges { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.pledges li { display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--blue); padding-top: 16px; }
.pledges b { font-family: var(--f-display); font-weight: 900; font-size: 1.04rem; line-height: 1.5; }
.pledges span { color: var(--ink-soft); font-size: .92rem; line-height: 1.75; }
.operator { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px 40px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.operator .sub { grid-column: 1 / -1; margin: 0; }
.operator > p { color: var(--ink-soft); font-size: .95rem; }
.skills { margin: 0; border-top: 1px solid var(--line); align-self: start; }
.skills div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.skills dt { color: var(--ink-soft); }
.skills dd { margin: 0; font-family: var(--f-mono); color: var(--ink); white-space: nowrap; }
@media (max-width: 900px) {
  .about-grid, .operator { grid-template-columns: minmax(0, 1fr); }
  .pledges { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 480px) { .logo-card { grid-template-columns: minmax(0, 1fr); justify-items: start; } }

/* ---------- よくある質問 ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--f-mono); color: var(--hl-ink); margin-right: 10px; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px 46px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- 相談の帯 ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-navy); padding-block: 72px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: 18px; height: 40px; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40' preserveAspectRatio='none'%3E%3Cpath d='M0 14C75 0 150 28 225 14S375 0 450 14 525 28 600 14' fill='none' stroke='%23A9D4EF' stroke-width='2'/%3E%3Cpath d='M0 26C75 12 150 40 225 26S375 12 450 26 525 40 600 26' fill='none' stroke='%233498DB' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; pointer-events: none; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; position: relative; z-index: 1; }
.cta-band h2 { font-weight: 900; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.45; }
.cta-band p { color: var(--on-navy-soft); margin-top: 10px; }
.cta-actions { display: grid; gap: 12px; justify-items: stretch; }
.cta-actions .btn { width: 100%; }
.cta-note { font-size: .82rem; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- フッター ---------- */
.site-footer { padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: .88rem; max-width: 30em; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-nav { display: grid; gap: 4px; align-content: start; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; padding: 3px 0; }
.footer-nav a:hover { color: var(--link); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- 拡大表示 ---------- */
.lightbox { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: auto; }
.lightbox::backdrop { background: rgba(6, 14, 28, .72); backdrop-filter: blur(2px); }
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); animation: lb-in .2s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lb-close-form { position: absolute; right: 10px; top: 10px; z-index: 2; margin: 0; }
.lb-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }
.lb-media { background: #F1F4F8; display: grid; place-items: center; min-height: 260px; }
.lb-media img { width: 100%; height: auto; max-height: calc(100dvh - 32px); object-fit: contain; }
.lb-body { padding: 56px 28px 28px; display: grid; gap: 10px; align-content: start; }
.lb-body h3 { font-weight: 900; font-size: 1.3rem; line-height: 1.5; }
.lb-body p { color: var(--ink-soft); }
.lb-tags { font-family: var(--f-mono); font-size: .74rem; color: var(--hl-ink) !important; letter-spacing: .06em; }
@media (max-width: 820px) { .lightbox[open] { grid-template-columns: minmax(0, 1fr); } .lb-body { padding: 20px 22px 26px; } }

/* ---------- 下位ページ（プライバシーポリシー・404） ---------- */
.page { padding-block: 64px 96px; }
.page h1 { font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.4; margin-bottom: 28px; }
.page h2 { font-size: 1.15rem; font-weight: 900; margin: 36px 0 10px; }
.page p, .page li { color: var(--ink-soft); }
.page ul { padding-left: 1.4em; display: grid; gap: 4px; }
.page .meta { margin-top: 40px; font-size: .88rem; color: var(--muted); }
.notfound { text-align: center; display: grid; gap: 16px; justify-items: center; padding-block: 96px; }
.notfound .code { font-family: var(--f-mono); font-size: 4rem; color: var(--blue); line-height: 1; }

/* =========================================================
   UIの仕上げ（2026-10-14 追加）
   ========================================================= */

/* 読み進みバー */
.progress { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sky), var(--blue) 60%, var(--hl)); }

/* ヘッダー：スクロールすると影がつく・今いる場所に印 */
.site-header { transition: box-shadow .2s, background .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 38, 64, .08); }
.site-nav a[aria-current="true"] { color: var(--ink); font-weight: 700; background: var(--sky-soft); }

/* ライト／ダークの切りかえ */
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-soft); flex: none; order: 2; }
.theme-toggle:hover { color: var(--ink); border-color: var(--blue); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
}
.header-inner .site-nav { order: 1; }
.header-inner .nav-toggle { order: 3; }
@media (max-width: 1240px) { .theme-toggle { order: 2; } }

/* ヒーロー：川の線がゆっくり流れる */
.hero-wave .wave-line1, .hero-wave .wave-line2 { stroke-dasharray: 18 10; animation: flow 14s linear infinite; }
.hero-wave .wave-line2 { animation-duration: 10s; }
@keyframes flow { to { stroke-dashoffset: -280; } }
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-visual { animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
.browser { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.hero-visual:hover .browser { transform: translateY(-4px); }

/* 下からふわっと（画面の外にあるものだけ。JSが付ける） */
.reveal { transform: translateY(18px); opacity: .001; transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s; }
.reveal.is-in { transform: none; opacity: 1; }

/* カードの手ざわり */
.service { transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.tpl-shot img, .frame img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
a.tpl-card:hover .tpl-shot img, .work-btn:hover .frame img { transform: scale(1.04); }
.frame { overflow: hidden; }
.new-mark { position: absolute; left: 10px; top: 10px; z-index: 1; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; color: #fff; background: var(--hl); padding: 3px 8px; border-radius: 6px; box-shadow: 0 4px 10px rgba(24, 52, 92, .3); }
.tabs button .n { display: inline-block; min-width: 1.6em; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-family: var(--f-mono); font-size: .72rem; background: var(--tint); color: var(--muted); }
.tabs button[aria-selected="true"] .n { background: rgba(255, 255, 255, .22); color: inherit; }

/* 拡大表示：前後送り */
.lb-media { position: relative; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(15, 36, 67, .72); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(15, 36, 67, .92); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { font-family: var(--f-mono); font-size: .74rem; color: var(--muted) !important; }

/* 上へ戻る */
.to-top { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; box-shadow: var(--shadow-lift); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }

/* スマホの下に出る相談バー */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s;
  }
  .mobile-cta.is-shown { transform: none; }
  .mobile-cta .btn { min-height: 46px; padding: 10px 14px; font-size: .95rem; box-shadow: none; }
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; opacity: 1; }
  .hero-copy > *, .hero-visual { animation: none; }
}


/* =========================================================
   ホームの最初の画面を明るく読みやすく（2026-10-14 改訂）
   ========================================================= */
.hero {
  color: var(--ink);
  background:
    radial-gradient(800px 380px at 92% 10%, color-mix(in srgb, var(--sky) 35%, transparent), transparent 65%),
    linear-gradient(180deg, var(--paper) 0%, var(--tint) 100%);
  padding-block: 72px 0;
  border-bottom: 1px solid var(--line);
}
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
.hero-label { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .1em; color: var(--link); background: var(--sky-soft); padding: 6px 14px; border-radius: 999px; }
.hero h1 { margin-top: 20px; font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.4; letter-spacing: .03em; color: var(--ink); }
.hero h1 .br-sp { display: none; }
.hero-lead { margin-top: 20px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.95; max-width: 34em; }
.hero-cta { margin-top: 28px; }
.hero-shot { margin: 0; box-shadow: 0 24px 48px rgba(20, 38, 64, .16); border: 1px solid var(--line); animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
.hero-facts { margin-top: 56px; border-top: 1px solid var(--line); }
.hero-facts div + div { border-left: 1px solid var(--line); }
.hero-facts dt { color: var(--muted); }
.hero-facts dd { color: var(--ink); }
.hero-facts small { color: var(--muted); }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .hero h1 .br-sp { display: inline; } }

/* note の新着（最初の画面のすぐ下） */
.latest { background: var(--surface); border-bottom: 1px solid var(--line); }
.latest-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 18px; }
.latest-label { display: flex; align-items: center; gap: 8px; font-family: var(--f-body); font-size: .92rem; font-weight: 700; white-space: nowrap; }
.latest-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.latest-list li + li { border-left: 1px solid var(--line); }
.latest-list a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 16px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.latest-list a:hover .hf-title { color: var(--link); text-decoration: underline; }
.latest-list time { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.latest-more { font-size: .88rem; white-space: nowrap; }
@media (max-width: 900px) {
  .latest-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .latest-list { grid-template-columns: minmax(0, 1fr); }
  .latest-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .latest-list a { padding: 10px 0; }
}

/* 全体の読みやすさ：本文を少し大きく、薄い文字を少し濃く */
body { font-size: 16.5px; }
:root { --muted: #52637A; }
.lead { font-size: 1.05rem; }

.hero h1 .ln { display: block; white-space: nowrap; }
@media (max-width: 380px) { .hero h1 { font-size: 1.7rem; } }
.latest-list li + li { border-top: 0; }
@media (max-width: 900px) { .latest-list li + li { border-top: 1px solid var(--line); } }
#hero-feed.latest-list li + li { border-top: 0; }
@media (max-width: 900px) { #hero-feed.latest-list li + li { border-top: 1px solid var(--line); } }

/* =========================================================
   自己紹介ページ
   ========================================================= */
.about-hero { padding-block: 72px 64px; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 380px at 92% 10%, color-mix(in srgb, var(--sky) 35%, transparent), transparent 65%), linear-gradient(180deg, var(--paper) 0%, var(--tint) 100%); }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.about-hero h1 { margin-top: 20px; font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.45; }
.about-hero h1 .ln { display: block; }
@media (min-width: 420px) { .about-hero h1 .ln { white-space: nowrap; } }
.about-lead { margin-top: 20px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.95; max-width: 36em; }
.timeline { list-style: none; position: relative; display: grid; gap: 0; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--sky), var(--blue)); }
.timeline li { position: relative; display: grid; gap: 4px; padding: 0 0 30px 44px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue); }
.timeline li:last-child::before { background: var(--hl); border-color: var(--hl); }
.tl-when { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; color: var(--link); }
.timeline b { font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; line-height: 1.5; }
.timeline span:last-child { color: var(--ink-soft); }
.about-skills { max-width: 560px; margin-top: 16px; }
@media (max-width: 860px) { .about-hero-grid { grid-template-columns: minmax(0, 1fr); } .about-hero { padding-block: 40px 44px; } }

.cta-band h2 .ln { display: block; }
@media (min-width: 420px) { .cta-band h2 .ln { white-space: nowrap; } }

/* 自己紹介：語の途中で改行しない */
.timeline b .ph { display: inline-block; color: inherit; }

/* 地域の案内（自己紹介ページ） */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i-ext { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.guide-areas { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 12px; color: var(--ink); }
.guide-pref { align-self: flex-start; font-size: .74rem; font-weight: 700; color: var(--link); background: var(--sky-soft); padding: 2px 10px; border-radius: 999px; }
.guide-name { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; line-height: 1.3; }
.guide-text { color: var(--ink-soft); font-size: .92rem; line-height: 1.75; flex: 1; }
.guide-links { display: grid; gap: 4px; margin-top: 6px; }
.guide-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--link); text-decoration: none; }
.guide-go:hover { text-decoration: underline; }
.guide-fn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 700; font-size: .92rem; color: var(--hl-ink); text-decoration: none; }
.guide-fn:hover { text-decoration: underline; }
.guide-site { font-size: .76rem; line-height: 1.5; color: var(--muted); }
.guide-furusato { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--hl); border-radius: 12px; }
.guide-f-body { display: grid; gap: 6px; max-width: 660px; }
.guide-f-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--hl-ink); }
.guide-furusato h3 { font-family: var(--f-display); font-weight: 900; font-size: 1.3rem; line-height: 1.4; }
.guide-furusato p { color: var(--ink-soft); }
.guide-furusato .guide-note { font-size: .8rem; color: var(--muted); }
.guide-furusato .btn { gap: 8px; }
@media (max-width: 960px) { .guide-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .guide-areas { grid-template-columns: minmax(0, 1fr); }
  .guide-furusato { padding: 22px 20px; }
  .guide-furusato .btn { width: 100%; justify-content: center; }
}

/* 現在のページ（下位ページのメニュー） */
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; background: var(--sky-soft); }

/* ---------- ふるさと納税 ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22em; }
.fn-hero { padding-block: 40px 52px; border-bottom: 1px solid var(--line);
  background: radial-gradient(760px 340px at 95% 0%, color-mix(in srgb, var(--hl) 14%, transparent), transparent 65%), linear-gradient(180deg, var(--paper) 0%, var(--tint) 100%); }
.fn-hero .hero-label { background: var(--hl-soft); color: var(--hl-ink); }
.fn-hero h1 { margin-top: 16px; font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.45; }
.fn-hero h1 .ln { display: block; }
@media (min-width: 420px) { .fn-hero h1 .ln { white-space: nowrap; } }
.fn-lead { margin-top: 16px; max-width: 46em; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.9; }
.pr-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; max-width: 52em; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: .84rem; line-height: 1.7; color: var(--ink-soft); }
.pr-badge { flex: none; margin-top: 1px; padding: 0 8px; border-radius: 4px; background: var(--ink-soft); color: var(--surface); font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; line-height: 1.7; }

.fn-areas { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.fn-area { display: grid; gap: 4px; height: 100%; padding: 16px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.fn-area:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue); }
.fn-area[aria-current="page"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.fn-area .guide-pref { justify-self: start; }
.fn-area b { font-family: var(--f-display); font-weight: 900; font-size: 1.2rem; line-height: 1.4; }
.fn-count { font-size: .8rem; color: var(--muted); }
.section-tint .fn-areas { margin-top: 8px; }
.fn-posts + .fn-areas { margin-top: 36px; }

.fn-posts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fn-post { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; height: 100%; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.fn-post:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.fn-post:hover .fn-post-title { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.fn-thumb { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.fn-thumb img { width: 100%; height: 100%; object-fit: contain; }
.fn-thumb-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--hl-soft), var(--sky-soft)); border-color: transparent; }
.fn-thumb-empty span { font-size: .72rem; font-weight: 700; color: var(--hl-ink); }
.fn-post-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fn-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fn-chip { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--hl-soft); color: var(--hl-ink); font-size: .72rem; font-weight: 700; line-height: 1.8; text-decoration: none; }
a.fn-chip:hover { text-decoration: underline; }
.fn-post-title { font-family: var(--f-display); font-weight: 900; font-size: 1.04rem; line-height: 1.55; }
.fn-post-desc { font-size: .86rem; line-height: 1.7; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fn-post time { margin-top: auto; font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.fn-empty { padding: 28px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.fn-back { margin-top: 24px; }
.fn-back .more { gap: 6px; }
.fn-disclaimer { margin-top: 36px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: .86rem; line-height: 1.8; color: var(--ink-soft); }
.fn-disclaimer b { display: block; margin-bottom: 2px; color: var(--ink); }

/* 記事 */
.fn-article-head { padding-block: 36px 32px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper) 0%, var(--tint) 100%); }
.fn-article-head h1 { margin-top: 12px; font-weight: 900; font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.5; }
.fn-article-head .fn-chips { gap: 6px; }
.fn-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; font-size: .84rem; color: var(--muted); }
.fn-meta time { font-family: var(--f-mono); }
.prose { padding-block: 40px 72px; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.95; }
.prose h2 { margin-top: 2.4em; padding: 10px 0 10px 16px; border-left: 5px solid var(--blue); background: linear-gradient(90deg, var(--sky-soft), transparent 80%); border-radius: 0 8px 8px 0; font-weight: 900; font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.5; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { margin-top: 1.8em; font-weight: 900; font-size: 1.12rem; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: 6px; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose blockquote { margin: 1.2em 0 0; padding: 12px 16px; border-left: 4px solid var(--line); background: var(--surface); border-radius: 0 10px 10px 0; }
.prose .fig img { border-radius: 12px; border: 1px solid var(--line); }
.prose .fig figcaption { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.prose .fig { margin: 1.4em 0 0; }
.callout { padding: 14px 18px; background: var(--hl-soft); border-radius: 12px; }
.callout p { color: var(--ink); }
.callout p + p { margin-top: .6em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table-scroll table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92rem; line-height: 1.6; }
.table-scroll th, .table-scroll td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll th { background: var(--tint); font-weight: 700; color: var(--ink); white-space: nowrap; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.toc { margin-top: 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.toc p { font-weight: 700; color: var(--ink); font-size: .92rem; }
.toc ol { margin-top: 8px; padding-left: 1.4em; display: grid; gap: 2px; }
.toc li { font-size: .92rem; line-height: 1.7; }
.toc a { font-weight: 400; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* 楽天の商品カード */
.rk-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); grid-template-areas: "img body" "img btn"; grid-template-rows: auto 1fr; gap: 10px 20px; align-items: start; margin-top: 1.4em; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.rk-img { grid-area: img; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.rk-img img { width: 100%; height: 100%; object-fit: contain; }
.rk-noimg { display: grid; place-items: center; height: 100%; padding: 8px; text-align: center; font-size: .74rem; font-weight: 700; color: #BF0000; background: #FFF5F5; }
.rk-body { grid-area: body; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rk-area { align-self: flex-start; padding: 1px 9px; border-radius: 999px; background: var(--hl-soft); color: var(--hl-ink); font-size: .72rem; font-weight: 700; line-height: 1.8; }
.prose .rk-name { font-family: var(--f-display); font-weight: 900; font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
.prose .rk-name a { color: var(--ink); text-decoration: none; font-weight: 900; }
.prose .rk-name a:hover { color: var(--link); text-decoration: underline; }
.prose .rk-price { font-size: .92rem; color: var(--ink-soft); }
.rk-price b { font-family: var(--f-mono); font-size: 1.15rem; color: var(--ink); margin-left: 4px; }
.rk-price small { margin-left: 4px; font-size: .76rem; color: var(--muted); }
.prose .rk-comment { font-size: .92rem; line-height: 1.75; }
.prose .rk-btn { grid-area: btn; justify-self: start; align-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 11px 20px; border-radius: 999px; background: #BF0000; color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; box-shadow: 0 6px 16px rgba(191, 0, 0, .22); transition: background .15s, transform .15s; }
.prose .rk-btn:hover { background: #9E0000; transform: translateY(-1px); }
.rk-btn .i-ext { stroke: #fff; }

@media (max-width: 1040px) { .fn-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .fn-posts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .fn-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fn-post { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .rk-item { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "img body" "btn btn"; grid-template-rows: auto; gap: 14px; padding: 14px; }
  .prose .rk-btn { justify-self: stretch; justify-content: center; }
  .crumbs [aria-current] { max-width: 12em; }
}
.fn-disclaimer { max-width: 860px; }

/* =========================================================
   Phase1：BtoB の成約に向けた改善（2026-10-14）
   ========================================================= */
/* 最初の画面 */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-river { position: absolute; left: 0; right: 0; bottom: 64px; width: 100%; height: 200px; fill: none; stroke: var(--sky); stroke-width: 1.5; opacity: .6; pointer-events: none; z-index: 0; will-change: transform; }
.hero-river path + path { stroke: var(--blue); opacity: .45; }
@media (min-width: 901px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.hero-label .sep { margin: 0 .35em; opacity: .5; }
.hero h1 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); }
.hero-for { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-for li { padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: .82rem; line-height: 1.7; }
.hero-cta { margin-top: 24px; }
.hero-micro { margin-top: 12px; font-size: .86rem; color: var(--muted); }
.hero-trust { list-style: none; display: grid; gap: 6px; margin-top: 18px; }
.hero-trust li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-soft); line-height: 1.6; }
.hero-trust li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sky-soft); color: var(--link); font-size: .72rem; font-weight: 700; }
.hero-visual { position: relative; }
.ba-after-tag { position: absolute; right: 14px; top: 44px; z-index: 2; padding: 2px 10px; border-radius: 6px; background: var(--navy); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.ba-before { position: absolute; left: -28px; bottom: 44px; z-index: 2; width: 196px; display: grid; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); }
.ba-tag { justify-self: start; padding: 0 8px; border-radius: 4px; background: var(--tint); color: var(--muted); font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.ba-before b { font-size: .92rem; }
.ba-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.ba-sheet i { height: 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); }
.ba-note { font-size: .74rem; color: var(--muted); }
.hero-shot-cap { margin-top: 12px; text-align: right; font-size: .78rem; color: var(--muted); }
.hero-facts { position: relative; z-index: 1; }
.btn-cta { position: relative; overflow: hidden; }
.btn-cta::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); animation: cta-shine .8s 3s ease-out 1 forwards; pointer-events: none; }
@keyframes cta-shine { to { transform: translateX(120%); } }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .9rem; }
@media (max-width: 900px) {
  .ba-before { position: static; width: auto; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 12px; box-shadow: none; }
  .ba-sheet { display: none; }
  .ba-after-tag { top: 40px; }
  .hero-shot-cap { text-align: left; }
  .hero-river { display: none; }
}
@media (max-width: 520px) {
  .hero-label .sep, .hero-label-sub { display: none; }
  .ba-before { grid-template-columns: auto minmax(0, 1fr); }
  .ba-note { grid-column: 1 / -1; }
}

/* こんなお悩み */
.pains { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pain { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pain-who { font-family: var(--f-display); font-weight: 900; font-size: 1.12rem; }
.pain-list { list-style: none; display: grid; gap: 8px; }
.pain-list li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: .95rem; line-height: 1.75; }
.pain-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--hl); }
.pain-fix { margin-top: auto; padding: 14px 16px; border-radius: 12px; background: var(--sky-soft); color: var(--ink); font-size: .93rem; line-height: 1.75; }
.pain-fix b { display: block; margin-bottom: 2px; color: var(--link); font-size: .76rem; letter-spacing: .08em; }

/* できること：テンプレートへの入口 */
.services-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 24px; padding: 14px 18px; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-soft); font-size: .94rem; }

/* 改善事例 */
.cases { list-style: none; display: grid; gap: 20px; }
.case { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; align-items: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.case-shot { margin: 0; }
.case-shot img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.case-tag { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--tint); color: var(--link); font-size: .76rem; font-weight: 700; }
.case h3 { margin-top: 8px; font-weight: 900; font-size: 1.25rem; line-height: 1.5; }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.ba div { padding: 12px 14px; border-radius: 12px; }
.ba-b { background: var(--tint); }
.ba-a { background: var(--sky-soft); box-shadow: inset 3px 0 0 var(--blue); }
.ba dt { font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.ba-a dt { color: var(--link); }
.ba dd { margin: 4px 0 0; font-size: .93rem; line-height: 1.7; color: var(--ink); }
.case-calc { margin-top: 12px; font-size: .9rem; line-height: 1.75; color: var(--ink-soft); }
.case-calc span { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 4px; background: var(--hl-soft); color: var(--hl-ink); font-size: .74rem; font-weight: 700; }
.case-calc b { color: var(--ink); }
.mid-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; padding: 22px 26px; border-radius: 18px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-navy-soft); }
.mid-cta b { display: block; margin-bottom: 2px; color: #fff; font-size: 1.05rem; }
@media (max-width: 900px) {
  .pains { grid-template-columns: minmax(0, 1fr); }
  .case { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
}
@media (max-width: 560px) {
  .ba { grid-template-columns: minmax(0, 1fr); }
  .mid-cta .btn { width: 100%; }
}

/* 料金の目安 */
.price-entries { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price-entries li { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.price-entries .pe-main { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.pe-name { align-self: flex-start; padding: 1px 10px; border-radius: 999px; background: var(--tint); color: var(--link); font-size: .76rem; font-weight: 700; }
.price-entries h3 { font-weight: 900; font-size: 1.1rem; line-height: 1.5; }
.pe-price { font-family: var(--f-mono); font-size: 1.9rem; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.pe-price small { margin-left: 2px; font-family: var(--f-body); font-size: .9rem; color: var(--muted); }
.pe-price.pe-est { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; padding-block: 6px; }
.price-entries li > p:not([class]) { color: var(--ink-soft); font-size: .92rem; line-height: 1.75; }
.price-entries .more { margin-top: auto; padding-top: 6px; }
.menu-lead { margin: -4px 0 16px; color: var(--ink-soft); font-size: .94rem; }
@media (max-width: 900px) { .price-entries { grid-template-columns: minmax(0, 1fr); } }

/* 最後の相談 */
.cta-hints-title { margin-top: 18px !important; font-weight: 700; color: #fff !important; font-size: .95rem; }
.cta-hints { margin-top: 8px; padding-left: 1.4em; display: grid; gap: 4px; color: var(--on-navy-soft); font-size: .95rem; }
.footer-brand .btn-sm { margin-top: 14px; }
/* 料金：ココナラのサービス一覧（スマホでは最初は閉じる） */
.menu-details { margin-top: 56px; }
.menu-details > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; cursor: pointer; margin-bottom: 12px; }
.menu-details > summary::-webkit-details-marker { display: none; }
.menu-details > summary .sub { margin: 0; }
.menu-toggle { display: none; font-size: .88rem; font-weight: 700; color: var(--link); }
@media (max-width: 620px) {
  .section { padding-block: 64px; }
  .menu-details { margin-top: 36px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
  .menu-details > summary { margin-bottom: 0; }
  .menu-details[open] > summary { margin-bottom: 12px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .menu-toggle::after { content: "＋"; }
  .menu-details[open] .menu-toggle::after { content: "－"; }
}
@media (max-width: 900px) { .hero-facts { margin-top: 28px; } }
/* ダークモードでも、相談ボタンの白い文字が読みやすいように */
:root[data-theme="dark"] .btn-accent { background: #D9601C; }
:root[data-theme="dark"] .btn-accent:hover { background: #C4551A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-accent { background: #D9601C; } :root:not([data-theme="light"]) .btn-accent:hover { background: #C4551A; } }

/* =========================================================
   削減時間の計算（Phase2）
   ========================================================= */
.calc-wrap { margin-top: 40px; scroll-margin-top: calc(var(--header-h) + 16px); }
.calc-head h3 { font-weight: 900; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.5; }
.calc-head p { margin-top: 6px; color: var(--ink-soft); }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.calc-form { padding: 24px; display: grid; gap: 16px; align-content: start; }
.calc-presets-label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.calc-presets button { display: grid; gap: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: .86rem; font-weight: 700; line-height: 1.4; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.calc-presets button small { font-weight: 400; font-size: .74rem; color: var(--muted); }
.calc-presets button:hover { border-color: var(--blue); }
.calc-presets button[aria-pressed="true"] { border-color: var(--blue); background: var(--sky-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.calc-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
.calc-field { display: grid; gap: 6px; }
.calc-label { font-size: .84rem; font-weight: 700; color: var(--ink-soft); }
.calc-input { display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .15s; }
.calc-input:focus-within { border-color: var(--blue); }
.calc-input input { width: 100%; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--ink); font-family: var(--f-mono); font-size: 1.35rem; font-variant-numeric: tabular-nums; outline: none; }
.calc-unit { flex: none; font-size: .9rem; font-weight: 700; color: var(--muted); }
.calc-op { padding-bottom: 12px; font-size: 1.3rem; color: var(--muted); }
.calc-more summary { cursor: pointer; font-size: .88rem; font-weight: 700; color: var(--link); }
.calc-more .calc-field { margin-top: 10px; max-width: 280px; }
.calc-privacy { font-size: .78rem; color: var(--muted); }
.calc-result { display: grid; gap: 12px; align-content: start; padding: 26px 24px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-navy-soft); }
.calc-r-label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--sky); }
.calc-r-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.calc-r-per { font-size: .95rem; color: var(--on-navy-soft); }
.calc-r-main b { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.calc-r-sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.calc-r-sub div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.calc-r-sub div#calc-yen-row { grid-column: 1 / -1; }
.calc-r-sub dt { font-size: .76rem; color: var(--on-navy-soft); }
.calc-r-sub dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.calc-r-formula { font-family: var(--f-mono); font-size: .84rem; color: var(--sky); }
.calc-r-note { font-size: .8rem; line-height: 1.7; }
.calc-r-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-r-actions .btn { min-height: 46px; padding: 10px 20px; }
.calc-copied { min-height: 1.2em; font-size: .8rem; color: #fff; }
@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .calc-form, .calc-result { padding: 18px 16px; }
  .calc-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .calc-op { display: none; }
  .calc-r-actions .btn { width: 100%; }
}

/* =========================================================
   テンプレート：ホームの入口と専用ページ（Phase2）
   ========================================================= */
.tpl-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.tpl-cats-label { margin-right: 4px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.tpl-cats a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: .86rem; text-decoration: none; transition: border-color .15s, color .15s; }
.tpl-cats a:hover { border-color: var(--blue); color: var(--link); }
.tpl-new-label { margin-bottom: 12px; font-size: .9rem; font-weight: 700; color: var(--ink); }

.tp-hero { padding-block: 40px 48px; border-bottom: 1px solid var(--line);
  background: radial-gradient(760px 340px at 95% 0%, color-mix(in srgb, var(--sky) 30%, transparent), transparent 65%), linear-gradient(180deg, var(--paper) 0%, var(--tint) 100%); }
.tp-hero h1 { margin-top: 16px; font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.45; }
.tp-hero h1 .ln { display: block; }
@media (min-width: 520px) { .tp-hero h1 .ln { white-space: nowrap; } }
.tp-lead { margin-top: 16px; max-width: 46em; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.9; }
.tp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px 0 0; border-top: 1px solid var(--line); }
.tp-facts div { padding: 14px 18px 0 0; }
.tp-facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.tp-facts dt { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
.tp-facts dd { margin: 4px 0 0; display: flex; align-items: baseline; gap: 4px; color: var(--ink); font-size: .92rem; }
.tp-facts b { font-family: var(--f-mono); font-size: 1.8rem; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .tp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tp-facts div:nth-child(n+3) { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
}

.tp-filters { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 5; margin-inline: -12px; padding: 14px 12px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tp-search { display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .15s; }
.tp-search:focus-within { border-color: var(--blue); }
.tp-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.tp-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1rem; outline: none; }
.tp-count-row { display: flex; align-items: center; gap: 12px; }
.tp-reset, .tp-reset-inline { border: 0; background: none; padding: 0; color: var(--link); font-size: .84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tp-empty { padding: 32px 20px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.tp-empty button { margin-left: 8px; }
#list .tpls { margin-top: 22px; }

.tp-custom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.tp-custom > div:first-child { max-width: 40em; display: grid; gap: 8px; }
.tp-custom h2 { font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.tp-custom p:not(.eyebrow) { color: var(--ink-soft); }
.tp-custom-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
  .tp-filters { position: static; margin-inline: 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
  .tp-custom { padding: 20px; }
  .tp-custom-actions .btn { width: 100%; }
}
.tp-hero + .section { padding-top: 40px; }
.tp-plans-title { margin: 56px 0 16px; font-weight: 900; font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
#list .plans { margin-bottom: 0; }
.tp-br { display: none; }
@media (max-width: 519px) { .tp-br { display: inline; } }

/* =========================================================
   3本柱（業務改善 × Web制作 × 販促物デザイン）への改訂（2026-10-14）
   ・セクションの背景は白／薄い青を交互に（build.mjs が上から順につける）
   ・オレンジは「相談する」ボタンだけ。ほかの強調は青と紺
   ・文字を少し大きく、カードの間を広く、スマホで押しやすく
   ========================================================= */
html { font-size: 106.25%; }
@media (max-width: 620px) { html { font-size: 103.125%; } }
body { font-size: 1rem; }
.ph { display: inline-block; }

/* 背景：白と薄い青を交互に（ダークモードは今までの濃さのまま） */
.section { background: var(--surface); }
.section-tint { background: var(--tint); }
:root[data-theme="dark"] .section { background: var(--paper); }
:root[data-theme="dark"] .section-tint { background: var(--tint); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section { background: var(--paper); }
  :root:not([data-theme="light"]) .section-tint { background: var(--tint); }
}
/* 白い面の上のカードは、うすい影で浮かせる */
.section:not(.section-tint) :is(.pain, .service, .case, .price-entries li, .pp-item, .work-btn, .plan, .tpl-card, .mag, .posts-box, .includes li, .calc) { box-shadow: 0 1px 2px rgba(20, 38, 64, .04), 0 6px 18px rgba(20, 38, 64, .06); }

/* オレンジをやめた部品の色分け */
.badge-std { background: var(--navy); color: #fff; }
.hf-tool, .hf-paid { background: var(--navy); color: #fff; }
.mag-it { border-left-color: var(--navy); }
.new-mark { background: var(--navy); }
:root[data-theme="dark"] :is(.badge-std, .hf-tool, .hf-paid, .new-mark) { background: var(--blue); color: #08121F; }
:root[data-theme="dark"] .mag-it { border-left-color: var(--sky); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.badge-std, .hf-tool, .hf-paid, .new-mark) { background: var(--blue); color: #08121F; }
  :root:not([data-theme="light"]) .mag-it { border-left-color: var(--sky); }
}

/* カードの間を広く */
.pains, .services, .cases { gap: 28px; }
.price-entries { gap: 24px; }
.works { gap: 30px; }
.tpls { gap: 24px; }
.includes { gap: 18px; }
.sec-head { margin-bottom: 44px; }
@media (max-width: 620px) {
  .pains, .services, .cases, .works, .price-entries { gap: 20px; }
  .sec-head { margin-bottom: 30px; }
}

/* 最初の画面：3本柱 */
.hero-pillars { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; }
.hero-pillars a { display: grid; align-content: center; min-height: 52px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; line-height: 1.35; transition: border-color .15s, transform .15s; }
.hero-pillars a:hover { border-color: var(--blue); transform: translateY(-1px); }
.hero-pillars b { font-family: var(--f-display); font-weight: 900; font-size: .98rem; letter-spacing: .03em; }
.hero-pillars small { font-size: .74rem; color: var(--muted); }
.hero-pillars .x { color: var(--blue); font-weight: 700; font-size: 1.1rem; }
.hero-lead { font-size: 1.08rem; }
@media (max-width: 699px) { .br-pc { display: none; } }
@media (max-width: 560px) {
  .hero-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-pillars .x { display: none; }
  .hero-pillars a { height: 100%; padding: 8px 8px; text-align: center; }
  .hero-pillars b { font-size: .86rem; letter-spacing: 0; }
  .hero-pillars small { font-size: .68rem; }
}

/* こんなお悩み（3つの分野） */
.pain-who { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.pain-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--sky-soft); display: grid; place-items: center; }
.pain-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .pain-ico svg { stroke: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pain-ico svg { stroke: var(--sky); } }
.pain .pain-fix { margin-top: auto; }
.pain > .more { align-self: flex-start; }

/* できること（data/services.json から作るカード） */
.services[data-n="2"], .services[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service { gap: 16px; padding: 30px 28px 26px; }
.service-top { display: flex; align-items: center; gap: 14px; }
.service-label { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; letter-spacing: .08em; color: var(--link); }
.service-badge { padding: 1px 8px; border-radius: 6px; background: var(--navy); color: #fff; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; }
.service-lead { color: var(--ink-soft); font-size: .95rem; line-height: 1.8; }
.service-groups { display: grid; gap: 14px; }
.sg-name { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .84rem; font-weight: 700; color: var(--ink); }
.sg-name::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--blue); }
.sg-items { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.sg-items li { padding: 3px 11px; border-radius: 999px; background: var(--sky-soft); color: var(--ink); font-size: .84rem; line-height: 1.6; }
.service .ticks li { font-size: .9rem; }
@media (max-width: 980px) { .services[data-n="2"], .services[data-n="4"] { grid-template-columns: minmax(0, 1fr); } }

/* 改善事例 */
.case-tag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 0; background: none; color: var(--muted); }
.case-pillar { padding: 1px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .74rem; letter-spacing: .04em; }
:root[data-theme="dark"] .case-pillar { background: var(--blue); color: #08121F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .case-pillar { background: var(--blue); color: #08121F; } }
.cases.is-folded > .case:nth-child(n+4) { display: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.more-wrap .btn { min-width: 260px; }

/* 制作実績：8つの種類 */
#works .tabs { margin-bottom: 26px; border-radius: 16px; justify-content: flex-start; }
.tabs button { min-height: 42px; }
.frame-plain { background: var(--tint); }
@media (max-width: 620px) {
  .works { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; padding: 0; }
  #works .tabs { gap: 4px; padding: 6px; }
  .tabs button { min-height: 44px; padding: 8px 12px; }
  .works-hint { display: none !important; }
}

/* 料金：販促物の目安 */
.pe-try { margin-top: 22px; }
.promo-prices { margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 16px); }
.pp-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 4px 0 0; }
.pp-item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pp-item dt { font-weight: 700; font-size: 1rem; color: var(--ink); }
.pp-item dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.pp-price { font-family: var(--f-mono); font-size: 1.6rem; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.pp-price small { margin-left: 2px; font-family: var(--f-body); font-size: .85rem; color: var(--muted); }
.pp-see { display: inline-flex; align-items: center; gap: 4px; padding-block: 6px; font-size: .86rem; font-weight: 700; color: var(--link); text-decoration: none; }
.pp-others { margin-top: 16px; color: var(--ink-soft); font-size: .95rem; }
.pp-note { margin-top: 6px; }
.pp-cta { margin-top: 16px; }
.web-cta .btn + .btn { margin-left: 8px; }
@media (max-width: 760px) { .pp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .pp-item { padding: 14px 14px; } .pp-price { font-size: 1.35rem; } }

/* 相談の帯 */
.cta-note a { color: #fff; font-weight: 700; }
.cta-actions .btn-accent { min-width: 240px; }

/* スマホ：下の相談バーはいつも表示し、押す場所を大きく */
@media (max-width: 720px) {
  .mobile-cta { transform: none; }
  .mobile-cta .btn { min-height: 50px; font-size: 1rem; }
  .btn { min-height: 50px; }
  .site-nav.is-open a { min-height: 48px; display: flex; align-items: center; }
  .faq summary { padding-block: 18px; }
  .footer-nav a { display: inline-block; padding: 9px 0; }
  .tpl-cats a { min-height: 44px; display: inline-flex; align-items: center; }
  .calc-presets button { min-height: 48px; }
  .more { padding-block: 8px; }
  .lead .more, p .more { padding-block: 0; }
}
/* ダークモードのチェックの色 */
:root[data-theme="dark"] .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.3' fill='none' stroke='%238CC7F2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.3' fill='none' stroke='%238CC7F2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
/* 日本語の改行を、ことばの切れ目で（対応するブラウザだけ） */
:is(.lead, .pain-list li, .pain-fix, .service-lead, .ba dd, .case h3, .case-calc, .work-desc, .hero-micro, .pp-others, .faq p, .steps span, .assure span, .includes span) { word-break: auto-phrase; }
.hero h1 .ln-q { text-indent: -.5em; }
.cta-note a { white-space: nowrap; }
@media (max-width: 560px) {
  .pc-only { display: none; }
  .hero-pillars b { font-size: .8rem; }
  .hero-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .hero-cta .btn { padding-inline: 10px; font-size: .96rem; }
}

/* =========================================================
   制作サンプルのページ（samples.html）
   ========================================================= */
.smp-hero { padding-block: 36px 40px; border-bottom: 1px solid var(--line);
  background: radial-gradient(760px 360px at 92% 0%, color-mix(in srgb, var(--sky) 32%, transparent), transparent 65%), linear-gradient(180deg, var(--paper) 0%, var(--tint) 100%); }
.smp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.smp-hero h1 { margin-top: 18px; font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.35; letter-spacing: .04em; }
.smp-hero h1 .ln { display: block; }
.smp-lead { margin-top: 18px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.95; }
.smp-collage { position: relative; height: 380px; }
.smp-collage img { position: absolute; width: 62%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 40px rgba(20, 38, 64, .18); }
.smp-collage .c1 { left: 0; top: 4%; transform: rotate(-4deg); z-index: 2; }
.smp-collage .c2 { right: 0; top: 0; transform: rotate(3deg); z-index: 1; }
.smp-collage .c3 { left: 8%; bottom: 0; transform: rotate(2deg); z-index: 3; }
.smp-collage .c4 { right: 2%; bottom: 6%; transform: rotate(-3deg); z-index: 4; }
.smp-catnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.smp-catnav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.smp-catnav a:hover { border-color: var(--blue); transform: translateY(-2px); }
.smp-catnav b { font-family: var(--f-display); font-weight: 900; font-size: 1.05rem; }
.smp-catnav span { padding: 1px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--link); font-family: var(--f-mono); font-size: .8rem; }
.smp-catnav a::after { content: "↓"; color: var(--link); font-weight: 700; }
.smp-honest { margin-top: 14px; font-size: .84rem; color: var(--muted); }

.smp-filter-bar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 6; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.smp-filter { display: flex; align-items: center; gap: 10px 14px; padding-block: 12px; flex-wrap: wrap; }
.smp-filter-label { font-size: .86rem; font-weight: 700; color: var(--muted); }
.smp-inds { display: flex; flex-wrap: wrap; gap: 6px; }
.smp-inds button { min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: .88rem; cursor: pointer; }
.smp-inds button:hover { border-color: var(--blue); color: var(--link); }
.smp-inds button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
:root[data-theme="dark"] .smp-inds button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #08121F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .smp-inds button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #08121F; } }
.smp-status { margin-left: auto; font-size: .86rem; font-weight: 700; color: var(--link); }

.smp-sec .sec-head h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.smp-count { padding: 2px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-family: var(--f-mono); font-size: .9rem; font-weight: 500; letter-spacing: 0; }
:root[data-theme="dark"] .smp-count { background: var(--blue); color: #08121F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .smp-count { background: var(--blue); color: #08121F; } }
.smp-cat-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 4px; font-size: .9rem; }
.smp-cat-price { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.smp-cat-price b { font-size: .78rem; color: var(--link); }
.smp-cat-note { color: var(--muted); font-size: .84rem; }

.smps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.smp { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 80px); }
.section:not(.section-tint) .smp { box-shadow: 0 1px 2px rgba(20, 38, 64, .04), 0 6px 18px rgba(20, 38, 64, .06); }
.smp:target { outline: 3px solid var(--blue); outline-offset: 2px; }
.smp-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--tint); cursor: zoom-in; overflow: hidden; }
.smp-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s; }
.smp-shot:hover img { transform: scale(1.04); }
.smp-zoom { position: absolute; right: 10px; bottom: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(20, 38, 64, .78); color: #fff; font-size: .74rem; font-weight: 700; }
.smp-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.smp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.smp-tags span { padding: 1px 9px; border-radius: 999px; background: var(--tint); color: var(--ink-soft); font-size: .74rem; line-height: 1.8; }
.smp-tags .smp-kind { background: var(--navy); color: #fff; font-weight: 700; }
.smp-tags .smp-work { background: #2E9A62; }
:root[data-theme="dark"] .smp-tags .smp-kind { background: var(--blue); color: #08121F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .smp-tags .smp-kind { background: var(--blue); color: #08121F; } }
.smp h3 { font-weight: 900; font-size: 1.18rem; line-height: 1.5; }
.smp-intro { color: var(--ink-soft); font-size: .92rem; line-height: 1.8; word-break: auto-phrase; }
.smp-points li { font-size: .86rem; }
.smp-for { padding: 10px 12px; border-radius: 10px; background: var(--sky-soft); color: var(--ink); font-size: .86rem; line-height: 1.7; }
.smp-for b { display: block; font-size: .72rem; color: var(--link); letter-spacing: .08em; }
.smp-price { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 700; color: var(--ink); }
.smp-price span { font-size: .74rem; color: var(--muted); padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-weight: 400; }
.smp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.btn-consult { min-height: 44px; padding: 8px 18px; font-size: .92rem; background: var(--surface); color: var(--orange-ink); border: 2px solid var(--orange); box-shadow: none; }
.btn-consult:hover { background: var(--orange); color: #fff; }
.smp-copy { min-height: 44px; padding: 6px 4px; border: 0; background: none; color: var(--link); font-size: .86rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.smp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.smp-tell { margin-top: 30px; padding: 20px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.smp-tell-title { font-weight: 700; margin-bottom: 10px; }
.smp-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 12px; background: var(--navy-deep); color: #fff; font-size: .9rem; line-height: 1.6; box-shadow: var(--shadow-lift); }
.lb-price { font-weight: 700; color: var(--ink) !important; }
#lb-consult { justify-self: start; margin-top: 6px; }
@media (max-width: 980px) { .smps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .smp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .smp-collage { height: 250px; max-width: 520px; }
  .smp-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) { .smp-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 620px) {
  .smps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .smp-catnav { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .smp-catnav a { min-height: 52px; }
  .smp-filter-bar { position: static; }
  .smp-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
  .smp-filter::-webkit-scrollbar { display: none; }
  .smp-inds { flex-wrap: nowrap; }
  .smp-inds button { white-space: nowrap; min-height: 44px; }
  .smp-filter-label, .smp-status { white-space: nowrap; }
  .smp-collage { height: 210px; }
  .btn-consult { flex: 1; }
}
@media (max-width: 620px) {
  .smp-actions { flex-direction: column; align-items: stretch; gap: 2px; }
  .btn-consult { flex: none; width: 100%; }
  .smp-copy { align-self: center; }
}

/* ---------- ゴルフ場（/golf/） ---------- */
:root { --green: #1F7A4D; --green-deep: #175E3B; --green-soft: #E3F2EA; --turf: #8CC7A1; --turf-2: #5FAF7E; }
:root[data-theme="dark"] { --green: #3FA872; --green-deep: #2E8A5C; --green-soft: #13301F; --turf: #2C5A3E; --turf-2: #3B7552; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --green: #3FA872; --green-deep: #2E8A5C; --green-soft: #13301F; --turf: #2C5A3E; --turf-2: #3B7552; } }

.btn.gc-book { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(31, 122, 77, .25); gap: 8px; }
.btn.gc-book:hover { background: var(--green-deep); }
.btn.gc-book small { background: rgba(0, 0, 0, .18); } /* 白い文字とのコントラスト 7:1（明るい下地だと 3.6:1 で足りなかった） */
.btn-lg { min-height: 56px; padding-inline: 30px; font-size: 1.05rem; }

.gc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.gc-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.gc-jump a:hover { border-color: var(--green); color: var(--green); }
.gc-jump small { min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-family: var(--f-mono); font-size: .78rem; text-align: center; }

.gc-area .sec-head h2 small { margin-left: 10px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.gc-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gc-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s; scroll-margin-top: calc(var(--header-h) + 16px); }
.gc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.gc-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); text-decoration: none; }
.gc-visual { position: relative; display: block; height: 92px; background: linear-gradient(180deg, var(--sky-soft), var(--surface)); }
.gc-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.gc-art .h1 { fill: var(--turf); }
.gc-art .h2 { fill: var(--turf-2); }
.gc-art .pole { stroke: var(--ink-soft); stroke-width: 2; }
.gc-art .flag { fill: #E2493A; }
.gc-art .cup { fill: rgba(0, 0, 0, .25); }
.gc-gojo .gc-art .flag, .gc-yoshino .gc-art .flag { fill: #F2B632; }
.gc-holes { position: absolute; left: 14px; top: 12px; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--green); font-size: .76rem; font-weight: 700; box-shadow: var(--shadow); }
.gc-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 6px; }
.gc-town { font-size: .78rem; font-weight: 700; color: var(--muted); }
.gc-name { font-family: var(--f-display); font-weight: 900; font-size: 1.18rem; line-height: 1.45; }
.gc-link:hover .gc-name { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.gc-former { font-size: .78rem; color: var(--muted); }
.gc-catch { font-size: .9rem; line-height: 1.75; color: var(--ink-soft); }
.gc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.gc-tags span { padding: 1px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .72rem; font-weight: 700; line-height: 1.8; }
.gc-more { margin-top: auto; padding-top: 6px; font-size: .86rem; font-weight: 700; color: var(--link); }
.gc-actions { padding: 10px 18px 18px; }
.gc-actions .btn { width: 100%; min-height: 48px; }

/* 天気 */
.gw-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gw { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.gc-article .gw { margin-top: 8px; }
.gw-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.gw-title { font-weight: 900; font-size: 1.15rem; line-height: 1.5; }
h2.gw-title { font-size: clamp(1.2rem, 2.4vw, 1.4rem); }
.gw-meta { font-size: .78rem; color: var(--muted); }
.gw-msg { padding: 18px; border-radius: 10px; background: var(--tint); color: var(--ink-soft); font-size: .9rem; text-align: center; }
.gw-days { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gw-day { display: grid; gap: 10px; align-content: start; padding: 14px 16px; border-radius: 12px; background: var(--tint); }
.gw-when { font-size: .86rem; color: var(--muted); }
.gw-when b { margin-right: 4px; color: var(--ink); font-size: 1rem; }
.gw-now { display: flex; align-items: center; gap: 12px; }
.gw-now .gw-i { width: 48px; height: 48px; flex: none; }
.gw-text { font-weight: 700; color: var(--ink); line-height: 1.5; }
.gw-temps { font-family: var(--f-mono); font-size: 1.05rem; }
.gw-max { color: #D2412F; font-weight: 700; }
.gw-min { color: var(--link); font-weight: 700; }
.gw-sep { margin: 0 4px; color: var(--muted); }
.gw-t-none { color: var(--muted); }
.gw-pops { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gw-pops li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface); font-size: .82rem; color: var(--ink-soft); }
.gw-pops b { font-family: var(--f-mono); color: var(--ink); }
.gw-wind { display: flex; gap: 8px; font-size: .82rem; line-height: 1.6; color: var(--ink-soft); }
.gw-wind span { flex: none; padding: 0 7px; border-radius: 4px; background: var(--surface); font-weight: 700; color: var(--muted); }
.gw-h { margin: 20px 0 10px; font-size: 1rem; font-weight: 900; }
.gw-week-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--line); }
.gw-week-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gw-week { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); min-width: 600px; }
.gw-w { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; text-align: center; border-left: 1px solid var(--line); }
.gw-w:first-child { border-left: 0; }
.gw-w-date { font-weight: 700; font-size: .9rem; color: var(--ink); }
.gw-w-date small { font-size: .74rem; color: var(--muted); }
.gw-w.is-sat .gw-w-date small { color: var(--link); }
.gw-w.is-sun .gw-w-date small { color: #D2412F; }
.gw-w .gw-i { width: 34px; height: 34px; }
.gw-w-text { min-height: 2.9em; font-size: .72rem; line-height: 1.45; color: var(--ink-soft); }
.gw-w-pop { font-family: var(--f-mono); font-size: .82rem; color: var(--link); }
.gw-w-temps { display: grid; font-family: var(--f-mono); font-size: .84rem; }
.gw-i { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gw-sun { stroke: #E8A317; }
.gw-sun circle { fill: #F7C948; }
.gw-cloud path, .gw-rain path:first-child, .gw-snow path:first-child { fill: #C9D3DE; stroke: #8A99AB; }
.gw-rain .drop { stroke: #3498DB; }
.gw-snow .flake { stroke: #6FA8DC; stroke-width: 3.2; }
.gw-src { margin-top: 14px; font-size: .78rem; line-height: 1.8; color: var(--muted); }
.gw-src a { color: var(--link); }
.gw-note { margin-top: 10px; font-size: .8rem; line-height: 1.7; color: var(--muted); }

/* 記事 */
.gc-article-head .gc-former { margin-top: 6px; font-size: .86rem; color: var(--muted); }
.gc-catch-lg { margin-top: 10px; font-size: 1.05rem; line-height: 1.8; color: var(--ink-soft); }
.gc-article-head .gc-tags { margin-top: 12px; }
.gc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.gc-cta .btn-outline { min-height: 56px; gap: 6px; }
.gc-lead { font-size: 1.08rem !important; color: var(--ink) !important; }
.gc-spec { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.gc-spec div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); border-top: 1px solid var(--line); }
.gc-spec div:first-child { border-top: 0; }
.gc-spec dt { padding: 10px 14px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: .88rem; }
.gc-spec dt, .gc-spec dd { margin: 0; }
.gc-spec dd { padding: 10px 14px; font-size: .94rem; line-height: 1.7; color: var(--ink); }
.gc-article .prose { padding-bottom: 40px; }
.gc-book-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-top: 32px; padding: 22px 24px; border-radius: 16px; background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); }
.gc-book-label { font-size: .78rem; font-weight: 700; color: var(--green); letter-spacing: .1em; }
.gc-book-name { font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; line-height: 1.5; }
.gc-book-sub { font-size: .82rem; color: var(--muted); }
.gc-sources { margin: 24px 0 64px; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--line); font-size: .84rem; color: var(--muted); }
.gc-sources-title { font-weight: 700; color: var(--ink-soft); }
.gc-sources ul { margin: 6px 0; padding-left: 1.2em; }
.gc-sources a { color: var(--link); }

.guide-golf { margin-top: 16px; border-left-color: var(--green); }

@media (max-width: 980px) { .gc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gw-pair { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .gc-list { grid-template-columns: 1fr; }
  .gw { padding: 16px; }
  .gw-days { grid-template-columns: 1fr; }
  .gc-cta .btn { flex: 1 1 100%; }
  .gc-cta .btn-outline { flex: 1 1 40%; min-height: 48px; padding-inline: 12px; font-size: .92rem; }
  .gc-book-box { padding: 18px; }
  .gc-book-box .btn { width: 100%; }
  .gc-spec div { grid-template-columns: 6em minmax(0, 1fr); }
}

/* ---------- 最終監査の修正（見やすさ・押しやすさ） ---------- */
/* 相談ボタン：白い文字が読みやすい濃さのオレンジに（コントラスト 4.5 以上） */
.btn-accent, .site-nav .nav-cta { background: #C8500F; box-shadow: 0 6px 18px rgba(200, 80, 15, .28); }
.btn-accent:hover, .site-nav .nav-cta:hover { background: #A8430C; }
:root[data-theme="dark"] .btn-accent, :root[data-theme="dark"] .site-nav .nav-cta { background: #C8500F; }
:root[data-theme="dark"] .btn-accent:hover, :root[data-theme="dark"] .site-nav .nav-cta:hover { background: #A8430C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-accent, :root:not([data-theme="light"]) .site-nav .nav-cta { background: #C8500F; } :root:not([data-theme="light"]) .btn-accent:hover, :root:not([data-theme="light"]) .site-nav .nav-cta:hover { background: #A8430C; } }
.btn-consult { border-color: #C8500F; }
.btn-consult:hover { background: #C8500F; }
.site-nav .nav-cta { box-shadow: none; }
/* 予約ボタン：ダークでも同じ濃い緑 */
.btn.gc-book, :root[data-theme="dark"] .btn.gc-book { background: #1F7A4D; }
.btn.gc-book:hover, :root[data-theme="dark"] .btn.gc-book:hover { background: #175E3B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.gc-book { background: #1F7A4D; } :root:not([data-theme="light"]) .btn.gc-book:hover { background: #175E3B; } }
/* 天気の最高気温・日曜の色 */
.gw-max, .gw-w.is-sun .gw-w-date small { color: #B83224; }
:root[data-theme="dark"] .gw-max, :root[data-theme="dark"] .gw-w.is-sun .gw-w-date small { color: #FF8A7A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gw-max, :root:not([data-theme="light"]) .gw-w.is-sun .gw-w-date small { color: #FF8A7A; } }
.notfound .code { color: var(--link); }
.browser-bar span { color: #5B6C81; }
/* 「もっと見る」と「制作サンプルのページへ」が並ぶところ：スマホで横にはみ出さない */
.more-wrap { flex-wrap: wrap; gap: 12px; }
@media (max-width: 620px) { .more-wrap .btn { min-width: 0; width: 100%; } }
/* 小さすぎる文字・押しにくいリンク */
.gc-tags span, a.fn-chip, .gc-article-head .fn-chip { font-size: .8rem; }
.gc-article-head a.fn-chip { padding: 4px 12px; }
.gw-w-text { font-size: .8rem; }
.gw-w .gw-w-date small { font-size: .8rem; }
.more { display: inline-flex; align-items: center; min-height: 40px; }
.calc-wrap summary, details.calc-more summary { min-height: 44px; display: flex; align-items: center; }
.crumbs a { display: inline-block; padding-block: 6px; }
.gw-hint { display: none; margin: -4px 0 8px; font-size: .82rem; color: var(--muted); }
@media (max-width: 720px) { .gw-hint { display: block; } }
/* ゴルフ場の記事：スマホの下の予約バー */
@media (max-width: 720px) { .gc-mobile .btn.gc-book { box-shadow: none; } }
/* スマホのファーストビュー：ボタンの文字が途中で折れないように、縦に並べる。柱の名前も折れないように */
@media (max-width: 480px) {
  .hero .hero-cta { display: grid; grid-template-columns: 1fr; }
  .hero .hero-cta .btn { width: 100%; }
  .hero-pillars a { padding: 7px 8px; text-align: center; }
  .hero-pillars b { font-size: .88rem; letter-spacing: 0; word-break: keep-all; }
  .hero-pillars small { font-size: .72rem; }
}
/* 幅の狭いスマホ（360px など）：「メニュー」が折れない・3つの柱の箱の高さをそろえる */
.nav-toggle-label { white-space: nowrap; }
@media (max-width: 560px) { .hero-pillars { align-items: stretch; } .hero-pillars li { display: flex; } .hero-pillars li > a { flex: 1; } }
@media (max-width: 374px) {
  .brand-name { font-size: 1.15rem; }
  .nav-toggle { padding-inline: 10px; }
  .theme-toggle { width: 38px; height: 38px; }
}
/* 「今日の天気↓」で飛んだとき、上のヘッダーに見出しが隠れないように */
#weather { scroll-margin-top: calc(var(--header-h) + 12px); }


/* 最初の画面の右上：無料で読める記事 */
.hero-articles { margin: 0 0 20px; padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px rgba(20, 38, 64, .08); }
.ha-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ha-head b { font-family: var(--f-display); font-weight: 900; font-size: 1rem; color: var(--ink); }
.ha-head a { font-size: .82rem; font-weight: 700; color: var(--link); text-decoration: none; white-space: nowrap; }
.ha-head a:hover { text-decoration: underline; }
.ha-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ha-item { display: grid; gap: 3px; align-content: start; padding: 10px 12px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); border-left: 5px solid var(--blue); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.ha-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ha-it { border-left-color: var(--navy); }
.ha-item .mag-when { font-size: .68rem; }
.ha-item b { font-family: var(--f-display); font-weight: 900; font-size: .96rem; line-height: 1.4; }
.ha-desc { color: var(--ink-soft); font-size: .78rem; line-height: 1.6; }
:root[data-theme="dark"] .ha-it { border-left-color: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ha-it { border-left-color: var(--sky); } }
@media (max-width: 520px) {
  .hero-articles { padding: 12px 12px 14px; }
  .ha-head b { font-size: .95rem; }
  .ha-list { gap: 8px; }
  .ha-item { padding: 9px 9px 10px; border-left-width: 4px; }
  .ha-item .mag-when { font-size: .62rem; letter-spacing: 0; line-height: 1.45; }
  .ha-item b { font-size: .86rem; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
  .ha-desc { word-break: keep-all; overflow-wrap: anywhere; }
  .ha-desc { font-size: .72rem; line-height: 1.55; }
}

.hero-visual { padding-bottom: 0; }
.hero-stage { position: relative; padding-bottom: 64px; }
@media (max-width: 900px) { .hero-visual { padding-bottom: 0; } .hero-stage { padding-bottom: 120px; } }

/* ヒアリングシート */
.page ol.hearing-list { padding-left: 1.6em; display: grid; gap: 14px; }
.page ol.hearing-list strong { color: var(--ink); }
.hearing-sheet { white-space: pre-wrap; background: #F5F8FB; border: 1px solid #D6E0EA; border-radius: 12px; padding: 18px 20px; font-family: inherit; font-size: .95rem; line-height: 1.9; color: var(--ink); user-select: all; }
.hearing-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.pp-hearing { margin-top: 12px; }

/* 法人のお客さまへ */
.corp-plans .pe-price small { white-space: nowrap; }
.corp-roi { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.85; }
.corp-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; margin-top: 32px; align-items: start; }
.corp-terms { display: grid; gap: 0; border-top: 1px solid var(--line); }
.corp-terms div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.corp-terms dt { font-weight: 700; color: var(--ink); }
.corp-terms dd { margin: 0; color: var(--ink-soft); line-height: 1.8; }
.corp-owner { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.corp-owner .sub { margin: 0 0 10px; }
.corp-owner dl div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.corp-owner dt { color: var(--muted); }
.corp-owner dd { margin: 0; color: var(--ink); line-height: 1.7; overflow-wrap: anywhere; }
.corp-cta { margin-top: 18px; }
.corp-cta .btn { width: 100%; justify-content: center; }
.corp-note { margin-top: 10px; font-size: .84rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 860px) {
  .corp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .corp-terms div { grid-template-columns: 1fr; gap: 4px; }
}
/* ヒーローの柱：主のご依頼を強める */
.hero-pillars li.main a { border-color: var(--blue); border-width: 2px; }
/* メニューが9項目あるので、パソコンでは少し詰め、ロゴの文字がつぶれないようにする（1240px以下はメニューボタン） */
@media (min-width: 1241px) {
  .brand { flex: none; }
  .site-nav { gap: 2px; }
  .site-nav a { font-size: .84rem; padding: 8px 6px; }
  .site-nav .nav-cta { padding: 9px 14px; margin-left: 6px; }
}
/* ダークモードでは、紺のボタンが背景に沈むので明るい青にする */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: var(--blue); color: #08121F; }
  :root:not([data-theme="light"]) .btn-primary:hover { background: var(--link); }
}
:root[data-theme="dark"] .btn-primary { background: var(--blue); color: #08121F; }
:root[data-theme="dark"] .btn-primary:hover { background: var(--link); }
.corp-contact-lead { color: var(--ink-soft); line-height: 1.85; font-size: .95rem; }
.hero-trust li.area .nw { display: inline-block; }
/* 見出し：スマホでは「あの人しか／分からない」を、／なくす。の3行にして、大きいまま見せる */
@media (max-width: 520px) { .hero h1 { font-size: min(2.1rem, calc((100vw - 40px) / 9.4)); } .hero h1 .ln-q { white-space: nowrap; } }


/* =========================================================
   2026-10 リニューアル：相談につながる複数ページ構成
   白を基本に、強調はオレンジ（相談ボタン）1色。写真を大きく、余白を広く。
   ========================================================= */

/* ---------- ヘッダー（サービスの開閉メニュー・現在地・スマホの相談ボタン） ---------- */
.header-inner { gap: 12px; }
.header-cta { display: none; order: 2; margin-left: auto; min-height: 40px; padding: 8px 14px; font-size: .9rem; box-shadow: none; white-space: nowrap; }
.site-nav { order: 1; margin-left: auto; }
.header-inner .theme-toggle { order: 3; }
.header-inner .nav-toggle { order: 4; }
.site-nav > a, .nav-group-btn { color: var(--ink-soft); text-decoration: none; font-size: .9rem; padding: 8px 10px; border-radius: 8px; white-space: nowrap; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; line-height: 1.5; }
.site-nav > a:hover, .nav-group-btn:hover { color: var(--ink); background: var(--sky-soft); }
.site-nav > a[aria-current="page"], .nav-group-btn[aria-current="true"] { color: var(--ink); font-weight: 700; background: var(--sky-soft); }
.nav-group-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-group-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-group { position: relative; }
.nav-panel { display: none; }
.nav-panel-list { list-style: none; display: grid; gap: 2px; }
.nav-panel-list a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.nav-panel-list a:hover { background: var(--sky-soft); }
.nav-panel-list a[aria-current="page"] { background: var(--sky-soft); }
.nav-panel-list b { font-weight: 700; font-size: .95rem; }
.nav-panel-list span { color: var(--muted); font-size: .8rem; line-height: 1.5; }
@media (min-width: 1024px) {
  .nav-toggle { display: none !important; }
  .site-nav { position: static; display: flex !important; flex-direction: row; align-items: center; gap: 2px; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .site-nav > a, .nav-group-btn { font-size: .9rem; padding: 8px 10px; }
  .site-nav .nav-cta { margin: 0 0 0 8px; padding: 9px 16px; font-size: .9rem; }
  .nav-group.is-open .nav-panel, .nav-group:focus-within .nav-panel { display: block; }
  .nav-panel { position: absolute; left: 0; top: calc(100% + 10px); width: 340px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); z-index: 60; }
  .nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
}
@media (max-width: 1023.98px) {
  .header-cta { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .site-nav:not(.is-open) { display: none; }
  .site-nav > a, .nav-group-btn { font-size: 1rem; padding: 12px 8px; width: 100%; justify-content: space-between; }
  .nav-group[open] .nav-panel, .nav-group.is-open .nav-panel { display: block; }
  .nav-panel { padding: 0 0 8px 12px; }
  .nav-panel-list a { padding: 10px 12px; }
  .site-nav .nav-cta { margin: 10px 0 0; text-align: center; padding: 12px 16px; }
  .nav-toggle-label { display: none; }
  .nav-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 374px) { .header-cta { padding: 8px 10px; font-size: .84rem; } }

/* ---------- セクション共通の追加 ---------- */
.section-lg { padding-block: 112px; }
.sec-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.sec-head .sec-link { justify-self: start; }
.sec-head-row .more { white-space: nowrap; }
.kicker { font-size: .9rem; font-weight: 700; letter-spacing: .08em; color: var(--link); }
.btn-lg { min-height: 58px; padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.wrap-mid { max-width: 960px; }

/* ---------- 区分のしるし（制作実績／制作サンプル／コンセプト制作） ---------- */
.kind { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; line-height: 1.6; white-space: nowrap; }
.kind-real { background: var(--navy); color: #fff; }
.kind-sample { background: var(--sky-soft); color: var(--link); }
.kind-concept { background: var(--tint); color: var(--ink-soft); border: 1px solid var(--line); }
:root[data-theme="dark"] .kind-real { background: var(--blue); color: #08121F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kind-real { background: var(--blue); color: #08121F; } }
.kind-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--ink-soft); align-items: center; }
.kind-legend li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- トップ：最初の画面 ---------- */
.top-hero { position: relative; padding-block: 64px 72px; background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.top-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.top-hero h1 { font-weight: 900; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.32; letter-spacing: .03em; color: var(--ink); }
.top-hero h1 .ln { display: block; }
.top-hero h1 .hl { color: var(--link); }
.top-lead { margin-top: 22px; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.95; max-width: 32em; }
.top-lead .ph { display: inline-block; }
.top-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.top-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.trust li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }
.trust li b { display: block; color: var(--ink); font-family: var(--f-display); font-weight: 900; font-size: 1rem; }
.trust li svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--sky-soft); fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .trust li svg { stroke: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trust li svg { stroke: var(--sky); } }
@media (max-width: 960px) {
  .top-hero { padding-block: 40px 56px; }
  .top-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .top-hero h1 { font-size: min(2.2rem, calc((100vw - 40px) / 8.6)); }
  .top-cta .btn { width: 100%; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---------- お悩み（カードを押すとサービスへ） ---------- */
.pains-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 22px 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.pain-card .pc-ico { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; background: var(--sky-soft); display: grid; place-items: center; }
.pain-card .pc-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .pain-card .pc-ico svg { stroke: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pain-card .pc-ico svg { stroke: var(--sky); } }
.pain-card b { font-family: var(--f-display); font-weight: 900; font-size: 1.08rem; line-height: 1.5; }
.pain-card .pc-to { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 700; color: var(--link); }
.pain-card .pc-to span { transition: transform .15s; }
.pain-card:hover .pc-to span { transform: translateX(3px); }
@media (max-width: 960px) { .pains-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pains-grid { grid-template-columns: minmax(0, 1fr); } .pain-card { padding: 18px 18px 16px; } }

/* ---------- サービス紹介（4つ） ---------- */
.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.svc-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.svc-card .svc-photo { margin: 0; aspect-ratio: 16 / 8; overflow: hidden; background: var(--tint); }
.svc-card .svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.svc-card:hover .svc-photo img { transform: scale(1.03); }
.svc-body { display: grid; gap: 10px; padding: 22px 24px 24px; align-content: start; }
.svc-body .kicker { font-size: .8rem; }
.svc-body h3 { font-size: 1.3rem; font-weight: 900; line-height: 1.45; }
.svc-body h3 a { color: inherit; text-decoration: none; }
.svc-body h3 a::after { content: ""; position: absolute; inset: 0; }
.svc-card { position: relative; }
.svc-body > p { color: var(--ink-soft); font-size: .95rem; }
.svc-for { display: grid; gap: 4px; padding: 10px 14px; border-radius: 10px; background: var(--tint); font-size: .88rem; color: var(--ink-soft); }
.svc-for b { font-size: .78rem; color: var(--link); letter-spacing: .06em; }
.svc-more { margin-top: 4px; }
.svc-card .btn { position: relative; z-index: 1; justify-self: start; }
@media (max-width: 720px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } .svc-card .svc-photo { aspect-ratio: 16 / 9; } }
/* 5つのサービス（2026-10-19）：2列に並べて余る5つ目は、PCでは中央に半分の幅で置く */
@media (min-width: 721px) { .svc-grid-5 > li:nth-child(odd):last-child { grid-column: 1 / -1; width: calc(50% - 11px); justify-self: center; } }

/* ---------- 大切にしていること ---------- */
.values { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
.values li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.values .v-no { grid-row: 1 / 3; font-family: var(--f-mono); font-size: 1.2rem; color: var(--link); padding-top: 4px; }
.values b { font-family: var(--f-display); font-weight: 900; font-size: 1.12rem; line-height: 1.5; }
.values span:last-child { color: var(--ink-soft); font-size: .95rem; line-height: 1.8; }
@media (max-width: 720px) { .values { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- Before → After ---------- */
.ba-grid { list-style: none; display: grid; gap: 14px; }
.ba-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.ba-box { display: grid; gap: 6px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ba-box .ba-label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; color: var(--muted); }
.ba-box.is-after { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); background: var(--sky-soft); }
.ba-box.is-after .ba-label { color: var(--link); }
.ba-box p { color: var(--ink); font-size: .98rem; line-height: 1.7; }
.ba-box .ba-tag { font-size: .78rem; color: var(--muted); }
.ba-arrow { display: grid; place-items: center; color: var(--blue); }
.ba-arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 680px) {
  .ba-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ba-arrow svg { transform: rotate(90deg); }
}

/* ---------- 制作実績・サンプルのカード ---------- */
.wk-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wk-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.wk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.wk-shot { position: relative; margin: 0; aspect-ratio: 4 / 3; background: #F1F4F8; overflow: hidden; border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.wk-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.wk-shot.is-paper img { object-fit: contain; padding: 14px; }
.wk-card:hover .wk-shot img { transform: scale(1.03); }
.wk-shot .kind { position: absolute; left: 12px; top: 12px; z-index: 1; box-shadow: 0 4px 12px rgba(20, 38, 64, .18); }
.wk-body { display: grid; gap: 6px; padding: 16px 18px 18px; flex: 1; align-content: start; }
.wk-cat { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--hl-ink); }
.wk-title { font-family: var(--f-display); font-weight: 900; font-size: 1.08rem; line-height: 1.5; }
.wk-desc { color: var(--ink-soft); font-size: .9rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wk-go { margin-top: auto; padding-top: 10px; font-size: .86rem; font-weight: 700; color: var(--link); display: inline-flex; align-items: center; gap: 6px; }
.wk-go span { transition: transform .15s; }
.wk-card:hover .wk-go span { transform: translateX(3px); }
@media (max-width: 960px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wk-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.wk-filters { display: grid; gap: 12px; margin-bottom: 26px; }
.wk-filters .count { align-self: center; }

/* ---------- 料金の目安（一覧） ---------- */
.price-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.price-list .pl-name { font-weight: 700; }
.price-list .pl-sub { grid-column: 1; font-size: .8rem; color: var(--muted); }
.price-list .pl-price { grid-row: 1 / 3; font-family: var(--f-mono); font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.price-list .pl-price small { font-family: var(--f-body); font-size: .78rem; color: var(--muted); }
.price-list .pl-price.is-quote { font-family: var(--f-body); font-size: .98rem; font-weight: 700; }
@media (max-width: 960px) { .price-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .price-list { grid-template-columns: minmax(0, 1fr); } }
.price-note { margin-top: 16px; font-size: .88rem; color: var(--muted); line-height: 1.8; }

/* 料金ページ：表 */
.price-block { display: grid; gap: 14px; margin-bottom: 44px; }
.price-block h3 { font-size: 1.25rem; font-weight: 900; }
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.price-table th { font-weight: 700; color: var(--ink); width: 34%; background: var(--tint); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table td.pt-price { font-family: var(--f-mono); font-size: 1.05rem; white-space: nowrap; width: 11em; font-variant-numeric: tabular-nums; }
.price-table td.pt-price small { font-family: var(--f-body); font-size: .78rem; color: var(--muted); }
.price-table td .pt-desc { color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 640px) {
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: auto; }
  .price-table th { border-bottom: 0; padding-bottom: 4px; }
  .price-table td { border-bottom: 0; padding-top: 4px; }
  .price-table tr { border-bottom: 1px solid var(--line); }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table td.pt-price { padding-top: 10px; }
}
.extra-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.extra-list li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.extra-list b { color: var(--ink); }
.extra-list span { color: var(--ink-soft); }
@media (max-width: 760px) { .extra-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .extra-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.estimate { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: est; }
.estimate li { list-style: none; display: grid; gap: 6px; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.estimate li::before { counter-increment: est; content: "STEP " counter(est, decimal-leading-zero); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; color: var(--link); }
.estimate b { font-family: var(--f-display); font-weight: 900; }
.estimate span { color: var(--ink-soft); font-size: .88rem; line-height: 1.7; }
.estimate .est-sum { background: var(--sky-soft); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
@media (max-width: 960px) { .estimate { grid-template-columns: repeat(2, minmax(0, 1fr)); } .estimate .est-sum { grid-column: 1 / -1; } }
@media (max-width: 480px) { .estimate { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 流れ（6つ・7つ） ---------- */
.steps.steps-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.steps.steps-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1100px) { .steps.steps-6, .steps.steps-7 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } .steps.steps-6::before, .steps.steps-7::before { display: none; } }
@media (max-width: 900px) { .steps.steps-6, .steps.steps-7 { grid-template-columns: minmax(0, 1fr); gap: 0; } .steps.steps-6::before, .steps.steps-7::before { display: block; } }
.flow-detail { list-style: none; counter-reset: fd; display: grid; gap: 14px; }
.flow-detail li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 22px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.flow-detail li::before { counter-increment: fd; content: counter(fd, decimal-leading-zero); grid-row: 1 / 4; font-family: var(--f-mono); font-size: 1.9rem; color: var(--blue); line-height: 1; padding-top: 4px; }
.flow-detail b { font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; line-height: 1.5; }
.flow-detail p { color: var(--ink-soft); font-size: .95rem; }
.flow-detail .fd-you { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; background: var(--tint); font-size: .88rem; color: var(--ink-soft); }
.flow-detail .fd-you b { font-family: var(--f-body); font-weight: 700; font-size: .78rem; color: var(--link); letter-spacing: .06em; }
@media (max-width: 560px) { .flow-detail li { grid-template-columns: minmax(0, 1fr); padding: 18px; } .flow-detail li::before { grid-row: auto; font-size: 1.3rem; } }

/* ---------- 紀ノ川DXについて（トップの要約） ---------- */
.about-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.about-sum .sec-head { margin-bottom: 20px; }
.about-sum .ticks { margin-top: 16px; }
.about-sum .btn { margin-top: 24px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 48px rgba(20, 38, 64, .14); }
.about-photo figcaption { margin-top: 8px; font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) { .about-sum { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 下位ページの最初の画面（パンくず・見出し・写真） ---------- */
.page-hero { padding-block: 28px 56px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%); }
.page-hero .crumbs ol { margin-bottom: 22px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.page-hero h1 { font-weight: 900; font-size: clamp(1.75rem, 3.6vw, 2.7rem); line-height: 1.4; letter-spacing: .03em; }
.page-hero h1 .ln { display: block; }
.page-lead { margin-top: 18px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.95; max-width: 36em; }
.page-hero .btn-row { margin-top: 26px; }
.page-hero-photo { margin: 0; }
.page-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 48px rgba(20, 38, 64, .14); }
.page-hero.no-photo .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero.no-photo .page-lead { max-width: 44em; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .page-hero { padding-block: 20px 44px; } .page-hero-photo img { aspect-ratio: 16 / 9; } }

/* サービスの横並びメニュー（サービスページの上） */
.svc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.svc-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); text-decoration: none; font-size: .88rem; font-weight: 700; }
.svc-nav a:hover { border-color: var(--blue); color: var(--link); }
.svc-nav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .svc-nav a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #08121F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .svc-nav a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #08121F; } }

/* ---------- 箇条書きのカード（お悩み・対応内容・活用できる業務） ---------- */
.list-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.list-cards li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .96rem; line-height: 1.7; }
.list-cards li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.3' fill='none' stroke='%231C68A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.list-cards.is-pain li::before { background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v5.2M8 11.6v.4' fill='none' stroke='%23B64A0E' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.list-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list-cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .list-cards, .list-cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .list-cards, .list-cards.cols-2, .list-cards.cols-4 { grid-template-columns: minmax(0, 1fr); } }
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-grid li { display: grid; gap: 8px; align-content: start; padding: 22px 22px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.feature-grid b { font-family: var(--f-display); font-weight: 900; font-size: 1.05rem; line-height: 1.5; }
.feature-grid span { color: var(--ink-soft); font-size: .92rem; line-height: 1.75; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* 写真と文章の横並び */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.split.is-rev > :first-child { order: 2; }
.split figure { margin: 0; }
.split figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.split figcaption { margin-top: 8px; font-size: .78rem; color: var(--muted); }
.split .sec-head { margin-bottom: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 24px; } .split.is-rev > :first-child { order: 0; } }

/* 画面の見本（ブラウザ枠） */
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.shot img { width: 100%; }
.shot figcaption { padding: 10px 14px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }

/* ---------- 制作実績の詳細：ストーリー ---------- */
.work-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.work-head .work-main { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #F1F4F8; box-shadow: var(--shadow); display: grid; place-items: center; }
.work-head .work-main img { width: 100%; height: auto; }
.work-head .work-main.is-paper { padding: 24px; }
.work-head .work-main.is-paper img { max-height: 720px; width: auto; max-width: 100%; box-shadow: 0 10px 30px rgba(20, 38, 64, .18); }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); line-height: 1.7; }
.story { list-style: none; display: grid; gap: 0; position: relative; counter-reset: st; max-width: 860px; }
.story::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(180deg, var(--sky), var(--blue)); }
.story li { position: relative; display: grid; gap: 8px; padding: 0 0 36px 84px; }
.story li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--blue); color: var(--link); font-family: var(--f-mono); font-size: 1.2rem; }
.story li:last-child { padding-bottom: 0; }
.story li:last-child::before { background: var(--navy); border-color: var(--navy); color: #fff; }
.story .st-label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; color: var(--link); padding-top: 4px; }
.story h3 { font-size: 1.25rem; font-weight: 900; line-height: 1.5; }
.story p { color: var(--ink-soft); line-height: 1.9; }
.story ul { list-style: none; display: grid; gap: 6px; }
.story ul li { padding: 0 0 0 22px; position: relative; color: var(--ink-soft); }
.story ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 3px; background: var(--sky); }
.story figure { margin: 8px 0 0; }
.story figure img { border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 900px) { .work-head { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 560px) { .story::before { left: 19px; } .story li { padding-left: 60px; } .story li::before { width: 40px; height: 40px; font-size: 1rem; } }
.work-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 48px; }
.work-nav a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.work-nav a:hover { border-color: var(--blue); }
.work-nav a span { font-size: .78rem; color: var(--muted); }
.work-nav a b { font-weight: 700; }
.work-nav a.is-next { text-align: right; }
@media (max-width: 560px) { .work-nav { grid-template-columns: minmax(0, 1fr); } }
.related { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--sky-soft); color: var(--link); font-weight: 700; font-size: .88rem; text-decoration: none; }
.related a:hover { background: var(--sky); color: var(--navy); }

/* ---------- お役立ち情報 ---------- */
.art-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.art-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.art-shot { aspect-ratio: 1.91 / 1; background: linear-gradient(135deg, var(--navy) 0%, #24538A 100%); display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 900; padding: 16px; text-align: center; line-height: 1.5; position: relative; overflow: hidden; }
.art-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-shot.is-it { background: linear-gradient(135deg, #0E7490 0%, #155E75 100%); }
.art-shot.is-local { background: linear-gradient(135deg, #1F7A4D 0%, #175E3B 100%); }
.art-shot.is-fn { background: linear-gradient(135deg, #B45309 0%, #92400E 100%); }
.art-body { display: grid; gap: 6px; padding: 14px 16px 16px; flex: 1; align-content: start; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .76rem; color: var(--muted); }
.art-meta time { font-family: var(--f-mono); }
.art-title { font-family: var(--f-display); font-weight: 900; font-size: 1.02rem; line-height: 1.5; }
.art-desc { color: var(--ink-soft); font-size: .86rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-go { margin-top: auto; padding-top: 8px; font-size: .84rem; font-weight: 700; color: var(--link); }
@media (max-width: 960px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .art-grid { grid-template-columns: minmax(0, 1fr); } }
.art-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 560px; }
.art-search input { min-height: 48px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.art-search input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--sky-soft); }
.art-empty { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; }

/* ---------- お問い合わせフォーム ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.form-card h2 { font-size: 1.2rem; font-weight: 900; margin-bottom: 6px; }
.form-card .form-intro { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field > label, .field > .field-label { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req { font-size: .72rem; font-weight: 700; color: #fff; background: #C8500F; padding: 1px 8px; border-radius: 4px; letter-spacing: .04em; }
.opt { font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--tint); padding: 1px 8px; border-radius: 4px; letter-spacing: .04em; }
.field .hint { font-size: .84rem; color: var(--muted); line-height: 1.6; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; line-height: 1.6; }
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--sky-soft); background: var(--surface); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: #B83224; }
.field .err { display: none; font-size: .86rem; font-weight: 700; color: #B83224; }
.field.is-error .err { display: block; }
:root[data-theme="dark"] .field .err { color: #FF8A7A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #FF8A7A; } }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choices label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: .95rem; }
.choices label:has(input:checked) { border-color: var(--blue); background: var(--sky-soft); font-weight: 700; }
.choices input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.choices.is-row { display: flex; flex-wrap: wrap; }
.consent { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--tint); font-size: .92rem; line-height: 1.7; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: 10px; margin-top: 8px; }
.form-actions .btn { width: 100%; }
.form-status { font-size: .9rem; color: var(--ink-soft); min-height: 1.5em; }
.confirm-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.confirm-table th, .confirm-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .95rem; }
.confirm-table th { width: 10em; color: var(--muted); font-weight: 700; }
.confirm-table td { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 520px) { .confirm-table th, .confirm-table td { display: block; width: auto; } .confirm-table th { border-bottom: 0; padding-bottom: 2px; } }
.contact-side { display: grid; gap: 16px; }
.side-card { display: grid; gap: 10px; padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.side-card h2 { font-size: 1.05rem; font-weight: 900; }
.side-card p, .side-card li { color: var(--ink-soft); font-size: .92rem; line-height: 1.75; }
.side-card .ticks li { font-size: .92rem; }
.side-card .btn { justify-self: start; }
.fallback { display: grid; gap: 12px; padding: 20px 22px; border-radius: 14px; background: var(--orange-soft); border: 1px solid color-mix(in srgb, var(--orange) 40%, var(--line)); }
.fallback b { font-weight: 900; }
.fallback p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .form-card { padding: 22px 18px; } .choices { grid-template-columns: minmax(0, 1fr); } }
.thanks { text-align: center; display: grid; gap: 16px; justify-items: center; padding-block: 72px 48px; }
.thanks .thanks-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--sky-soft); display: grid; place-items: center; }
.thanks .thanks-mark svg { width: 36px; height: 36px; fill: none; stroke: var(--link); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.thanks h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; }
.thanks p { color: var(--ink-soft); max-width: 36em; }

/* ---------- 相談の帯（ページごとの言い方） ---------- */
.cta-band .cta-actions .btn-ghost-light { color: #fff; }
.cta-band .cta-sub { font-size: .9rem; }
.cta-band .cta-sub a { color: #fff; }

/* ---------- 写真の帯 ---------- */
.photo-band { margin: 0; position: relative; }
.photo-band img { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; }
.photo-band figcaption { position: absolute; right: 12px; bottom: 10px; font-size: .72rem; color: #fff; background: rgba(15, 36, 67, .55); padding: 2px 10px; border-radius: 999px; }

/* ---------- 読みやすさ・押しやすさの最終調整 ---------- */
.faq details p a { color: var(--link); }
.sec-head .lead a { color: var(--link); }
.page-hero .kind-legend { margin-top: 18px; }
img.photo { background: var(--tint); }
.photo-credit { font-size: .74rem; color: var(--muted); }
@media (max-width: 720px) { .section-lg { padding-block: 72px; } }

/* 余白などの小さな部品（インラインの style は CSP で使わないため） */
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 22px; }
.mt-lg { margin-top: 28px; }
.mb-sm { margin-bottom: 14px !important; }
.ml-sm { margin-left: 6px; }
.cols-1 { grid-template-columns: minmax(0, 1fr) !important; }
.mags.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .mags.cols-2 { grid-template-columns: minmax(0, 1fr); } }
.align-start { align-items: start !important; }
.center-row { justify-content: center; }
.flow-mini { gap: 8px; }
.flow-mini li { padding: 12px 14px; grid-template-columns: 40px minmax(0, 1fr); }
.flow-mini li::before { font-size: 1.2rem; }
.flow-mini b { font-size: 1rem; }
.flow-mini p { font-size: .9rem; }

/* ---------- 画面で確かめて直したところ（2026-10-16） ---------- */
/* トップの見出し：語の途中で折れないように、1行ずつ */
@media (min-width: 961px) { .top-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); } }
.top-hero h1 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
@media (min-width: 961px) { .top-hero h1 .ln { white-space: nowrap; } }
@media (max-width: 960px) { .top-hero h1 { font-size: min(2.4rem, calc((100vw - 40px) / 10.6)); } .top-hero h1 .ln { white-space: nowrap; } }
@media (max-width: 520px) { .top-hero h1 { font-size: min(2.1rem, calc((100vw - 40px) / 10.6)); } }
/* 料金の一覧：名前が左、金額が右 */
.price-list .pl-name { grid-column: 1; grid-row: 1; }
.price-list .pl-sub { grid-column: 1; grid-row: 2; }
.price-list .pl-price { grid-column: 2; grid-row: 1 / 3; }
/* フッター：4列 */
.footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.footer-head { font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: 4px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-nav[aria-label="その他"] { grid-column: 1 / -1; } }
/* スマホのヘッダー：ロゴ・相談ボタン・メニューの3つだけ（明るさの切りかえはメニューの中へ） */
@media (max-width: 1023.98px) {
  .header-inner .theme-toggle { display: none; }
  .brand-name { font-size: 1.15rem; }
}
@media (max-width: 374px) { .brand-name { display: none; } }
/* 流れ（6つ）：文字が詰まらないように、1300px以下は3列 */
@media (max-width: 1300px) and (min-width: 901px) { .steps.steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } .steps.steps-6::before { display: none; } }
/* 区分の説明：スマホでは短く */
@media (max-width: 600px) { .kind-legend { gap: 6px 12px; font-size: .78rem; } .kind-legend li { align-items: flex-start; } }
.consent { flex-wrap: nowrap !important; }
.page-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
/* スマホのメニュー：サービスの中の項目は、名前と説明を縦に */
.site-nav.is-open .nav-panel-list a { display: grid; align-items: start; white-space: normal; min-height: 0; }
.site-nav .nav-panel-list a { white-space: normal; }
/* 写真のクレジット（CC BY-SA や提供元の表記） */
.photo-credit { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted); font-weight: 400; line-height: 1.5; }
.page-hero-photo figcaption, .about-photo figcaption, .split figure figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); }
/* 地域の風景の帯 */
.photo-strip { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0 44px; }
.photo-strip figure { margin: 0; display: grid; gap: 8px; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.photo-strip figcaption { display: grid; gap: 2px; font-size: .86rem; color: var(--ink-soft); line-height: 1.6; }
.photo-strip figcaption b { font-family: var(--f-display); font-weight: 900; color: var(--ink); font-size: .95rem; }
@media (max-width: 900px) { .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* トップの写真：説明の札は小さく左下に、クレジットは写真の右下に重ねる */
/* トップの写真のクレジットは、写真の下に小さく（重ねない） */
/* 下位ページの見出し：画面の幅に合わせて、語の途中で折れないように */
@media (max-width: 600px) { .page-hero h1 { font-size: min(1.75rem, calc((100vw - 40px) / 11.5)); } .page-hero h1 .ln { white-space: nowrap; } }
@media (min-width: 601px) { .page-hero h1 .ln { white-space: nowrap; } }
@media (max-width: 600px) { .page-hero h1 { font-size: min(1.75rem, calc((100vw - 40px) / 13.6)); } }
/* スマホの相談バー：長い言い方でも切れないように折り返す */
@media (max-width: 720px) { .mobile-cta .btn { white-space: normal; font-size: .9rem; line-height: 1.3; padding: 8px 10px; text-align: center; } }
/* 320px 幅の端末：「すべて見る」リンクを折り返せるようにする */
@media (max-width: 400px) { .sec-head-row .more { white-space: normal; text-align: left; } .sec-head-row .more span { flex: none; } }
/* 手順リストの文章：長い語句でも枠の中で折り返す（320px 幅の端末向け） */
.steps li { grid-template-columns: minmax(0, 1fr); }
.steps span, .flow-mini p, .pain-list li, .faq p { overflow-wrap: anywhere; }
/* スマホの相談バー：左のボタンの文言が長いページ（ホームページ制作など）でも1行で収まる幅に */
@media (max-width: 720px) { .mobile-cta { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .mobile-cta .btn { font-size: .88rem; padding: 8px 8px; } }

/* 2026-10 指示書対応：ファーストビューの補足文・ボタン */
.hero-note { margin-top: 12px; font-size: .9rem; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 480px) {
  .page-hero .btn-row .btn-outline { flex: 1 1 calc(50% - 6px); width: auto; min-width: 0; padding-inline: 10px; }
}
html.nav-locked, html.nav-locked body { overflow: hidden; }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; color: var(--ink-soft); } .file-list li::before { content: "📎 "; }
/* トップの見出し（指示書 v1.0 の文言。12文字前後×3行） */
@media (max-width: 960px) { .top-hero h1 { font-size: min(2.3rem, calc((100vw - 40px) / 12.4)); } }
@media (min-width: 961px) { .top-hero h1 { font-size: clamp(1.9rem, 3.1vw, 2.8rem); } }

/* 制作事例・サンプルの絞り込み（区分・サービス・業種・課題） */
.wk-filters { display: grid; gap: 12px; }
.wk-frow { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px 12px; align-items: start; }
.wk-flabel { font-weight: 700; font-size: .92rem; padding-top: 9px; color: var(--ink-soft); }
.wk-more { border-top: 1px dashed var(--line); padding-top: 10px; }
.wk-more > summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 44px; display: flex; align-items: center; }
.wk-more[open] > summary { margin-bottom: 8px; }
.wk-more .wk-frow + .wk-frow { margin-top: 10px; }
@media (max-width: 600px) { .wk-frow { grid-template-columns: minmax(0, 1fr); gap: 6px; } .wk-flabel { padding-top: 0; } }
.chips button { min-height: 40px; }
/* 詳細ページの「工夫したところ」：番号の丸ではなくチェックの印にする */
.story .ticks li { display: block; padding: 0 0 0 26px; }
.story .ticks li::before { counter-increment: none; content: ""; left: 0; top: .35em; width: 17px; height: 17px; border-radius: 5px; border: 0; font-size: 0;
  background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.3' fill='none' stroke='%231C68A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.story .ticks li:last-child::before { background-color: var(--sky-soft); border: 0; }

/* ご依頼の流れ：各段階の「紀ノ川DXが行うこと／お客様にお願いすること」 */
.flow-detail .fd-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.flow-detail .fd-we, .flow-detail .fd-pair .fd-you { display: block; border-radius: 12px; padding: 12px 14px; font-size: .95rem; line-height: 1.75; }
.flow-detail .fd-we { background: var(--surface); border: 1px solid var(--line); }
.flow-detail .fd-pair .fd-you { background: var(--sky-soft); border: 1px solid transparent; margin: 0; }
.flow-detail .fd-pair b { display: block; font-size: .85rem; color: var(--link); margin-bottom: 4px; }
.flow-detail .fd-pair p { margin: 0; color: var(--ink); }
@media (max-width: 720px) { .flow-detail .fd-pair { grid-template-columns: minmax(0, 1fr); } }

/* よくある質問：分類の絞り込み */
.faq-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.faq-filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); text-decoration: none; font-size: .92rem; }
.faq-filter a[aria-current="true"] { background: var(--sky-soft); border-color: var(--blue); color: var(--link); font-weight: 700; }
.faq-filter a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq-foot { margin-bottom: 64px; }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 12px; }
/* 見出しの行：狭い画面では文節で折り返す（横にはみ出さない） */
@media (max-width: 600px) {
  .page-hero h1 { font-size: min(1.75rem, calc((100vw - 40px) / 12)); }
  .page-hero h1 .ln { white-space: normal; word-break: auto-phrase; }
}
@media (max-width: 720px) { .cta-band h2 .ln { white-space: normal; word-break: auto-phrase; } }
/* 見出しの行は、入りきらないときだけ文節で折り返す（どの画面幅でも、写真や画面の外にはみ出さない） */
.top-hero h1 .ln, .page-hero h1 .ln, .cta-band h2 .ln { white-space: normal !important; word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: balance; }
.top-hero h1, .page-hero h1, .cta-band h2 { min-width: 0; }
@media (max-width: 960px) { .top-hero h1 { font-size: min(2.2rem, calc((100vw - 40px) / 11)); } }
/* 指示書 16章：本文は16px以上、補足は15px前後、押せる部分は高さ44px前後（2026-10） */
.wk-desc, .pt-desc, .ticks li, .story p, .ba-box p, .feature-grid li > span, .list-cards li, .spec dd, .flow-detail p, .values li > span:not(.v-no), .extra-list span, .corp-terms dd, .faq details p, .svc-body > p { font-size: max(.95rem, 16px); line-height: 1.75; }
.note, .hint, .cta-sub, .hero-note, .top-note, .pl-sub, .kind-legend span { font-size: max(.88rem, 15px); }
.wk-cat, .wk-go { font-size: max(.8rem, 13.5px); }
.crumbs a { padding-block: 10px; }
.svc-nav a, .faq-filter a { min-height: 44px; display: inline-flex; align-items: center; }
.choices label { min-height: 44px; display: flex; align-items: center; }
.basin-hint { display: none; }
@media (max-width: 700px) { .basin-hint { display: block; margin-top: 4px; } .basin-scroll { border: 1px solid var(--line); border-radius: 12px; } }
.field input[type="url"] { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; line-height: 1.6; }
.field input[type="file"] { width: 100%; min-height: 52px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.field input[type="file"]::file-selector-button { min-height: 40px; margin-right: 12px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.field.is-error input[type="url"], .field.is-error input[type="file"] { border-color: #C2410C; }
@media (max-width: 1300px) and (min-width: 1101px) { .steps.steps-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } .steps.steps-7::before { display: none; } }
h2, h3 { word-break: auto-phrase; text-wrap: balance; }
@media (max-width: 960px) { .top-hero h1 { font-size: min(2.2rem, calc((100vw - 40px) / 12.8)); } }
.flow-mini li::before { grid-row: 1 / 3 !important; } .flow-mini li > b, .flow-mini li > p { grid-column: 2; }
@media (max-width: 560px) { .flow-detail:not(.flow-mini) li > * { grid-column: 1; } }
/* 指示書 16章の画像比率：ファーストビュー 3:2、サービス 16:9、実績 4:3（.wk-shot は 4:3 のまま） */
.page-hero-photo img { aspect-ratio: 3 / 2; }
.svc-card .svc-photo { aspect-ratio: 16 / 9; }
h2, h3 { overflow-wrap: anywhere; }

/* トップの写真と相談カード（2026-10-17 最終調整）
   橋本の風景写真の下側にカードを重ねる。カードは「サービスを知ってもらう」補助の役割なので、左の見出し・相談ボタンより目立たせすぎない */
.top-photo { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.top-photo picture { grid-area: 1 / 1; }
.top-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px rgba(20, 38, 64, .16); }
/* 写真の雰囲気は残し、カードが重なる下側だけ少し落ち着かせる */
.top-photo::before { content: ""; grid-area: 1 / 1; z-index: 1; pointer-events: none; border-radius: 24px; background: linear-gradient(180deg, rgba(15, 30, 51, 0) 40%, rgba(15, 30, 51, .34) 100%), linear-gradient(135deg, rgba(28, 104, 168, .16), rgba(28, 104, 168, 0) 55%); }
.top-photo .photo-credit.is-over { grid-row: 3; grid-column: 1; display: block; position: static; margin: 10px 4px 0 0; padding: 0; background: none; color: var(--muted); font-size: .72rem; text-align: right; }
.hv-card { grid-row: 2; grid-column: 1; position: relative; z-index: 2; container-type: inline-size; margin: -64px 20px 0; display: grid; gap: 12px; padding: 22px 24px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
:root[data-theme="dark"] .hv-card { border-color: #34507A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hv-card { border-color: #34507A; } }
/* 1. 信頼バッジ：「相談無料」だけアクセント色、ほかは控えめに */
.hv-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.hv-badges li { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; line-height: 1.3; white-space: nowrap; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); }
.hv-badges .is-key { color: #fff; background: #B4410C; border-color: #B4410C; font-weight: 700; }
/* 2. タイトル：「まずは、今のやり方を／見せてください」で改行（狭い画面では文節で自然に折り返す） */
.hv-title { margin: 2px 0 0; font-family: var(--f-body); font-weight: 700; font-size: clamp(1.2rem, 1.5vw, 1.4rem); line-height: 1.5; letter-spacing: .02em; color: var(--ink); }
.hv-title span { display: block; word-break: auto-phrase; }
/* 3. 説明文 */
.hv-body { margin: 0; font-size: .95rem; line-height: 1.75; color: var(--ink-soft); word-break: auto-phrase; text-wrap: pretty; }
/* 4. 4つのサービス：名前とアイコンを同じ位置にそろえ、押せる範囲を広く */
.hv-svcs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; padding: 0; }
.hv-svcs li { display: grid; }
.hv-svcs li:nth-child(5) { grid-column: 1 / -1; } /* 5つ目（人事・労務サポート）は1行で */
.hv-svcs a { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px 8px 8px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .92rem; line-height: 1.35; text-decoration: none; }
.hv-ico { width: 32px; height: 32px; padding: 6px; border-radius: 8px; background: var(--sky-soft); fill: none; stroke: var(--link); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hv-name { min-width: 0; }
.hv-name .ph { display: inline-block; }
.hv-svcs a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 12px; }
@media (hover: hover) and (pointer: fine) {
  .hv-svcs a:hover { border-color: var(--blue); background: var(--surface); }
}
/* カードの幅に合わせて詰める（タブレット幅など） */
@container (max-width: 380px) {
  .hv-svcs a { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 8px 8px 8px 6px; font-size: .86rem; }
  .hv-ico { width: 28px; height: 28px; padding: 5px; }
}
@container (max-width: 270px) { .hv-svcs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .hv-card { margin: -80px 16px 0; } }
@media (max-width: 520px) {
  .hv-card { margin: -56px 10px 0; padding: 18px 16px 16px; gap: 10px; border-radius: 18px; }
  .hv-title { font-size: 1.2rem; }
  .hv-svcs a { min-height: 48px; }
  .top-photo .photo-credit.is-over { text-align: left; }
}
/* 動き：カードは表示時に一度だけ短くフェードイン。常に動き続ける表現はなし。サービスはマウスを乗せたときだけ少し浮く */
@media (prefers-reduced-motion: no-preference) {
  .hv-card { animation: kdx-card .6s .35s cubic-bezier(.2, .7, .2, 1) both; }
  .hv-svcs a { transition: transform .18s, border-color .18s, background-color .18s, box-shadow .18s; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .hv-svcs a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20, 38, 64, .1); }
}
@keyframes kdx-card { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* トップの「安心して相談いただける理由」：見出しの高さをそろえる（上ぞろえ・文節で折り返す） */
.trust li { align-items: start; }
.trust li svg { margin-top: 2px; }
.trust li > span { word-break: auto-phrase; }
.trust li b { margin-bottom: 2px; }
@media (max-width: 1180px) and (min-width: 521px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; } }

/* トップの改善例：4つのケースカード（2026-10-17） */
.ba-cases { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ba-case { display: grid; grid-template-rows: auto 1fr auto 1fr auto; gap: 14px; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(20, 38, 64, .07); }
.ba-case-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; }
.ba-case-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-soft); }
.ba-case-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--link); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ba-case-no { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; color: var(--link); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ba-case-no span { font-family: var(--f-body); letter-spacing: 0; font-size: .8rem; font-weight: 700; color: var(--ink-soft); background: var(--tint); padding: 1px 8px; border-radius: 6px; }
.ba-case-head h3 { font-family: var(--f-display); font-weight: 900; font-size: 1.22rem; line-height: 1.5; margin-top: 2px; }
.ba-case-col { border-radius: 14px; padding: 16px 18px; }
.ba-case-col.is-before { background: var(--tint); }
.ba-case-col.is-after { background: var(--sky-soft); box-shadow: inset 4px 0 0 var(--blue); }
.ba-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--f-mono); font-size: .76rem; font-weight: 700; letter-spacing: .14em; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--muted); border: 1px solid var(--line); }
.ba-pill span { font-family: var(--f-body); letter-spacing: 0; font-weight: 700; color: var(--ink-soft); }
.is-after .ba-pill { background: var(--navy); border-color: var(--navy); color: #fff; }
.is-after .ba-pill span { color: #fff; }
.ba-list { list-style: none; display: grid; gap: 8px; }
.ba-list li { position: relative; padding-left: 28px; font-size: max(.95rem, 16px); line-height: 1.65; color: var(--ink); }
.ba-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; }
.is-before .ba-list li { color: var(--ink-soft); }
.is-before .ba-list li::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%238A97A8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; border: 1px solid var(--line); }
.is-after .ba-list li { font-weight: 700; }
.is-after .ba-list li::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.3' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ba-case-do { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 4px 4px 4px 0; }
.ba-do-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); box-shadow: 0 6px 14px rgba(233, 102, 30, .3); }
.ba-do-arrow svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba-do-label { font-size: .82rem; font-weight: 700; color: #B4410C; margin-bottom: 2px; }
.ba-case-do p:not(.ba-do-label) { font-size: max(.92rem, 15px); line-height: 1.7; color: var(--ink); }
.ba-case-link { justify-self: end; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; color: var(--link); text-decoration: none; }
.ba-case-link:hover span { transform: translateX(3px); }
.ba-case-link span { transition: transform .15s; }
@media (max-width: 900px) { .ba-cases { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .ba-case { padding: 20px 18px; } .ba-case-head h3 { font-size: 1.1rem; } }

/* サービスページの改善例も、同じ見せ方にそろえる（ラベル・印・矢印） */
.ba-box { padding: 20px 22px; }
.ba-box .ba-label { justify-self: start; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.ba-box.is-after { box-shadow: inset 4px 0 0 var(--blue); border-color: transparent; }
.ba-box.is-after .ba-label { background: var(--navy); border-color: var(--navy); color: #fff; }
.ba-box.is-after p { font-weight: 700; }
.ba-box:not(.is-after) { background: var(--tint); border-color: transparent; }
.ba-box:not(.is-after) p { color: var(--ink-soft); }
.ba-arrow { position: relative; }
.ba-arrow::before { content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); box-shadow: 0 6px 14px rgba(233, 102, 30, .3); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ba-arrow svg { position: relative; color: #fff; width: 22px; height: 22px; }
:root[data-theme="dark"] .ba-do-label { color: #FFA36B; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ba-do-label { color: #FFA36B; } }
@media (min-width: 961px) { .page-hero h1 { font-size: clamp(1.75rem, 2.45vw, 2.05rem); } }

/* ===== 20観点の改善（2026-10-17） ===== */

/* ファーストビューの背景：紀ノ川の流れを表す細い線（ブランドの表現） */
.top-hero { isolation: isolate; }
.top-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 92 C240 52 420 122 720 86 S1200 40 1440 78' fill='none' stroke='%2364A9DD' stroke-width='2' opacity='.6'/%3E%3Cpath d='M0 112 C260 76 460 138 760 104 S1220 64 1440 98' fill='none' stroke='%231C68A8' stroke-width='1.5' opacity='.35'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }

/* 相談する4つの理由 */
.reasons { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.reason { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 18px; row-gap: 8px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(20, 38, 64, .06); }
.reason-ico { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky-soft), var(--surface)); border: 1px solid var(--line); }
.reason-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--link); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reason .v-no { position: absolute; right: 24px; top: 20px; font-family: var(--f-mono); font-size: 1.6rem; color: var(--link); opacity: .75; } /* 装飾の番号でも、文字のコントラスト 3:1 以上（白地 3.5:1・ダーク 5.7:1） */
.reason b { font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; line-height: 1.5; padding-right: 40px; word-break: auto-phrase; }
.reason > span:last-child { color: var(--ink-soft); font-size: max(.95rem, 16px); line-height: 1.75; }
@media (max-width: 760px) { .reasons { grid-template-columns: minmax(0, 1fr); } .reason { padding: 22px 20px; grid-template-columns: 48px minmax(0, 1fr); } .reason-ico { width: 48px; height: 48px; } }

/* 数字で見る紀ノ川DX（確認できる数字だけ） */
.facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 4px 0 26px; }
.facts li { display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.facts b { font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; line-height: 1.1; color: var(--navy); }
:root[data-theme="dark"] .facts b { color: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .facts b { color: var(--sky); } }
.facts b small { font-size: .95rem; margin-left: 3px; color: var(--ink-soft); }
.facts span { font-size: .88rem; line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* トップの制作物：最初の1点（このホームページ）を横長で大きく見せる */
@media (min-width: 900px) {
  .wk-bento > li:first-child { grid-column: 1 / -1; }
  .wk-bento > li:first-child .wk-card { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch; }
  .wk-bento > li:first-child .wk-shot { aspect-ratio: 16 / 10; border-bottom: 0; border-right: 1px solid var(--line); }
  .wk-bento > li:first-child .wk-body { align-self: center; padding: 36px 40px; }
  .wk-bento > li:first-child .wk-title { font-size: 1.5rem; }
  .wk-bento > li:first-child .wk-desc { -webkit-line-clamp: unset; line-clamp: unset; display: block; overflow: visible; font-size: max(1rem, 16px); }
}

/* なぜ、紀ノ川DXなのか（ストーリー） */
.story-steps { list-style: none; display: grid; gap: 0; margin-top: 8px; position: relative; }
.story-steps li { position: relative; display: grid; gap: 4px; padding: 0 0 22px 30px; }
.story-steps li::before { content: ""; position: absolute; left: 6px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue); }
.story-steps li::after { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: linear-gradient(var(--blue), var(--sky)); opacity: .4; }
.story-steps li:last-child::after { display: none; }
.story-steps li:last-child::before { background: var(--orange); border-color: var(--orange); }
.ss-when { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; color: var(--link); }
.story-steps b { font-family: var(--f-display); font-weight: 900; font-size: 1.08rem; line-height: 1.55; }
.story-steps li > span:last-child { color: var(--ink-soft); font-size: max(.95rem, 16px); line-height: 1.75; }

/* 控えめな動き：ファーストビューのフェードイン・カードの浮き上がり（動きを減らす設定では出さない） */
@media (prefers-reduced-motion: no-preference) {
  /* 見出し・リード文・写真は最初からそのまま表示する（透明から出すと、いちばん大きい表示（LCP）の計測が遅れ、読める時間も遅れるため。監査 B-11） */
  /* 相談ボタンは最初から見せる（透明から出すと、動きが止まった環境でボタンが見えない。2026-11-01）。補足の文だけ、やさしく出す */
  .top-copy > .top-note { animation: kdx-up .7s .1s cubic-bezier(.2, .7, .2, 1) both; }
  .wk-card, .svc-card, .pain-card, .ba-case, .reason, .facts li { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
  .wk-card:hover, .svc-card:hover, .pain-card:hover, .ba-case:hover, .reason:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(20, 38, 64, .12); }
}
@keyframes kdx-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 相談内容の書き出しの例 */
.quick-start { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.qs-label { flex-basis: 100%; margin: 0; font-size: .88rem; color: var(--ink-soft); }
.qs-chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.qs-chip:hover { border-color: var(--blue); }
.qs-chip[aria-pressed="true"] { background: var(--sky-soft); border-color: var(--blue); color: var(--link); }
.qs-chip:focus-visible { outline: 3px solid var(--focus, #1C68A8); outline-offset: 2px; }
/* フッターのひとこと */
.footer-tagline { font-family: var(--f-display); font-weight: 900; font-size: 1.1rem; line-height: 1.6; margin: 12px 0 6px; color: var(--ink); }
/* 見た目の調整（20観点の確認後） */
.reason b .ph { display: inline-block; }
.reason > span:last-child, .story-steps li > span:last-child, .facts span { text-wrap: pretty; }
@media (max-width: 760px) { .top-hero::after { height: 64px; opacity: .45; } }
@media (max-width: 760px) {
  .reason { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto; row-gap: 10px; }
  .reason-ico { grid-row: 1; grid-column: 1; }
  .reason .v-no { position: static; grid-row: 1; grid-column: 2; justify-self: end; align-self: center; }
  .reason b { grid-column: 1 / -1; padding-right: 0; }
  .reason > span:last-child { grid-column: 1 / -1; }
}

/* 行を決めた見出し：見出しの幅に合わせて文字を小さくし、決めた行のまま収める（クラスはビルドでつける） */
h1[class*="fit-"], h2[class*="fit-"] { container-type: inline-size; }
h1[class*="fit-"] .ln { font-size: max(min(1em, 1.3rem), min(1em, var(--fit, 1em))); }
h2[class*="fit-"] .ln { font-size: max(min(1em, 1.2rem), min(1em, var(--fit, 1em))); }
.fit-6 { --fit: calc(100cqi / 6); } .fit-7 { --fit: calc(100cqi / 7); } .fit-8 { --fit: calc(100cqi / 8); } .fit-9 { --fit: calc(100cqi / 9); } .fit-10 { --fit: calc(100cqi / 10); } .fit-11 { --fit: calc(100cqi / 11); } .fit-12 { --fit: calc(100cqi / 12); } .fit-13 { --fit: calc(100cqi / 13); } .fit-14 { --fit: calc(100cqi / 14); } .fit-15 { --fit: calc(100cqi / 15); } .fit-16 { --fit: calc(100cqi / 16); } .fit-17 { --fit: calc(100cqi / 17); } .fit-18 { --fit: calc(100cqi / 18); } .fit-19 { --fit: calc(100cqi / 19); } .fit-20 { --fit: calc(100cqi / 20); } .fit-21 { --fit: calc(100cqi / 21); } .fit-22 { --fit: calc(100cqi / 22); } .fit-23 { --fit: calc(100cqi / 23); } .fit-24 { --fit: calc(100cqi / 24); } .fit-25 { --fit: calc(100cqi / 25); } .fit-26 { --fit: calc(100cqi / 26); } .fit-27 { --fit: calc(100cqi / 27); } .fit-28 { --fit: calc(100cqi / 28); } .fit-29 { --fit: calc(100cqi / 29); } .fit-30 { --fit: calc(100cqi / 30); } .fit-31 { --fit: calc(100cqi / 31); } .fit-32 { --fit: calc(100cqi / 32); } .fit-33 { --fit: calc(100cqi / 33); } .fit-34 { --fit: calc(100cqi / 34); } .fit-35 { --fit: calc(100cqi / 35); } .fit-36 { --fit: calc(100cqi / 36); } .fit-37 { --fit: calc(100cqi / 37); } .fit-38 { --fit: calc(100cqi / 38); } .fit-39 { --fit: calc(100cqi / 39); } .fit-40 { --fit: calc(100cqi / 40); }

/* ===== 監査後の追加（2026-10-17）：募集カード・短い案内・返信で届くもの・料金の入口・3段階 ===== */
.steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps.steps-3 { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.recruit-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 24px; padding: 26px 28px; border-radius: 20px; background: var(--surface); border: 2px solid #B4410C; }
.recruit-tag { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 4px 12px; border-radius: 999px; background: #B4410C; color: #fff; font-size: .82rem; font-weight: 700; line-height: 1.4; }
.recruit-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink); word-break: auto-phrase; overflow-wrap: anywhere; }
.recruit-body { color: var(--ink-soft); font-size: .95rem; line-height: 1.75; max-width: 760px; }
.recruit-card .btn { width: max-content; max-width: 100%; }
:root[data-theme="dark"] .recruit-card { border-color: #E07A4A; }
:root[data-theme="dark"] .recruit-tag { background: #C8500F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .recruit-card { border-color: #E07A4A; } :root:not([data-theme="light"]) .recruit-tag { background: #C8500F; } }
@media (max-width: 520px) { .recruit-card { padding: 20px 18px; } .recruit-card .btn { width: 100%; } }
.section-tight { padding-block: 0 56px; }
.more-links { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
@media (max-width: 1100px) { .more-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.more-links a { display: grid; gap: 4px; min-height: 84px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .18s, transform .18s; }
.more-links a:hover { border-color: var(--blue); }
.more-links b { font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.5; }
.more-links span { color: var(--ink-soft); font-size: .88rem; line-height: 1.6; }
@media (max-width: 760px) { .more-links { grid-template-columns: minmax(0, 1fr); } }
.reply-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 26px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.reply-kicker { font-size: .82rem; font-weight: 700; color: var(--link); letter-spacing: .04em; }
.reply-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--ink); word-break: auto-phrase; overflow-wrap: anywhere; }
.reply-note { color: var(--ink-soft); font-size: .88rem; line-height: 1.7; }
@media (max-width: 520px) { .reply-card { padding: 20px 18px; } }
.price-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.price-entry { display: grid; gap: 8px; padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .18s; }
.price-entry:hover { border-color: var(--blue); }
.price-entry b { font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; line-height: 1.5; }
.price-entry span { color: var(--ink-soft); font-size: .92rem; line-height: 1.7; }
.price-entry em { font-style: normal; font-weight: 700; color: var(--link); font-size: .9rem; }
@media (max-width: 760px) { .price-entries { grid-template-columns: minmax(0, 1fr); } }

/* ===== 地域の案内（/local/ 流域ガイド）と、地域ページ末尾の運営者の案内（監査 B-01） ===== */
.local-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.local-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.local-jump a:hover { border-color: var(--blue); color: var(--link); }
.town-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; }
.town-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 22px 22px 18px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 14px; }
.town-pref { width: max-content; padding: 2px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--link); font-size: .74rem; font-weight: 700; }
.town-name { font-family: var(--f-display); font-weight: 900; font-size: 1.4rem; line-height: 1.3; }
.town-text { color: var(--ink-soft); font-size: .92rem; line-height: 1.75; }
.town-links { display: grid; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.town-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 36px; padding: 4px 0; color: var(--ink); text-decoration: none; font-size: .92rem; }
.town-links a b { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--link); font-weight: 700; white-space: nowrap; }
.town-links a span { flex: 1; min-width: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; text-align: right; }
.town-links a:hover b { text-decoration: underline; }
.town-links .ext { stroke: currentColor; fill: none; stroke-width: 1.6; }
.golf-mini { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.golf-mini a { display: grid; gap: 3px; min-height: 84px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .18s; }
.golf-mini a:hover { border-color: var(--blue); }
.golf-mini b { font-family: var(--f-body); font-weight: 700; font-size: 1.02rem; line-height: 1.45; }
.golf-mini .gm-town { color: var(--link); font-size: .78rem; font-weight: 700; }
.golf-mini .gm-spec { color: var(--muted); font-size: .82rem; line-height: 1.6; }
.local-biz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.local-biz-item { display: grid; gap: 6px; padding: 20px 22px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.local-biz-item b { font-family: var(--f-body); font-weight: 700; font-size: 1.02rem; line-height: 1.5; }
.local-biz-item span { color: var(--ink-soft); font-size: .92rem; line-height: 1.75; }
.local-owner-sec { padding-block: 40px 56px; }
.local-owner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 22px; padding: 24px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--blue); }
.local-owner .brand-mark { border-radius: 10px; }
.local-owner-body { display: grid; gap: 6px; }
.local-owner-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--link); }
.local-owner-title { font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; line-height: 1.55; color: var(--ink); word-break: auto-phrase; }
.local-owner-text { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
.local-owner .btn { white-space: nowrap; }
@media (max-width: 960px) { .town-grid, .golf-mini, .local-biz { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .local-owner { grid-template-columns: auto minmax(0, 1fr); }
  .local-owner .btn { grid-column: 1 / -1; width: 100%; white-space: normal; }
}
@media (max-width: 600px) { .town-grid, .golf-mini, .local-biz { grid-template-columns: minmax(0, 1fr); } .local-owner { padding: 20px 18px; } }
/* メニューが7項目になった（地域の案内を追加）ので、1024〜1199px では少し詰めて1行に収める */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .brand-name { font-size: 1.05rem; }
  .site-nav { gap: 0; }
  .site-nav > a, .nav-group-btn { font-size: .8rem; padding: 8px 6px; }
  .site-nav .nav-cta { margin-left: 4px; padding: 8px 12px; font-size: .8rem; }
}

/* ===== ふるさと納税：季節の返礼品カレンダー（監査 B-03） ===== */
.cal-meta { margin: -20px 0 18px; color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
.cal-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.cal-jump a { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 36px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 700; text-decoration: none; }
.cal-jump a:hover { border-color: var(--blue); color: var(--link); }
.cal-jump a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .cal-jump a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #08121F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-jump a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #08121F; } }
.cal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cal-month { display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 10px; padding: 18px 18px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.cal-month h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; }
.cal-m { font-family: var(--f-display); font-weight: 900; font-size: 1.35rem; line-height: 1.2; color: var(--link); }
.cal-season { color: var(--muted); font-size: .8rem; font-weight: 700; }
.cal-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; align-content: start; }
.cal-list-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cal-item { display: grid; gap: 4px; }
.cal-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name town" "price price" "ship ship" "detail detail"; column-gap: 8px; row-gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .18s; position: relative; }
.cal-link:hover { border-color: var(--blue); }
.cal-link b { grid-area: name; font-weight: 700; font-size: .95rem; line-height: 1.5; }
.cal-town { grid-area: town; align-self: start; padding: 1px 8px; border-radius: 999px; background: var(--hl-soft); color: var(--hl-ink); font-size: .72rem; font-weight: 700; line-height: 1.8; white-space: nowrap; }
.cal-price { grid-area: price; font-family: var(--f-body); font-weight: 700; font-size: .95rem; color: var(--link); }
.cal-ship { grid-area: ship; color: var(--ink-soft); font-size: .8rem; line-height: 1.6; }
.cal-detail { grid-area: detail; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.cal-link .i-ext { position: absolute; right: 10px; bottom: 10px; width: 12px; height: 12px; opacity: .6; }
.cal-empty { color: var(--muted); font-size: .9rem; }
.cal-always { margin-top: 16px; }
.cal-when { display: inline-block; width: max-content; padding: 1px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--link); font-size: .78rem; font-weight: 700; }
.cal-shops { margin-top: 22px; color: var(--ink-soft); font-size: .88rem; line-height: 2; }
.cal-shops a { color: var(--link); font-weight: 700; text-decoration: none; }
.cal-shops a:hover { text-decoration: underline; }
@media (max-width: 960px) { .cal-grid, .cal-list-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cal-grid, .cal-list-wide { grid-template-columns: minmax(0, 1fr); } .cal-month { padding: 16px 14px 14px; } }

/* ===== ゴルフ場の比較表・イベント（監査 B-02） ===== */
.gc-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.gc-compare { width: 100%; min-width: 900px; border-collapse: collapse; font-size: .86rem; }
.gc-compare th, .gc-compare td { padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; line-height: 1.6; }
.gc-compare thead th { position: sticky; top: 0; background: var(--sky-soft); color: var(--ink); font-size: .8rem; font-weight: 700; white-space: nowrap; z-index: 1; }
.gc-compare tbody th { font-weight: 700; min-width: 150px; }
.gc-compare tbody th a { color: var(--link); text-decoration: none; }
.gc-compare tbody th a:hover { text-decoration: underline; }
.gc-compare tbody th small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.gc-compare tbody tr:last-child th, .gc-compare tbody tr:last-child td { border-bottom: 0; }
.gc-compare td[data-col="town"], .gc-compare td[data-col="range"] { white-space: nowrap; }
.gc-compare td[data-col="holes"] { min-width: 110px; }
.gc-compare td[data-col="level"] { min-width: 160px; }
.gc-compare td[data-col="access"] { min-width: 200px; color: var(--ink-soft); }
.gc-compare td[data-col="fee"] { min-width: 120px; }
.gc-fee { display: block; font-weight: 700; color: var(--ink); }
.gc-fee-link { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 700; text-decoration: none; white-space: nowrap; }
.gc-fee-link:hover { text-decoration: underline; }
.gc-we { min-width: 120px; font-size: .82rem; }
.gc-we-wait { color: var(--muted); font-size: .8rem; }
.gc-we-days { display: grid; gap: 4px; }
.gc-we-day { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.gc-we-day .gw-i { width: 22px; height: 22px; flex: none; }
.gc-we-day small { color: var(--muted); }
.gc-we-day.is-sat small { color: var(--link); } .gc-we-day.is-sun small { color: var(--hl-ink); }
.gc-compare-meta { margin-top: 12px; color: var(--ink-soft); font-size: .88rem; }
.event-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.event-item { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "time title" "time town" "time text"; column-gap: 16px; row-gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.event-item time { grid-area: time; font-family: var(--f-mono); font-size: .82rem; color: var(--link); font-weight: 700; min-width: 120px; }
.event-item b { grid-area: title; font-family: var(--f-body); font-weight: 700; font-size: 1.02rem; line-height: 1.5; }
.event-item b a { color: var(--link); text-decoration: none; }
.event-item b a:hover { text-decoration: underline; }
.event-town { grid-area: town; color: var(--muted); font-size: .82rem; }
.event-item p { grid-area: text; color: var(--ink-soft); font-size: .92rem; line-height: 1.7; margin: 0; }
@media (max-width: 600px) { .event-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "time" "title" "town" "text"; } }

/* 404：おもなページへのリンク（監査 B-19） */
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; max-width: 640px; margin: 28px auto 0; }
.notfound-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .9rem; text-decoration: none; }
.notfound-links a:hover { border-color: var(--blue); color: var(--link); }

/* ゴルフ場の比較表：スマホ・タブレットでは1コース1枚のカードにする（横スクロールなし） */
@media (max-width: 1023.98px) {
  .gc-compare tbody { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
  .gc-compare-wrap { overflow: visible; border: 0; background: none; border-radius: 0; }
  .gc-compare { min-width: 0; }
  .gc-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gc-compare, .gc-compare tbody, .gc-compare tr, .gc-compare th, .gc-compare td { display: block; }
  .gc-compare tbody { display: grid; gap: 12px; }
  .gc-compare tr { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .gc-compare tbody th { min-width: 0; padding: 0 0 8px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .gc-compare td { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px; min-width: 0 !important; padding: 7px 0; border-bottom: 1px dashed var(--line); white-space: normal !important; }
  .gc-compare td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 700; padding-top: 2px; }
  .gc-compare tr td:last-child { border-bottom: 0; padding-bottom: 0; }
  .gc-compare td[data-col="town"] br { display: none; }
  .gc-compare tbody tr:last-child th { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .gc-compare { min-width: 0; font-size: .8rem; }
  .gc-compare th, .gc-compare td { padding: 10px 8px; }
  .gc-compare tbody th { min-width: 130px; }
  .gc-compare td[data-col="level"] { min-width: 130px; }
  .gc-compare td[data-col="access"] { min-width: 160px; }
  .gc-compare td[data-col="holes"], .gc-compare td[data-col="fee"], .gc-compare .gc-we { min-width: 96px; }
}

/* ===== サービスの4項目と比較表（監査 B-04/05/12） ===== */
.svc-facts { display: grid; gap: 0; margin: 20px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.svc-facts > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.svc-facts > div:last-child { border-bottom: 0; }
.svc-facts dt { color: var(--muted); font-size: .82rem; font-weight: 700; padding-top: 2px; }
.svc-facts dd { margin: 0; color: var(--ink); font-size: .92rem; line-height: 1.65; }
.svc-facts .sf-price dd { font-weight: 700; }
.svc-facts dd small { display: block; color: var(--ink-soft); font-size: .82rem; font-weight: 400; }
.svc-facts-note { margin-top: 8px; color: var(--ink-soft); font-size: .84rem; line-height: 1.6; }
.svc-facts + .svc-facts-note + .btn-row, .svc-facts + .btn-row { margin-top: 20px; }
.svc-compare-wrap { margin-top: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.svc-compare { width: 100%; border-collapse: collapse; font-size: .9rem; }
.svc-compare th, .svc-compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.65; }
.svc-compare thead th { background: var(--sky-soft); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.svc-compare tbody th { min-width: 140px; font-weight: 700; }
.svc-compare tbody th a { color: var(--link); text-decoration: none; }
.svc-compare tbody th a:hover { text-decoration: underline; }
.svc-compare tbody tr:last-child th, .svc-compare tbody tr:last-child td { border-bottom: 0; }
.svc-compare td:nth-child(3) { min-width: 180px; font-weight: 700; }
@media (max-width: 900px) {
  .svc-compare-wrap { border: 0; background: none; overflow: visible; border-radius: 0; }
  .svc-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .svc-compare, .svc-compare tbody, .svc-compare tr, .svc-compare th, .svc-compare td { display: block; }
  .svc-compare tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
  .svc-compare tr { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .svc-compare tbody th { min-width: 0; padding: 0 0 8px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .svc-compare td { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 8px; min-width: 0 !important; padding: 7px 0; border-bottom: 1px dashed var(--line); }
  .svc-compare td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 700; padding-top: 2px; }
  .svc-compare tr td:last-child { border-bottom: 0; padding-bottom: 0; }
  .svc-compare tbody tr:last-child th { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) { .svc-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.svc-compare td small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .8rem; font-weight: 400; }

/* ===== 制作事例一覧：区分のタブ（監査 B-07） ===== */
.wk-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--line); }
.wk-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; margin-bottom: -2px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink-soft); font-size: .95rem; font-weight: 700; cursor: pointer; }
.wk-tabs button:hover { color: var(--ink); }
.wk-tabs button[aria-pressed="true"] { color: var(--link); border-bottom-color: var(--blue); }
.wk-tabs small { display: inline-grid; place-items: center; min-width: 1.8em; padding: 0 6px; border-radius: 999px; background: var(--sky-soft); color: var(--link); font-size: .75rem; line-height: 1.6; }
.wk-tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 6px; }
@media (max-width: 520px) { .wk-tabs button { padding: 8px 10px; font-size: .88rem; } }
.page-hero-compact { padding-block: 20px 28px; }
.page-hero-compact .crumbs ol { margin-bottom: 14px; }
.page-hero-compact h1 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.page-hero-compact .page-lead { margin-top: 12px; }
.wk-list-sec { padding-top: 28px; }
.wk-list-sec .wk-filters { gap: 10px; margin-bottom: 20px; }

/* ===== kintone 簡易診断（/services/kintone/check/、監査 C-03） ===== */
:root { --chart-fill: #1C68A8; --chart-track: #E1EFFA; }
:root[data-theme="dark"] { --chart-fill: #3F95D6; --chart-track: #15294A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chart-fill: #3F95D6; --chart-track: #15294A; } }
.check-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.check-meta li { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-size: .86rem; font-weight: 700; }
.check-sec { padding-top: 32px; }
.check-wrap { max-width: 980px; }
.check { max-width: 760px; margin: 0 auto; padding: 26px 30px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 8px; } /* ヘッダーの分は html の scroll-padding-top であける */
.check:not(.is-js) .check-q + .check-q { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); }
.check-head { display: grid; gap: 8px; margin-bottom: 18px; }
.check-count { font-family: var(--f-mono); font-size: .84rem; font-weight: 700; color: var(--link); }
.check-bar { height: 6px; border-radius: 999px; background: var(--chart-track); overflow: hidden; }
.check-bar span { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--chart-fill); transition: width .3s ease; }
.check-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.check-q:focus { outline: none; }
.check-q:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 8px; }
.check-q legend { display: grid; gap: 6px; padding: 0; }
.check-no { width: max-content; padding: 2px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--link); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.check-text { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.18rem, 2.4vw, 1.45rem); line-height: 1.55; color: var(--ink); word-break: auto-phrase; overflow-wrap: anywhere; }
.check-hint { margin-top: 6px; color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
.check-opts { display: grid; gap: 10px; margin-top: 18px; }
.check-opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
@media (hover: hover) { .check-opt:hover { border-color: var(--blue); } }
.check-opt input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--link); }
.check-opt span { display: grid; gap: 2px; }
.check-opt b { font-weight: 700; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.check-opt small { color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.check-opt:has(input:checked) { border-color: var(--blue); background: var(--sky-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.check-opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.check-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.check-nav #check-next { margin-left: auto; min-width: 9em; }
.check-nav .btn { white-space: nowrap; }
.check-error { min-height: 1.5em; margin-top: 10px; color: var(--orange-ink); font-size: .9rem; font-weight: 700; text-align: right; }
.check-noscript { max-width: 760px; margin: 16px auto 0; }
.check-result { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px 32px; scroll-margin-top: 8px; }
.cr-title:focus { outline: none; } /* 結果を出したとき、見出しに移す（読み上げが見出しから始まる） */
.cr-main, .cr-side > * { padding: 26px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.cr-main { border-top: 6px solid var(--chart-fill); }
.cr-side { display: grid; gap: 18px; align-content: start; }
.cr-kicker { font-size: .84rem; font-weight: 700; letter-spacing: .06em; color: var(--link); }
.cr-title { margin-top: 6px; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.5; word-break: auto-phrase; }
.cr-lead { margin-top: 12px; color: var(--ink-soft); line-height: 1.85; }
.cr-types { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; counter-reset: crt; }
.cr-types li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 700; }
.cr-types li.is-current { border-color: var(--chart-fill); background: var(--chart-fill); color: #fff; }
:root[data-theme="dark"] .cr-types li.is-current { color: #08121F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cr-types li.is-current { color: #08121F; } }
.cr-h { display: block; margin: 24px 0 10px; font-family: var(--f-body); font-size: 1rem; font-weight: 700; color: var(--ink); }
.cr-side .cr-h { margin-top: 0; }
.cr-reasons { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.cr-reasons li { position: relative; padding-left: 22px; color: var(--ink); line-height: 1.75; }
.cr-reasons li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--chart-fill); }
.cr-steps { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; counter-reset: crs; }
.cr-steps li { counter-increment: crs; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
.cr-steps li::before { content: counter(crs); grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sky-soft); color: var(--link); font-family: var(--f-mono); font-weight: 700; }
.cr-steps b { font-weight: 700; line-height: 1.6; }
.cr-steps span { color: var(--ink-soft); font-size: .92rem; line-height: 1.75; }
.cr-chart { margin: 0; }
.cr-bars { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.cr-bars li { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) 4.5em; grid-template-areas: "label track level" ". src src"; align-items: center; column-gap: 10px; row-gap: 2px; }
.crb-label { grid-area: label; font-size: .88rem; font-weight: 700; color: var(--ink); }
.crb-track { grid-area: track; height: 14px; border-radius: 0 4px 4px 0; background: var(--chart-track); overflow: hidden; }
.crb-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--chart-fill); }
.crb-fill.is-zero { width: 0 !important; }
.crb-level { grid-area: level; font-size: .84rem; font-weight: 700; color: var(--ink-soft); text-align: right; }
.crb-src { grid-area: src; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.cr-chart-note { margin-top: 12px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.cr-cost-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.cr-cost-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.cr-cost-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cr-cost-list b { font-weight: 400; font-size: .9rem; color: var(--ink); word-break: auto-phrase; }
.cr-cost-list span { flex: none; font-family: var(--f-display); font-weight: 900; color: var(--ink); white-space: nowrap; }
.cr-license { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .84rem; line-height: 1.75; }
.cr-license a { color: var(--link); }
.cr-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cr-status { flex-basis: 100%; min-height: 1.4em; color: var(--link); font-size: .9rem; font-weight: 700; }
.cr-cta-note { grid-column: 1 / -1; margin-top: -10px; color: var(--ink-soft); font-size: .86rem; line-height: 1.7; }
.cr-answers { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.cr-answers summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 32px; display: flex; align-items: center; }
.cr-answers dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 12px 0 0; }
.cr-answers dt { color: var(--muted); font-size: .86rem; }
.cr-answers dd { margin: 0; font-size: .92rem; }
.check-result > .note { grid-column: 1 / -1; }
@media (max-width: 900px) { .check-result { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) {
  .cr-bars li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label level" "track track" "src src"; }
  .cr-cost-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
}
.cr-recount { margin-top: 14px; padding: 10px 14px; border-left: 4px solid var(--chart-fill); border-radius: 0 10px 10px 0; background: var(--sky-soft); color: var(--ink); font-size: .9rem; line-height: 1.75; }
/* お問い合わせ：診断の結果を相談内容に入れたときのお知らせ */
.form-prefill { margin-top: 12px; padding: 10px 14px; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; background: var(--sky-soft); color: var(--ink); font-size: .9rem; line-height: 1.75; }
.form-prefill a { color: var(--link); font-weight: 700; }
@media (max-width: 600px) {
  .check { padding: 20px 16px 18px; border-radius: 16px; }
  .cr-main, .cr-side > * { padding: 20px 18px; }
  .check-opt { min-height: 54px; padding: 10px 14px; }
  .check-nav .btn, .cr-actions .btn { flex: 1 1 auto; }
  .cr-answers dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cr-answers dd { margin-bottom: 8px; }
}

/* 簡易診断への入口（kintone・サービス一覧） */
.check-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: max-content; max-width: 100%; margin-top: 16px; padding: 10px 16px; border-radius: 12px; border: 1px dashed var(--blue); background: var(--surface); color: var(--ink); text-decoration: none; }
.check-link b { font-weight: 700; }
.check-link span { color: var(--link); font-weight: 700; font-size: .92rem; }
.check-link:hover { border-style: solid; }
.page-hero .check-link + .svc-nav { margin-top: 18px; }
.steps + .check-link { margin-top: 26px; }

/* ---------- 表示速度（監査 B-11）：最初の画面の外にある区画は、画面に近づくまで描画を後回しにする ---------- */
/* 文字の多いページで、最初の描画とフォントの切りかえのたびに全体を組み直していたのを、見えている所だけにする */
@supports (content-visibility: auto) {
  main > section:not(:first-child), .site-footer { content-visibility: auto; contain-intrinsic-size: auto 760px; }
  /* 1区画に数十件ある所（制作事例のカード・ふるさと納税の月ごとの枠）は、1件ずつ後回しにする（影や浮き上がりは要素そのものに付いているので切れない） */
  .wk-card { content-visibility: auto; contain-intrinsic-size: auto 420px; }
  .cal-month { content-visibility: auto; contain-intrinsic-size: auto 360px; }
  .cl-group { content-visibility: auto; contain-intrinsic-size: auto 600px; }
  /* ページ内の位置（/#pricing など）を開くときは、位置がずれないように全部を描画する */
  main:has(:target) > section, main:has(:target) .wk-card, main:has(:target) .cal-month, main:has(:target) .cl-group { content-visibility: visible; }
  /* 読み込みが落ち着いたら app.js が1つずつ描画しておく（スクロールバー・位置の計算を正確にするため） */
  main > section.is-drawn, .site-footer.is-drawn, .wk-card.is-drawn, .cal-month.is-drawn, .cl-group.is-drawn { content-visibility: visible; }
}
@media print { main > section, .site-footer, .wk-card, .cal-month, .cl-group { content-visibility: visible; } }

/* ---------- AI活用スタートパック（監査 B-06）・月額サポートのページ（監査 C-05） ---------- */
.pack-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 20px 36px; padding: 28px 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--blue); box-shadow: var(--shadow); }
.pack-price { display: grid; align-content: start; gap: 6px; }
.pack-name { font-weight: 700; color: var(--ink); line-height: 1.6; }
.pack-price b { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.pack-price b small { margin-left: 4px; font-family: var(--f-body); font-size: .95rem; font-weight: 700; }
.pack-sub { color: var(--ink-soft); font-size: .86rem; line-height: 1.6; }
.pack-list { gap: 12px; margin: 0; padding: 0; }
.pack-list li { display: grid; gap: 2px; }
.pack-list b { color: var(--ink); font-weight: 700; }
.pack-list span { font-size: .92rem; }
.pack-card > .btn-row, .pack-card > .note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .pack-card { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; } }
.support-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.support-rules > div { padding: 24px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.support-rules h3 { margin-bottom: 12px; font-size: 1.08rem; }
@media (max-width: 760px) { .support-rules { grid-template-columns: minmax(0, 1fr); } .support-rules > div { padding: 20px 18px; } }
/* 自社運用事例の数字（監査 B-08） */
.wk-figs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wk-fig { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--ink); font-size: .82rem; font-weight: 700; line-height: 1.6; }
.wk-fig-label { color: var(--link); font-weight: 700; }
.spec dd.wk-figs { margin-top: 0; }

/* ---------- kintone 導入前チェックリスト（監査 B-17） ---------- */
.cl-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cl-count { margin: 0; font-family: var(--f-mono); font-size: 1.1rem; font-weight: 700; color: var(--link); white-space: nowrap; }
.cl-count #cl-done { font-size: 1.6rem; }
.cl-groups { display: grid; gap: 18px; }
.cl-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 28px; margin: 0; padding: 22px 26px; min-width: 0; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.cl-group legend { float: left; align-self: start; width: 100%; margin: 0; padding: 6px 0 0; }
.cl-gtitle { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 1.1rem; line-height: 1.45; color: var(--ink); word-break: auto-phrase; text-wrap: balance; }
.cl-term { margin-top: 6px; font-size: .9rem; line-height: 1.7; color: var(--ink-soft); }
.cl-pdf-note { margin-top: 10px; font-size: .88rem; line-height: 1.7; color: var(--ink-soft); }
.cl-items { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; min-width: 0; }
.cl-items > li { padding: 4px 0 10px; border-bottom: 1px dashed var(--line); }
.cl-items > li:last-child { border-bottom: 0; padding-bottom: 0; }
.cl-item { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr); align-items: start; gap: 0 10px; padding: 8px 8px; border-radius: 10px; cursor: pointer; }
.cl-item input { width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--link); }
.cl-body { display: contents; }
.cl-n { display: inline-grid; place-items: center; height: 26px; margin-top: 2px; border-radius: 7px; background: var(--tint); color: var(--muted); font-family: var(--f-mono); font-size: .8rem; font-weight: 700; }
.cl-text { font-weight: 700; line-height: 1.7; color: var(--ink); word-break: auto-phrase; }
.cl-ex { font-weight: 400; font-size: .9em; color: var(--muted); }
.cl-hint { margin: 2px 0 0; padding-left: 80px; font-size: .9rem; line-height: 1.8; color: var(--ink-soft); }
@media (hover: hover) { .cl-item:hover { background: var(--paper); } }
.cl-item:has(input:checked) .cl-text { color: var(--ink-soft); }
.cl-item:has(input:checked) .cl-n { background: var(--sky-soft); color: var(--link); }
.cl-item:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 1px; }
.cl-after { margin-top: 22px; padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 0 14px 14px 0; background: var(--sky-soft); color: var(--ink); line-height: 1.8; }
.cl-after .btn-row { margin-top: 12px; }
.cl-note { display: grid; gap: 8px; margin-top: 22px; font-size: .86rem; line-height: 1.75; color: var(--muted); }
.cl-sources { margin: 0; padding-left: 1.3em; display: grid; gap: 2px; }
.cl-sources a { color: var(--link); }
@media (max-width: 860px) {
  .cl-group { grid-template-columns: minmax(0, 1fr); padding: 18px 14px 12px; }
  .cl-group legend { padding: 0 0 6px; }
  .cl-item { grid-template-columns: 22px 28px minmax(0, 1fr); padding: 8px 4px; }
  .cl-hint { padding-left: 4px; }
}
/* 画面のまま印刷したときは、チェックリストと説明だけを出す（配るときは A4・1枚の PDF が便利です） */
@media print {
  body:has(.cl-form) .site-header, body:has(.cl-form) .site-footer, body:has(.cl-form) .mobile-cta, body:has(.cl-form) .to-top, body:has(.cl-form) .cta-band, body:has(.cl-form) .page-hero .btn-row, body:has(.cl-form) .crumbs, body:has(.cl-form) .check-meta, body:has(.cl-form) .cl-tools .btn, body:has(.cl-form) .cl-after .btn-row { display: none !important; }
  .cl-group { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 12px; break-inside: avoid; }
  .cl-group legend { padding: 0 0 4px; }
  .cl-item { padding: 2px 0; }
  .cl-hint { font-size: 8.5pt; line-height: 1.6; padding-left: 70px; }
}
/* ---------- お問い合わせフォーム：電話・オンライン会議の希望日時（30分単位・第3希望まで） ---------- */
fieldset.when { display: block; min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
fieldset.when > legend { padding: 0; margin-bottom: 8px; }
fieldset.when > * + * { margin-top: 10px; }
.when-len { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.when-len-label { font-size: .92rem; font-weight: 700; color: var(--ink-soft); }
.when-len .choices label { min-height: 44px; padding: 6px 16px; }
/* 「第N希望」を上に置き、日付と時刻は、欄の幅が足りるときだけ横に並べる（1つ180px以上。60分の「22:00〜23:00」が欄の中で切れないように）。
   コンテナークエリは、エラー文の表示と同時に行の高さが0になる Chrome の不具合があったため使わない */
.when-slots { margin-top: 12px; }
.when-add { margin-top: 10px; min-height: 44px; }
.form-welcome { margin: -4px 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--sky-soft); border-left: 4px solid var(--link); color: var(--ink); font-size: .95rem; line-height: 1.8; }
.form-welcome p { margin: 0; }
.form-welcome b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.when-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 14px; border-radius: 14px; background: var(--tint); }
.when-row { display: grid; gap: 4px; }
.when-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 6px 8px; }
.when-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--sky-soft); color: var(--ink); font-size: .88rem; font-weight: 700; line-height: 1.6; }
.when-note:empty { display: none; }
fieldset.when .err, .when-note { scroll-margin-top: 96px; }
.form-noscript { margin: -8px 0 18px; padding: 10px 14px; border-radius: 10px; background: var(--orange-soft); color: var(--ink); font-size: .92rem; line-height: 1.7; }
.when-no { font-size: .9rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.field .when-row select { min-height: 48px; padding: 10px 12px; }
.field .when-row select:disabled { opacity: .6; cursor: not-allowed; }
/* 希望日時のエラーは、問題のある欄だけ赤くする */
.field.when.is-error select { border-color: var(--line); }
.field.when select[aria-invalid="true"] { border-color: #B83224; }
@media (max-width: 520px) { .when-list { gap: 14px; padding: 12px 10px; } }

/* 料金ページ：見積り例（3つ） */
.estimates { display: grid; gap: 22px; }
.est-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--tint); }
.est-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.12rem; }
.est-no { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--link); color: var(--surface); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 480px) { .est-card { padding: 14px 12px; } }

/* スマホのタップ領域（44px 以上）と小さな文字（2026年10月の改善指示書 A-3） */
.local-jump a { min-height: 44px; }
.town-links a { min-height: 44px; }
.photo-credit { font-size: .75rem; }
@media (max-width: 960px) {
  .brand { min-height: 44px; }
  .wk-filters button { min-height: 44px; }
  .svc-compare tbody th a, .price-table th a, .price-table td a { display: inline-flex; align-items: center; min-height: 44px; }
}
.more { min-height: 44px; }
.top-photo .photo-credit.is-over { font-size: .75rem; }
.est-card .estimate li::before { display: none; }
.est-card .estimate li { align-content: start; }
@media (max-width: 960px) {
  .est-card .estimate { gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
  .est-card .estimate li { grid-template-columns: 7.6em minmax(0, 1fr); gap: 10px; padding: 10px 12px; border: 0; border-radius: 0; border-bottom: 1px dashed var(--line); }
  .est-card .estimate li:last-child { border-bottom: 0; }
}
.lead .more, .services-note .more { min-height: 0; }
.kicker .nw { display: inline-block; }

/* テンプレート一覧：はじめての Excel テンプレート（2026-10） */
.tp-new { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: var(--hl-soft); color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.6; }
.tp-new:hover { text-decoration: underline; }
.tp-new-tag { flex: none; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; color: #fff; background: var(--hl); padding: 3px 8px; border-radius: 6px; }
.tpl-xl .tpl-ph { background: linear-gradient(135deg, #185C37 0%, #21A366 100%); }
.tpl-xl .tpl-ph-xl { filter: hue-rotate(-75deg) saturate(1.2); }
.badge-xl { background: #E3F4EA; color: #185C37; }
.badge-xlm { background: #185C37; color: #fff; }
:root[data-theme="dark"] .badge-xl { background: #1F4A33; color: #CFEBDB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-xl { background: #1F4A33; color: #CFEBDB; } }
/* 人事・労務の書類（/articles/forms/） */
.fm-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fm-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.fm-card:hover { border-color: var(--blue); }
.fm-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.fm-org { font-size: .82rem; color: var(--muted); }
.fm-title { font-size: 1.02rem; line-height: 1.5; }
.fm-desc { font-size: max(.95rem, 16px); line-height: 1.75; color: var(--ink-soft); }
.fm-tags { font-size: .8rem; color: var(--muted); }
.fm-open { margin-top: auto; color: var(--link); font-weight: 700; font-size: .92rem; }
@media (max-width: 560px) { .fm-grid { grid-template-columns: minmax(0, 1fr); } }
/* 規程・マニュアルの見直し（/services/kintone/kitei/ と /articles/forms/ の案内枠） */
.callout.is-warn { background: var(--orange-soft); border-left: 4px solid var(--orange); }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.scope-col .sub { margin-bottom: 12px; }
.list-cards.cols-1 { grid-template-columns: minmax(0, 1fr); }
.hearing-form .field .sub-input { font-size: .9rem; font-weight: 700; margin-top: 4px; }
.hearing-form .field .err { display: none; font-size: .86rem; font-weight: 700; color: #B83224; }
.hearing-form .field.is-error .err { display: block; }
.hearing-form .field.is-error .choices label { border-color: #B83224; }
.kitei-box { margin-top: 28px; padding: 22px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.kitei-box h3 { font-size: 1.15rem; margin: 6px 0 10px; }
.kitei-box p { color: var(--ink-soft); line-height: 1.75; }
.kitei-box p + p { margin-top: .6em; }
.kitei-box .kitei-caution { padding: 12px 16px; border-radius: 12px; background: var(--orange-soft); color: var(--ink); }
.kitei-box .btn-row { margin-top: 16px; }
@media (max-width: 760px) { .scope-grid { grid-template-columns: minmax(0, 1fr); } }
/* ---------- 更新情報（トップの帯 #news と /news/） ---------- */
/* トップの帯は .section ではない（本文セクションの白／薄い青の交互に数えない）。最初の画面のすぐ下の、白い帯 */
.nw-sec { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 36px 44px; }
.nw-band { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-areas: "head list" "more list"; gap: 16px 56px; align-items: start; }
.nw-head { grid-area: head; display: grid; gap: 10px; justify-items: start; }
.nw-list-home { grid-area: list; }
.nw-more { grid-area: more; margin: 0; }
.nw-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; line-height: 1.4; }
.nw-lead { color: var(--ink-soft); font-size: .92rem; line-height: 1.75; }
.nw-auto { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.nw-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nw-item { border-bottom: 1px solid var(--line); }
.nw-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 11px 8px; text-decoration: none; color: var(--ink); border-radius: 10px; }
.nw-row:hover { background: var(--sky-soft); }
.nw-row:hover .nw-title { color: var(--link); text-decoration: underline; }
.nw-row:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.nw-row time { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nw-kind { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; background: var(--tint); color: var(--ink-soft); border: 1px solid var(--line); }
.nw-kintone { background: var(--sky-soft); color: var(--link); border-color: transparent; }
.nw-excel { background: #E3F4EA; color: #185C37; border-color: transparent; }
.nw-works { background: var(--navy); color: #fff; border-color: transparent; }
.nw-local { color: #1F7A4D; }
.nw-main { display: grid; gap: 2px; min-width: 0; }
.nw-title { font-weight: 700; line-height: 1.55; }
.nw-desc { color: var(--ink-soft); font-size: .84rem; line-height: 1.6; }
.nw-side { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; justify-self: end; }
.nw-new { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; color: #fff; background: var(--hl); padding: 2px 7px; border-radius: 6px; }
.nw-price { font-family: var(--f-mono); font-size: .82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.nw-ext { color: var(--muted); font-size: .85rem; }
.nw-list-home .nw-title { font-size: .95rem; }
.nw-list-home .nw-kind { font-size: .66rem; }
.nw-list-page .nw-row { padding: 14px 10px; }
.nw-list-page .nw-kind { min-width: 10.5em; text-align: center; }
.nw-month { padding: 30px 10px 8px; }
.nw-month:first-child { padding-top: 0; }
.nw-month h3 { font-size: .9rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.nw-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; max-width: 880px; }
.nw-facts div { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.nw-facts dt { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.nw-facts dd { margin: 4px 0 0; font-size: .9rem; color: var(--ink-soft); display: flex; align-items: baseline; gap: 4px; }
.nw-facts b { font-family: var(--f-mono); font-size: 1.7rem; font-weight: 500; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.wk-shot .new-mark { left: auto; right: 12px; top: 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nw-excel { background: #1F4A33; color: #CFEBDB; } :root:not([data-theme="light"]) .nw-local { color: #8FD1A8; } }
:root[data-theme="dark"] .nw-excel { background: #1F4A33; color: #CFEBDB; }
:root[data-theme="dark"] .nw-local { color: #8FD1A8; }
@media (max-width: 900px) {
  .nw-band { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "more"; gap: 16px; }
  .nw-sec { padding-block: 28px 36px; }
  .nw-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
}
@media (max-width: 640px) {
  .nw-row { grid-template-columns: auto auto minmax(0, 1fr); gap: 6px 10px; }
  .nw-main { grid-column: 1 / -1; }
  .nw-side { grid-column: 3; grid-row: 1; }
  .nw-list-page .nw-row { padding: 12px 6px; }
  .nw-list-page .nw-kind { min-width: 0; }
  .nw-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nw-facts b { font-size: 1.4rem; }
}

/* ===== 品質の仕上げ（2026-11-01） ===== */

/* 並んだカードは、少しずつずらして出す（同時にまとめて出ると平板に見えるため）。
   ・カードが横に並ぶ幅（761px 以上）だけ。スマホの1列では、1枚ずつ画面に入るので、ずらすとただの待ち時間になる
   ・出し終えたら JS が is-done を付けて遅れを外す（外さないと、マウスを乗せたときの動きまで遅れる）
   ・ずらすのは3段まで（0・70・140・210ms）。動きを減らす設定では reveal 自体が付かない */
@media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  :is(.pains-grid, .svc-grid, .values, .ba-grid, .wk-grid, .price-list, .steps, .feature-grid, .list-cards, .flow-detail, .story, .art-grid) > li.reveal:not(.is-done):nth-child(2) { transition-delay: 70ms; }
  :is(.pains-grid, .svc-grid, .values, .ba-grid, .wk-grid, .price-list, .steps, .feature-grid, .list-cards, .flow-detail, .story, .art-grid) > li.reveal:not(.is-done):nth-child(3) { transition-delay: 140ms; }
  :is(.pains-grid, .svc-grid, .values, .ba-grid, .wk-grid, .price-list, .steps, .feature-grid, .list-cards, .flow-detail, .story, .art-grid) > li.reveal:not(.is-done):nth-child(n+4) { transition-delay: 210ms; }
}
@media (prefers-reduced-motion: no-preference) {
  /* ボタンの手ざわり：押せることが分かるよう、マウスを乗せると少し浮き、押すと沈む */
  .btn { transition: transform .2s cubic-bezier(.2, .7, .2, 1), background .2s, box-shadow .2s, border-color .2s, color .2s; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .pain-card:hover, .svc-card:hover, .wk-card:hover, .art-card:hover { box-shadow: var(--shadow-lift); }
}

/* スマホの最初の画面：説明文を少し詰めて、相談ボタンを早く見せる（文は変えない） */
@media (max-width: 520px) {
  .top-lead { margin-top: 16px; font-size: 1rem; line-height: 1.8; }
  .top-cta { margin-top: 22px; }
}

/* 小さい文字のリンクも、指で押しやすい高さにする（見た目の文字の大きさは変えない） */
.cta-sub a { display: inline-block; padding-block: 12px; margin-block: -12px; }

/* お問い合わせ：任意の欄は「くわしく伝えたい方へ」に畳む（最初は必須の5つだけ見せる） */
.form-more { margin: 4px 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.form-more > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t i" "s i"; gap: 2px 12px; align-items: center; min-height: 56px; padding: 12px 16px; cursor: pointer; border-radius: 14px; }
.form-more > summary::-webkit-details-marker { display: none; }
.form-more > summary b { grid-area: t; color: var(--ink); }
.form-more > summary span { grid-area: s; font-size: .86rem; color: var(--ink-soft); line-height: 1.6; }
.form-more > summary::after { content: ""; grid-area: i; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.form-more[open] > summary::after { transform: rotate(-135deg); }
.form-more > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-more-body { padding: 8px 16px 0; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .form-more > summary::after { transition: transform .2s; } }

/* 料金：お店の状況から選ぶ */
.situ-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.situ { display: grid; gap: 10px; align-content: start; padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.situ h3 { font-size: 1.08rem; line-height: 1.55; }
.situ p { color: var(--ink-soft); font-size: max(.95rem, 16px); line-height: 1.75; }
.situ ul { list-style: none; display: grid; gap: 6px; }
.situ li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: var(--tint); }
.situ li b { font-weight: 700; color: var(--ink); }
.situ li span { font-family: var(--f-mono); font-size: .92rem; color: var(--ink); text-align: right; }
.situ li small { grid-column: 1 / -1; color: var(--ink-soft); font-size: .86rem; line-height: 1.6; }
.situ .situ-go { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--link); }
@media (max-width: 760px) { .situ-list { grid-template-columns: minmax(0, 1fr); } .situ { padding: 18px; } }

/* ===== 最初の画面の作り直し（2026-11-01、5 人の監査）：借り物の風景写真をやめ、自社運用の kintone の画面を主役にする ===== */
.top-visual { display: grid; gap: 14px; }
.top-shot { margin: 0; }
.top-shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 24px 48px rgba(20, 38, 64, .14); }
.top-shot figcaption { margin-top: 8px; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.top-shot figcaption a { color: var(--link); font-weight: 700; }
/* 相談カードは写真に重ねず、下に置く。左の列は運営者の写真の置き場所（写真がないときは幅 0） */
.top-visual .hv-card { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0; row-gap: 6px; align-items: center; }
.top-visual .hv-title, .top-visual .hv-body { grid-column: 2; }
.top-visual .hv-title { margin: 0; }
.hv-owner { grid-column: 1; grid-row: 1 / 3; width: 96px; height: 96px; margin-right: 18px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--shadow); }
/* 説明文の 1 行目（OGP と同じ言葉）は、少し大きく */
.top-lead-key { display: block; margin-bottom: 4px; font-weight: 700; font-size: 1.18rem; line-height: 1.6; color: var(--ink); }
/* 見出しの「IT相談窓口」は、色だけでなく下線でも強める */
.top-hero h1 .hl { box-shadow: inset 0 -.28em 0 color-mix(in srgb, var(--orange) 22%, transparent); }
/* 「なぜ、紀ノ川DXなのか」：写真がない間は 1 列（写真ができたら is-solo を外す） */
.about-sum.is-solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
/* スマホでは下に固定の相談バーがあるので、「上へ」ボタンは出さない（本文に重なるため） */
@media (max-width: 720px) { .to-top { display: none; } }
@media (max-width: 520px) { .top-lead-key { font-size: 1.08rem; } .hv-owner { width: 72px; height: 72px; margin-right: 14px; } }
/* 別サイト「紀ノ川・吉野川 流域ガイド」（local.kinokawa-dx.com。docs/local-subsite.md）：本業の枠と同じ作りで、サイトの印と名前だけ変える */
.lg-mark { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.lg-header .site-nav { margin-left: auto; }
.lg-header .brand-name { letter-spacing: .03em; }
.lg-footer .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.lg-footer .lg-mark { width: 32px; height: 32px; }
.lg-footer-note { margin-top: 10px; color: var(--muted); font-size: .82rem; line-height: 1.7; }
@media (max-width: 900px) { .lg-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .lg-footer .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 1023.98px) { .lg-header .brand-name { font-size: 1.02rem; } }
@media (max-width: 374px) { .lg-header .brand-name { display: inline; font-size: .92rem; } }
