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

: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: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, 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; }
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: 1120px) {
  .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-display); 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-mono); font-size: .76rem; letter-spacing: .22em; color: var(--link); }
.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-display); 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: 1120px) { .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: 40px; 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-display); 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; }
@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 { margin-left: -.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(255, 255, 255, .2); }
.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; } }
