/* ============================================================
   墓地・実家保全連合 style.css
   ------------------------------------------------------------
   目次
   1. 変数（色・書体・余白）
   2. 基本設定（リセット・全体）
   3. 共通パーツ（セクション見出し・ボタン・カード・チップ）
   4. ヘッダー
   5. ヒーロー（ファーストビュー）
   6. お悩みセクション
   7. サービス内容
   8. 料金
   9. ご依頼の流れ
   10. 私たちの考え方
   11. FAQ
   12. 最終CTA
   13. フッター
   14. レスポンシブ（560px以上 / 768px以上 / 1024px以上）
   15. アクセシビリティ配慮と動き（フォーカス・reduced motion・スクロール表示）
   16. 対応エリア（地図＋霊園・墓地の一覧）
   17. フォーム・報告ページ・管理画面
============================================================ */

/* ---------- 1. 変数 ---------- */
:root {
  --color-bg: #f8f6f0;
  --color-text: #232d27;
  --color-text-muted: #55635c;
  --color-ink: #1f2b25;
  --color-ink-text: #e9efea;
  --color-ink-muted: #a9bab0;
  --color-cta: #4a7a60;
  --color-cta-hover: #3b6650;
  --color-cta-text: #ffffff;
  --color-section-soft: #e9f0eb;
  --color-card: #ffffff;
  --color-border: #d9e0db;
  --color-accent-warm: #f1e7d6;

  --font-sans:
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo,
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1200px;
  --radius-card: 8px;
  --radius-button: 999px;
  --section-pad-y: 72px;
  --shadow-card: 0 1px 2px rgba(31, 43, 37, 0.04), 0 8px 28px rgba(31, 43, 37, 0.05);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 1024px) {
  :root {
    --section-pad-y: 128px;
  }
}

/* ---------- 2. 基本設定 ---------- */
* {
  box-sizing: border-box;
}

html {
  font-size: 106.25%; /* 約17px基準：高齢の方にも読みやすいサイズ */
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* 固定ヘッダーの下に見出しが隠れないようにする */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  line-height: 1.5;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.65rem, 5vw, 2.4rem);
}

h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--color-cta);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-cta);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- 3. 共通パーツ ---------- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

.section-inner-narrow {
  max-width: 760px;
}

.section {
  padding: var(--section-pad-y) 0;
}

.section-soft {
  background: var(--color-section-soft);
}

/* セクション見出し。通し番号は CSS のカウンターで振るので、セクションを出し分けても番号は飛ばない */
main {
  counter-reset: section;
}

.section-head {
  counter-increment: section;
  margin-bottom: 36px;
}

.section-head::before {
  content: counter(section, decimal-leading-zero);
  display: inline-block;
  margin-bottom: 18px;
  padding-right: 60px;
  background: linear-gradient(currentColor, currentColor) right center / 44px 1px no-repeat;
  color: var(--color-cta);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  line-height: 1.45;
  margin-bottom: 0.5em;
}

.section-head > :last-child {
  margin-bottom: 0;
}

.section-lead {
  color: var(--color-text-muted);
  max-width: 62ch;
}

.center {
  text-align: center;
}

.fine-print {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.eyebrow {
  color: var(--color-cta);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  margin: 0 0 1.2em;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-cta);
  color: var(--color-cta-text);
  box-shadow: 0 6px 20px rgba(74, 122, 96, 0.22);
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  box-shadow: 0 10px 26px rgba(74, 122, 96, 0.28);
}

/* 矢印。ホバーで少し右へ進む */
.btn-primary:not(.btn-compact)::after {
  content: "";
  width: 18px;
  height: 10px;
  background: currentColor;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.25s var(--ease-out);
}

