:root {
  --paper: #f7f3eb;
  --white: #fffdf8;
  --ink: #173b35;
  --moss: #2f5a4e;
  --muted: #6a716b;
  --line: #d9d6cc;
  --brass: #b78a48;
  --brass-light: #eadcbe;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 18px; line-height: 1.85; }
a { color: inherit; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,253,248,.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 22px 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; padding: 3px; border: 1px solid var(--brass); border-radius: 50%; overflow: hidden; background: var(--white); color: var(--brass); font-family: var(--serif); font-size: 21px; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: grid; gap: 0; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: .08em; }
.brand-sub { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.header-link { color: var(--moss); font-size: 15px; text-underline-offset: 4px; }
.page-main { max-width: 1120px; margin: 0 auto; padding: 0 28px 100px; }
.breadcrumb { padding: 25px 0 18px; color: var(--muted); font-size: 14px; }
.breadcrumb a { text-underline-offset: 4px; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); align-items: stretch; gap: 56px; padding: 70px 0 88px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 22px; color: var(--brass); font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.detail-title { max-width: 780px; margin: 0 0 20px; color: var(--ink); font-family: var(--serif); font-size: clamp(42px, 6vw, 76px); font-weight: 500; letter-spacing: .04em; line-height: 1.25; }
.detail-lead { max-width: 720px; margin: 0 0 32px; color: #4e5e57; font-size: 19px; line-height: 2; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 13px 24px; border: 1px solid var(--moss); color: var(--white); background: var(--moss); font-size: 17px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover, .button:focus-visible { border-color: var(--ink); background: var(--ink); transform: translateY(-1px); }
.button:focus-visible, .header-link:focus-visible, .breadcrumb a:focus-visible, .back-link:focus-visible { outline: 3px solid rgba(183,138,72,.35); outline-offset: 4px; }
.detail-figure { display: flex; min-height: 310px; flex-direction: column; justify-content: center; padding: 42px; border: 1px solid var(--brass); background: linear-gradient(145deg, rgba(234,220,190,.72), rgba(255,253,248,.88) 64%); }
.detail-figure-number { color: var(--brass); font-family: var(--sans); font-size: 14px; letter-spacing: .18em; }
.detail-figure-label { margin-top: 28px; color: var(--muted); font-size: 15px; }
.detail-figure strong { display: block; margin-top: 5px; color: var(--ink); font-family: var(--serif); font-size: clamp(45px, 5vw, 72px); font-weight: 500; line-height: 1.1; white-space: nowrap; }
.detail-figure small { color: var(--moss); font-size: 16px; }
.detail-section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.detail-section-intro { max-width: 760px; margin-bottom: 42px; }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading h2 { margin: 0 0 15px; color: var(--ink); font-family: var(--serif); font-size: clamp(31px, 4vw, 49px); font-weight: 500; line-height: 1.4; }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { min-height: 270px; padding: 28px 25px 24px; border: 1px solid var(--line); background: rgba(255,253,248,.7); }
.feature-card-mark { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 25px; border: 1px solid var(--brass); color: var(--brass); font-family: var(--serif); font-size: 18px; }
.feature-card h3 { margin: 0 0 14px; color: var(--moss); font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.45; }
.feature-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact-card { padding: 22px 18px 20px; border-top: 2px solid var(--brass); background: rgba(234,220,190,.32); }
.fact-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.fact-card strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.25; }
.fact-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.source-note { margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.source-note a { color: var(--moss); text-underline-offset: 4px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-card { min-height: 220px; padding: 26px 24px; border: 1px solid var(--line); background: rgba(255,253,248,.7); }
.info-index { display: block; margin-bottom: 22px; color: var(--brass); font-size: 13px; letter-spacing: .14em; }
.info-card h3 { margin: 0 0 13px; color: var(--moss); font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.45; }
.info-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.note-section { padding: 54px 0; }
.note-box { padding: 26px 30px; border-left: 3px solid var(--brass); background: rgba(234,220,190,.38); }
.note-box h2 { margin: 0 0 10px; color: var(--moss); font-family: var(--serif); font-size: 25px; font-weight: 500; }
.note-box p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.detail-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 42px 46px; background: var(--moss); }
.detail-cta h2 { margin: 0 0 7px; color: var(--white); font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 500; line-height: 1.4; }
.detail-cta p { margin: 0; color: rgba(255,253,248,.84); font-size: 16px; line-height: 1.8; }
.detail-cta .button { border-color: var(--brass-light); color: var(--ink); background: var(--brass-light); white-space: nowrap; }
.detail-cta .button:hover, .detail-cta .button:focus-visible { border-color: var(--white); background: var(--white); }
.back-link { display: inline-block; margin-top: 38px; color: var(--moss); font-size: 16px; text-underline-offset: 5px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); background: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 24px 28px; }
.footer-copy { margin: 0; font-size: 13px; }
.footer-home { color: var(--moss); font-size: 14px; text-underline-offset: 4px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .header-inner { align-items: flex-start; padding: 18px 20px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 11px; }
  .header-link { font-size: 14px; }
  .page-main { padding: 0 20px 70px; }
  .breadcrumb { padding: 20px 0 10px; font-size: 13px; }
  .detail-hero { grid-template-columns: 1fr; gap: 38px; padding: 52px 0 62px; }
  .eyebrow { margin-bottom: 18px; font-size: 12px; }
  .detail-title { font-size: clamp(38px, 11vw, 56px); }
  .detail-lead { font-size: 17px; line-height: 1.9; }
  .button { width: 100%; font-size: 16px; }
  .detail-figure { min-height: 230px; padding: 30px; }
  .detail-figure strong { font-size: 52px; }
  .detail-section { padding: 62px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 34px; }
  .section-heading p { font-size: 16px; }
  .detail-section-intro { margin-bottom: 30px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { min-height: 0; padding: 23px 20px; }
  .feature-card-mark { margin-bottom: 15px; }
  .feature-card h3 { font-size: 22px; }
  .feature-card p { font-size: 16px; }
  .fact-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fact-card { padding: 18px 15px; }
  .fact-card strong { font-size: 24px; }
  .fact-label { font-size: 13px; }
  .info-grid { grid-template-columns: 1fr; gap: 12px; }
  .info-card { min-height: 0; padding: 23px 20px; }
  .info-index { margin-bottom: 12px; }
  .info-card h3 { font-size: 22px; }
  .info-card p { font-size: 16px; }
  .note-section { padding: 38px 0; }
  .note-box { padding: 22px 20px; }
  .note-box h2 { font-size: 23px; }
  .detail-cta { grid-template-columns: 1fr; gap: 22px; padding: 30px 24px; }
  .detail-cta .button { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---- 霊園の基本情報（2026-09-19追加） ---- */
.m1-info { padding: 80px 0; border-bottom: 1px solid var(--line); }
.m1-info-head h2 { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 600; color: var(--moss); }
.m1-info-head p { margin: 0 0 28px; color: var(--muted); }
.m1-info-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.m1-map { position: relative; padding: 10px; background: var(--white); border: 1px solid var(--brass); }
.m1-map iframe { display: block; width: 100%; height: 380px; border: 0; filter: saturate(.8); }
.m1-map a { display: block; padding: 12px 6px 4px; color: var(--moss); font-weight: 700; text-decoration: none; }
.m1-table { margin: 0; border-top: 2px solid var(--moss); }
.m1-table div { display: grid; grid-template-columns: 7.5em 1fr; gap: 14px; padding: 15px 4px; border-bottom: 1px dotted var(--brass); }
.m1-table dt { font-family: var(--serif); font-weight: 600; color: var(--moss); }
.m1-table dd { margin: 0; }
.m1-sub { display: flex; align-items: center; gap: 16px; margin: 54px 0 18px; font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--moss); }
.m1-sub::after { content: ""; flex: 1; height: 1px; background: var(--brass); opacity: .5; }
.m1-access { margin: 0; padding: 0; list-style: none; }
.m1-access li { display: grid; grid-template-columns: 7.5em 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.m1-access b { font-family: var(--serif); color: var(--brass); }
.m1-points { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m1-points li { padding: 24px 22px; background: var(--white); border-top: 3px solid var(--moss); box-shadow: 0 16px 30px -24px rgba(23,59,53,.5); }
.m1-price { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--brass); background: var(--white); }
.m1-price div { padding: 22px; text-align: center; border-right: 1px solid var(--line); }
.m1-price div:last-child { border-right: 0; }
.m1-price b { display: block; font-family: var(--serif); color: var(--moss); }
.m1-price span { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.m1-pending { padding: 24px; background: var(--white); border-left: 3px solid var(--brass); }
.m1-small { margin-top: 14px; color: var(--muted); font-size: 15px; }
.m1-src a { color: var(--moss); }
@media (max-width: 760px) {
  .m1-info { padding: 56px 0; }
  .m1-info-grid, .m1-points, .m1-price { grid-template-columns: 1fr; }
  .m1-map iframe { height: 280px; }
  .m1-price div { border-right: 0; border-bottom: 1px solid var(--line); }
  .m1-table div, .m1-access li { grid-template-columns: 1fr; gap: 2px; }
}

/* 区画数が範囲表記のとき */
.detail-figure strong.is-long { font-size: clamp(34px, 3.4vw, 50px); white-space: normal; }
@media (max-width: 760px) { .detail-figure strong.is-long { font-size: 36px; } }

/* 短い見出し・ラベルで1〜2文字だけ次の行に残らないよう、行の長さをそろえる */
h1, h2, h3, h4, strong, dt, b, .button { text-wrap: balance; }
dd, li, a { text-wrap: pretty; }
.m1-info-head p { text-wrap: balance; }
.detail-lead { text-wrap: pretty; }

p { text-wrap: pretty; }
.header-link { white-space: nowrap; }
.footer-copy { text-wrap: balance; }
.m1-src a { white-space: nowrap; }

/* 日本語を文節単位で折り返す */
h1, h2, h3, h4, strong, dt, dd, li, a, b, p, small, span { word-break: auto-phrase; }
dd, li { text-wrap: balance; }
.nw { display: inline-block; white-space: nowrap; }

/* ---- よくご相談いただく地域（2026-09-25追加） ---- */
.m1-area { padding: 22px; background: var(--white); border-left: 3px solid var(--brass); }
.m1-area-here { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px dotted var(--brass); flex-wrap: wrap; }
.m1-area-here span { color: var(--muted); font-size: 15px; }
.m1-area-here b { font-family: var(--serif); font-size: 21px; color: var(--moss); }
.m1-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.m1-chips li { padding: 7px 15px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; white-space: nowrap; }

.m1-table dd small { display: inline-block; margin-top: 4px; font-size: 13px; opacity: .85; }
