:root {
  --paper: #ffffff;
  --paper-2: #f3f6f4;
  --ink: #15261e;
  --ink-2: #4a5a52;
  --line: #dde3df;
  --green: #0b9a66;
  --green-deep: #0f3a2a;
  --white: #ffffff;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;
  --radius: 12px; /* 画像・カードの角の丸み（サイト全体で共通） */
  --gutter: clamp(24px, 6vw, 108px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--gothic); font-size: 16px; line-height: 1.9; letter-spacing: .03em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.45; letter-spacing: .04em; margin: 0; }
.wrap { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* トップページは余白を広めに（ヘッダー・本文・フッターとも） */
.page-home { --gutter: clamp(36px, 9vw, 162px); }

/* header */
#works { scroll-margin-top: 96px; } /* 「取り組みを見る」で飛んだとき、見出しがヘッダーに隠れないように */
html { scroll-behavior: smooth; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 60px; width: auto; }
.gnav { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 26px); font-size: 14px; white-space: nowrap; }
.gnav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.gnav a:hover, .gnav a[aria-current] { border-color: var(--ink); }
.gnav .btn-contact { border: 1px solid var(--ink); padding: 7px 16px; border-radius: 999px; }
.gnav .btn-contact:hover { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; font: inherit; font-size: 13px; background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px; color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; background: var(--ink); color: var(--paper); text-decoration: none; padding: 14px 28px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: transform .2s, background .2s; }
.btn::after { content: "→"; }
.btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--green-deep); }
.btn-light:hover { background: var(--white); }