.btn-primary:hover::after {
  transform: translateX(5px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: #b9c6be;
}

.btn-secondary:hover {
  border-color: var(--color-cta);
  color: var(--color-cta);
}

.btn-compact {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.92rem;
  box-shadow: none;
}

.btn-large {
  min-height: 64px;
  padding: 0 44px;
  font-size: 1.1rem;
}

/* カード */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: var(--color-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

/* エリアチップ (ヒーロー)。枠を付けず、細い区切りで並べる */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.area-chips li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 14px;
  background: #b9c6be;
  vertical-align: -0.08em;
}

/* ---------- 4. ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 240, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 1;
  min-width: 0;
}

/* 横長のロゴでもスマートフォンで「LINEで相談」が画面外に出ないようにする */
.brand-mark {
  width: auto;
  height: auto;
  max-height: 34px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: none;
  margin-left: auto;
  gap: 30px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  color: var(--color-text);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-cta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header .btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* ---------- 5. ヒーロー ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 48px 0 64px;
  overflow: hidden;
}

/* 和紙のような淡い光。画像は使わずグラデーションだけ */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(241, 231, 214, 0.9), transparent 70%),
    radial-gradient(50% 50% at 5% 95%, rgba(233, 240, 235, 0.9), transparent 70%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(1.5rem, 6.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin-bottom: 0.7em;
}

/* 文節の途中で折り返さない */
.phrase {
  display: inline-block;
}

.hero-lead {
  color: var(--color-text-muted);
  max-width: 34em;
  line-height: 2;
}

.hero-lead p {
  margin-bottom: 0.6em;
}

.hero-lead p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px 0 0;
}

.hero-visual {
  position: relative;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding-top: 16%;
}

/* イラストの背後に置くアーチ形の台紙 */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 17% 7%;
  z-index: -1;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, #efe4d0 0%, #f5eee0 55%, rgba(245, 238, 224, 0.35) 100%);
}

/* ---------- 6. お悩みセクション ---------- */
.concern-list {
  display: grid;
  border-top: 1px solid var(--color-text);
}

.concern-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.02rem;
}

.icon-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-cta);
  margin-top: 6px;
}

/* ---------- 7. サービス内容 ---------- */
.service-grid {
  display: grid;
  gap: 18px;
  counter-reset: service;
}

.service-grid .card {
  position: relative;
  counter-increment: service;
  padding: 36px 28px 32px;
  border-color: transparent;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.service-grid .card::after {
  content: counter(service, decimal-leading-zero);
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: 2.2rem;
  line-height: 1;
  color: currentColor;
  opacity: 0.14;
}

.service-grid .card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(31, 43, 37, 0.05),
    0 18px 44px rgba(31, 43, 37, 0.1);
}

.service-grid h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 番号と重ならないよう、見出しの右を空ける */
.service-grid h3 {
  padding-right: 1.6em;
}

.service-summary {
  font-weight: 700;
}

/* 依頼する人の気持ちを一言で。左の線で本文と分ける */
.service-voice {
  padding-left: 14px;
  border-left: 2px solid var(--color-cta);
}

.service-body {
  color: var(--color-text-muted);
}

.service-grid p:last-child {
  margin-bottom: 0;
}

.addon-note {
  margin-top: 40px;
  padding: 26px 0 0;
  border-top: 1px solid #c3d0c8;
  display: grid;
  gap: 4px 40px;
}

.addon-note h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.4em;
}

.addon-note p:last-child {
  margin-bottom: 0;
}

/* ---------- 8. 料金 ---------- */
/* スマートフォンでは 1 プランずつ、広い画面では 3 列に並べる */
.pricing-grid {
  display: grid;
  border-top: 1px solid var(--color-text);
}

.price-card {
  display: grid;
  gap: 12px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--color-border);
}

.price-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
}

.plan-id {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--color-cta);
}

