/* =========================================================
   結心堂｜墓地・霊園案内  スタイル
   構成：
   1. 色・基本設定
   2. ヘッダー・試作リボン
   3. ヒーロー（空・看板・イラスト地図・スマホ地域タイル）
   4. 地域ナビ（追従）
   5. 地域セクション・霊園カード
   6. 使い方・ご相談・フッター
   7. 動き（出現アニメーション）・動きを減らす設定
   ========================================================= */

/* ---------- 1. 色・基本設定 ---------- */
:root {
  /* 公式サイト（yuishindo-ohaka.com）で使われている色に合わせる */
  --ink: #2B4B65;          /* 紺：見出し・本文・ボタン */
  --ink-soft: #5f7386;
  --line: #2B4B65;         /* イラストの線の色 */
  --gold: #C5A059;         /* 金：英字の小見出し・細い線 */
  --peach: #F3C7A5;
  --line-green: #06C755;   /* LINEボタン */
  --hair: rgba(43, 75, 101, .14);
  --sky-top: #6cc9f2;
  --sky-bottom: #d8f2fd;
  --cream: #FDFBF7;
  --paper: #fffdf7;
  --grass: #7cc95f;
  --wood: #b9825b;
  --shadow: 0 10px 30px rgba(43, 75, 101, .10);
  --shadow-lift: 0 18px 40px rgba(36, 83, 94, .18);
  --radius: 22px;
  /* 公式の地域ページと同じ3書体：明朝＝見出し、角ゴシック＝本文、丸ゴシック＝ラベル・ボタン */
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Meiryo", sans-serif;
  --font-maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Meiryo", sans-serif;
  --font-mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --shadow-soft: 0 18px 44px rgba(43, 75, 101, .10);
  --nav-h: 64px;
}

/* 地域ごとの色（--c：メイン、--c-soft：背景用の淡い色、--c-deep：文字用） */
/* 地域ごとのテーマカラー：公式トップページの地域カードの色（2026-10-29確認）
   --c：テーマカラー / --c-deep：文字用 / --c-soft：背景用の淡い色 / --c-band：見出しの下線・地図の色
   尼崎の文字色だけは、公式の #5B9FB8 だと小さい文字が読みにくいため少し濃くしている。
   大阪市4区の背景・下線は、公式の大阪市ページで使われている若草色に合わせている。 */