/* hero */
.hero { position: relative; padding: clamp(27px, 3.3vw, 53px) 0 clamp(40px, 5vw, 80px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 55%; background: radial-gradient(circle, color-mix(in srgb, var(--green) 18%, transparent) 2px, transparent 2.4px) 0 0 / 22px 22px; mask-image: linear-gradient(to right, #000, transparent 80%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 80px); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(32px, 4.4vw, 72px); line-height: 1.45; }
.nb { display: inline-block; }
.hero-lead { color: var(--ink-2); margin: 28px 0 36px; max-width: 32em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero carousel（右側を2段で流し、左端はグラデーションで消す） */
/* 見出しと写真のあいだは、もとの2/3ほどに詰める */
.hero-flow { display: grid; gap: 16px; overflow: hidden; margin-left: min(-3vw, calc(104px - 13.6vw));
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.5) 7%, #000 14%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.5) 7%, #000 14%); }
.flow-row { overflow: hidden; }
.flow-track { display: flex; gap: 16px; width: max-content; animation: flow 60s linear infinite; }
.flow-rev .flow-track { animation-direction: reverse; animation-duration: 75s; }
.hero-flow:hover .flow-track, .hero-flow:focus-within .flow-track { animation-play-state: paused; }
@keyframes flow { to { transform: translateX(calc(-50% - 8px)); } }
.slide { position: relative; flex: none; width: clamp(220px, 19vw, 360px); aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); text-decoration: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.slide:hover img { transform: scale(1.05); }
.slide-cap { position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.6; background: linear-gradient(transparent, rgba(10, 25, 18, .75)); opacity: 0; transition: opacity .3s; }
.slide:hover .slide-cap, .slide:focus .slide-cap { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .flow-track { animation: none; } .flow-row { overflow-x: auto; } }

/* overview band（灰色の帯1枚：上段に数字、下段に自治体と支援領域） */
.overview-band { padding: 0 0 clamp(48px, 5vw, 80px); }
.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: clamp(24px, 2.6vw, 44px) clamp(28px, 3vw, 56px); background: var(--paper-2); border-radius: var(--radius); padding: clamp(28px, 2.8vw, 48px); }
.stats { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0 0 clamp(20px, 2.2vw, 36px); display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats li + li { border-left: 1px solid var(--line); }
.stats .stat { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 6px; padding: 0 clamp(12px, 1.6vw, 28px); text-align: center; text-decoration: none; }
.stat-num { font-size: clamp(40px, 3.6vw, 60px); font-weight: 700; color: var(--green); line-height: 1.05; }
.stat-unit { font-size: 15px; font-weight: 700; }
.stat-label { flex-basis: 100%; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.panel-title { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--ink-2); }
.towns, .fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.towns { grid-template-columns: repeat(auto-fill, minmax(7.6em, 1fr)); }
.towns li { white-space: nowrap; padding-inline: 8px; }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.towns li, .fields li { display: flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 500; line-height: 1.4; }
.towns li { justify-content: center; }
.towns .dup { display: none; } /* スマホで流すときのつなぎ用 */
.emblem { width: 1em; height: 1em; margin-right: 5px; object-fit: contain; flex: none; }
.fields li { justify-content: center; text-align: center; white-space: nowrap; }

/* sections */
.sec { padding: 88px 0; }
.sec-tint { background: var(--paper-2); }
.sec-dark { background: var(--paper-2); color: var(--ink); }
.sec-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px 24px; margin-bottom: 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sec-dark .sec-head { border-color: var(--line); }
.sec-en { grid-column: 1 / -1; margin: 0; font-size: 12px; letter-spacing: .35em; color: var(--green); font-weight: 700; }
.sec-dark .sec-en { color: var(--green); }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); }
.more { grid-column: 3; font-size: 14px; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }
.sec-lead { color: var(--ink-2); margin: -16px 0 36px; }

/* news rows */
.news { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li a { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; padding: 18px 4px; border-bottom: 1px dashed var(--line); text-decoration: none; transition: background .2s; }
.rows li a:hover { background: var(--paper-2); }
.rows time { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row-tag { font-size: 12px; color: var(--green); border: 1px solid currentColor; border-radius: 999px; padding: 1px 10px; justify-self: start; }
.row-title { font-weight: 500; }

/* cards */
.grid { display: grid; gap: 40px 28px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-works { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; }
@media (max-width: 1200px) { .grid-works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card-link { display: block; text-decoration: none; }
.card-img { margin: 0 0 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); border-radius: var(--radius); }
.card-lg .card-img { aspect-ratio: 16 / 11; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card-link:hover .card-img img { transform: scale(1.04); }
.card h3 { font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.card-lg h3 { font-size: 24px; }
.meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.meta span { color: var(--green); font-weight: 700; }

/* people */
.people { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 20px; }
@media (max-width: 1200px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person { text-decoration: none; }
.person figure { margin: 0 0 14px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s; }
.person:hover img { transform: scale(1.04); }
.person-name { margin: 0; font-weight: 700; font-size: 17px; }
.person-sub { margin: 0; font-size: 12px; color: var(--ink-2); letter-spacing: .08em; }

/* philosophy */
.philo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.philo li { border-left: 1px solid var(--line); }
.philo li:last-child { border-right: 1px solid var(--line); }
.philo a { display: flex; flex-direction: column; gap: 14px; padding: 8px 28px 16px; text-decoration: none; height: 100%; }
.philo-no { font-size: 40px; font-weight: 700; color: var(--green); line-height: 1; }
.philo-label { font-size: 13px; letter-spacing: .15em; color: var(--ink-2); }
.philo-text { font-size: 21px; font-weight: 700; line-height: 1.7; }
.turning { display: flex; flex-direction: column; gap: 6px; margin-top: 56px; padding: 28px 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-size: 19px; transition: background .2s; }
.turning:hover { border-color: var(--green); }
.turning::after { content: "読む →"; font-family: var(--gothic); font-size: 14px; align-self: flex-end; }

/* bases */
.bases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.bases a { display: flex; flex-direction: column; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
.bases a:hover { border-color: var(--ink); }
.base-city { font-size: 22px; font-weight: 700; }
.base-pref { font-size: 13px; color: var(--ink-2); }

/* media logos */
.media-band { padding: clamp(40px, 4vw, 64px) 0; }
.media-title { font-size: clamp(20px, 2.2vw, 26px); margin: 6px 0 32px; }
.media-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.media-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(40px, 4vw, 72px); width: max-content; animation: media-flow 50s linear infinite; }
.media-track li { flex: none; display: flex; align-items: center; height: 72px; }
.media-track img { width: auto; object-fit: contain; }
.media-word { font-size: 20px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
@keyframes media-flow { to { transform: translateX(calc(-50% - clamp(20px, 2vw, 36px))); } }
@media (prefers-reduced-motion: reduce) { .media-track, .towns { animation: none !important; } .media-marquee, .towns-marquee { overflow-x: auto; } }

/* cta */
/* 本文の終わりと下の帯・フッターのあいだは、全ページ共通で広めにとる */
main { --end-space: clamp(80px, 9vw, 160px); }
.cta { margin-top: var(--end-space); background: var(--green); color: var(--white); padding: 72px 0; }
main:not(:has(.cta)) { padding-bottom: var(--end-space); }
.sec-tint + .cta, .sec-dark + .cta { margin-top: 0; }
/* 余白を二重に足さないよう、帯の直前の区切りの下余白は0に */
.sec:not(.sec-tint):not(.sec-dark):has(+ .cta), .post:has(+ .cta), main:not(:has(.cta)) > .sec:last-child { padding-bottom: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta .sec-en { color: var(--white); opacity: .8; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 8px; }
.cta p { margin: 0; }

/* page head */
.page-head { position: relative; padding: 72px 0 48px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 40%; background: radial-gradient(circle, color-mix(in srgb, var(--green) 24%, transparent) 2px, transparent 2.4px) 0 0 / 20px 20px; mask-image: linear-gradient(to left, #000, transparent); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 8px; }
.page-head .sec-en { display: block; }
.count { color: var(--ink-2); font-size: 14px; margin: 8px 0 0; }

/* article */
.post { padding: 56px 0 24px; }
.crumbs { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.post-head h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.chip { font-size: 12px; color: var(--green); border: 1px solid currentColor; border-radius: 999px; padding: 0 10px; text-decoration: none; }
.post-cover { margin: 40px auto 48px; }
.post-head { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); } /* サムネイルを貼らないので、見出しと本文は線で区切る */
.post-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.post-body { font-size: 17px; line-height: 2.05; }
.post-body > * + * { margin-top: 1.4em; }
.post-body p { margin: 0; }
.post-body h2, .post-body h3 { margin-top: 2.2em; font-size: 22px; padding-left: 16px; border-left: 3px solid var(--green); }
.post-body h2, .post-body h3 { margin-bottom: 1.1em; } /* 見出しと、その下の本文のあいだ */
.post-body h2.lead { border: 0; padding: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.7; }
.post-body figure { margin: 2em 0; }
.post-body figure img { border-radius: var(--radius); margin-inline: auto; max-height: 680px; width: auto; }
.post-body figcaption { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 8px; }
.post-body a { color: var(--green-deep); text-decoration-color: var(--green); text-underline-offset: 3px; }
.post-body .embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.post-body .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-body.profile p { border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; }
.post-body.profile p strong { display: inline-block; min-width: 6em; color: var(--ink-2); font-weight: 500; }

/* 記事ページ：地方創生タイムズ（SWELL・全体1500px＋サイドバー）に合わせ、本文の列は最大1000pxで中央に */
.page-article .post .wrap-narrow, .page-article .post-cover { width: min(1000px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.page-article .post-cover img { max-height: none; aspect-ratio: 16 / 9; }

/* company */
.profile-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.profile-table th, .profile-table td { text-align: left; vertical-align: top; padding: 20px 0; border-bottom: 1px solid var(--line); }
.profile-table th { width: 8em; color: var(--ink-2); font-weight: 500; }
.profile-table td p { margin: 0; }
.profile-table td p + p { margin-top: 6px; }
.profile-table a { color: var(--green-deep); text-decoration-color: var(--green); text-underline-offset: 3px; }
.company { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.company-links { list-style: none; margin: 0; padding: 0; position: sticky; top: 100px; }
.company-links a { display: flex; flex-direction: column; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.company-links a:hover .cl-name { color: var(--green); }
.cl-name { font-size: 20px; font-weight: 700; }
.cl-name::after { content: " →"; }
.cl-sub { font-size: 13px; color: var(--ink-2); }

/* contact */
.contact { display: grid; gap: 28px; max-width: 880px; margin-inline: auto; }
.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.contact-card h2 { font-size: 24px; }
.contact-card p { color: var(--ink-2); margin: 12px 0 28px; }
.contact-note { font-size: 14px; color: var(--ink-2); }
.contact-types { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-types li { font-size: 13px; color: var(--green-deep); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }

/* footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 64px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-logo { width: 220px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.copyright { font-size: 12px; color: var(--ink-2); margin-top: 48px; }

/* responsive */
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .gnav { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
  .nav-open .gnav { display: flex; }
  .gnav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gnav .btn-contact { margin-top: 16px; text-align: center; border-radius: 999px; }
}
@media (max-width: 1560px) {
  .overview { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .gnav { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; }
  .nav-open .gnav { display: flex; }
  .gnav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gnav .btn-contact { margin-top: 16px; text-align: center; border-radius: 999px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-flow { margin-left: 0; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent); }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .stats li:nth-child(3) { border-left: 0; }
  .slide { width: 200px; }
  .grid-3, .grid-works { grid-template-columns: 1fr 1fr; }
  .philo { grid-template-columns: 1fr; }
  .philo li, .philo li:last-child { border: 0; border-top: 1px solid var(--line); }
  .philo a { padding: 24px 0; }
  .company, .contact { grid-template-columns: 1fr; }
  .company-links { position: static; }
}
@media (max-width: 600px) {
  .fields { grid-template-columns: 1fr; }
  .fields li { white-space: normal; }
  body { font-size: 15px; }
  .brand-logo { height: 50px; }
  .sec { padding: 64px 0; }
  .sec-head { grid-template-columns: 1fr; }
  .more { grid-column: 1; justify-self: end; }
  .sec-head h2 { word-break: keep-all; overflow-wrap: anywhere; }
  .media-track img { zoom: .75; }
  .media-track li { height: 56px; }
  .media-word { font-size: 16px; }
  .grid-3, .grid-works { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card h3 { font-size: 13px; line-height: 1.55; }
  .card-img { margin-bottom: 10px; }
  .rows li a { grid-template-columns: 1fr; gap: 6px; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .contact-card { padding: 28px 22px; }
  .post-body { font-size: 16px; }
}

/* スマホ：概要の帯がはみ出さないように */
@media (max-width: 900px) {
  .overview { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; }
  .overview > * { min-width: 0; }
  .stats a, .stats .stat { padding: 0 8px; }
  .stat-num { font-size: 34px; }
  .stat-label { white-space: normal; font-size: 12px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .fields li { white-space: normal; }
  .towns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .towns li { padding-inline: 6px; font-size: 13px; }
}

/* スマホ専用のつくり（PC版を縮めるのではなく、片手で読み進めやすい並びに組み替える） */
.sp-more, .sp-services, .sp-media, .flow-sp { display: none; }
@media (max-width: 600px) {
  :root, .page-home { --gutter: 20px; }
  body { line-height: 1.8; }

  /* ヘッダー：低く。メニューは画面いっぱいに開き、押しやすい大きさに */
  /* ロゴを中央に大きく、右に細い字の「ME/NU」 */
  .site-header { border-bottom: 0; }
  #works { scroll-margin-top: 104px; }
  .header-inner { position: relative; justify-content: center; height: 92px; } /* ロゴの上下に16pxずつ */
  .brand-logo { height: 56px; }
  .menu-btn { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); padding: 4px 0; border: 0; border-radius: 0; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 200; font-size: 14px; line-height: .92; letter-spacing: .08em; text-align: left; color: var(--green-deep); }
  .menu-label { display: none; }
  .menu-btn::before { content: "ME\A NU"; white-space: pre; display: block; }
  /* 閉じるときは細いバツ印 */
  .nav-open .menu-btn { width: 28px; height: 28px; padding: 0; }
  .nav-open .menu-btn::before, .nav-open .menu-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 1.5px; background: currentColor; }
  .nav-open .menu-btn::before { transform: translate(-50%, -50%) rotate(45deg); }
  .nav-open .menu-btn::after { transform: translate(-50%, -50%) rotate(-45deg); }
  /* ヘッダーのぼかし効果の影響で、画面基準の固定配置が効かないため、ヘッダーの真下に画面の高さぶん広げる */
  .gnav { position: absolute; inset: 100% calc(-1 * var(--gutter)) auto; height: calc(100dvh - 92px); padding: 8px 20px 32px; overflow-y: auto; font-size: 16px; background: var(--paper); z-index: 30; }
  .gnav a { padding: 16px 0; }
  .gnav .btn-contact { margin-top: 24px; padding: 14px; text-align: center; background: var(--ink); color: var(--paper); }

  /* ヒーロー：PCと同じく、見出しの横に2段の写真を流す。説明文とボタンはその下に */
  .hero { padding: 28px 0 32px; }
  .hero::before { width: 100%; mask-image: linear-gradient(to bottom, #000, transparent 60%); }
  /* 左に見出しと説明文、右に3段の写真。写真の高さは左の文字の高さに合わせる */
  .hero-inner { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "h flow" "lead flow" "act act"; gap: 0 14px; align-items: start; }
  .hero-copy { display: contents; }
  .hero h1 { grid-area: h; position: relative; z-index: 1; font-size: 20px; line-height: 1.6; }
  .hero-lead { grid-area: lead; position: relative; z-index: 1; width: 0; min-width: 100%; font-size: 11px; line-height: 1.7; margin: 10px 0 0; }
  .hero-lead .nb { display: inline; }
  .hero-actions { grid-area: act; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .hero-actions .btn { justify-content: center; padding: 6px 10px; font-size: 12px; }
  .hero-flow { grid-area: flow; align-self: stretch; height: 0; min-height: 100%; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.5) 10%, #000 20%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.5) 10%, #000 20%); }
  .flow-sp { display: block; }
  .flow-row { min-height: 0; }
  .flow-track { gap: 6px; height: 100%; }
  @keyframes flow { to { transform: translateX(calc(-50% - 3px)); } }
  .slide { width: auto; height: 100%; aspect-ratio: 3 / 2; border-radius: 6px; }
  .slide-cap { display: none; }

  /* 概要：数字は2×2のカード、自治体は文字の長さに合わせたタグ、サービスは一覧に */
  .overview-band { padding-bottom: 40px; }
  .overview { padding: 0; background: none; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; border: 0; }
  .stats li + li { border-left: 0; }
  .stats .stat { background: var(--paper-2); border-radius: var(--radius); padding: 16px 8px 14px; }
  .stat-num { font-size: 30px; }
  .stat-unit { font-size: 13px; }
  .stat-label { font-size: 11px; line-height: 1.5; margin-top: 4px; }
  .panel-title { font-size: 14px; color: var(--ink); margin-bottom: 12px; }
  /* 自治体：1列にして自動で横に流す */
  .towns-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
  .towns { display: flex; flex-wrap: nowrap; gap: 6px; width: max-content; animation: towns-flow 40s linear infinite reverse; } /* 左から右へ流す */
  .towns .dup { display: flex; }
  .towns li { flex: none; }
  @keyframes towns-flow { to { transform: translateX(calc(-50% - 3px)); } }
  .towns li { min-height: 34px; padding: 4px 12px; font-size: 13px; background: var(--paper-2); }
  .fields { display: block; border-top: 1px solid var(--line); }
  .fields li { display: block; position: relative; min-height: 0; padding: 12px 0 12px 22px; border-radius: 0; background: none; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
  .fields li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

  /* 見出し：小さく、「一覧へ」は右上に */
  .sec { padding: 56px 0; }
  .sec-head { grid-template-columns: 1fr auto; margin-bottom: 24px; padding-bottom: 12px; }
  .sec-en { font-size: 11px; letter-spacing: .3em; }
  .sec-head h2 { font-size: 22px; }
  .more { grid-column: 2; font-size: 13px; }
  .sec-lead { font-size: 14px; margin: -8px 0 24px; }
  .sp-more { display: block; margin: 24px 0 0; text-align: center; }
  .sp-more .btn, .cta .btn { width: 66%; justify-content: center; padding: 7px 16px; font-size: 13px; } /* スマホのボタンはPCの2/3ほど */

  /* 並び順：メディア → 数字 → 自治体 → 取り組み → サービス一覧 */
  .page-home main { display: flex; flex-direction: column; }
  .page-home main > * { order: 9; }
  .page-home main > .hero { order: 1; }
  .page-home main > .overview-band { order: 2; padding-bottom: 0; }
  .page-home main > .sec-works { order: 3; padding: 48px 0 0; }
  .page-home main > .sp-services { order: 4; display: block; padding-top: 48px; }
  .page-home main > .media-band { display: none; } /* スマホでは数字のすぐ下に出す */
  .sp-media { display: block; }
  .panel-services { display: none; }

  /* メディア */
  .media-band { padding: 8px 0 24px; }
  .media-title { font-size: 20px; margin: 4px 0 20px; }
  .media-track { gap: 24px; }
  .media-track img { zoom: .4; } /* 今までの半分ほど */
  .media-track li { height: 30px; }
  .media-word { font-size: 12px; }
  .media-band { padding-bottom: 0; }

  /* 取り組み：2列で8件まで。残りは「すべて見る」へ */
  .grid-works { gap: 22px 12px; }
  .page-home .grid-works > .card:nth-child(n+9) { display: none; }
  .card h3 { font-size: 13px; line-height: 1.6; }

  /* パートナー：4列×4行（16人まで）。残りは「すべて見る」へ */
  .page-home .people { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
  .page-home .people > .person:nth-child(n+17) { display: none; }
  .page-home .person figure { margin-bottom: 6px; border-radius: 8px; }
  .page-home .person-name { font-size: 10.5px; line-height: 1.4; }
  .page-home .person-sub { font-size: 9px; letter-spacing: 0; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .people { gap: 24px 12px; }
  .person figure { margin-bottom: 10px; }
  .person-name { font-size: 15px; }
  .person-sub { font-size: 11px; }

  /* 企業理念：1つずつカードに */
  .philo { gap: 10px; }
  .philo li, .philo li:last-child { border: 0; }
  .philo a { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 20px; background: var(--white); border-radius: var(--radius); }
  .philo-no { font-size: 26px; }
  .philo-label { font-size: 12px; }
  .philo-text { flex-basis: 100%; font-size: 17px; line-height: 1.7; }
  .philo-text, .turning, .cta p { word-break: auto-phrase; } /* 文節の途中で改行しない */
  .turning { margin-top: 24px; padding: 20px; font-size: 16px; }

  /* 拠点：2列 */
  .bases { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bases a { padding: 14px 16px; }
  .base-city { font-size: 17px; }
  .base-pref { font-size: 12px; }

  /* 問い合わせの帯：中央寄せ、ボタンは幅いっぱい */
  main { --end-space: 72px; }
  .cta { padding: 48px 0; text-align: center; }
  .cta-inner { flex-direction: column; gap: 20px; }
  .cta h2 { font-size: 22px; }
  .cta p { font-size: 14px; }

  /* フッター */
  .site-footer { padding: 40px 0 20px; }
  .footer-inner { gap: 28px; }
  .footer-logo { width: 150px; }
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; width: 100%; }
  .footer-cols ul:last-child { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
  .copyright { margin-top: 28px; }

  /* 下層ページ・記事 */
  .page-head { padding: 36px 0 24px; }
  .page-head h1 { font-size: 26px; }
  .page-head + .sec { padding-top: 32px; }
  .post { padding: 28px 0 16px; }
  .crumbs { font-size: 12px; margin-bottom: 12px; flex-wrap: wrap; }
  .post-head h1 { font-size: 22px; line-height: 1.55; }
  .post-head { margin-bottom: 24px; padding-bottom: 20px; }
  .page-article .post .wrap-narrow, .page-article .post-cover { width: calc(100% - 2 * var(--gutter)); }
  .post-body { font-size: 16px; line-height: 1.95; }
  .post-body h2, .post-body h3 { font-size: 18px; padding-left: 12px; }
  .post-body h2.lead { font-size: 20px; }
  .post-body figure { margin: 1.5em 0; }
  .profile-table th, .profile-table td { display: block; width: auto; padding: 0; border: 0; }
  .profile-table th { padding-top: 16px; font-size: 13px; }
  .profile-table td { padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
  .company { gap: 32px; }
  .cl-name { font-size: 17px; }
}