.price-regular {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.price-sub {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.price {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}

.price-label {
  margin-right: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-button);
  background: var(--color-cta);
  color: var(--color-cta-text);
  font-size: 0.78rem;
  vertical-align: 0.5em;
}

.price-number {
  margin-right: 3px;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-feature-settings: "lnum", "tnum";
}

.plan-detail {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.pricing-note {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* 定期対応と別途料金 */
.regular-plan,
.extra-fees {
  margin-top: 56px;
}

.regular-plan > h3,
.extra-fees > h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.extra-fees h4 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.regular-visits {
  display: grid;
  gap: 6px;
  margin: 16px 0 28px;
}

.regular-visits strong {
  display: inline-block;
  min-width: 4.5em;
}

/* かんたん見積もり */
.estimate {
  display: grid;
  gap: 20px;
  padding: 24px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.estimate-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-cta);
}

.estimate-fields {
  display: grid;
  gap: 16px;
}

.estimate label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.estimate select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #b9c6be;
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}

.estimate-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.estimate-result-label {
  width: 100%;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.estimate-total {
  font-weight: 700;
}

.estimate-per {
  color: var(--color-text-muted);
}

.estimate-table {
  margin-top: 18px;
}

.estimate-table summary {
  cursor: pointer;
  color: var(--color-cta-hover);
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 0;
  font-feature-settings: "lnum", "tnum";
}

.fee-table th,
.fee-table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.fee-table thead th {
  border-bottom-color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.fee-table td {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.fee-table .price-sub {
  display: block;
}

/* ---------- 9. ご依頼の流れ ---------- */
.flow-list {
  display: grid;
  gap: 36px;
}

.flow-list li {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

/* 番号どうしをつなぐ線 */
.flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 60px;
  bottom: -28px;
  width: 1px;
  background: #b4c5ba;
}

.flow-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--color-cta);
  background: var(--color-bg);
  color: var(--color-cta);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-list h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 10px 0 0.35em;
}

.flow-list p {
  margin: 0;
  color: var(--color-text-muted);
}

/* スタッフ募集のボタン */
.recruit-action {
  margin: 32px 0 12px;
}

/* ---------- 10. 私たちの考え方 ---------- */
.section-ink {
  background: var(--color-ink);
  color: var(--color-ink-text);
}

.section-ink .section-head::before {
  color: #b9d6c5;
}

.philosophy {
  display: grid;
  gap: 8px;
}

.philosophy-body p {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 2.15;
  letter-spacing: 0.03em;
  margin-bottom: 1.6em;
}

.philosophy-body p:last-child {
  margin-bottom: 0;
}

/* ---------- 11. FAQ ---------- */
.faq-layout {
  display: grid;
}

.faq-list {
  border-top: 1px solid var(--color-text);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  padding: 22px 48px 22px 4px;
  font-weight: 700;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-item summary:hover {
  color: var(--color-cta);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* 開閉の印 (＋ → −)。2 本の線を重ね、開くと縦線が倒れる */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--color-cta);
  transition: transform 0.35s var(--ease-out);
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::after {
  transform: rotate(0deg);
}

.faq-item p {
  padding: 0 48px 24px 4px;
  margin: 0;
  color: var(--color-text-muted);
}

/* 対応しているブラウザでは、答えを高さのアニメーションで開く */
@supports (interpolate-size: allow-keywords) {
  .faq-item {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.4s var(--ease-out),
      content-visibility 0.4s allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }
}

/* ---------- 12. 最終CTA ---------- */
.section-cta {
  position: relative;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 70%),
    var(--color-accent-warm);
}

.section-cta h2 {
  font-size: clamp(1.6rem, 4.6vw, 2.6rem);
  line-height: 1.6;
  margin-bottom: 0.8em;
}

.section-cta p {
  color: var(--color-text);
}

.section-cta .btn {
  margin: 20px 0 20px;
}

#line-pending-note {
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 13. フッター ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-ink-text);
  padding: 64px 0 28px;
  font-size: 0.92rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  gap: 28px;
}

.footer-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}

.footer-name-en {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--color-ink-muted);
}

.footer-heading {
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--color-ink-muted);
}

.footer-block p {
  margin: 0;
}

.footer-line-link,
.footer-links a {
  color: var(--color-ink-text);
  text-decoration: underline;
  text-decoration-color: rgba(233, 239, 234, 0.35);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease;
}

.footer-line-link:hover,
.footer-links a:hover {
  text-decoration-color: currentColor;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-copyright {
  margin: 20px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(233, 239, 234, 0.16);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-ink-muted);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--color-border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 34%;
  background: var(--color-section-soft);
}

