:root {
  --bg: #f5faf8;
  --bg2: #eef7f3;
  --ink: #2f3c38;
  --sub: #6d7c77;
  --line: #e2ece8;
  --card: #ffffff;
  --mint: #93d9c5;
  --mint-l: #d9f2ea;
  --mint-d: #3fae92;
  --deep: #1e5f4f;
  --coral: #ee8273;
  --coral-l: #f6a596;
  --gold: #f2a65a;
  --r: 22px;
  --sec: 72px;
  --gap: 24px;
  --shadow: 0 10px 30px rgba(40, 90, 75, .08);
  --serif: 'Shippori Mincho', 'Yu Mincho', serif;
  --sans: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.8; letter-spacing: .02em;
  background: radial-gradient(1200px 600px at 85% -10%, #e7f6f0 0, transparent 60%), linear-gradient(#fbfdfc, var(--bg) 40%);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { flex: none; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.4; }
p { margin: 0; }

/* ---------- リボン（app.js が描く。画面に固定して全ページの背景に流す） ---------- */
.ribbons { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hd, main, .ft { position: relative; z-index: 1; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s; }
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-coral { background: linear-gradient(135deg, var(--coral-l), var(--coral)); color: #fff; padding: 12px 22px; box-shadow: 0 8px 20px rgba(238, 130, 115, .3); }
.btn-deep { background: linear-gradient(135deg, #2b7a66, var(--deep)); color: #fff; padding: 16px 34px; font-size: 17px; box-shadow: 0 10px 24px rgba(30, 95, 79, .28); }
.go { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--mint-d); box-shadow: 0 4px 14px rgba(40, 90, 75, .12); transition: transform .25s, background .25s, color .25s; }
.go svg { width: 18px; height: 18px; }
.go.big { width: 50px; height: 50px; background: var(--mint-l); }
a:hover .go, .go:hover { background: var(--mint-d); color: #fff; transform: translateX(3px); }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--deep); font-weight: 700; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more svg { width: 16px; height: 16px; }

/* ---------- ヘッダー ---------- */
.hd { padding: 14px 24px 0; }
.hd-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 10px 14px 10px 22px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); border-radius: 999px; box-shadow: 0 6px 24px rgba(40, 90, 75, .07); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 52px; height: 33px; }
.logo-t { display: flex; flex-direction: column; line-height: 1.1; }
.logo-t b { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .12em; color: var(--deep); }
.logo-t small { font-size: 9px; letter-spacing: .5em; color: var(--sub); margin-top: 3px; }
.logo-t, .hd-cta { white-space: nowrap; }
.gnav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; }
.gnav a { position: relative; padding: 4px 0; white-space: nowrap; }
/* 小さな検索窓（市区町村名。候補は /data/search.json） */
.qs { position: relative; }
.qs label { display: flex; align-items: center; gap: 6px; width: 190px; padding: 7px 14px; border-radius: 999px; background: #f1f6f4; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.qs label:focus-within { background: #fff; border-color: var(--mint-d); }
.qs svg { width: 17px; height: 17px; color: var(--sub); }
.qs input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); outline: 0; }
.qs input::-webkit-search-cancel-button { display: none; }
.qs-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; min-width: 240px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 14px 34px rgba(40, 90, 75, .16); }
.qs-list a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 14px; }
.qs-list a small { color: var(--sub); font-size: 11px; }
.qs-list a:hover, .qs-list a.on { background: var(--mint-l); }
.qs-list .none { padding: 7px 10px; font-size: 13px; color: var(--sub); }
.gnav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--mint); transform: scaleX(0); transition: transform .3s; }
.gnav a:hover::after { transform: scaleX(1); }
.gnav .fav { display: inline-flex; align-items: center; gap: 6px; }
.gnav .fav svg { width: 18px; height: 18px; color: var(--coral); }
.menu-btn { display: none; }