[data-area="amagasaki"]   { --c: #9CCFDF; --c-deep: #3F7F99; --c-soft: #EEF8FB; --c-band: #B8DDEC; }
[data-area="nishinomiya"] { --c: #E29A6E; --c-deep: #8B563D; --c-soft: #FDF3EC; --c-band: #F3CDB5; }
[data-area="itami"]       { --c: #1F336E; --c-deep: #1F336E; --c-soft: #EFF1FB; --c-band: #D3D8EC; }
[data-area="takarazuka"]  { --c: #6E1F2E; --c-deep: #6E1F2E; --c-soft: #FBF1F2; --c-band: #ECD3D6; }
[data-area="toyonaka"]    { --c: #8CB59A; --c-deep: #537768; --c-soft: #F1F7F3; --c-band: #CFE0D4; }
[data-area="osaka4"]      { --c: #1F5F6E; --c-deep: #1F5F6E; --c-soft: #F1F8EA; --c-band: #BFE09A; }

*, *::before, *::after { box-sizing: border-box; }
/* 折り返しを整える：見出し・ボタンは行の長さをそろえ、文章は最後の行に1〜2文字だけ残らないようにする */
h1, h2, h3, h4, summary, dt, figcaption, .btn, .text-link, [class*="__title"], [class*="__head"], [class*="__main"], [class*="__sub"], strong { text-wrap: balance; }
.nw { white-space: nowrap; } /* 電話番号・番地・時刻などを途中で切らない */
/* 見出し・ボタンは、日本語の文節の切れ目で折り返す（「ま｜ず知っておきたい」のような切れ方を防ぐ。対応していないブラウザではふつうの折り返し） */
h1, h2, h3, h4, summary, dt, .btn, [class*="__title"], [class*="__head"], [class*="__main"], [class*="__name"], strong { word-break: auto-phrase; overflow-wrap: anywhere; } /* 文節が枠より長いときだけ途中で折り返す（画面からはみ出さない） */
.ib { display: inline-block; }
p, li, dd { text-wrap: pretty; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  letter-spacing: .03em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
svg { overflow: visible; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sp-only { display: none; }

/* ---------- 2. ヘッダー・試作リボン ---------- */
.proto-ribbon {
  position: relative; z-index: 30;
  background: repeating-linear-gradient(-45deg, #fff4c7 0 14px, #ffeeb0 14px 28px);
  color: #6b5320; font-size: 13px; font-family: var(--font-maru); text-align: center; padding: 6px 12px; line-height: 1.5;
}
.proto-ribbon strong { background: var(--gold); color: #fff; padding: 1px 8px; border-radius: 99px; margin-right: 4px; }

.site-header {
  position: absolute; z-index: 20; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
}
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo__mark { font-family: var(--font-mincho); font-size: 27px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.logo__sub { font-family: var(--font-mincho); font-size: 8.5px; letter-spacing: .3em; margin-top: 5px; color: var(--ink); }
.logo__img { display: block; height: 40px; width: auto; }
@media (max-width: 820px) { .logo__img { height: 34px; } }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  text-decoration: none; font-family: var(--font-maru); font-weight: 700; font-size: 14px;
  padding: 8px 16px; border-radius: 99px; background: rgba(255, 255, 255, .75);
  transition: background .2s, transform .2s;
}
.site-nav a:hover { background: #fff; transform: translateY(-2px); }
.site-nav__home { background: #fff !important; box-shadow: 0 4px 12px rgba(43, 75, 101, .12); }

/* ---------- 3. ヒーロー ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky-top) 0%, #a8e0f8 45%, var(--sky-bottom) 80%, #eaf8e0 100%);
  padding: 96px clamp(16px, 3vw, 40px) 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-sun { position: absolute; width: 96px; height: 96px; left: 30%; top: 58px; animation: spin 60s linear infinite; }
.hero-cloud { position: absolute; filter: drop-shadow(0 6px 10px rgba(36, 83, 94, .08)); will-change: transform; }
.hero-cloud--1 { width: 160px; height: 85px; left: 4%; top: 118px; animation: drift 34s ease-in-out infinite alternate; }
.hero-cloud--2 { width: 120px; height: 64px; left: 40%; top: 70px; animation: drift 28s ease-in-out -6s infinite alternate; }
.hero-cloud--3 { width: 190px; height: 100px; right: 12%; top: 190px; animation: drift 40s ease-in-out -12s infinite alternate-reverse; }
.hero-cloud--4 { width: 100px; height: 54px; left: 28%; top: 300px; opacity: .85; animation: drift 30s ease-in-out -3s infinite alternate-reverse; }
.hero-bird { position: absolute; width: 30px; height: 14px; animation: flap 1.4s ease-in-out infinite, fly 26s linear infinite; }
.hero-bird--1 { left: 30%; top: 150px; }
.hero-bird--2 { left: 34%; top: 172px; width: 22px; animation-delay: -.5s, -4s; }
.hero-balloon { position: absolute; width: 56px; height: 80px; right: 20%; top: 96px; animation: float 6s ease-in-out infinite; }
.petals span {
  position: absolute; top: -20px; width: 12px; height: 12px;
  background: #f9bfd2; border-radius: 12px 0 12px 0; opacity: .85;
  animation: petal linear infinite;
}

/* PC：左に看板、右に「6地域がつながった1枚の地図」。地図の高さは画面に収まるように */
.hero__inner {
  position: relative;
  width: min(100%, 1320px, calc((100vh - 150px) * 1.03 + 440px));
  min-width: min(100%, 960px);
  margin: 0 auto;
  display: grid; grid-template-columns: minmax(320px, 390px) 1fr; gap: clamp(20px, 2.6vw, 44px);
  align-items: center;
}

/* 看板（タイトル） */
.signboard {
  position: relative;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 32px;
  padding: 46px 30px 28px;
  box-shadow: var(--shadow-soft);
  animation: pop-in .9s cubic-bezier(.2, .9, .3, 1.3) backwards;
}
.signboard::before { /* 木の支柱風の小さな飾り */
  content: ""; position: absolute; left: 50%; top: -14px; width: 26px; height: 26px; margin-left: -13px;
  background: #fff; border: 1px solid var(--gold); border-radius: 50%;
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 13px var(--peach);
}
.signboard__bunting { position: absolute; left: 18px; right: 18px; top: 6px; width: calc(100% - 36px); height: 34px; }
.signboard__bunting g path { transform-box: fill-box; transform-origin: top center; animation: sway 3.6s ease-in-out infinite; }
.signboard__bunting g path:nth-child(even) { animation-delay: -1.8s; }
.signboard__kicker { font-family: var(--font-mincho); font-size: 12px; letter-spacing: .26em; color: var(--gold); text-align: center; font-weight: 600; }
.signboard__kicker span { color: var(--peach); }
.signboard__title { margin-top: 6px; text-align: center; line-height: 1.25; }
.signboard__areas { display: block; font-family: var(--font-maru); font-size: 14.5px; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em; }
.signboard__main {
  display: inline-block; margin-top: 8px; white-space: nowrap;
  font-family: var(--font-mincho);
  font-size: clamp(34px, 3.1vw, 44px); font-weight: 700; letter-spacing: .06em; color: var(--ink);
  background: linear-gradient(transparent 70%, rgba(243, 199, 165, .55) 70%, rgba(243, 199, 165, .55) 94%, transparent 94%);
  padding: 0 4px;
}
.signboard__lead { margin-top: 16px; font-size: 15px; line-height: 2; color: #44596b; }
.signboard__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
/* 公式の地域ページと同じ「点つきの丸タグ」 */
.signboard__tags li {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-maru); font-size: 12.5px; font-weight: 700;
  background: #fff; border: 1px solid var(--hair); border-radius: 99px; padding: 4px 11px;
}
.signboard__tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.signboard__tags li:nth-child(2)::before { background: #8CB59A; }
.signboard__tags li:nth-child(3)::before { background: #7FC0D8; }

.hero__hint {
  margin-top: 18px; display: flex; gap: 8px; align-items: center; justify-content: center;
  font-family: var(--font-maru); font-size: 14px; font-weight: 700; color: var(--ink);
  background: rgba(255, 255, 255, .8); border-radius: 99px; padding: 8px 16px;
}
.hero__hint-icon { flex: none; width: 18px; height: 18px; color: var(--gold); transform: rotate(90deg); animation: bob 1.6s ease-in-out infinite; }
.hero__hint-sp { display: none; }

/* イラスト地図（tools/build-hero-map.py が生成するSVG） */
.hero__map { position: relative; animation: rise-in 1s .15s cubic-bezier(.2, .8, .3, 1) backwards; }
.map-board {
  position: relative;
  aspect-ratio: 1200 / 1170;
  border-radius: 36px;
  border: 6px solid #fff;
  box-shadow: 0 24px 60px rgba(43, 75, 101, .18);
  overflow: hidden;
  background: #eef4e3;
  container-type: inline-size;
}
.hm { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hm-sea { fill: url(#hm-sea-g); }
.hm-sea__tex { fill: url(#hm-sea-p); pointer-events: none; }
.hm-coast { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linejoin: round; opacity: .95; }
.hm-forest { fill: #b7dca0; }
.hm-forest__tex { fill: url(#hm-woods); opacity: .75; }
.hm-osaka-city { fill: #f2eee2; }
.hm-outer { opacity: .9; }
.hm-area__forest { fill: #9ccf88; opacity: .45; pointer-events: none; }
.hm-area__tex { fill: url(#hm-dots); pointer-events: none; }
.hm-river--wide { stroke-width: 16; }
.hm-river__hi--wide { stroke-width: 5; }
.hm-rail { fill: none; stroke: #8f96a0; stroke-width: 4; stroke-linecap: round; pointer-events: none; }
.hm-rail__ties { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 2 6; pointer-events: none; }
.hm-airport { pointer-events: none; }
.hm-train { pointer-events: none; }
.hm-areas { filter: drop-shadow(0 6px 0 rgba(43, 75, 101, .10)) drop-shadow(0 14px 18px rgba(43, 75, 101, .16)); }
.hm-bay { font-family: var(--font-mincho); font-size: 26px; font-weight: 600; letter-spacing: .5em; fill: #4b9cc4; }
.hm-wave { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; opacity: .9; animation: wave 5s var(--d, 0s) ease-in-out infinite; }
.hm-boat { transform-box: fill-box; transform-origin: center bottom; animation: boat-bob 3.4s var(--d, 0s) ease-in-out infinite; }
.hm-river { fill: none; stroke: #a6daf2; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.hm-river__hi { fill: none; stroke: #dff3fb; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.hm-rivers { pointer-events: none; }

/* 地域：白いすき間＋点線（切り取り線）で区切る */
.hm-area { cursor: pointer; transition: opacity .35s, filter .35s; }
.hm-area__fill { stroke: #fff !important; stroke-width: 5px !important; stroke-linejoin: round; }
.hm-area__tex { pointer-events: none; }
.hm-area__cut { fill: none; stroke-width: 2px; stroke-dasharray: 8 7; stroke-linecap: round; stroke-linejoin: round; opacity: .75; pointer-events: none; }
.hm-area__art { pointer-events: none; }
.hm-area > * { transition: transform .45s cubic-bezier(.2, .9, .3, 1.3); }
/* 1つの地域に注目しているとき：その地域を少し持ち上げ、他は控えめに */
.map-board.has-hot .hm-area:not(.is-hot) { opacity: .7; filter: saturate(.3) brightness(1.12); }
.hm-area.is-hot { filter: drop-shadow(0 12px 14px rgba(43, 75, 101, .28)); }
.hm-area.is-hot > * { transform: translateY(-7px); }
.hm-area.is-hot .hm-area__cut { opacity: 1; stroke-width: 2.6px; animation: cut-march 1.2s linear infinite; }

/* 地図の上を動くもの（雲・鳥・飛行機） */
.map-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.map-sky__cloud { position: absolute; left: 0; width: 13cqw; height: 7cqw; opacity: .92; filter: drop-shadow(0 6px 10px rgba(43, 75, 101, .1)); animation: cloud-cross 90s linear infinite; }
.map-sky__cloud--1 { top: 3%; }
.map-sky__cloud--2 { top: 15%; width: 9cqw; height: 5cqw; animation-duration: 120s; animation-delay: -60s; }
.map-sky__bird { position: absolute; left: 0; width: 2.4cqw; height: 1.1cqw; animation: flap 1.3s ease-in-out infinite, bird-cross 34s linear infinite; }
.map-sky__bird--1 { top: 9%; }
.map-sky__bird--2 { top: 11.5%; width: 1.8cqw; animation-delay: -.5s, -1.5s; }
.map-sky__plane { position: absolute; left: 0; top: 0; width: 6cqw; height: 3cqw; animation: plane-cross 26s linear infinite; }

/* 地域ラベル（クリック・Tabで選ぶ） */
.map-label {
  position: absolute; left: calc(var(--lx) * 1%); top: calc(var(--ly) * 1%);
  /* 吹き出しのしっぽの先が、その地域の中心をさすように置く */
  transform: translate(-50%, calc(-100% - 8px));
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: center;
  min-width: 0; padding: 5px 14px 6px 27px;
  background: #fff; border: 1px solid var(--hair); border-radius: 99px;
  text-decoration: none; line-height: 1.25;
  box-shadow: 0 3px 0 var(--c), 0 10px 22px rgba(43, 75, 101, .16);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.5), box-shadow .3s;
  animation: label-in .6s calc(var(--i, 0) * 90ms + .7s) cubic-bezier(.2, .9, .3, 1.4) backwards;
}
.map-label::after { /* 吹き出しのしっぽ */
  content: ""; position: absolute; bottom: -10px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  background: #fff; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  transform: rotate(45deg); border-radius: 0 0 4px 0; bottom: -7px; width: 12px; height: 12px; margin-left: -6px;
}
.map-label__dot { position: absolute; top: 50%; left: 10px; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--c-soft); }
.map-label:hover .map-label__dot, .map-label.is-hot .map-label__dot { top: 14px; }
.map-label__name { font-family: var(--font-mincho); font-size: clamp(14px, 1.25vw, 17px); font-weight: 700; color: var(--ink); white-space: nowrap; letter-spacing: .06em; }
.map-label__count {
  font-family: var(--font-maru); font-size: 11px; font-weight: 700; color: var(--c-deep); white-space: nowrap;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s, opacity .3s;
}
.map-label:hover, .map-label:focus-visible, .map-label.is-hot {
  transform: translate(-50%, calc(-100% - 14px)) scale(1.05);
  box-shadow: 0 5px 0 var(--c), 0 16px 30px rgba(43, 75, 101, .22);
  z-index: 2;
}
.map-label:hover .map-label__count, .map-label:focus-visible .map-label__count, .map-label.is-hot .map-label__count { max-height: 20px; opacity: 1; }


.map-board__compass {
  position: absolute; right: 2.5%; top: 5%; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1px solid var(--hair);
  display: grid; place-items: center; font-family: var(--font-mincho); font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow);
}
.map-board__compass::before {
  content: ""; position: absolute; top: -12px; left: 50%; margin-left: -8px;
  border: 8px solid transparent; border-bottom: 12px solid var(--gold); border-top: 0;
}
.map-board__note {
  position: absolute; right: 2%; bottom: 2.5%; max-width: 38%; z-index: 2;
  font-size: 10.5px; line-height: 1.5; color: var(--ink-soft);
  background: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: 10px;
}

/* スマホ用 地域タイル（PCでは非表示） */
.area-picker { display: none; }

.hero__ground { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; z-index: 1; pointer-events: none; }

/* ---------- 4. 地域ナビ（追従） ---------- */
.area-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 250, 240, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.area-nav__list {
  max-width: 1100px; margin: 0 auto; padding: 10px 16px;
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px;
  padding: 6px 16px; border-radius: 99px;
  background: #fff; border: 1px solid var(--hair);
  font-family: var(--font-maru); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .25s, transform .25s, color .25s;
}
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); transition: transform .3s; }
.chip__name { white-space: nowrap; }
.chip:hover { transform: translateY(-2px); background: var(--c-soft); }
.chip.is-current { background: var(--c-soft); border-color: var(--c); color: var(--c-deep); }
.chip.is-current .chip__dot { transform: scale(1.35); }

/* ---------- 5. 地域セクション ---------- */
.areas { padding: 64px clamp(16px, 3vw, 40px) 40px; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head__kicker { font-family: var(--font-mincho); font-size: 12px; letter-spacing: .3em; font-weight: 600; color: var(--gold); display: flex; align-items: center; justify-content: center; gap: 12px; }
.section-head__kicker::before, .section-head__kicker::after { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .6; }
.section-head__title { font-family: var(--font-mincho); font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: .06em; margin-top: 6px; line-height: 1.5; }
.section-head__title::after {
  content: ""; display: block; width: 74px; height: 10px; margin: 12px auto 0;
  background: radial-gradient(circle, var(--peach) 0 3.5px, transparent 4.5px) 0 0 / 18.5px 10px repeat-x;
}
.section-head__lead { margin-top: 16px; font-size: 15.5px; text-align: left; }
.notice {
  margin-top: 16px; display: inline-flex; gap: 10px; align-items: center; text-align: left;
  font-size: 13.5px; background: #fffaf0; border: 1px dashed var(--gold); border-radius: 14px; padding: 8px 14px; line-height: 1.6;
}
.notice__badge { flex: none; font-family: var(--font-maru); background: var(--gold); color: #fff; font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 99px; }

.area {
  position: relative;
  max-width: 1200px; margin: 0 auto 56px;
  display: grid; grid-template-columns: 44% 1fr; gap: clamp(20px, 4vw, 56px); align-items: start;
  padding: clamp(28px, 4vw, 52px);
  background: var(--c-soft);
  border-radius: 48px;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.area::before { /* ステッチ風の内側線 */
  content: ""; position: absolute; inset: 10px; border: 1.5px dashed color-mix(in srgb, var(--c) 55%, transparent);
  border-radius: 40px; pointer-events: none;
}
.area--reverse { grid-template-columns: 1fr 44%; }
.area--reverse .area__visual { order: 2; }
.area.is-arrived { animation: arrive 1s ease; }

.area__visual { position: sticky; top: calc(var(--nav-h) + 24px); }
.area-map { position: relative; display: grid; place-items: center; padding: 6% 4%; }
.area-map__blob {
  position: absolute; inset: 8% 2% 4%;
  background: #fff; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
  box-shadow: inset 0 -10px 0 color-mix(in srgb, var(--c) 18%, #fff);
}
.area-map__img {
  position: relative; max-height: 520px; width: auto; object-fit: contain;
  filter: drop-shadow(0 8px 0 rgba(43, 75, 101, .07)) drop-shadow(0 16px 18px rgba(43, 75, 101, .14));
}
.area-map__tag {
  position: absolute; left: 4%; top: 2%;
  background: #fff; color: var(--c-deep); font-family: var(--font-mincho); font-weight: 700; font-size: 12.5px; letter-spacing: .2em;
  padding: 6px 16px; border-radius: 99px; border: 1px solid var(--c);
  box-shadow: 0 3px 0 var(--c);
}
.motif { position: absolute; pointer-events: none; }
.area-map__pref { display: none; }
/* 飾りの動き：雲は流れる・花はくるくる・船はぷかぷか・鳥と飛行機は横へ飛ぶ。山・木・橋は動かさない */
.motif--a { width: 92px; height: 58px; right: 0; bottom: 8%; }
.motif--b { width: 96px; height: 52px; right: 6%; top: 4%; animation: drift 18s ease-in-out infinite alternate; }
.motif--c { width: 34px; height: 34px; left: 6%; bottom: 14%; color: var(--c-band); animation: spin 14s linear infinite; }
.motif--bob { transform-origin: center bottom; animation: boat-bob 3.4s ease-in-out infinite; }
.motif--c.motif--bob { width: 64px; height: 40px; left: 2%; }
.motif--fly { width: 40px; height: 16px; left: 4%; bottom: auto; top: 24%; animation: flap 1.3s ease-in-out infinite, motif-fly 12s linear infinite; }
.motif--still { animation: none; }
.motif--plane { width: 100px; height: 50px; animation: plane 9s ease-in-out infinite; }
[data-area="takarazuka"] .motif--a, [data-area="toyonaka"] .motif--a { width: 58px; height: 72px; }

.area__head { margin-bottom: 22px; }
.area__pref {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-maru); font-size: 13px; font-weight: 700; color: var(--c-deep);
  background: #fff; border-radius: 99px; padding: 3px 14px; border: 1px solid var(--hair);
}
.area__pref::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.area__title { margin-top: 12px; font-family: var(--font-mincho); font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.4; letter-spacing: .05em; }
.area__title-city { background: linear-gradient(transparent 70%, var(--c-band) 70%, var(--c-band) 94%, transparent 94%); }
.area__lead { margin-top: 12px; font-size: 15.5px; color: #44596b; }
.area__wards { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.area__wards li { font-family: var(--font-maru); font-size: 13.5px; font-weight: 700; background: #fff; border-radius: 99px; padding: 3px 14px; border: 1px solid var(--hair); }

/* 霊園カード（tools/sync-slots.mjs が生成）
   アイコンの間を点線でつなぎ、「散歩道」のように並べる */
.cemetery-list { position: relative; display: grid; gap: 12px; }
.cemetery-list::before {
  content: ""; position: absolute; left: 45px; top: 30px; bottom: 30px;
  border-left: 4px dotted color-mix(in srgb, var(--c) 70%, #fff);
}
.cemetery-card {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 12px 14px;
  border: 1px solid var(--hair);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 35%, transparent), 0 8px 20px rgba(43, 75, 101, .05);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.4), box-shadow .3s, border-color .3s;
}
.cemetery-card:hover { transform: translateX(6px); border-color: var(--c); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 35%, transparent), var(--shadow-lift); }
/* 霊園の写真（詳細ページの一番上の写真を正方形に切り出したもの）。角を丸めた四角に白いふち */
.cemetery-card__photo {
  width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--c-soft);
  border: 3px solid #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 55%, #fff), 0 4px 10px rgba(43, 75, 101, .12);
}
.cemetery-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .3, 1); }
.cemetery-card:hover .cemetery-card__photo img { transform: scale(1.08); }
.cemetery-card__icon { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--c-soft); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 50%, #fff); }
.cemetery-card__icon svg { width: 42px; height: 42px; }
.cemetery-card__no {
  position: absolute; right: -8px; top: -6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c); color: #fff; font-size: 13px; font-weight: 900; display: grid; place-items: center;
  border: 2px solid #fff;
}
.grave-flower { transform-box: fill-box; transform-origin: bottom center; }
.cemetery-card:hover .grave-flower--l { animation: sway 1s ease-in-out 2; }
.cemetery-card:hover .grave-flower--r { animation: sway 1s ease-in-out .2s 2; }
.cemetery-card__area { font-family: var(--font-maru); font-size: 12px; font-weight: 700; color: var(--c-deep); line-height: 1.4; }
.cemetery-card__name { font-family: var(--font-mincho); font-size: 17.5px; font-weight: 700; line-height: 1.45; letter-spacing: .04em; }
.cemetery-card__alias { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.5; color: var(--ink-soft); }
.cemetery-card__desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-top: 2px; }
.cemetery-card__addr { font-size: 13px; margin-top: 2px; }
.cemetery-card__cta {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-width: 96px; min-height: 44px; padding: 6px 14px; border-radius: 14px; white-space: nowrap;
  font-family: var(--font-maru); font-size: 13px; font-weight: 700; line-height: 1.35; text-decoration: none;
  /* 地域ごとの色：LINEの相談ボタンと同じ考え方で、テーマカラーを淡くした地に、同じ地域の濃い色の文字 */
  background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c-deep);
  border: 1px solid color-mix(in srgb, var(--c) 30%, #fff);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 38%, #fff);
  transition: transform .2s, box-shadow .2s;
}
a.cemetery-card__cta::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* カード全体をクリック可能に */
a.cemetery-card__cta:hover { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 38%, #fff); }
.cemetery-card__cta.is-disabled { flex-direction: column; background: #f5f3ee; color: #8a8a80; box-shadow: none; border: 2px dashed #d5d0c2; cursor: default; font-size: 12px; }
.cemetery-card.is-pending .cemetery-card__name { color: #6a7f90; }

/* 公式サイトの地域ページへのリンク（押せることが分かる白いボタン） */
.area__more {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 20px; border-radius: 99px;
  background: #fff; border: 1px solid var(--hair); box-shadow: 0 3px 0 var(--c), 0 8px 18px rgba(43, 75, 101, .08);
  text-decoration: none; color: var(--ink);
  transition: transform .25s, box-shadow .25s;
}
.area__more-text { display: flex; flex-direction: column; line-height: 1.45; }
.area__more-main { font-family: var(--font-maru); font-weight: 700; font-size: 15px; }
.area__more-sub { font-size: 12.5px; color: var(--c-deep); font-weight: 700; }
.area__more-arrow {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff;
}
.area__more-arrow svg { width: 16px; height: 16px; animation: nudge 2.4s ease-in-out infinite; }
.area__more:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--c), 0 12px 24px rgba(43, 75, 101, .12); }
.area__more:hover .area__more-arrow svg { animation-duration: .9s; }
/* 「ここでご紹介しているのは一部です」：一覧の前に目立つ枠で出す（載っていない墓地・霊園も相談できることを伝える） */
.area__listnote {
  margin: 0 0 16px; padding: 14px 18px 15px; border-radius: 18px;
  background: #fff; border: 2px solid color-mix(in srgb, var(--c) 70%, #fff);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 35%, transparent);
}
.area__listnote-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-mincho); font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; color: var(--c-deep); }
.area__listnote-title svg { flex: none; width: 22px; height: 22px; color: var(--c); animation: spin 14s linear infinite; }
.area__listnote-text { margin-top: 4px; font-size: 14px; line-height: 1.75; color: #44596b; }
.area__listnote-text .nw { white-space: nowrap; } /* 「お気軽にご相談ください。」を途中で折り返さない */
/* 枠の中の小さな注意書き（宝塚市の出張費の区分など） */
.area__listnote-sub {
  margin-top: 10px; display: flex; gap: 6px; padding: 7px 10px; border-radius: 10px;
  background: var(--c-soft); font-size: 12.5px; line-height: 1.6; color: #44596b;
}
.area__listnote-sub span { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 900; line-height: 1; }

/* ---------- 6. 使い方・ご相談・フッター ---------- */
.flow { padding: 40px clamp(16px, 3vw, 40px) 56px; }
.flow__steps { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.flow__steps::before { /* 点線でつなぐ */
  content: ""; position: absolute; left: 16%; right: 16%; top: 54px; border-top: 3px dotted var(--peach); z-index: -1;
}
.flow-step { text-align: center; background: #fff; border-radius: 30px; padding: 26px 22px 24px; border: 1px solid var(--hair); box-shadow: var(--shadow-soft); }
.flow-step__icon { width: 72px; height: 72px; margin: 0 auto; transition: transform .4s cubic-bezier(.2, .9, .3, 1.6); }
.flow-step:hover .flow-step__icon { transform: rotate(-8deg) scale(1.08); }
.flow-step__no { margin-top: 10px; font-family: var(--font-mincho); font-size: 12px; letter-spacing: .24em; font-weight: 700; color: var(--gold); }
.flow-step__title { font-family: var(--font-mincho); font-size: 20px; font-weight: 700; letter-spacing: .05em; }
.flow-step__text { margin-top: 8px; font-size: 14.5px; text-align: left; }

.consult { padding: 20px clamp(16px, 3vw, 40px) 80px; display: grid; gap: 28px; justify-items: center; }
.consult__card {
  position: relative; max-width: 880px; width: 100%; text-align: center;
  background: linear-gradient(180deg, #eaf6fb, #fff 72%);
  border: 1px solid var(--hair); border-radius: 36px; padding: 48px 32px 44px;
  box-shadow: var(--shadow-soft);
}
.consult__deco { position: absolute; bottom: -4px; width: 64px; height: 80px; }
.consult__deco--l { left: 24px; }
.consult__deco--r { right: 24px; }
.consult__kicker { font-family: var(--font-mincho); font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.consult__title { margin-top: 6px; font-family: var(--font-mincho); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: .05em; line-height: 1.6; }
.consult__text { margin-top: 12px; font-size: 15.5px; color: #44596b; }
.consult__btns { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.consult__btns .btn { margin-top: 0; }
.consult__home { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; font-family: var(--font-maru); font-size: 14px; font-weight: 700; color: var(--ink); }
.consult__home svg { width: 16px; height: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px;
  padding: 14px 30px; min-height: 56px; min-width: 230px; border-radius: 99px;
  font-family: var(--font-maru); font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.3;
  transition: transform .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: .9; letter-spacing: .06em; }
.btn--tel { background: var(--ink); color: #fff; box-shadow: 0 12px 24px rgba(43, 75, 101, .25); }
.btn--line { background: var(--line-green); color: #fff; box-shadow: 0 12px 24px rgba(6, 199, 85, .25); }
.btn:hover { transform: translateY(-2px); }

.about-page { max-width: 880px; width: 100%; background: #fff; border-radius: 24px; padding: 22px 28px; border: 1px dashed #d5cbb5; }
.about-page__title { font-family: var(--font-mincho); font-size: 17px; font-weight: 700; }
.about-page ul { margin-top: 8px; display: grid; gap: 4px; }
.about-page li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.about-page li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--peach); }

.site-footer { position: relative; background: #fff; color: var(--ink); margin-top: 60px; border-top: 1px solid var(--hair); }
.site-footer__hills { position: absolute; left: 0; right: 0; top: -60px; width: 100%; height: 61px; }
.site-footer__inner { max-width: 1100px; margin: 0 auto; padding: 30px 20px 30px; text-align: center; }
.site-footer__logo { font-family: var(--font-mincho); font-size: 28px; font-weight: 700; letter-spacing: .1em; line-height: 1.2; }
.site-footer__logo small { display: block; font-size: 9px; letter-spacing: .3em; }
.site-footer__tag { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.site-footer__nav { margin-top: 18px; }
.site-footer__head { font-family: var(--font-mincho); font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.site-footer__links { margin: 10px auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site-footer__links a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  border-radius: 99px; background: var(--cream); border: 1px solid var(--hair);
  text-decoration: none; font-family: var(--font-maru); font-weight: 700; font-size: 14px;
  transition: background .2s, transform .2s;
}
.site-footer__links a:hover { background: var(--c-soft); transform: translateY(-2px); }
.site-footer__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.site-footer__home { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-family: var(--font-maru); font-size: 14px; font-weight: 700; color: var(--ink); }
.site-footer__home svg { width: 16px; height: 16px; }
.site-footer__copy { margin-top: 10px; opacity: .9; }

/* 右端の相談ボタン（PC） */
/* ヒーロー（地図）を見ている間は隠し、スクロール後に出す（地図と重ならないように） */
.side-cta { position: fixed; right: 14px; top: 50%; z-index: 45; display: grid; gap: 10px; transform: translate(90px, -50%); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), opacity .3s; }
.side-cta.is-shown { transform: translate(0, -50%); opacity: 1; pointer-events: auto; }
.side-cta__btn {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 2px;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--hair); box-shadow: var(--shadow);
  font-family: var(--font-maru); font-size: 11px; font-weight: 700; color: var(--ink); text-decoration: none;
  transition: transform .25s;
}
.side-cta__btn svg { width: 20px; height: 20px; }
.side-cta__btn--line { color: #0a8f3e; background: #effcf3; }
.side-cta__btn--line svg { color: var(--line-green); }
.side-cta__btn--home svg { color: var(--gold); }
.side-cta__btn:hover { transform: translateX(-3px); }

/* スマホの相談バー（PCでは出さない） */
.dock { display: none; }

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 1px solid var(--hair); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top svg { width: 22px; height: 22px; transform: rotate(-90deg); color: var(--ink); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- 7. 動き ---------- */
/* JSが有効なときだけ、スクロールで「ふわっ」と出す（JSなしでも内容は必ず見える） */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .3, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .area__visual.reveal { transform: translateY(26px) scale(.92); }
.js .area__visual.reveal.is-in { transform: none; }
.js .reveal-list > li { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1.2); }
.js .reveal-list.is-in > li { opacity: 1; transform: none; }
.js .reveal-list.is-in > li:nth-child(2) { transition-delay: .08s; }
.js .reveal-list.is-in > li:nth-child(3) { transition-delay: .16s; }
.js .reveal-list.is-in > li:nth-child(4) { transition-delay: .24s; }
.js .reveal-list.is-in > li:nth-child(5) { transition-delay: .32s; }
/* カードの hover の transition を出現後に戻す */
.js .reveal-list.is-done > li { transition-delay: 0s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-20px); } to { transform: translateX(30px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
@keyframes sway { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.6); } }
@keyframes fly { from { translate: -40vw 0; } to { translate: 90vw -40px; } }
@keyframes wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes path-walk { to { stroke-dashoffset: -640; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes motif-fly { 0% { translate: -10px 0; opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { translate: 220px -24px; opacity: 0; } }
@keyframes nudge { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 4px 0; } }
@keyframes boat-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
@keyframes cut-march { to { stroke-dashoffset: -30; } }
@keyframes cloud-cross { from { transform: translateX(-15cqw); } to { transform: translateX(105cqw); } }
@keyframes bird-cross { from { transform: translateX(-6cqw); } to { transform: translateX(104cqw); } }
/* 伊丹のあたりから右上へ飛び立つ */
@keyframes plane-cross {
  0% { transform: translate(58cqw, 30cqw) rotate(-16deg) scale(.7); opacity: 0; }
  6% { opacity: 1; }
  50% { transform: translate(102cqw, 4cqw) rotate(-16deg) scale(1); opacity: 1; }
  51%, 100% { transform: translate(102cqw, 4cqw) rotate(-16deg); opacity: 0; }
}
@keyframes island-in { from { opacity: 0; transform: translateY(26px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes label-in { from { opacity: 0; transform: translate(-50%, -70%) scale(.6); } to { opacity: 1; transform: translate(-50%, calc(-100% - 8px)); } }
@keyframes blob { to { border-radius: 54% 46% 45% 55% / 46% 56% 44% 54%; } }
@keyframes plane { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(-30px, -14px) rotate(-8deg); } }
@keyframes arrive { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }
@keyframes petal {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translate(-120px, 110vh) rotate(540deg); opacity: 0; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .side-cta__btn { width: 54px; height: 54px; font-size: 10px; }
  .hero__inner { grid-template-columns: 1fr; max-width: 860px; }
  .hero__intro { max-width: 560px; margin: 0 auto; }
  .area, .area--reverse { grid-template-columns: 1fr 1fr; }
}

/* スマホ・小さいタブレット：地図の縮小ではなく、大きな地域タイルに切り替える */
@media (max-width: 820px) {
  :root { --nav-h: 0px; } /* スマホは上についてくる地域バーを出さない */
  .site-nav a:not(.site-nav__home) { display: none; }
  /* スマホ：看板の上に「空の帯」をとり、太陽・雲・気球を看板に隠れない位置に置く */
  .hero { padding: 150px 16px 96px; }
  .hero-sun { width: 76px; height: 76px; left: auto; right: 14px; top: 68px; }
  .hero-cloud--1 { width: 116px; height: 62px; left: 10px; top: 76px; }
  .hero-cloud--2 { width: 84px; height: 45px; left: 46%; top: 92px; }
  .hero-balloon { left: 34%; right: auto; top: 66px; width: 30px; height: 44px; }
  .hero-bird--1 { top: 86px; }
  .hero-bird--2 { top: 100px; }
  .hero-cloud--3, .hero-cloud--4 { display: none; }
  .signboard { padding: 38px 18px 20px; border-radius: 28px; }
  .signboard__tags { margin-top: 12px; }
  .signboard__tags li { font-size: 12px; padding: 2px 10px; }
  .signboard__areas { font-size: 13.5px; }
  .signboard__main { font-size: 34px; }
  .signboard__lead { font-size: 14.5px; margin-top: 10px; line-height: 1.8; }
  .hero__hint-pc { display: none; }
  .hero__hint-sp { display: inline; }
  .hero__hint { font-size: 13px; }
  .hero__map { display: none; }

  .area-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
  .area-tile {
    position: relative; display: flex; flex-direction: column; align-items: center;
    min-height: 168px; padding: 10px 8px 12px; border-radius: 26px; text-decoration: none;
    background: #fff; border: 1px solid var(--hair);
    box-shadow: 0 4px 0 var(--c), 0 10px 22px rgba(43, 75, 101, .10);
    transition: transform .2s, box-shadow .2s;
    animation: island-in .7s cubic-bezier(.2, .9, .3, 1.3) backwards;
  }
  .area-picker li:nth-child(2) .area-tile { animation-delay: .06s; }
  .area-picker li:nth-child(3) .area-tile { animation-delay: .12s; }
  .area-picker li:nth-child(4) .area-tile { animation-delay: .18s; }
  .area-picker li:nth-child(5) .area-tile { animation-delay: .24s; }
  .area-picker li:nth-child(6) .area-tile { animation-delay: .3s; }
  .area-tile:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--c), 0 4px 10px rgba(36, 83, 94, .12); }
  .area-tile__img {
    width: 100%; height: 100px; display: grid; place-items: center;
    background: var(--c-soft); border-radius: 18px; overflow: hidden;
  }
  .area-tile__img img { height: 92px; width: auto; filter: drop-shadow(0 4px 4px rgba(36, 83, 94, .18)); }
  .area-tile__name { margin-top: 8px; font-family: var(--font-mincho); font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: .05em; }
  .area-tile__sub { font-family: var(--font-maru); font-size: 11.5px; font-weight: 700; color: var(--c-deep); }

  /* スマホは上についてくる地域バーを出さない（画面の上下が狭くなるため）。地域へは上の地域タイルから移動する */
  .area-nav { display: none; }
  /* （地域バーを出す場合の形）1行の横スクロール。ナビの中だけ動く */
  .area-nav__list {
    flex-wrap: nowrap; justify-content: flex-start; gap: 6px; padding: 8px 12px;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
            mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .area-nav__list::-webkit-scrollbar { display: none; }
  .area-nav__list li { flex: none; scroll-snap-align: start; }
  .area-nav__list li:last-child { padding-right: 28px; }
  .chip { font-size: 14px; padding: 4px 12px; min-height: 42px; }
  .chip__long { display: none; }

  .areas { padding: 44px 14px 24px; }
  .section-head { margin-bottom: 32px; }
  .section-head__lead { font-size: 15px; }
  .area, .area--reverse { grid-template-columns: 1fr; padding: 20px 14px 24px; border-radius: 34px; margin-bottom: 36px; gap: 8px; }
  .area::before { inset: 7px; border-radius: 28px; }
  .area--reverse .area__visual { order: 0; }
  .area__visual { position: relative; top: 0; }
  .area-map { padding: 8% 6% 4%; }
  .area-map__img { max-height: 340px; }
  .area__title { font-size: 28px; text-align: center; }
  /* 県名バッジは地図の札（AREA 01 ・ 兵庫県）へ移す。読み上げ用には残す */
  .area__pref { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .area-map__pref { display: inline; }
  .area__title br { display: none; }
  .area__lead { font-size: 15px; }
  .motif--a { width: 70px; height: 44px; }
  .motif--b { width: 70px; height: 38px; }

  /* 文字は、バーの左はしと右の丸ボタンの間の真ん中にそろえる */
  .area__more { display: flex; width: 100%; justify-content: space-between; padding: 12px 12px 12px 18px; }
  .area__more-text { flex: 1; align-items: center; text-align: center; }
  .area__more-main { font-size: 14.5px; }
  .area__listnote { padding: 12px 14px 13px; }
  .area__listnote-title { font-size: 16px; }
  .area__listnote-text { font-size: 13.5px; }
  .cemetery-list { gap: 10px; }
  .cemetery-list::before { left: 37px; }
  /* 写真を入れても霊園名の折り返しが増えないよう、すき間とボタンの余白を少し詰める */
  .cemetery-card { grid-template-columns: 52px 1fr auto; gap: 8px; padding: 10px 10px 10px 12px; }
  .cemetery-card__photo { width: 52px; height: 52px; border-radius: 14px; }
  .cemetery-card:hover { transform: none; }
  .cemetery-card__icon { width: 46px; height: 46px; }
  .cemetery-card__icon svg { width: 34px; height: 34px; }
  .cemetery-card__name { font-size: 16px; }
  .cemetery-card__desc { font-size: 12.5px; }
  .cemetery-card__cta { min-width: 64px; padding: 6px 8px; }
  .cemetery-card__cta .cta-long { display: none; }

  .flow__steps { grid-template-columns: 1fr; gap: 16px; }
  .flow__steps::before { left: 50%; right: auto; top: 30px; bottom: 30px; border-top: 0; border-left: 3px dotted var(--peach); }
  .flow-step { display: grid; grid-template-columns: 64px 1fr; text-align: left; column-gap: 14px; padding: 20px; }
  .flow-step__icon { grid-row: span 3; width: 60px; height: 60px; }
  .flow-step__no { margin-top: 0; }
  .flow-step__text { grid-column: 1 / -1; }

  .consult__card { padding: 36px 18px 64px; border-radius: 30px; }
  .consult__text { text-align: left; font-size: 15px; }
  .pc-only { display: none; }
  .btn { width: 100%; font-size: 16px; padding: 12px 18px; }
  .about-page { padding: 18px; }
  .side-cta { display: none; }
  .dock {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
    border-radius: 22px; background: #fff; border: 1px solid var(--hair);
    box-shadow: 0 12px 30px rgba(43, 75, 101, .22);
    transform: translateY(140%); transition: transform .4s cubic-bezier(.2, .9, .3, 1.1);
  }
  .dock.is-shown { transform: none; }
  .dock__btn { display: flex; align-items: center; justify-content: center; gap: clamp(5px, 1.6vw, 8px); min-height: 58px; padding: 6px 8px; text-decoration: none; font-family: var(--font-maru); font-weight: 700; font-size: clamp(13px, 4vw, 15px); line-height: 1.25; }
  .dock__btn span { display: flex; flex-direction: column; align-items: center; }
  /* 画面がせまいときは小さな文字を縮めて、「ご相談・お見積もり無料」を1行に収める */
  .dock__btn small { font-size: clamp(9px, 2.65vw, 10.5px); font-weight: 500; white-space: nowrap; }
  .dock__btn svg { width: 20px; height: 20px; flex: none; }
  .dock__btn--tel { color: var(--ink); background: #fff; }
  .dock__btn--line { color: #0a7d36; background: #effcf3; border-left: 1px solid var(--hair); }
  .dock__btn--line svg { color: var(--line-green); }
  /* 相談バーと重ならないように */
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .site-footer__inner { padding-bottom: 96px; }
  .site-footer__links { grid-template-columns: 1fr 1fr; }
  /* 画面がせまいときは文字を少し小さくして、「大阪市4区のページ」も1行に収める */
  .site-footer__links a { font-size: clamp(11.5px, 3.4vw, 13.5px); padding: 8px 4px; gap: 6px; white-space: nowrap; }
  .site-footer__tag span { display: inline-block; } /* 「／」の所で折り返す */
  .consult__btns { flex-direction: column; }
  .sp-only { display: inline; }
}

@media (max-width: 380px) {
  .signboard__main { font-size: 32px; }
  .area__listnote-title { font-size: 15px; letter-spacing: .02em; }
  .area__more-sub { font-size: 11.5px; }
  .area-tile__name { font-size: 16px; }
}

/* 動きを減らす設定のときは、装飾アニメーションを止めて即表示にする */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .petals, .hero-bird { display: none; }
  .js .reveal, .js .reveal-list > li { opacity: 1; transform: none; }
}