/* ---------- 14. レスポンシブ ---------- */
@media (min-width: 560px) {
  .hero-actions {
    flex-direction: row;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .header-inner {
    padding: 14px 28px;
  }

  .section-inner,
  .hero-inner,
  .footer-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .section-head {
    margin-bottom: 52px;
  }

  .hero {
    padding: 72px 0 96px;
  }

  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 3.3vw, 2.6rem);
  }

  .hero-visual {
    max-width: none;
  }

  .concern-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
  }

  .addon-note {
    grid-template-columns: 9em 1fr;
  }

  .addon-note h3 {
    grid-row: span 2;
  }

  .footer-inner {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    align-items: start;
    gap: 36px;
  }

  .footer-copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .site-header .btn {
    margin-left: 12px;
  }

  .hero {
    min-height: min(820px, calc(100svh - 68px));
    display: grid;
    align-items: center;
  }

  .hero-inner {
    width: 100%;
    gap: 72px;
  }

  .service-grid {
    gap: 22px;
  }

  .service-grid .card {
    padding: 44px 34px 40px;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-card {
    align-content: start;
    gap: 18px;
    padding: 30px 26px;
    border-bottom: 1px solid var(--color-text);
  }

  .price-card + .price-card {
    border-left: 1px solid var(--color-border);
  }

  .price-number {
    font-size: 2.6rem;
  }

  .estimate {
    padding: 32px;
  }

  .estimate-fields {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .flow-list li {
    flex-direction: column;
    gap: 18px;
  }

  .flow-list li:not(:last-child)::after {
    left: 64px;
    right: -20px;
    top: 26px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  /* 見出しと本文を横に並べる */
  .philosophy {
    grid-template-columns: auto minmax(0, 40em);
    justify-content: center;
    gap: 96px;
  }

  .philosophy .section-head {
    margin-bottom: 0;
  }

  .philosophy h2 {
    margin: 0;
  }

  .faq-layout {
    grid-template-columns: 0.8fr 1.7fr;
    gap: 64px;
    align-items: start;
  }

  .faq-layout .section-head {
    position: sticky;
    top: 120px;
  }
}

/* ---------- 15. アクセシビリティ配慮と動き ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-cta);
  outline-offset: 2px;
}

.section-ink :focus-visible,
.site-footer :focus-visible {
  outline-color: #b9d6c5;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

/* 動きは、動きを減らす設定にしていない人にだけ見せる。JS は使わない */
@media (prefers-reduced-motion: no-preference) {
  /* ファーストビュー: 上から順に静かに現れる */
  .hero-text > * {
    animation: rise 0.9s var(--ease-out) both;
  }

  .hero-text > :nth-child(2) {
    animation-delay: 0.1s;
  }

  .hero-text > :nth-child(3) {
    animation-delay: 0.22s;
  }

  .hero-text > :nth-child(4) {
    animation-delay: 0.34s;
  }

  .hero-text > :nth-child(5) {
    animation-delay: 0.46s;
  }

  .hero-visual {
    animation: fade 1.4s ease 0.25s both;
  }

  /* スクロールで画面に入った要素を浮かび上がらせる。
     ページ末尾の相談窓口は、スクロールしきれず薄いまま残らないよう対象にしない。
     未対応のブラウザでは @supports の外なので、最初から表示されたままになる */
  @supports (animation-timeline: view()) {
    .section-head,
    .concern-list li,
    .service-grid .card,
    .addon-note,
    .price-card,
    .pricing-note,
    .flow-list li,
    .area-check,
    .philosophy-body p,
    .faq-item {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   16. 対応エリア (地図 + 霊園・墓地の一覧)
============================================================ */

/* 対応エリアの一覧 */
.area-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.area-scope span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-section-soft);
  color: var(--color-cta-hover);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
.area-scope span:last-child {
  background: transparent;
  border: 1px dashed #b9cabe;
  color: var(--color-text-muted);
}

/* 地図と一覧 */
.area-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}

.area-map-wrap {
  position: relative;
  width: 100%;
  height: 570px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #eef2ef;
  box-shadow: var(--shadow-card);
}
#area-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}
.area-map-title {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 500;
  padding: 8px 12px;
  border: 1px solid rgba(220, 228, 222, 0.95);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(30, 50, 40, 0.08);
}

/* ピン */
.area-marker {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--color-cta);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(30, 60, 40, 0.28);
}
.area-marker::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: 8px;
  top: 8px;
  border-radius: 50%;
  background: #fff;
}

/* Leaflet の吹き出し */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
}
.leaflet-popup-content {
  margin: 13px 15px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
}
.map-popup-title {
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 700;
}
.map-popup-sub {
  color: var(--color-text-muted);
  font-size: 11px;
}
.leaflet-control-attribution {
  font-size: 9px !important;
}