/* ---------- ヒーロー ---------- */
.hero { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hero-in { position: relative; display: grid; grid-template-columns: 40% 1fr; align-items: center; min-height: 520px; }
.hero-txt { position: relative; z-index: 2; align-self: end; padding: 40px 0 96px 12px; }
.hero-h { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.32; letter-spacing: .04em; white-space: nowrap; }
.hero-h span { display: block; opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-h span + span { animation-delay: .18s; }
.hero-h em { font-style: normal; background: linear-gradient(120deg, #f4a091, var(--coral) 60%, #f0907a); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.12em; }
.hero-lead { margin-top: 22px; font-size: 16px; line-height: 2; color: #4a5753; opacity: 0; animation: rise .9s .4s forwards; }
.script { font-family: 'Allura', cursive; font-size: clamp(34px, 3.6vw, 50px); color: #6d8a80; transform: rotate(-8deg); transform-origin: left; margin-top: 14px; opacity: 0; animation: fadein 1.4s .7s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadein { to { opacity: .85; } }
.hero-pic { position: relative; margin-left: -12%; aspect-ratio: 1412 / 792; border-radius: 0 0 0 60px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; animation: zoom 18s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.04); } }
/* 写真の上の札（大きさは中身なり。位置は写真に対する%。仮の写真では焼きこまれた札をぼかしてある） */
.badge { position: absolute; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; padding: 10px 20px 10px 14px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); border-radius: 999px; color: var(--deep); box-shadow: 0 8px 22px rgba(40, 90, 75, .1); animation: float 6s ease-in-out infinite; white-space: nowrap; }
.badge svg { grid-row: 1 / 3; width: 34px; height: 34px; color: var(--mint-d); }
.badge b { font-size: 15px; font-weight: 700; line-height: 1.4; }
.badge small { font-size: 11.5px; line-height: 1.5; color: #4d5c57; }
.badge small br { display: none; }
.b1 { left: 6%; top: 14%; }
.b2 { left: 66%; top: 25%; animation-delay: -2s; }
.b3 { left: 67%; top: 63%; animation-delay: -4s; }
.vtext { position: absolute; right: 2.6%; top: 6%; writing-mode: vertical-rl; font-family: var(--serif); font-size: clamp(12px, 1.25vw, 16px); letter-spacing: .2em; line-height: 1.9; color: var(--deep); text-shadow: 0 0 8px #fff, 0 0 2px #fff; }
@media (max-width: 1180px) { .badge { padding: 7px 14px 7px 10px; } .badge svg { width: 26px; height: 26px; } .badge b { font-size: 13px; } .badge small { display: none; } }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- 検索 ---------- */
.sbox { position: relative; z-index: 3; margin: -64px 8px 0; padding: 26px 32px 18px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-radius: 26px; box-shadow: 0 18px 40px rgba(40, 90, 75, .1); }
.sb-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 24px; align-items: end; }
.sb-f { display: block; }
.sb-l { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.sb-l svg { width: 20px; height: 20px; color: var(--deep); }
.sb-s { position: relative; display: block; }
.sb-s::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border: solid #555; border-width: 0 1.6px 1.6px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sb-s select { width: 100%; appearance: none; font: inherit; font-size: 14px; color: var(--ink); padding: 12px 40px 12px 16px; border: 1px solid #d8e2de; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.sb-s select:focus { outline: 0; border-color: var(--mint-d); box-shadow: 0 0 0 3px var(--mint-l); }
.sb-go { height: 54px; }
.sb-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.chips-l { color: var(--mint-d); font-weight: 700; margin-right: 6px; }
.chip { padding: 3px 13px; border-radius: 999px; background: #eef2f1; transition: background .2s, color .2s; }
.chip:hover { background: var(--mint-d); color: #fff; }
.sb-note { font-size: 12px; color: var(--sub); }

/* ---------- セクション ---------- */
.sec { max-width: 1240px; margin: 0 auto; padding: var(--sec) 24px 0; }
.sec-h { display: grid; grid-template-columns: auto 1fr auto; align-items: end; column-gap: 40px; margin-bottom: 24px; }
.sec-h h2 { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 34px); letter-spacing: .08em; }
.sec-h h2 small { font-size: .72em; }
.sec-h .en { grid-row: 2; font-size: 11px; letter-spacing: .3em; color: var(--sub); }
.sec-side { grid-column: 3; grid-row: 1 / 3; font-size: 13px; color: #4f5d59; line-height: 1.9; }
.sec-h .more { grid-column: 3; grid-row: 1 / 3; align-self: center; }
.sample-note { font-size: 12px; color: var(--sub); margin: -10px 0 14px; }

/* 目的カード */
.purposes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { position: relative; display: flex; height: 170px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(40, 90, 75, .14); }
/* イラストの右端をカードの地色に溶かして、文字へなめらかにつなぐ */
.pcard img { width: 48%; object-fit: cover; object-position: left; transition: transform .6s; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 98%); mask-image: linear-gradient(90deg, #000 55%, transparent 98%); }
.pcard:hover img { transform: scale(1.05); }
.pc-t { position: relative; flex: 1; margin-left: -6%; padding: 30px 14px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.pc-t b { font-family: var(--serif); font-weight: 600; font-size: 18px; color: #3e3a3a; white-space: nowrap; }
.pc-t small { font-size: 12px; color: #5a5f5d; line-height: 1.8; }
.pcard .go { position: absolute; right: 14px; bottom: 14px; }
.t-pink { background: linear-gradient(135deg, #fbe9e6, #f7dcd8); } .t-pink b { color: #b5544a; }
.t-mint { background: linear-gradient(135deg, #e3f5ee, #d1eee3); }
.t-blue { background: linear-gradient(135deg, #e5eefa, #d6e4f6); }
.t-green { background: linear-gradient(135deg, #eaf6ea, #ddefdd); }

/* スタジオ */
.studios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* カードのどこを押してもスタジオのページへ（タイトルのリンクをカード全体に広げる。お気に入りだけは上に出す） */
.scard { position: relative; cursor: pointer; }
.sc-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.sc-link:focus-visible { outline: 0; }
.sc-link:focus-visible::after { outline: 3px solid var(--mint-d); outline-offset: 2px; border-radius: 14px; }
.scard:hover h3 { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mint); }
.scard:hover .go { background: var(--mint-d); color: #fff; transform: translateX(3px); }
.sc-fav { z-index: 2; }
.scard { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.scard:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(40, 90, 75, .14); }
.sc-pic { position: relative; aspect-ratio: 315 / 147; overflow: hidden; }
.sc-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.scard:hover .sc-pic img { transform: scale(1.06); }
.sc-badge { position: absolute; left: 10px; top: 10px; padding: 3px 14px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; }
.c-coral { background: var(--coral); } .c-blue { background: #5e8fd8; } .c-green { background: #5aa96f; }
.sc-fav { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; color: #444; transition: color .2s, transform .2s; }
.sc-fav svg { width: 18px; height: 18px; }
.sc-fav[aria-pressed="true"] { color: var(--coral); } .sc-fav[aria-pressed="true"] svg { fill: currentColor; }
.sc-fav:active { transform: scale(.88); }
.sc-body { padding: 14px 18px 18px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: 11px; padding: 1px 10px; border-radius: 999px; background: #e7f4ef; color: #3c7c6a; }
.tags span:nth-child(3) { background: #fbe6e6; color: #c25b5b; }
.scard h3 { font-size: 16px; font-weight: 700; margin: 8px 0 2px; }
.sc-meta { font-size: 12px; color: var(--sub); }
.sc-area { display: inline-flex; align-items: center; gap: 4px; }
.sc-area svg { width: 14px; height: 14px; }
.sc-text { font-size: 12.5px; color: #555f5c; margin-top: 6px; padding-right: 48px; }
.sc-body .go { position: absolute; right: 16px; bottom: 18px; background: #eef3f2; }

/* はじめて */
.first { display: grid; grid-template-columns: 34% 1fr 30%; align-items: center; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.first-pic { height: 100%; width: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.first-txt { position: relative; padding: 26px 20px; }
.pill { display: inline-block; font-size: 11px; padding: 1px 12px; border-radius: 999px; background: var(--mint-l); color: var(--deep); }
.first-txt h2 { font-family: var(--serif); font-size: 26px; margin: 6px 0; letter-spacing: .08em; }
.first-txt p:not(.pill) { font-size: 13px; color: #555f5c; }
.first-txt .go { position: absolute; right: 10px; bottom: 26px; }
.first-list { list-style: none; margin: 16px; padding: 14px 22px; background: #f6faf8; border-radius: 14px; }
.first-list a { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; transition: color .2s; }
.first-list a:hover { color: var(--mint-d); }
.first-list svg { width: 18px; height: 18px; color: var(--mint-d); }

/* エリア */
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.region { background: rgba(255, 255, 255, .88); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); }
.region h3 { font-size: 13px; font-weight: 700; color: var(--mint-d); margin-bottom: 6px; }
.region p { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.region a { font-size: 14px; padding: 2px 10px; border-radius: 999px; background: #f2f6f5; transition: background .2s, color .2s; }
.region a:hover { background: var(--mint-d); color: #fff; }
.region a small { margin-left: 4px; font-size: 10px; color: var(--coral); }

.od-about { display: flex; gap: 24px; align-items: flex-start; padding: 30px 34px; background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(232, 247, 241, .95)); border-radius: 20px; box-shadow: var(--shadow); }
.od-ic { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--mint-l); color: var(--deep); }
.od-ic svg { width: 30px; height: 30px; }
.od-about h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.od-about p { font-size: 14px; color: #4f5d59; margin-bottom: 12px; }

/* ---------- 下層ページ ---------- */
.sub main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.ph { padding: 28px 0 var(--gap); }
.crumbs { display: flex; gap: 8px; font-size: 12px; color: var(--sub); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumbs a:hover { color: var(--mint-d); }
.crumbs i { font-style: normal; opacity: .6; }
.ph h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); letter-spacing: .06em; margin: 10px 0 12px; }
.ph-lead { color: #4f5d59; max-width: 760px; }
.stats { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.stats span { padding: 6px 16px; background: #fff; border-radius: 999px; font-size: 13px; box-shadow: 0 4px 12px rgba(40, 90, 75, .06); }
.stats b { font-size: 20px; color: var(--deep); margin-right: 4px; font-family: var(--serif); }
.toc { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.toc a { font-size: 13px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .8); }
.toc a:hover { border-color: var(--mint-d); color: var(--mint-d); }
.card { background: rgba(255, 255, 255, .95); border-radius: var(--r); padding: 28px 32px; box-shadow: var(--shadow); margin-bottom: var(--gap); }
.card > h2 { font-family: var(--serif); font-size: 22px; letter-spacing: .05em; margin-bottom: 16px; }
.card-lead { color: #4f5d59; margin-bottom: 16px; }
.empty { padding: 18px 20px; background: var(--bg2); border-radius: 14px; color: #4f5d59; }
.note { font-size: 12px; color: var(--sub); margin-top: 12px; }
.tips { margin-top: 18px; }
.tips h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tips ol { margin: 0; padding-left: 1.4em; font-size: 14px; }
.munis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.munis a { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-radius: 12px; background: #f4f8f7; font-size: 14px; transition: background .2s, color .2s; }
.munis a.has { background: var(--mint-l); font-weight: 700; }
.munis a:hover { background: var(--mint-d); color: #fff; }
.munis small { font-size: 11px; color: var(--coral); }
.map-wrap { position: relative; margin-bottom: 18px; }
.map { height: 420px; border-radius: 16px; background: var(--bg2); z-index: 0; }
.map-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lg { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; opacity: .45; transition: opacity .2s; }
.lg.on { opacity: 1; }
.lg i, .spot-g h3 i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg small { color: var(--sub); }
.spot-g { margin-top: 22px; }
.spot-g h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.spot-g h3 small { font-size: 12px; font-weight: 400; color: var(--sub); }
.spot-g.off { display: none; }
.spots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.spots li { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: #f6faf8; font-size: 13px; }
.spots b { font-size: 14px; }
.spots .cat { font-size: 11px; color: var(--mint-d); }
.spots .addr, .spots .info { color: var(--sub); font-size: 12px; }
.src { font-size: 11.5px; color: var(--sub); margin-top: 8px; }
.src a, .srcs a, .tbl a { color: var(--deep); text-decoration: underline; text-underline-offset: 2px; }
.srcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.srcs li { display: flex; gap: 12px; padding: 12px 16px; background: #f6faf8; border-radius: 12px; }
.srcs svg { width: 22px; height: 22px; color: var(--mint-d); margin-top: 2px; }
.srcs span { display: flex; flex-direction: column; font-size: 14px; }
.srcs small { color: var(--sub); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--sub); font-weight: 500; }
.purpose-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pl { padding: 14px 18px; border-radius: 14px; }
.pl b { font-family: var(--serif); font-size: 17px; }
.pl p { font-size: 13px; }
.legal h2 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 14px; margin-bottom: 6px; }
.legal a { color: var(--deep); text-decoration: underline; }
.leaflet-popup-content { font-family: var(--sans); font-size: 13px; line-height: 1.6; }

/* ---------- フッター ---------- */
.ft { margin-top: calc(var(--sec) + 8px); background: linear-gradient(180deg, rgba(222, 243, 235, .6), #dff1ea); }
.ft-in { max-width: 1240px; margin: 0 auto; padding: 40px 24px 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px 40px; align-items: center; }
.ft-lead { font-size: 13px; color: #4f5d59; }
.ft-nav { display: flex; gap: 20px; font-size: 13px; }
.ft-nav a:hover { color: var(--mint-d); }
.ft-c { grid-column: 1 / -1; font-size: 11px; color: var(--sub); }

/* ---------- 動き：見えたらふわっと（app.js が .rv を付ける） ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-h span, .hero-lead, .script, .rv { opacity: 1; transform: none; }
}

/* ---------- タブレット・スマホ ---------- */
/* ヘッダー：幅が足りなくなったら項目を減らし、960px 以下はメニューボタンにする */
@media (max-width: 1280px) { .gnav { gap: 18px; font-size: 13px; } .gnav a:nth-child(3), .gnav a:nth-child(4) { display: none; } }
@media (max-width: 1100px) { .hd-cta { display: none; } }
@media (max-width: 960px) {
  .hd { padding: 10px 12px 0; }
  .hd-in { gap: 10px 12px; padding: 8px 10px 8px 16px; border-radius: 22px; flex-wrap: wrap; }
  .logo-mark { width: 40px; height: 26px; }
  .logo-t b { font-size: 19px; }
  .logo-t small { letter-spacing: .3em; }
  .qs { margin-left: auto; }
  .qs label { width: 200px; }
  .menu-btn { display: grid; gap: 5px; place-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--mint-l); cursor: pointer; }
  .menu-btn span { width: 16px; height: 1.6px; background: var(--deep); transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
  .gnav { order: 9; width: 100%; flex-direction: column; gap: 0; margin: 0; max-height: 0; overflow: hidden; transition: max-height .4s; font-size: 14px; }
  .gnav.open { max-height: 320px; }
  .gnav a { padding: 10px 6px; border-top: 1px solid var(--line); }
  .gnav a:nth-child(3), .gnav a:nth-child(4) { display: block; }
}
@media (max-width: 520px) {
  .qs { order: 8; width: 100%; margin: 0; }
  .qs label { width: 100%; }
  .menu-btn { margin-left: auto; }
}
@media (max-width: 1080px) {
  .purposes { grid-template-columns: repeat(2, 1fr); }
  .first { grid-template-columns: 40% 1fr; }
  .first-list { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --sec: 48px; --gap: 16px; }
  /* スマホのヒーロー：写真の上に見出しを重ねて、縦の長さを半分ほどに（2026-10-24 持ち主の指示） */
  .hero { padding: 0 16px; }
  .hero-in { display: block; min-height: 0; margin: 0 -16px; }
  .hero-pic { margin: 0; aspect-ratio: auto; height: clamp(262px, 70vw, 360px); border-radius: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-pic img { object-position: 72% 30%; }
  .hero-pic::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(248, 252, 250, .96) 0, rgba(248, 252, 250, .82) 34%, rgba(248, 252, 250, 0) 62%), linear-gradient(0deg, var(--bg) 0, rgba(245, 250, 248, 0) 26%); }
  .hero-txt { position: absolute; z-index: 3; left: 0; top: 0; padding: 22px 16px 0; }
  .hero-h { font-size: clamp(27px, 8.2vw, 38px); line-height: 1.3; }
  .hero-lead { font-size: 12px; line-height: 1.8; margin-top: 10px; }
  .hero-lead { max-width: 10em; font-size: 13px; }
  .hero-lead br, .hero-lead .l2 { display: none; }
  .script { display: none; }
  .badge { z-index: 2; padding: 4px 10px 4px 7px; column-gap: 4px; }
  .badge svg { width: 18px; height: 18px; }
  .badge b { font-size: 11px; }
  .b1 { display: none; }
  /* 仮の写真のぼかした所に重ねる位置（写真を差しかえたら見直す） */
  .b2 { left: 60%; top: 22%; }
  .b3 { left: 62%; top: 64%; }
  .vtext { right: 2%; top: 5%; font-size: 10px; letter-spacing: .12em; }
  /* 検索：エリアは1行、種類とこだわりは横に2つ並べて詰める */
  .sbox { margin: -44px 0 0; padding: 14px 14px 12px; border-radius: 18px; }
  .sb-row { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .sb-f:first-child, .sb-go { grid-column: 1 / -1; }
  .sb-l { font-size: 12px; margin-bottom: 4px; gap: 5px; }
  .sb-l svg { width: 16px; height: 16px; }
  .sb-s select { padding: 9px 30px 9px 12px; font-size: 13px; }
  .sb-s::after { right: 12px; width: 7px; height: 7px; }
  .sb-go { width: 100%; height: 46px; font-size: 15px; margin-top: 4px; }
  .sb-foot { flex-direction: column; align-items: flex-start; margin-top: 10px; gap: 6px; }
  .sb-note { display: none; }
  .sec { padding: var(--sec) 16px 0; }
  .sec-h { grid-template-columns: 1fr; }
  .sec-side { grid-column: 1; grid-row: 3; margin-top: 8px; }
  .sec-h .more { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 8px; }
  .sec-side br { display: none; }
  .purposes { gap: 10px; }
  .pcard { flex-direction: column; height: auto; }
  .pcard img { width: 100%; height: 120px; object-position: 50% 15%; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .pc-t { margin: -14px 0 0; padding: 0 12px 46px; gap: 4px; }
  .pc-t b { font-size: 15px; }
  .pc-t small { font-size: 11px; }
  .pcard .go { width: 30px; height: 30px; right: 10px; bottom: 10px; }
  .studios { grid-template-columns: 1fr; }
  .first { grid-template-columns: 1fr; }
  .first-pic { height: 160px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .first-list { margin: 0 16px 16px; }
  .od-about { flex-direction: column; padding: 22px 20px; }
  .sub main { padding: 0 16px; }
  .card { padding: 20px 18px; }
  .card > h2 { font-size: 19px; }
  .map { height: 320px; }
  .purpose-list { grid-template-columns: 1fr; }
  .tbl { font-size: 12px; }
  .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; }
  .ft-in { grid-template-columns: 1fr; }
  .ft-nav { flex-wrap: wrap; }
}