/* 一覧 */
.area-directory {
  min-width: 0;
}
.area-directory-head {
  margin: 0 0 16px;
}
.area-directory-head strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.area-directory-head span {
  display: block;
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* 市町村ごとの開閉 */
.area-city {
  border-bottom: 1px solid var(--color-border);
}
.area-city:first-of-type {
  border-top: 1px solid var(--color-text);
}
.area-city summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease;
}
.area-city summary::-webkit-details-marker {
  display: none;
}
.area-city summary::after {
  content: "+";
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #b9cabe;
  color: var(--color-cta);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}
.area-city[open] summary::after {
  content: "−";
}
.area-city summary:hover {
  color: var(--color-cta);
}
.area-city-count {
  margin-left: 8px;
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 400;
}

/* 霊園・墓地 */
.area-list {
  margin: 0;
  padding: 0 4px 12px;
  list-style: none;
}
.area-list li {
  padding: 10px 0;
  border-top: 1px solid #e6ece8;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.65;
}
.area-list strong {
  display: block;
  margin-bottom: 1px;
  color: var(--color-text);
  font-size: 0.86rem;
  line-height: 1.5;
}
.area-address {
  display: block;
}
.area-map-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  color: var(--color-cta);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}
.area-map-link:hover {
  text-decoration: underline;
}

.area-note {
  margin: 18px 2px 0;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  line-height: 1.75;
}

@media (max-width: 760px) {
  .area-map-layout {
    display: block;
    margin-top: 28px;
  }
  .area-map-wrap {
    height: 430px;
    margin-bottom: 26px;
  }
  .area-map-title {
    top: 11px;
    left: 11px;
  }
}

@media (max-width: 380px) {
  .area-map-wrap {
    height: 380px;
  }
}

/* ============================================================
   17. フォーム・報告ページ・管理画面
   ------------------------------------------------------------
   相談フォーム (/consult)、作業報告 (/r/…)、管理画面 (/admin) の部品。
   色・角丸・ボタンは 1. 変数 と同じものを使う。
============================================================ */
:root {
  --color-danger: #a33a2b;
  --color-danger-soft: #fbeeeb;
  --color-ok: #2f6b3f;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.page-wide {
  max-width: var(--max-width);
}

.page section {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  margin: 18px 0;
}

.page ul,
.page ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

.page ul {
  list-style: disc;
}

.page ol {
  list-style: decimal;
}

.page a {
  color: var(--color-cta-hover);
}

.page label {
  display: block;
  margin: 14px 0 4px;
  font-weight: 700;
  font-size: 0.95rem;
}

.page input[type="text"],
.page input[type="email"],
.page input[type="tel"],
.page input[type="password"],
.page input[type="number"],
.page input[type="date"],
.page input[type="datetime-local"],
.page input[type="month"],
.page select,
.page textarea {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  color: var(--color-text);
  background: #fff;
}

.page input:focus-visible,
.page select:focus-visible,
.page textarea:focus-visible {
  outline: 3px solid var(--color-cta);
  outline-offset: 1px;
}

.page textarea {
  min-height: 96px;
}

.page .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.page .check input {
  width: 20px;
  height: 20px;
  margin-top: 5px;
  flex-shrink: 0;
  accent-color: var(--color-cta);
}

.page button,
.page a.button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  margin-top: 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  background: var(--color-cta);
  color: var(--color-cta-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.page button:hover,
.page a.button:hover,
.button:hover {
  background: var(--color-cta-hover);
}

.page button.secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.page button.secondary:hover {
  border-color: var(--color-cta);
  color: var(--color-cta);
}

.page button.danger {
  background: var(--color-danger);
}

.errors {
  border: 1px solid var(--color-danger);
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin: 16px 0;
}

.notice {
  border: 1px solid var(--color-cta);
  background: var(--color-section-soft);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin: 16px 0;
}

.errors p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.page th,
.page td {
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  padding: 8px 6px;
  vertical-align: top;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-button);
  background: var(--color-section-soft);
  color: var(--color-cta-hover);
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 1em;
}

.photos img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

/* 対応地域の確認フォーム (トップページ) */
.area-check {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
}

.area-check label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.area-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-check input[type="text"] {
  flex: 1 1 200px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
}

.area-check button {
  cursor: pointer;
  font-family: inherit;
}

.contact-form-link {
  margin: 0 0 16px;
}

/* 管理画面のヘッダー。公開側と取り違えないよう、フッターと同じ濃い色にする */
.admin-header {
  background: var(--color-text);
  color: #eff3f0;
}

.admin-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.admin-brand {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}

.admin-brand small {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: var(--radius-button);
  background: var(--color-cta);
  font-size: 0.72rem;
}

.admin-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.9rem;
}

.admin-nav a {
  color: #eff3f0;
  text-decoration: none;
}

.admin-nav a:hover {
  text-decoration: underline;
}

.admin-nav form {
  margin: 0;
}

.admin-nav button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #b9c6be;
  border-radius: var(--radius-button);
  background: transparent;
  color: #eff3f0;
  font: inherit;
  cursor: pointer;
}

/* 管理画面は一覧と入力が中心なので、見出しを公開側より小さくして情報量を優先する */
.page-wide h1 {
  font-size: 1.5rem;
}

.page-wide h2 {
  font-size: 1.15rem;
}

/* ---------- フォームの「必須 / 任意」ラベルと、入力中のエラー表示 ---------- */
/* 欄の直前の <label> には、欄の required 属性から自動で付く。組になった欄には .req / .opt を直接書く */
.req,
.opt,
.page form[method="post"] label:not(.check):has(+ :is(input, select, textarea))::after,
.page form[method="post"] label.check:has(input:required)::after {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: var(--radius-button);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: middle;
}

.opt,
.page form[method="post"] label:not(.check):has(+ :is(input, select, textarea))::after {
  content: "任意";
  background: var(--color-section-soft);
  color: var(--color-text-muted);
}

.req,
.page form[method="post"] label:not(.check):has(+ :is(input, select, textarea):required)::after,
.page form[method="post"] label.check:has(input:required)::after {
  content: "必須";
  background: var(--color-danger);
  color: #fff;
}

.page form[method="post"] label:not(.check):has(+ [data-one-of])::after {
  content: "どちらか必須";
  background: var(--color-danger);
  color: #fff;
}

/* 他の欄の選択によって必須になる欄 (data-required-when)。data-no-badge は「任意」のままにする */
.page
  form[method="post"]
  label:not(.check):has(+ [data-required-when]:not([data-no-badge]))::after {
  content: "条件により必須";
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

/* ---------- 管理画面の表: 狭い画面では 1 文字ずつ折り返さず、横にスクロールさせる ---------- */
.page section:has(> table) {
  overflow-x: auto;
}

.page table th,
.page table .badge {
  white-space: nowrap;
}

.page table td {
  min-width: 5em;
}

.field-error {
  margin: 6px 0 0;
  color: var(--color-danger);
  font-size: 0.88rem;
  font-weight: 700;
}

.page [aria-invalid="true"] {
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}

/* ---------- LINE のやり取り (管理画面) ---------- */
.badge-alert {
  background: var(--color-danger);
  color: #fff;
  margin-left: 6px;
}

.page .chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
}

.chat-message {
  max-width: min(520px, 85%);
}

.chat-in {
  align-self: flex-start;
}

.chat-out {
  align-self: flex-end;
}

.chat-text {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--color-section-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-out .chat-text {
  background: var(--color-cta);
  color: var(--color-cta-text);
}

.chat-message img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.chat-meta {
  margin: 4px 4px 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.chat-out .chat-meta {
  text-align: right;
}

/* 管理画面の見出しに出す件数 (LINE の未読) */
.admin-nav .count {
  display: inline-block;
  min-width: 1.5em;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

/* ---------- 日程予約 (予約ページ・稼働日・カレンダー) ---------- */
.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.slot-day {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.weekday-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.override-row {
  margin: 8px 0 0;
}

.calendar-wrap {
  overflow-x: auto;
}

.page table.calendar {
  table-layout: fixed;
  min-width: 720px;
}

.page table.calendar th {
  text-align: center;
}

.page table.calendar td {
  height: 96px;
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
}

.calendar-empty {
  background: var(--color-bg);
}

.calendar-today {
  background: var(--color-section-soft);
}

.calendar-date {
  font-weight: 700;
  font-size: 0.9rem;
}

.calendar-staff {
  color: var(--color-text-muted);
}

.calendar-closed {
  opacity: 0.6;
}

.page a.calendar-visit {
  display: block;
  margin-top: 4px;
  padding: 3px 6px;
  border-radius: 8px;
  background: var(--color-cta);
  color: var(--color-cta-text);
  text-decoration: none;
}

.page a.calendar-visit .muted {
  color: inherit;
  opacity: 0.85;
  font-size: inherit;
}

/* 管理画面で書いた文面 (プライバシーポリシーなど) の本文 */
.page-body h2 {
  font-size: 1.2rem;
  margin: 1.8em 0 0.6em;
}

/* 作業事例 (トップページと /works)。作業前・作業後の写真を横に並べる */
.page-wide {
  max-width: 1080px;
}

.works-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.work-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px 16px 20px;
  box-shadow: var(--shadow-card);
}

.work-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.work-photos figure {
  margin: 0;
}

.work-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  background: var(--color-section-soft);
}

.work-photos figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.work-meta {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.work-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5em;
}

.work-card p:last-child {
  margin: 0;
}

.works-more {
  margin: 28px 0 0;
}

/* ---------- 公開の相談フォーム (/consult): STEP ごとに区切り、なぜ伺うのかを添える ---------- */
.consult-intro {
  border-left: 4px solid var(--color-cta);
  background: var(--color-section-soft);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 16px 20px;
  margin: 16px 0 24px;
  line-height: 1.9;
}

.consult-intro p {
  margin: 0 0 0.6em;
}

.consult-intro p:last-child {
  margin-bottom: 0;
}

.consult-step h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 0;
}

.consult-step h2:focus {
  outline: none;
}

.step-no {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-cta-hover);
}

.step-of {
  color: var(--color-text-muted);
  font-weight: 400;
}

.why {
  margin: 0 0 12px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.page fieldset.choices {
  border: 0;
  padding: 0;
  margin: 18px 0 0;
  min-width: 0;
}

.page fieldset.choices legend {
  padding: 0;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 選択肢は指で押しやすいよう、1 つずつ枠で囲む */
.page fieldset.choices label.check {
  margin: 6px 0 0;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.page fieldset.choices label.check:has(input:checked) {
  border-color: var(--color-cta);
  background: var(--color-section-soft);
}

.page fieldset.choices label.check input {
  margin-top: 2px;
}

.consult-step h3 {
  font-size: 1rem;
  margin: 28px 0 6px;
}

.grave-map-block {
  margin-top: 20px;
}

.grave-map-block p {
  margin: 0 0 6px;
}

/* ボタンの display 指定より hidden を優先する (ピンが無いときの「ピンを外す」など) */
.page button[hidden] {
  display: none;
}

#grave-map {
  height: 320px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin: 8px 0;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

/* 「戻る」が無い最初の STEP でも「次へ」は右に置く */
.step-nav button:only-child:not(.secondary) {
  margin-left: auto;
}

.step-nav button {
  min-width: 120px;
}

/* 最後の STEP の送信ボタンは幅いっぱいにする */
form.is-stepped [data-step]:last-of-type button[type="submit"] {
  width: 100%;
}
