/* 公開ページ共通。文字は濃い色だけを使う（薄いグレーの文字は使わない） */

:root {
  --text: #1a1a1a;
  --text-sub: #333;
  --link: #0b4fa0;
  --line: #c9c9c9;
  --bg-soft: #f4f1ea;
  --accent: #7a4b1c;
  --closed: #8a1c1c;
  --mincho: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* 中身の幅は1120px（2026-10-09 Codex と相談。前は928px）。長い文章は1行が長くなりすぎないよう720px（.prose・.lead・規約） */
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.prose { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ── 頭と足 ── */
.site-header { border-bottom: 3px solid var(--accent); background: var(--bg-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.site-name { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--mincho); font-weight: 600; font-size: 21px; text-decoration: none; }
.site-name img { display: block; width: 40px; height: 40px; }
.site-nav a { margin-left: 20px; font-weight: bold; }

/* フッター（2026-10-03 Codex と相談して作り直し）: ヘッダーと同じベージュと茶色の線。まとまりは見出しと細い線で分ける */
.site-footer { margin-top: 64px; padding: 40px 0 28px; border-top: 3px solid var(--accent); background: var(--bg-soft); color: var(--text); font-size: 16px; line-height: 1.65; }
.site-footer p { margin: 0; }
.footer-site-name { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--mincho); font-weight: 600; font-size: 24px; text-decoration: none; }
.footer-site-name img { display: block; width: 40px; height: 40px; }
.footer-brand p { margin-top: 10px; }
.footer-h { margin: 0 0 12px !important; font-size: 18px; font-weight: bold; line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin: 0; }
.footer-list a { display: inline-block; padding: 5px 0; }
.footer-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.footer-cat-grid .cat-link { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 8px; font-size: 16px; line-height: 1.4; text-align: center; }
.footer-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid #c8beaf; }
.footer-owner-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.footer-owner-btns a { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 12px; border: 2px solid var(--accent); border-radius: 8px; background: #fff; color: var(--text); font-weight: bold; text-align: center; text-decoration: none; }
.footer-owner-btns a:hover { background: var(--accent); color: #fff; }
.footer-inline { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer-about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-data { margin-top: 10px !important; }
.footer-copy { margin-top: 28px !important; padding-top: 16px; border-top: 1px solid #c8beaf; font-size: 14px; }
.site-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 700px) {
  .site-footer { padding: 32px 0 24px; }
  .footer-site-name { font-size: 20px; }
  .footer-site-name img { width: 36px; height: 36px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .footer-list a { display: block; min-height: 44px; padding: 9px 0; }
  .footer-section { margin-top: 28px; padding-top: 24px; }
  .footer-inline { display: block; }
  .footer-owner-btns, .footer-about { grid-template-columns: 1fr; }
  .footer-about { gap: 24px; }
}

.breadcrumbs { margin: 16px 0 8px; font-size: 14px; }
.breadcrumbs .sep { margin: 0 8px; color: var(--text-sub); }

/* ── 見出し ── */
h1 { font-family: var(--mincho); font-weight: 600; font-size: 28px; line-height: 1.4; margin: 16px 0 4px; }
.lead-sub { margin: 0 0 12px; font-weight: bold; color: var(--text-sub); }
.lead { max-width: 720px; margin: 12px 0 24px; }
h2 { font-size: 20px; line-height: 1.4; margin: 40px 0 12px; padding: 6px 12px; border-left: 5px solid var(--accent); background: var(--bg-soft); }
.h-count { margin-left: 12px; font-size: 15px; font-weight: normal; }
.note { font-size: 15px; color: var(--text-sub); }

/* ── 地域の一覧 ── */
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 24px; }
.area-list > li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.area-list .count { margin-left: 8px; font-size: 14px; color: var(--text-sub); }
.area-list .has-wards { grid-column: 1 / -1; }
.ward-list { list-style: none; margin: 4px 0 0; padding: 0 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* 宗派の系統へのジャンプ */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.toc a { padding: 4px 12px; border: 1px solid var(--link); border-radius: 4px; text-decoration: none; font-size: 15px; }

/* ── 寺社の一覧 ── */
.flist { list-style: none; margin: 0; padding: 0; }
.flist li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 2px; }
.fname { font-family: var(--mincho); font-weight: 600; font-size: 19px; line-height: 1.5; }
.sect { font-size: 14px; font-weight: bold; color: var(--accent); }
.addr { font-size: 15px; color: var(--text-sub); }

.closed h2 { border-left-color: var(--closed); }
.closed-info { font-size: 14px; color: var(--closed); }

/* ── 表 ── */
.stats { border-collapse: collapse; min-width: 280px; }
.stats th, .stats td { padding: 6px 16px 6px 0; border-bottom: 1px solid var(--line); text-align: left; }
.stats td { text-align: right; }

.switch, .related { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 24px; font-weight: bold; }

@media (max-width: 600px) {
  h1 { font-size: 23px; }
  h2 { font-size: 18px; }
  .area-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ── 個別ページ ── */
a.fname { color: var(--link); }
.info { border-collapse: collapse; width: 100%; }
.info th, .info td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info th { width: 7em; background: var(--bg-soft); white-space: nowrap; }
.notice { margin: 16px 0 24px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 6px; }
.notice p { margin: 4px 0; }
.soon-notice { border-color: var(--accent); font-weight: bold; }   /* 申込の受付前のお知らせ（エラーではないので赤にしない。茶色の線・黒の太字） */
/* 登記が閉鎖されている寺社の枠（警告ではなく情報として、落ち着いた色で） */
.closed-box { margin: 20px 0 32px; }
.closed-box-title { margin: 0 0 8px; font-size: 18px; font-weight: bold; line-height: 1.5; }
.closed-notice { padding: 16px 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-soft); font-size: 17px; line-height: 1.8; }
.closed-notice p { margin: 0; }
.closed-notice p + p { margin-top: 8px; }
@media (max-width: 600px) {
  .closed-notice { padding: 16px; }
}
.owner { margin-top: 40px; padding: 4px 20px 16px; border: 2px solid var(--accent); border-radius: 8px; }
.owner h2 { margin-top: 16px; }
.owner p { max-width: 720px; }
.soon { font-weight: bold; }
.more { margin-top: 12px; font-weight: bold; }

/* ── トップページ ── */
.hero { margin: 24px 0 8px; padding: 24px 20px; background: var(--bg-soft); border-radius: 8px; }
.hero h1 { margin-top: 0; }
.hero p { margin: 8px 0 16px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.big-link { display: inline-flex; align-items: baseline; gap: 12px; padding: 12px 24px; border-radius: 6px; background: var(--link); color: #fff; font-size: 18px; font-weight: bold; text-decoration: none; }
.big-link span { font-size: 15px; font-weight: normal; }
.big-link:hover { background: #083a78; }
.region-grid { display: grid; grid-template-columns: 7em 1fr; margin: 0; }
.region-grid dt, .region-grid dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.region-grid dt { font-weight: bold; }
.region-grid dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.plain { padding-left: 1.2em; }
.plain li { margin: 6px 0; }
@media (max-width: 600px) {
  .region-grid { grid-template-columns: 1fr; }
  .region-grid dt { border-bottom: 0; padding-bottom: 0; }
}

/* ── フォーム ── */
.form { max-width: 640px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.form legend, .form .label { display: block; font-weight: bold; font-size: 17px; margin-bottom: 8px; }
.req { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 4px; background: #a31919; color: #fff; font-size: 13px; vertical-align: 2px; }
.opt { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--text-sub); color: var(--text); font-size: 13px; vertical-align: 2px; }
.field { margin: 0 0 28px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 17px; }
.choice:has(input:checked) { border-color: var(--link); background: #eef4fc; font-weight: bold; }
.choice input { width: 22px; height: 22px; margin: 0; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; font-size: 17px; padding: 10px 12px; border: 2px solid #767676; border-radius: 6px; font-family: inherit; color: var(--text);
}
.form input:focus, .form textarea:focus { outline: 3px solid #9cc0ef; border-color: var(--link); }
.hint { margin: 6px 0 0; font-size: 15px; color: var(--text-sub); }
.target { margin: 0; padding: 10px 14px; background: var(--bg-soft); border-radius: 6px; }
/* お寺の申込：どのお寺の申込かをはっきり（白地・太い茶色の左線・小見出し・名前を大きく） */
.target-plain { margin: 8px 0 16px; padding: 12px 18px 14px; background: #fff; border: 2px solid var(--line); border-left: 8px solid var(--accent); font-size: 16px; }
.target-label { display: block; margin-bottom: 2px; color: var(--accent); font-size: 15px; font-weight: bold; }
.target-plain .fname { font-size: 24px; }
.field-error { margin: 0 0 6px; color: #a31919; font-weight: bold; }
.form-error { padding: 12px 16px; border: 2px solid #a31919; border-radius: 6px; color: #a31919; font-weight: bold; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-primary, .btn-secondary { font-size: 18px; font-weight: bold; padding: 14px 28px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--link); color: #fff; border: 2px solid var(--link); }
.btn-primary:hover { background: #083a78; }
.btn-secondary { background: #fff; color: var(--link); border: 2px solid var(--link); }
.confirm-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.done-notice { border-color: #1e7a34; }
.btn-link { display: inline-block; padding: 10px 20px; border: 2px solid var(--link); border-radius: 6px; font-weight: bold; text-decoration: none; }
.owner-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── 寺院の関係者のページ（/owner/）・利用規約 ── */
.owner-bar { margin: 12px 0 0; padding: 8px 12px; background: var(--bg-soft); border-radius: 6px; font-weight: bold; }
.flash-ok { padding: 12px 16px; border: 2px solid #1e7a34; border-radius: 6px; background: #e6f4ea; color: #0d4d1f; font-weight: bold; }
.flash-error { padding: 12px 16px; border: 2px solid #a31919; border-radius: 6px; color: #a31919; font-weight: bold; }
.warn-notice { border-color: #b35c00; background: #fff6ea; }
/* 支払いの前の申込の取り下げ（掲載者のページの各枠の下。2026-10-16）。目立たせすぎない文字のボタン */
.withdraw { margin: 16px 0 0; font-size: 15px; }
.withdraw p { margin: 0; }
.btn-text { padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-weight: bold; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-text:hover { text-decoration-thickness: 2px; }
/* メールアドレスの確認待ち（掲載者のページ。2026-10-16）: すること（大きく）→ 困ったとき2つ（小見出し＋ボタン、白い面で分ける） */
.verify-notice { padding: 18px 20px; }
.verify-notice p { margin: 0; }
.verify-title { font-size: 21px; font-weight: bold; color: #8a4500; }
.verify-main { margin-top: 10px !important; font-size: 18px; line-height: 1.7; }
.verify-email { font-weight: bold; word-break: break-all; }
.verify-sub { margin-top: 4px !important; font-size: 16px; }
.verify-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.verify-help > div { padding: 12px 14px; background: #fff; border: 1px solid #e3c9a6; border-radius: 6px; font-size: 15px; line-height: 1.7; }
.verify-help-title { margin-bottom: 4px !important; font-size: 16px; font-weight: bold; }
.verify-help form, .verify-help p:last-child { margin-top: 10px !important; }
.verify-help .btn-secondary, .verify-help .btn-link { font-size: 16px; padding: 10px 18px; }
@media (max-width: 700px) {
  .verify-help { grid-template-columns: 1fr; }
  .verify-help .btn-secondary, .verify-help .btn-link { display: block; width: 100%; text-align: center; }
}
.form input[type=password], .form input[type=file] {
  width: 100%; font-size: 17px; padding: 10px 12px; border: 2px solid #767676; border-radius: 6px; font-family: inherit; color: var(--text);
}
/* パスワードの「表示」ボタン（js/password.js が入力欄を .pw-wrap で包む） */
.pw-wrap { position: relative; display: block; }
.form .pw-wrap input { padding-right: 96px; }
.pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--link); font-family: inherit; font-size: 15px; font-weight: bold; cursor: pointer; }
.pw-toggle:hover { background: #eef4fc; }
.pw-toggle:focus-visible { outline: 3px solid #9cc0ef; }
.claim { margin: 48px 0; padding: 0 20px 16px; border: 2px solid #888; border-radius: 8px; overflow: hidden; }
.claim-head { margin: 0 -20px 16px; padding: 16px 20px; background: var(--bg-soft); border-bottom: 2px solid var(--accent); }
.claim-head p { margin: 0; color: #222; font-size: 16px; }
.claim-head .claim-kind { font-weight: bold; }
.claim h2 { margin: 4px 0; background: none; border-left: 0; padding: 0; font-family: var(--mincho); font-size: 24px; font-weight: 700; color: #222; }
.pay-target { margin: 10px 0 4px; font-weight: bold; }
@media (max-width: 600px) {
  .claim { margin: 40px 0; padding: 0 12px 12px; }
  .claim-head { margin: 0 -12px 12px; padding: 12px; }
  .claim h2 { font-size: 22px; }
  .claim > .owner-links .btn-link { display: block; width: 100%; text-align: center; }
}
.steps { list-style: none; counter-reset: step; margin: 16px 0 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4em 1fr; gap: 0 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 3; width: 2em; height: 2em; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 2px solid var(--text); }
.steps li.done::before { background: #1e7a34; border-color: #1e7a34; color: #fff; }
/* 済んだ手順：丸は番号のまま、状態の行の頭に緑のチェック（番号＝何番目か、チェック＝済んだか） */
.steps li.done > .step-state { display: flex; align-items: center; gap: 8px; }
.steps li.done > .step-state::before { content: ""; flex-shrink: 0; width: 24px; height: 24px; background: var(--check-badge) no-repeat center / contain; }
.step-name { font-weight: bold; font-size: 17px; }
.step-state { font-weight: bold; }
.step-note { font-size: 15px; }
.btn-strong { background: var(--link); color: #fff; }
.btn-strong:hover { background: #083a78; }
.pre { white-space: pre-wrap; }
.terms, .law { max-width: 720px; }
.terms ol, .terms ul { padding-left: 1.4em; }
.terms li { margin: 6px 0; }
.terms-date { margin-top: 32px; text-align: right; }
.law th { width: 11em; }
/* 手順の本文（名前・状態・説明・フォーム）はすべて右の列。左の列は番号の丸だけ */
.steps li::before { grid-column: 1; grid-row: 1 / span 4; }
.steps li > * { grid-column: 2; min-width: 0; }
/* 支払いのプラン（月払い・年払い）。カード全体が押せるボタン */
.pay-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; max-width: 600px; margin-top: 12px; }
.plan-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; border: 2px solid var(--link); border-radius: 8px; background: #fff; color: var(--text); font-family: inherit; text-align: left; cursor: pointer; }
.plan-btn:hover, .plan-btn:focus-visible { background: #eef4fc; outline: 3px solid #9cc0ef; }
.plan-name { font-size: 17px; font-weight: bold; }
.plan-price { font-size: 28px; font-weight: bold; line-height: 1.3; }
.plan-price small { font-size: 15px; margin-left: 2px; }
.plan-sub { font-size: 15px; color: var(--text-sub); }
.plan-sub.plan-after { font-size: 16px; font-weight: bold; color: var(--text); }
.nobr { white-space: nowrap; }
.plan-go { margin-top: 10px; align-self: stretch; padding: 10px 12px; border-radius: 6px; background: var(--link); color: #fff; font-size: 17px; font-weight: bold; text-align: center; }
.plan-btn:hover .plan-go { background: #083a78; }
.contract { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; padding: 10px 14px; background: var(--bg-soft); border-radius: 6px; }
.contract dt { font-weight: bold; }
.contract dd { margin: 0; }
@media (max-width: 600px) {
  /* スマホでは項目名の下に中身を置く（横に並べると金額が1〜2文字ずつ折り返すため） */
  .contract { grid-template-columns: 1fr; gap: 0; }
  .contract dd { margin-bottom: 8px; }
  .contract dd:last-child { margin-bottom: 0; }
}

/* ── 掲載内容（寺院のページ・入力画面） ── */
.hero-photo { margin: 16px 0; }
.hero-photo img { display: block; width: 100%; max-height: 480px; object-fit: cover; border-radius: 8px; height: auto; }
.intro { margin: 16px 0 8px; font-size: 17px; line-height: 1.9; }
.svc-card { margin: 16px 0; padding: 16px 20px; border: 2px solid var(--line); border-radius: 8px; }
.svc-card h3 { margin: 2px 0 6px; font-family: var(--mincho); font-size: 22px; }
.svc-type { margin: 0; font-weight: bold; color: var(--accent); }
.svc-tag { display: inline-block; margin-left: 10px; padding: 0 8px; border: 2px solid var(--accent); border-radius: 4px; font-size: 14px; }
.svc-price { margin: 0; font-size: 26px; font-weight: bold; }
.svc-price small { font-size: 15px; margin-left: 4px; }
.svc-note { margin: 4px 0 0; }
.svc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0 0; }
.svc-facts dt { font-weight: bold; }
.svc-facts dd { margin: 0; }
.svc-photos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.svc-photos img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 6px; }
.svc-desc { margin-top: 12px; }
.svc-list { list-style: none; margin: 0 0 12px; padding: 0; }
.svc-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.svc-list .svc-title { font-weight: bold; font-size: 18px; }
.svc-list .svc-price { font-size: 17px; }
.photo-grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.photo-grid img { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 6px; }
.photo-grid form { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.photo-first { font-size: 14px; font-weight: bold; }
.btn-small { font-size: 15px; font-weight: bold; padding: 4px 12px; border-radius: 6px; border: 2px solid #a31919; background: #fff; color: #a31919; cursor: pointer; font-family: inherit; }
.btn-danger { font-size: 17px; font-weight: bold; padding: 12px 24px; border-radius: 6px; border: 2px solid #a31919; background: #a31919; color: #fff; cursor: pointer; font-family: inherit; }
.form input[type=url], .form input[type=number] { width: 100%; font-size: 17px; padding: 10px 12px; border: 2px solid #767676; border-radius: 6px; font-family: inherit; color: var(--text); }
.price-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.price-range label { display: flex; flex-direction: column; gap: 4px; font-weight: bold; flex: 1 1 180px; }
.price-sep { padding-bottom: 12px; font-weight: bold; }
.feature-group { margin: 16px 0 6px; font-weight: bold; font-size: 16px; padding-left: 8px; border-left: 4px solid var(--accent); }
.feature-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.feature-choices .choice { font-size: 16px; padding: 10px 12px; }
.svc-tag + .svc-tag { margin-left: 6px; }
.svc-features { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; padding: 12px 14px; background: var(--bg-soft); border-radius: 6px; }
.svc-features dt { font-weight: bold; }
.svc-features dd { margin: 0; }
.svc-features ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.svc-features li { padding: 0 8px; border: 1px solid var(--accent); border-radius: 4px; background: #fff; font-size: 15px; }
@media (max-width: 600px) { .svc-features, .svc-facts { grid-template-columns: 1fr; } .svc-features dt { margin-top: 6px; } }

/* ── 寺院のページ上部のサービスのバッジ（押すとそのサービスへ移動） ── */
.svc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.svc-badge { display: inline-flex; flex-direction: column; min-width: 120px; padding: 8px 14px 8px 12px; border: 2px solid var(--accent); border-left-width: 6px; border-radius: 6px; background: #fff; color: var(--text); text-decoration: none; line-height: 1.4; }
.svc-badge:hover, .svc-badge:focus-visible { background: var(--bg-soft); }
.svc-badge-name { font-weight: bold; font-size: 16px; color: var(--accent); }
.svc-badge-name::after { content: " ↓"; }
.svc-badge-price { font-weight: bold; font-size: 15px; }
.svc-badge-jumokuso { border-color: #2f6b3a; }
.svc-badge-jumokuso .svc-badge-name { color: #2f6b3a; }
.svc-badge-nokotsudo { border-color: #4a4f8a; }
.svc-badge-nokotsudo .svc-badge-name { color: #4a4f8a; }
.svc-badge-sankotsu { border-color: #1f5f86; }
.svc-badge-sankotsu .svc-badge-name { color: #1f5f86; }
.svc-card { position: relative; scroll-margin-top: 12px; }
.svc-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px #e8d6bf; }

/* ── 比較のチェックと、画面の下の比較リスト ── */
.compare-toggle { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 2px solid var(--link); border-radius: 6px; background: #fff; color: var(--link); font-weight: bold; cursor: pointer; }
.compare-toggle input { width: 20px; height: 20px; margin: 0; }
.compare-toggle:has(input:checked) { background: var(--link); color: #fff; }
.svc-card .svc-type { padding-right: 130px; }
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #1f2a37; color: #fff; box-shadow: 0 -2px 8px rgba(0, 0, 0, .25); }
.compare-bar[hidden] { display: none; }
.compare-bar-inner { max-width: 1152px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.compare-count { margin: 0; font-weight: bold; }
.compare-items { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 300px; }
.compare-item { padding: 2px 10px; border: 1px solid #fff; border-radius: 4px; font-size: 14px; }
.compare-actions { display: flex; align-items: center; gap: 10px; }
.compare-go { padding: 8px 20px; border-radius: 6px; background: #f2c14e; color: #111; font-weight: bold; text-decoration: none; }
.compare-hint { font-size: 14px; }
.compare-clear { padding: 6px 12px; border: 2px solid #fff; border-radius: 6px; background: transparent; color: #fff; font-weight: bold; font-family: inherit; cursor: pointer; }
body.has-compare-bar { padding-bottom: 120px; }

/* ── 比較表（/compare/）。画面に入りきらないときは表だけ横に動かす ── */
.cmp-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 6px; }
.cmp { border-collapse: collapse; min-width: 100%; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 200px; }
.cmp tbody th, .cmp .cmp-head { position: sticky; left: 0; z-index: 1; min-width: 150px; max-width: 180px; background: var(--bg-soft); font-weight: bold; border-left: 0; }
.cmp thead th { background: #fff; }
.cmp thead th .fname { display: block; font-size: 19px; }
.cmp-place { display: block; font-size: 14px; }
.cmp-title { display: block; margin-top: 4px; font-weight: bold; font-size: 16px; }
.cmp-remove { display: inline-block; margin-top: 6px; font-size: 14px; }
.cmp img { display: block; width: 100%; max-width: 240px; height: 140px; object-fit: cover; border-radius: 4px; }
.cmp-price td { font-size: 20px; font-weight: bold; }
.cmp-sub { display: block; font-size: 14px; font-weight: normal; }
.cmp-group th { position: static; background: #e9e1d3; font-size: 15px; }
.cmp td.cmp-yes { color: #1e7a34; font-size: 22px; font-weight: bold; text-align: center; background: #f1f8f2; }
.cmp td.cmp-no { color: var(--text-sub); font-size: 20px; text-align: center; }
.cmp-none { color: var(--text-sub); font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  .compare-toggle { position: static; margin-bottom: 8px; }
  .svc-card .svc-type { padding-right: 0; }
  .cmp th, .cmp td { min-width: 150px; }
  .cmp tbody th, .cmp .cmp-head { min-width: 110px; }
}
.owner-self[hidden] { display: none; }
.owner-self { border-color: var(--link); }
.owner-note { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.input-short { max-width: 12em; }
.form fieldset > .label { margin-top: 10px; }
.visit-place { margin: 6px 0 0; font-weight: bold; }
.badge-warn { display: inline-block; padding: 2px 8px; border: 2px solid #a31919; border-radius: 4px; color: #a31919; font-weight: bold; font-size: 14px; background: #fff; }

/* ── 広告（トップページ・/ads/） ── */
.ad-label { display: inline-block; margin-left: 8px; padding: 0 8px; border: 1px solid var(--text-sub); border-radius: 3px; font-size: 12px; font-weight: bold; color: var(--text); background: #fff; vertical-align: 2px; }
.ad { position: relative; }
.ad a { text-decoration: none; color: var(--text); }
.ad-large { margin: 20px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.ad-large > .ad-label { position: absolute; top: 8px; left: 8px; margin: 0; z-index: 1; }
.ad-large img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; }
.ad-large .ad-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; }
.ad-large .ad-text strong { font-size: 18px; color: var(--link); text-decoration: underline; }
/* 2026-10-24 ユーザー「はい」（Codex 案）: PC も横幅いっぱいの写真の下に文字。前の「写真が左4割・文字が右の低い帯」（2026-09-26）は写真が小さな枠のカードより低く見えたため */
@media (min-width: 701px) {
  .ad-large .ad-text { gap: 4px 16px; padding: 14px 20px 16px; }
  .ad-large .ad-text strong { flex-basis: 100%; font-size: 20px; }
}
.ad-position { scroll-margin-top: 16px; }
.ad-company { font-size: 13px; color: var(--text-sub); }
.ad-small-area { margin-top: 40px; }
.ad-small-area h2 { font-size: 18px; }
.ad-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ad-card a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 0 0 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.ad-card a:hover, .ad-large a:hover { border-color: var(--link); }
.ad-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ad-card strong { padding: 0 12px; color: var(--link); text-decoration: underline; }
.ad-card span { padding: 0 12px; font-size: 14px; }
.ad-invite { margin-top: 12px; font-size: 15px; }
.ad-plan { margin: 16px 0; padding: 4px 20px 12px; border: 2px solid var(--line); border-radius: 8px; }
.ad-plan h3 { margin: 12px 0 4px; font-size: 20px; }
.ad-plan-price { margin: 0; font-size: 22px; font-weight: bold; }
.ad-manage-img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }

/* ── 2026-09-26 お墓の情報サイトとしての組み直し ── */
/* ヘッダー：サイト名・検索窓・お墓の種類のリンク */
.site-header .site-header-top { justify-content: space-between; }
.site-search { display: flex; gap: 6px; flex: 1 1 280px; max-width: 420px; }
.site-search input { flex: 1; min-width: 0; font-size: 16px; padding: 8px 10px; border: 2px solid #767676; border-radius: 6px; font-family: inherit; color: var(--text); background: #fff; }
.site-search button { font-size: 16px; font-weight: bold; padding: 8px 16px; border-radius: 6px; border: 2px solid var(--link); background: var(--link); color: #fff; cursor: pointer; font-family: inherit; }
.site-header .site-nav { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 0 16px 10px; min-height: 0; }
.site-nav .cat-link { margin: 0; }
.cat-link { display: inline-block; padding: 4px 12px; border: 2px solid var(--accent); border-radius: 999px; background: #fff; color: var(--text); font-weight: bold; font-size: 15px; text-decoration: none; }
.cat-link:hover, .cat-link[aria-current] { background: var(--accent); color: #fff; }
.cat-link.cat-jumokuso { border-color: #2f6b3a; }
.cat-link.cat-jumokuso:hover, .cat-link.cat-jumokuso[aria-current] { background: #2f6b3a; }
.cat-link.cat-nokotsudo { border-color: #4a4f8a; }
.cat-link.cat-nokotsudo:hover, .cat-link.cat-nokotsudo[aria-current] { background: #4a4f8a; }
.cat-link.cat-sankotsu { border-color: #1f5f86; }
.cat-link.cat-sankotsu:hover, .cat-link.cat-sankotsu[aria-current] { background: #1f5f86; }
.cat-link.cat-temple { border-color: var(--link); color: var(--link); }
.cat-link.cat-temple:hover { background: var(--link); color: #fff; }
.cat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 16px; }
.cat-bar-label { font-weight: bold; margin-right: 4px; }

/* ── トップページ（2026-09-26 Codex と相談して作り直し）── */
/* 2026-10-19 ユーザー「文字配置はそのままヒーロー背景だけを横いっぱいに」: 写真とクリーム色の帯だけを画面の端から端まで。
   文字の欄（幅 64%・余白・高さ）は中身の幅（1120px）の中で前のまま。ヘッダーとの 20px の余白も残す（ユーザー「A」）。
   padding: 0 calc(50vw - 50%) で中身を元の位置へ戻す。100vw にスクロールバーの幅が入る分（半分の約8px）のはみ出しは overflow-x: clip で切る。
   🔴 body だけでは画面全体へ移されて「横に8px動く」状態が残った（2026-10-19 Orca のブラウザで実測）。html にも付けると body が自分で切る */
html, body { overflow-x: clip; }
.home-hero { position: relative; margin: 20px calc(50% - 50vw) 0; padding: 0 calc(50vw - 50%); overflow: hidden; background: var(--bg-soft); }
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* 帯は画面の左端から。濃さの変わり目と消える位置は前と同じ（文字の欄の 78% と右端） */
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(250, 248, 243, .95) 0%,
    rgba(250, 248, 243, .9) calc((100% - min(1120px, 100% - 32px)) / 2 + min(1120px, 100% - 32px) * .4992),
    rgba(250, 248, 243, 0) calc((100% - min(1120px, 100% - 32px)) / 2 + min(1120px, 100% - 32px) * .64)); }
.home-hero-text { position: relative; z-index: 2; width: 64%; min-height: 380px; padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.home-hero-site { margin: 0; font-family: var(--mincho); font-weight: 600; color: var(--accent); }
.home-hero h1 { margin: 4px 0 8px; font-size: 30px; }
.home-hero-sub { margin: 0 0 6px; font-size: 17px; }
.home-hero-count { margin: 0 0 14px; font-size: 17px; }
.home-hero-count strong { font-size: 22px; color: var(--accent); }
.home-hero-count span { margin-left: 4px; font-size: 14px; }
.home-search { display: flex; gap: 8px; max-width: 460px; }
.home-search input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 2px solid var(--accent); border-radius: 8px; font-size: 17px; background: #fff; }
.home-search button { height: 52px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--link); color: #fff; font-size: 17px; font-weight: bold; cursor: pointer; }
.home-hero-actions { margin: 12px 0 0; }
.home-hero-actions .btn-link { padding: 12px 24px; font-size: 17px; }
.home-hero-points { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 24px; margin: 18px 0 0; color: #222; font-weight: bold; font-size: 17px; line-height: 1.6; }
.home-hero-points span { display: flex; align-items: center; gap: 8px; }
.home-hero-points span::before { content: ""; flex-shrink: 0; width: 24px; height: 24px; background: var(--check-badge) no-repeat center / contain; }
.pc-only { display: inline; }

.home-section { margin-top: 56px; }
.home-h2 { margin: 0 0 16px; padding: 0 0 8px; border: 0; border-bottom: 2px solid var(--accent); background: none; font-family: var(--mincho); font-weight: 600; font-size: 24px; }

.cat-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card { grid-column: span 2; }
.cat-card:nth-child(4) { grid-column: 2 / span 2; }
.cat-card a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 8px; overflow: hidden; background: #fff; color: var(--text); text-decoration: none; }
.cat-card a:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.cat-card-img { position: relative; }
.cat-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cat-card-count { font-size: 15px; font-weight: bold; color: #1e5a2a; }
.cat-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 20px 18px; }
.cat-card strong { font-family: var(--mincho); font-size: 22px; color: var(--accent); }
.cat-card.cat-jumokuso a { border-top-color: #2f6b3a; } .cat-card.cat-jumokuso strong { color: #2f6b3a; }
.cat-card.cat-nokotsudo a { border-top-color: #4a4f8a; } .cat-card.cat-nokotsudo strong { color: #4a4f8a; }
.cat-card.cat-sankotsu a { border-top-color: #1f5f86; } .cat-card.cat-sankotsu strong { color: #1f5f86; }
.cat-card-go { margin-top: auto; padding-top: 6px; font-weight: bold; color: var(--link); text-decoration: underline; }

.region-chips dd { gap: 8px; }
.region-chips dd a { display: inline-block; padding: 6px 14px; border: 1px solid var(--link); border-radius: 6px; background: #fff; text-decoration: none; font-weight: bold; }
.region-chips dd a:hover { background: var(--link); color: #fff; }

/* 検索結果の都道府県の絞り込み・ページ送り（2026-09-29） */
.pref-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.pref-filter a, .site-pager a, .site-pager span[aria-current] { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 4px 14px; border: 1px solid var(--link); border-radius: 6px; background: #fff; font-weight: bold; text-decoration: none; }
.pref-filter a:hover, .pref-filter a[aria-current], .site-pager a:hover, .site-pager span[aria-current] { background: var(--link); color: #fff; }
.site-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0; }
.site-pager .gap { padding: 0 4px; }
@media (max-width: 600px) {
  .pref-filter a, .site-pager a, .site-pager span[aria-current] { min-height: 44px; }
}

.home-hakajimai { display: grid; grid-template-columns: 5fr 7fr; margin-top: 56px; border-radius: 10px; overflow: hidden; background: #eaf3ea; border: 1px solid #b9d4bb; }
.home-hakajimai-img { position: relative; margin: 0; }
.home-hakajimai-img img { display: block; width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.home-hakajimai-text { padding: 24px 28px; }
.home-hakajimai-text h2 { margin: 0 0 8px; padding: 0; border: 0; background: none; font-family: var(--mincho); font-weight: 600; font-size: 24px; color: #1e5a2a; }
.btn-link.btn-green { background: #1e7a34; border-color: #1e7a34; color: #fff; }
.btn-link.btn-green:hover { background: #155c27; }

.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.points li { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 8px; background: var(--bg-soft); }
.points strong { font-family: var(--mincho); font-size: 20px; color: var(--accent); }

@media (max-width: 800px) {
  .cat-cards { grid-template-columns: 1fr 1fr; }
  .cat-card, .cat-card:nth-child(4) { grid-column: auto; }
  .points { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .home-hero { padding: 0; }
  .home-hero::before { content: none; }
  .home-hero-img { position: static; height: 160px; object-position: center; }
  .home-hero-text { width: auto; min-height: 0; padding: 18px 32px 20px; }
  .home-hero h1 { font-size: 23px; }
  .pc-only { display: none; }
  .home-hero-actions .btn-link { display: block; text-align: center; }
  .home-section, .home-hakajimai { margin-top: 40px; }
  .cat-cards { grid-template-columns: 1fr; gap: 12px; }
  .cat-card a { flex-direction: row; border-top-width: 1px; border-left: 5px solid var(--accent); }
  .cat-card.cat-jumokuso a { border-left-color: #2f6b3a; }
  .cat-card.cat-nokotsudo a { border-left-color: #4a4f8a; }
  .cat-card.cat-sankotsu a { border-left-color: #1f5f86; }
  .cat-card-img { flex: 0 0 112px; }
  .cat-card-img img { height: 100%; aspect-ratio: auto; }
  .cat-card-body { padding: 12px 14px; }
  .cat-card-body > span:not(.cat-card-go) { font-size: 15px; }
  .cat-card strong { font-size: 20px; }
  .home-hakajimai { grid-template-columns: 1fr; }
  .home-hakajimai-img img { min-height: 0; height: 180px; }
  .home-hakajimai-text { padding: 18px 16px; }
  .home-hakajimai-text .btn-link { display: block; text-align: center; }
  .region-chips dd a { min-height: 44px; min-width: 88px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; }
}

/* 墓じまいのページ */
.page-hero { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: center; margin: 16px 0 8px; padding: 20px 24px; border-radius: 10px; background: #eaf3ea; border: 1px solid #b9d4bb; }
.page-hero h1 { margin-top: 0; color: #1e5a2a; }
.page-hero-img { position: relative; margin: 0; }
.page-hero-img img { display: block; width: 100%; height: auto; border-radius: 8px; }
.page-hero-links { margin: 12px 0 0; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.steps li { counter-increment: step; position: relative; display: flex; flex-direction: column; padding: 12px 16px 12px 60px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: #1e7a34; color: #fff; font-weight: bold; text-align: center; line-height: 32px; }
.steps strong { font-size: 18px; }
/* 掲載者のページ：次にやる手順（入力前の手順3）。枠を太く、番号の丸は白地に濃い数字で、済んだ手順の緑の ✓ と見分ける */
.steps li.step-next { border: 3px solid var(--text); padding-top: 14px; }
.steps li.step-next::before { top: 14px; background: #fff; color: var(--text); border: 2px solid var(--text); line-height: 28px; }
.step-next-label { margin-bottom: 2px; font-size: 16px; font-weight: bold; color: var(--text); }
.cost-table { width: 100%; border-collapse: collapse; }
.cost-table th, .cost-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.cost-table thead th { background: var(--bg-soft); }
.cost-table tbody th { width: 34%; background: #fafaf7; }
.docs dt, .faq dt { margin-top: 22px; font-weight: bold; font-size: 17px; }
.docs dd, .faq dd { max-width: 720px; margin: 8px 0 0; padding: 2px 0 2px 14px; border-left: 3px solid #b9d4bb; font-size: 16px; line-height: 1.8; }
.cost-table { font-size: 16px; line-height: 1.7; }
.more-link { margin: 14px 0 0; font-weight: bold; }
.faq dt::before { content: "Q. "; color: #1e7a34; }
.dest-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.dest-cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-left: 5px solid #1e7a34; border-radius: 8px; color: var(--text); text-decoration: none; }
.dest-cards strong { font-family: var(--mincho); font-size: 19px; color: #1e5a2a; text-decoration: underline; }
.hakajimai-box { margin-top: 32px; padding: 4px 20px 16px; border: 2px solid #1e7a34; border-radius: 8px; background: #f1f8f2; }
.hakajimai-box h2 { margin-top: 16px; border-left-color: #1e7a34; background: #fff; }
.cat-link.cat-hakajimai { border-color: #1e7a34; background: #eaf3ea; }
.cat-link.cat-hakajimai:hover, .cat-link.cat-hakajimai[aria-current] { background: #1e7a34; color: #fff; }
@media (max-width: 700px) {
  .page-hero { grid-template-columns: 1fr; padding: 16px; }
  .page-hero-img { order: -1; }
  .page-hero-links .btn-link { display: block; text-align: center; }
  .cost-table thead { display: none; }
  .cost-table, .cost-table tbody, .cost-table tr, .cost-table th, .cost-table td { display: block; width: auto !important; }
  .cost-table tr { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  .cost-table th, .cost-table td { border: 0; }
  .cost-table tbody th { background: var(--bg-soft); }
  .cost-table td[data-label]::before { content: attr(data-label); display: block; font-size: 15px; font-weight: bold; color: var(--accent); }
  .cost-table td[data-label] + td[data-label] { border-top: 1px dashed var(--line); }
  .toc a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* 宗派の絞り込み */
.sect-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.sect-filter a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 2px solid var(--link); border-radius: 6px; font-weight: bold; text-decoration: none; }
.sect-filter a[aria-current] { background: var(--link); color: #fff; }
.sect-filter .count { font-size: 13px; font-weight: normal; }
.filter-now { padding: 8px 12px; background: #eef4fc; border-radius: 6px; }

/* カテゴリのページ：プランのカード */
.plan-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan-card { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding: 14px; border: 2px solid var(--line); border-radius: 8px; }
.plan-card:not(:has(.plan-photo)) { grid-template-columns: 1fr; }
.plan-photo img { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }
.plan-temple { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-card h3 { margin: 4px 0; font-size: 19px; }
.plan-price { margin: 0; font-size: 22px; font-weight: bold; }
.plan-price small { font-size: 14px; }
.plan-fee { margin-left: 12px; font-size: 15px; font-weight: normal; }
.plan-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.plan-tags span { padding: 0 8px; border: 1px solid var(--accent); border-radius: 4px; font-size: 14px; }
.plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.plan-compare { position: static; }
.owner-cta { margin: 32px 0; }
/* お墓の種類のページの掲載のご案内：お寺と事業者の枠を同じ大きさで並べる（PC は左右、スマホは縦） */
.owner-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.owner-pair .owner { display: flex; flex-direction: column; margin-top: 0; }
.owner-pair .owner h3 { font-size: 18px; line-height: 1.4; margin: 16px 0 12px; padding: 6px 12px; border-left: 5px solid var(--accent); background: var(--bg-soft); }
.owner-pair .owner-links { margin-top: auto; padding-top: 4px; }
@media (max-width: 700px) { .owner-pair { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .plan-card { grid-template-columns: 1fr; } }

/* 登録の入口（/owner/start.php） */
/* 手順は押せないので、ボタンに見せない：文字と「›」、いまの手順は茶色の太い下線 */
.steps-line { display: flex; flex-wrap: wrap; gap: 8px 30px; list-style: none; margin: 16px 0 16px; padding: 0; }
.steps-line li { position: relative; padding: 2px 0 4px; font-weight: bold; font-size: 16px; border-bottom: 4px solid transparent; }
.steps-line li:not(:last-child)::after { content: "›"; position: absolute; right: -20px; top: 1px; font-size: 18px; }
.steps-line li[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
/* 申し込みの画面：掲載料・掲載までの流れ */
.owner-price { margin: 16px 0; padding: 4px 0 4px 14px; border-left: 4px solid var(--accent); }
.owner-price p { margin: 4px 0; }
/* はじめの1年無料のキャンペーン（掲載料の欄の上）。緑の丸のチェックと緑の太字、下に条件 */
.free-campaign { display: flex; align-items: center; gap: 8px; margin: 0 0 4px !important; color: #1e7a34; font-size: 19px; }
.free-campaign::before { content: ""; flex-shrink: 0; width: 24px; height: 24px; background: var(--check-badge) no-repeat center / contain; }
.btn-primary.btn-green { background: #1e7a34; border-color: #1e7a34; }
.btn-primary.btn-green:hover { background: #155c27; border-color: #155c27; }
.pay-resume { margin: 10px 0 0; }
.free-until { display: block; font-size: 16px; font-weight: bold; }
.free-campaign-note { margin: 0 0 12px !important; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 16px; }
.price-rows { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.price-rows strong { grid-row: span 2; }
/* 掲載の案内をメールで受け取る（2026-10-09。掲載料の欄の代わり。同じ白い面・茶色の左線） */
.guide-request { max-width: 720px; margin: 16px 0; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0; }
.guide-request p { margin: 0 0 10px; }
.guide-request-title { font-size: 19px; font-weight: bold; color: var(--accent); }
.guide-request-form { display: grid; gap: 10px; max-width: 520px; }
.guide-request-form .label { margin: 0; font-weight: bold; }
.guide-request-form input[type=email] { width: 100%; font-size: 17px; padding: 10px 12px; border: 2px solid #767676; border-radius: 6px; font-family: inherit; color: var(--text); }
.guide-request-form input[type=email]:focus { outline: 3px solid #9cc0ef; border-color: var(--link); }
.guide-request-notify { font-size: 16px; }
.guide-request-form .btn-primary { justify-self: start; }
.guide-request-note { margin: 12px 0 0 !important; font-size: 15px; }
.guide-request .owner-links { margin: 0; }
@media (max-width: 600px) {
  .guide-request { padding: 14px 14px; }
  .guide-request-form .btn-primary { justify-self: stretch; padding: 14px 12px; }
}
.reg-flow-title { margin: 20px 0 6px; font-size: 17px; }
/* 掲載までの流れの図解（Codex で作った画像）。PC は横長を幅いっぱい、スマホは縦長を幅 360px まで */
.reg-flow-img { display: block; margin: 4px 0 20px; }
.reg-flow-img img { display: block; width: 100%; max-width: 810px; height: auto; margin: 0 auto; }
.reg-flow-title.flow-title { font-size: 20px; margin-top: 28px; }   /* 図の見出しは図と釣り合う大きさに（Codex） */
@media (max-width: 700px) {
  .reg-flow-img img { max-width: 320px; }
  .reg-flow-title.flow-title { font-size: 18px; }
}
.reg-flow { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; counter-reset: flow; margin: 0 0 20px; padding: 0; font-weight: bold; }
.reg-flow li { counter-increment: flow; }
.reg-flow li::before { content: counter(flow) ". "; color: var(--accent); }
.reg-flow li + li::before { content: "→\00a0\00a0" counter(flow) ". "; margin-left: 10px; }
.owner-sample.sp-only { display: none; }
@media (max-width: 700px) {
  .owner-sample.sp-only { display: block; margin-top: 32px; }   /* スマホでは見本を一覧・質問のあとに出す */
  .reg-flow { flex-direction: column; }
  .reg-flow li + li::before { content: counter(flow) ". "; margin-left: 0; }
  .reg-intro .owner-sample { display: none; }   /* スマホでは、お寺を選ぶ一覧を早く見せる */
}
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pick-list .btn-link { margin-left: auto; }
.search-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 16px; }
.search-inline input { font-size: 17px; padding: 8px 10px; border: 2px solid #767676; border-radius: 6px; font-family: inherit; min-width: 240px; }
.search-inline label { font-weight: bold; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-header .site-nav { justify-content: flex-start; }
@media (max-width: 600px) {
  /* スマホ：お墓の種類のリンクは折り返して全部見せる（横に動かす操作は年配の方に分かりにくい。2026-09-27 Codex と相談）。
     押しやすいよう高さ44px・文字16px。幅360pxで3行 */
  .site-header .site-nav { flex-wrap: wrap; gap: 8px; padding: 4px 16px 12px; }
  .site-nav .cat-link { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 0 10px; font-size: 16px; line-height: 1.5; white-space: nowrap; }
  .site-header .site-header-top { gap: 8px; padding-top: 8px; }
  .site-search { flex-basis: 100%; max-width: none; }
}
@media (max-width: 600px) {
  /* スマホ：比較リストは件数とボタンだけ（選んだ名前は比較表で見られる） */
  .compare-items { display: none; }
  .compare-bar-inner { padding: 8px 16px; }
  body.has-compare-bar { padding-bottom: 80px; }
}

/* ── お寺への問い合わせ ── */
.btn-inquiry { display: inline-block; padding: 12px 22px; border-radius: 6px; background: #b35c00; border: 2px solid #b35c00; color: #fff; font-weight: bold; font-size: 17px; text-decoration: none; }
.btn-inquiry:hover { background: #8a4600; }
.btn-inquiry.small { padding: 8px 14px; font-size: 15px; }
.inquiry-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0; }
.inquiry-cta span { font-weight: bold; }
.svc-inquiry { margin: 12px 0 0; }
.inquiry-preview { white-space: pre-wrap; font-family: inherit; padding: 12px 16px; border: 2px solid var(--line); border-radius: 6px; background: var(--bg-soft); }
.status-new { color: #a31919; }

/* ── 電話の枠 ── */
.phone-box { margin: 12px 0; padding: 12px 16px; border: 3px solid #1e7a34; border-radius: 10px; background: #f1f8f2; }
.phone-box-large { margin: 16px 0 24px; padding: 18px 20px; text-align: center; }
.phone-box-title { margin: 0 0 4px; font-weight: bold; font-size: 16px; }
.phone-box-large .phone-box-title { font-size: 20px; }
.call-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 8px; background: #1e7a34; color: #fff; text-decoration: none; font-weight: bold; }
.call-btn:hover { background: #155c27; }
.call-icon { font-size: 26px; line-height: 1; }
.call-number { font-size: 26px; letter-spacing: .03em; }
.phone-box-large .call-btn { padding: 12px 28px; }
.phone-box-large .call-number { font-size: 36px; }
.phone-hours { margin: 6px 0 0; font-weight: bold; }
.phone-note { margin: 6px 0 0; font-size: 14px; }
.svc-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 0; padding: 12px 16px; border: 3px solid #1e7a34; border-radius: 10px; background: #f1f8f2; }
.svc-contact-title { flex-basis: 100%; margin: 0; font-weight: bold; }
.svc-contact .phone-hours { flex-basis: 100%; margin: 0; }
.form-heading { margin-top: 24px; }
.month-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.month-stats div { padding: 8px 12px; background: var(--bg-soft); border-radius: 6px; }
.month-stats dt { font-size: 14px; font-weight: bold; }
.month-stats dd { margin: 0; font-size: 22px; font-weight: bold; }
@media (max-width: 600px) { .call-number { font-size: 22px; } .phone-box-large .call-number { font-size: 28px; } }

/* 業者（2026-09-26） */
.biz-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 16px; }
.biz-tags .svc-tag { margin: 0; }
.biz-area { font-size: 15px; }
.biz-kind { font-size: 14px; font-weight: bold; color: #1e5a2a; }
.area-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 2px 12px; margin: 8px 0; }
/* 対応できる地域を地方ごとにたたむ（2026-10-01。押すと開く。スマホで長くならないように） */
.area-regions > p { margin: 12px 0 4px; }
.area-region { margin: 8px 0; border: 2px solid var(--line); border-radius: 6px; background: #fff; }
.area-region > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; font-size: 17px; font-weight: bold; cursor: pointer; list-style: none; }
.area-region > summary::-webkit-details-marker { display: none; }
.area-region > summary::after { content: "開く ＋"; margin-left: auto; color: var(--link); font-size: 15px; white-space: nowrap; }
.area-region[open] > summary::after { content: "閉じる −"; }
.area-region-picked { color: #1e5a2a; font-size: 15px; }
.area-region .area-checks { margin: 0; padding: 0 12px 12px; }
.area-picked { margin: 8px 0 0; font-weight: bold; }
.area-picked:empty { display: none; }

/* ホームページへのボタン（お寺・業者のページの上） */
.hp-link { margin: 8px 0 16px; }

/* トップ：地域の案内文・お寺の方への掲載料と良いこと */
.home-lead { margin: -4px 0 14px; }
.owner-price { font-size: 18px; }
.owner-merits { margin: 8px 0 12px; padding-left: 1.4em; }
.owner-merits li { margin: 6px 0; font-weight: bold; }
/* 登録の入口（/owner/start.php）の最初の案内：薄いベージュの面にまとめ、良いことは緑のチェック、掲載料は白い面（2026-09-28 Codex と相談） */
.reg-panel { margin: 8px 0 32px; padding: 20px 28px 28px; background: var(--bg-soft); border-radius: 8px; }
.reg-panel h1 { margin: 0 0 16px; line-height: 1.5; }
.reg-panel h2 { margin: 4px 0 16px; padding: 0; border: 0; background: none; font-size: 20px; }   /* 面の中の見出し（申込の画面）は帯にしない */
.reg-panel .owner-with-sample { gap: 32px; grid-template-columns: 1.15fr 1fr; }   /* 左（案内・掲載料）を少し広く：年払いの金額が1行に収まるように */
.reg-panel .lead { margin: 0 0 20px; font-size: 18px; line-height: 1.8; }
.check-list { list-style: none; margin: 0 0 24px; padding: 0; }
.check-list li { position: relative; margin: 0 0 14px; padding-left: 32px; font-weight: normal; font-size: 17px; line-height: 1.75; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; background: var(--check-badge) no-repeat center / contain; }
.reg-panel .owner-price { margin: 0; padding: 16px 20px; background: #fff; border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0; }
.reg-panel .owner-sample { margin-top: 0; }
.reg-panel .owner-sample-title { font-size: 18px; margin-bottom: 12px; }
.sample-actions > span { flex: 1 1 200px; justify-content: center; text-align: center; min-height: 44px; }   /* 見本のボタンは2段になっても同じ幅に */
@media (max-width: 800px) { .reg-panel .owner-with-sample { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 700px) {
  .reg-panel { padding: 16px 16px 20px; margin-left: -4px; margin-right: -4px; }
  .reg-panel h1 { font-size: 24px; }
  .check-list li { margin-bottom: 12px; }
}

/* トップ：希望から探す入口 */
.wish-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wish-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border: 2px solid var(--line); border-left: 6px solid var(--accent); border-radius: 8px; background: #fff; color: var(--text); text-decoration: none; }
.wish-cards a:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.wish-cards strong { font-size: 18px; }
.wish-cards a { flex-direction: row; align-items: center; gap: 14px; }
.wish-cards img { width: 60px; height: 60px; flex-shrink: 0; }
.wish-text { display: flex; flex-direction: column; gap: 6px; }
.wish-go { color: var(--link); font-weight: bold; }
@media (min-width: 801px) { .wish-cards a { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* トップ：お寺の方へ（掲載の見本つき） */
.owner-with-sample { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.owner-sample { margin-top: 16px; }
.owner-sample-title { margin: 0 0 8px; font-weight: bold; }
.sample-card { position: relative; background: #fff; grid-template-columns: 1fr; }
.sample-card .plan-photo img { height: 160px; }
.sample-label { position: absolute; top: 20px; left: 20px; padding: 2px 10px; border-radius: 4px; background: #222; color: #fff; font-size: 14px; font-weight: bold; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
@media (max-width: 800px) {
  .wish-cards { grid-template-columns: 1fr; }
  .owner-with-sample { grid-template-columns: 1fr; gap: 0; }
}

/* トップ：大きな画像の下の2点（スマホは縦に並べる） */
@media (max-width: 700px) {
  .home-hero-points { flex-direction: column; gap: 8px; margin-top: 16px; }
}

/* トップ：緑の丸に白い太いチェック（大きな画像の下の2点・特長の見出し） */
:root { --check-badge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%231e7a34'/%3E%3Cpath d='M6.5 12.4l3.6 3.6 7.4-7.9' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.points strong { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.points strong::before { content: ""; flex-shrink: 0; width: 26px; height: 26px; background: var(--check-badge) no-repeat center / contain; }

/* 特集（/tokushu/） */
.tokushu-head { display: flex; align-items: center; gap: 14px; }
.tokushu-head img { width: 72px; height: 72px; flex-shrink: 0; }
.tokushu-head h1 { margin: 0; }
.tokushu-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.tokushu-filter-label { min-width: 3em; font-weight: bold; }
.tokushu-filter a { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 14px; border: 2px solid #1e7a34; border-radius: 999px; background: #fff; color: var(--text); font-weight: bold; text-decoration: none; }
.tokushu-filter a:hover, .tokushu-filter a[aria-current] { background: #1e7a34; color: #fff; }
.tokushu-filter .count { font-size: 14px; font-weight: normal; }
.tokushu-cards { grid-template-columns: repeat(2, 1fr); }
.tokushu-cards-3 { grid-template-columns: repeat(3, 1fr); }
.plan-match { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: bold; }
.plan-match::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; background: var(--check-badge) no-repeat center / contain; }
@media (max-width: 800px) {
  .tokushu-cards, .tokushu-cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tokushu-head img { width: 56px; height: 56px; }
}

/* ガイド記事（はじめての方へ /guide/。2026-10-01） */
.guide-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.guide-list a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-left: 5px solid #1e7a34; border-radius: 8px; color: var(--text); text-decoration: none; }
.guide-list strong { font-family: var(--mincho); font-size: 20px; color: #1e5a2a; text-decoration: underline; text-underline-offset: 3px; }
.guide-list span { font-size: 16px; line-height: 1.7; }
.guide-list-small { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-list-small strong { font-size: 18px; }
.page-hero-noimg { grid-template-columns: 1fr; }
.guide-updated { margin: 8px 0 0; font-size: 15px; }
/* ガイドの図は文字入りの図解なので、PC では半分の幅で大きく見せる。スマホは見出しを先に */
.guide .page-hero { grid-template-columns: 1fr 1fr; }
.guide .page-hero-noimg { grid-template-columns: 1fr; }
@media (max-width: 700px) {
  .guide .page-hero { grid-template-columns: 1fr; }
  .guide .page-hero-img { order: 0; }
}
.guide section { margin-top: 40px; }
.guide section p, .guide section li { font-size: 17px; line-height: 1.9; }
.guide .source { margin-top: 8px; font-size: 15px; line-height: 1.7; }
.guide-figure { margin: 16px 0; }
.guide-figure img { display: block; width: 100%; max-width: 900px; height: auto; border-radius: 8px; }
.guide-figure figcaption { margin-top: 6px; font-size: 15px; }
.guide-points { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; margin: 12px 0; padding: 0; }
.guide-points li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.guide-points li strong { display: block; margin-bottom: 4px; font-size: 18px; }
.guide-merit, .guide-demerit { margin: 12px 0; padding: 14px 18px; border-radius: 8px; border: 1px solid var(--line); }
.guide-merit { border-left: 5px solid #1e7a34; }
.guide-demerit { border-left: 5px solid var(--accent); }
.guide-merit h3, .guide-demerit h3 { margin: 0 0 8px; font-size: 18px; }
.guide-cta { margin: 24px 0; padding: 18px 20px; border-radius: 8px; background: var(--bg-soft); }
.guide-cta p { margin: 0 0 10px; }
.guide-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 8px 0 16px; font-size: 16px; }

/* 紹介動画・掲載までの流れ・お寺を選ぶ欄（2026-10-24 ユーザー「何をすれば掲載できるのか　ものすごく分かりにくい」→ Codex と相談） */
.intro-video { max-width: 720px; margin: 28px auto 8px; }
/* 見出し: 「1分でわかる」の札（茶の塗り・白文字・角丸4px・再生マーク）を上、〇〇を下（2026-10-24 ユーザー「案４で」）。札の文字はゴシックの太字 */
.intro-video-title { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 12px; text-align: center; }
.intro-video-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 4px; background: var(--accent); color: #fff; font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif; font-weight: bold; font-size: 15px; line-height: 1.4; letter-spacing: .04em; }
.intro-video-badge svg { width: 8px; height: 10px; }
.intro-video-name { font-family: var(--mincho); font-weight: 700; font-size: 21px; line-height: 1.5; color: var(--text); }
@media (max-width: 700px) { .intro-video-name { font-size: 18px; } }
.intro-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--bg-soft); }
.intro-video-links { margin: 16px 0 0; text-align: center; }

/* 掲載までの5段階（番号の丸を線でつなぐ。いまの段階は茶の塗り＋「いまここ」、済んだ段階は緑の✓） */
.owner-steps-box { margin: 20px 0 28px; padding: 18px 20px 14px; background: #fff; border: 2px solid var(--line); border-radius: 8px; }
.owner-steps-title { margin: 0 0 12px; font-weight: bold; font-size: 18px; }
.owner-steps { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; }
.owner-steps li { position: relative; padding: 0 6px; text-align: center; }
.owner-steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 3px; background: var(--line); }
.owner-steps li.is-done:not(:last-child)::after { background: #1e7a34; }
.owner-steps-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 3px solid #767676; border-radius: 50%; background: #fff; font-weight: bold; font-size: 19px; color: var(--text); }
.owner-steps .is-now .owner-steps-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.owner-steps .is-done .owner-steps-num { background: #1e7a34; border-color: #1e7a34; color: #fff; }
.owner-steps-label { display: block; margin-top: 6px; font-weight: bold; line-height: 1.5; }
.owner-steps .is-now .owner-steps-label { color: var(--accent); }
.owner-steps-here { display: block; width: fit-content; margin: 4px auto 0; padding: 0 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; line-height: 1.7; }
.owner-steps-note { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--text-sub); }
@media (max-width: 700px) {
  .owner-steps-box { padding: 14px 14px 8px; }
  .owner-steps { grid-template-columns: 1fr; }
  .owner-steps li { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; padding: 0 0 12px; text-align: left; }
  .owner-steps li:not(:last-child)::after { top: 40px; bottom: 0; left: 18px; right: auto; width: 3px; height: auto; }
  .owner-steps-num { grid-row: span 2; width: 38px; height: 38px; font-size: 17px; }
  .owner-steps-label { margin-top: 6px; }
  .owner-steps-here { display: inline-block; margin: 0 0 0 8px; vertical-align: 1px; }
}

/* 始めるボタン・お寺を選ぶ欄（番号なしの「都道府県・市区町村・お寺」） */
.start-cta { margin: 8px 0 20px; }
.start-cta .btn-strong { font-size: 18px; padding-left: 28px; padding-right: 28px; }
.pick-panel { margin: 28px 0 36px; padding: 20px 24px 16px; border: 3px solid var(--accent); border-radius: 10px; background: #fff; }
.pick-panel > h2 { margin: 0 0 6px; padding: 0; border: 0; background: none; font-size: 24px; line-height: 1.5; }
.pick-panel-lead { margin: 0 0 14px; }
/* お寺を選ぶ順序: 小さな点を縦の線でつなぐ。枠・背景・下線なし（ボタンに見せない） */
.pick-order-title { margin: 4px 0 6px; font-weight: bold; font-size: 15px; }
.pick-order { list-style: none; margin: 0 0 24px; padding: 0; }
.pick-order li { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 0 0 8px; }
.pick-order li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 1.15em; bottom: -0.35em; width: 1px; background: #999; }
.pick-order-mark { flex-shrink: 0; width: 15px; text-align: center; font-weight: bold; color: #1e7a34; }
.pick-order-mark:empty::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #767676; }
.pick-order .is-now { color: var(--accent); }
.pick-order .is-now .pick-order-mark::before { width: 11px; height: 11px; background: var(--accent); }
.pick-order-now { display: inline-block; margin-left: 10px; padding: 0 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: bold; line-height: 1.7; }   /* 「掲載までの流れ」の「いまここ」の札と同じ形 */
.pick-panel .more, .pick-panel .pick-missing { margin: 12px 0 0; }
.owner-about { margin: 8px 0 32px; }
.owner-about > h2 { margin-top: 0; }
@media (max-width: 700px) {
  .pick-panel { padding: 16px 14px 12px; }
  .pick-panel > h2 { font-size: 20px; }
  }
/* 見出しの番号（掲載までの流れの丸と同じ形・色） */
.step-h { display: flex; align-items: center; gap: 12px; }
.step-badge { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-family: inherit; font-weight: bold; font-size: 19px; line-height: 1; }
@media (max-width: 700px) {
  .step-h { align-items: flex-start; gap: 10px; }
  .step-badge { width: 34px; height: 34px; font-size: 17px; margin-top: 2px; }
}
.start-price { max-width: 720px; }

/* ── トップページへの広告掲載のご案内（/ads/。2026-10-24 作り直し・Codex と相談） ── */
.ads-hero { margin: 8px 0 8px; padding: 28px 32px 22px; background: var(--bg-soft); border-radius: 10px; }
.ads-hero h1 { margin: 0 0 12px; line-height: 1.5; }
.ads-hero .lead { margin: 0 0 16px; font-size: 18px; }
.ads-facts { display: flex; flex-wrap: wrap; gap: 8px 12px; list-style: none; margin: 0 0 20px; padding: 0; }
.ads-facts li { display: flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; background: #fff; border-radius: 999px; font-weight: bold; }
.ads-facts li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; background: var(--check-badge) no-repeat center / contain; }
.ads-facts strong { color: var(--accent); font-size: 19px; }
.ads-hero .owner-links { margin: 0 0 14px; }
.ads-other { margin: 0; font-size: 15px; }
.ads-section { margin-top: 52px; }
.ads-section > h2 { margin: 0 0 14px; padding: 0 0 8px; border: 0; border-bottom: 2px solid var(--accent); background: none; font-family: var(--mincho); font-weight: 600; font-size: 24px; line-height: 1.5; }
.ads-answer { max-width: 720px; font-size: 17px; }
.ads-slot { margin: 24px 0; padding: 20px 24px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ads-slot h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; font-size: 21px; }
.ads-slot-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 18px; }
.ads-slot-price { padding: 2px 12px; border: 2px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 16px; }
.ads-slot > p { max-width: 720px; margin: 0 0 14px; }
.ads-shots { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ads-shots figure { margin: 0; }
.ads-shot-pc > summary { display: none; }
.ads-shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.ads-shots figcaption { margin-top: 6px; font-size: 14px; font-weight: bold; text-align: center; }
.ads-slot-link { margin: 14px 0 0 !important; font-weight: bold; }
.ads-slot-link span { margin-left: 6px; font-size: 14px; font-weight: normal; }
.ads-map { margin: 8px 0 12px; }
.ads-map summary { display: inline-block; padding: 8px 18px; border: 2px solid var(--link); border-radius: 6px; color: var(--link); font-weight: bold; cursor: pointer; }
.ads-map img { display: block; max-width: 360px; width: 100%; height: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; }
.ads-note { font-size: 14px; color: var(--text-sub); }
.ads-compare { width: 100%; margin: 8px 0 16px; border-collapse: collapse; background: #fff; }
.ads-compare th, .ads-compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ads-compare thead th { background: var(--bg-soft); font-size: 18px; }
.ads-compare tbody th { width: 9em; white-space: nowrap; }
.ads-price { font-size: 22px; color: var(--accent); }
.ads-sub { font-size: 14px; color: var(--text-sub); }
.ads-apply { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 8px; }
.ads-apply-card { padding: 16px 20px; border: 2px solid var(--accent); border-radius: 10px; background: #fff; }
.ads-apply-card p { margin: 4px 0; }
.ads-apply-name { font-weight: bold; font-size: 19px; }
.ads-apply-price strong { font-size: 24px; color: var(--accent); }
.ads-apply-card .owner-links { margin-top: 12px; }
.ads-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 8px 0 0; padding: 0; counter-reset: adsflow; }
.ads-flow li { position: relative; padding: 52px 16px 16px; background: var(--bg-soft); border-radius: 10px; counter-increment: adsflow; }
.ads-flow li::before { content: counter(adsflow); position: absolute; top: 14px; left: 16px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: bold; }
.ads-flow strong { display: block; margin-bottom: 4px; font-size: 17px; }
.ads-flow span { font-size: 15px; }
@media (max-width: 700px) {
  .ads-hero { padding: 20px 16px 16px; }
  .ads-hero .lead { font-size: 17px; }
  .ads-slot { padding: 16px 14px 12px; }
  .ads-shots { grid-template-columns: 1fr; }
  .ads-shot-sp { order: -1; max-width: 280px; margin: 0 auto !important; }
  .ads-shot-pc > summary { display: block; width: fit-content; padding: 6px 14px; border: 2px solid var(--link); border-radius: 6px; color: var(--link); font-weight: bold; cursor: pointer; }
  .ads-shot-pc[open] > summary { margin-bottom: 10px; }
  .ads-hero .owner-links .btn-link { display: block; text-align: center; }
  .ads-hero .owner-links .btn-link + .btn-link { margin-top: 10px; }
  .ads-compare th, .ads-compare td { padding: 10px 8px; font-size: 15px; }
  .ads-compare tbody th { width: 5.5em; white-space: normal; }
  .ads-price { font-size: 19px; }
  .ads-apply { grid-template-columns: 1fr; }
  .ads-flow { grid-template-columns: 1fr; }
  .ads-flow li { padding: 14px 14px 14px 56px; }
  .ads-flow li::before { top: 14px; left: 14px; }
}

/* /ads/ の冒頭の枠の中の動画・動画を大きく見る（2026-10-24） */
/* 冒頭の枠の中の動画（2026-10-24） */
.ads-hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 8px 36px; align-items: center; }
.ads-hero-video .intro-video { max-width: none; margin: 0; }
.ads-hero-video .intro-video-name { font-size: 17px; }
.ads-hero-video video { box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.ads-other { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .ads-hero { grid-template-columns: 1fr; }
  .ads-hero-video { margin: 8px 0 12px; }
}
@media (max-width: 700px) {
  .ads-hero .owner-links { display: grid; gap: 10px; }
  .ads-hero .owner-links .btn-link + .btn-link { margin-top: 0; }
}
/* 動画を大きく見る（2026-10-24。js/video-zoom.js） */
.intro-video-zoom { margin: 8px 0 0; text-align: right; }
.video-zoom-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 2px solid var(--link); border-radius: 6px; background: #fff; color: var(--link); font-family: inherit; font-size: 15px; font-weight: bold; cursor: pointer; }
.video-zoom-btn:hover { background: #eef4fc; }
.video-zoom-btn svg { width: 16px; height: 16px; }
dialog.video-zoom { width: min(92vw, calc(84vh * 16 / 9)); max-width: 1280px; padding: 0; border: 0; border-radius: 8px; background: #000; overflow: visible; }
dialog.video-zoom::backdrop { background: rgba(0, 0, 0, .82); }
dialog.video-zoom video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; }
.video-zoom-close { position: absolute; top: -46px; right: 0; padding: 6px 14px; border: 2px solid #fff; border-radius: 6px; background: transparent; color: #fff; font-family: inherit; font-size: 16px; font-weight: bold; cursor: pointer; }
.video-zoom-close:hover { background: rgba(255, 255, 255, .15); }

/* 申込フォームへ進むボタン（2026-10-25・Codex と相談） */
.form-jump { margin: 16px 0 24px; }
.form-jump .btn-link { display: inline-flex; align-items: center; justify-content: center; min-width: 280px; min-height: 48px; padding: 10px 24px; border-radius: 6px; font-size: 16px; }
#apply-form { scroll-margin-top: 16px; }
@media (max-width: 700px) { .form-jump .btn-link { display: flex; width: 100%; min-width: 0; } }

/* 掲載募集キャンペーンのバナー（2026-10-25） */
.campaign-banner { max-width: 800px; margin: 24px auto; }
.campaign-banner-left { max-width: 720px; margin: 24px 0; }
.campaign-banner img { display: block; width: 100%; height: auto; }
.campaign-banner a:hover img { opacity: .92; }
@media (max-width: 700px) { .campaign-banner, .campaign-banner-left { margin: 20px 0; } }

/* 2026-11-16 市区町村のお寺一覧の「〇〇市で永代供養・樹木葬・納骨堂を探す」（inc/views/area-find.php） */
.area-find { max-width: 720px; margin: 16px 0 20px; padding: 2px 18px 6px; border: 2px solid var(--accent); border-radius: 10px; background: #fffdf8; }
.area-find h2 { margin: 16px 0 12px; }
.area-find-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.area-find-check { margin: 0 0 8px; padding-left: 1.4em; }
.area-find-check li { margin: 0 0 4px; font-size: 16px; line-height: 1.6; }
.area-find .guide-links { margin: 4px 0 8px; }
@media (max-width: 700px) { .area-find { padding: 2px 12px 6px; } }
/* 2026-11-16 お寺のページの出どころの1行（inc/views/facility.php）と「永代供養・樹木葬など」の見出し（temple-find.php） */
.data-note { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.find-h3 { font-size: 17px; margin: 20px 0 8px; }
/* 2026-11-18 掲載のご案内メールから来たお寺だけの「ようこそ」の枠（inc/views/facility.php）と、代行のご依頼（/owner/proxy-request.php） */
.welcome-box { margin: 16px 0 24px; padding: 14px 20px 16px; background: #fff8ec; border: 3px solid var(--accent); border-radius: 10px; }
.welcome-box p { margin: 6px 0; max-width: 760px; }
.welcome-title { font-size: 18px; font-weight: bold; color: var(--accent); }
.welcome-deal { font-size: 20px; line-height: 1.6; }
.welcome-deal strong { color: #a1281b; }
.deal-badge { display: inline-block; padding: 2px 10px; border-radius: 4px; background: #a1281b; color: #fff; font-size: 15px; font-weight: bold; vertical-align: 2px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px !important; }
.welcome-actions .btn-link { font-size: 17px; }
.welcome-note { font-size: 14px; line-height: 1.6; }
@media (max-width: 700px) { .welcome-box { padding: 10px 14px 12px; } .welcome-deal { font-size: 18px; } .welcome-actions .btn-link { display: block; text-align: center; } }
.proxy-intro { margin: 8px 0 20px; padding: 12px 18px; background: var(--bg-soft); border-radius: 8px; }
.proxy-intro p { margin: 6px 0; max-width: 760px; }
.proxy-deal { font-size: 18px; }
.proxy-flow { max-width: 720px; }
/* 代行のあとのご本人の確認とお支払い（2026-11-19 /owner/proxy-confirm.php・/owner/proxy-start.php・運営の代行の入力中の帯・下書きの見え方） */
.proxy-steps { max-width: 720px; margin: 8px 0 16px; padding-left: 1.6em; }
.proxy-steps li { margin: 4px 0; }
.proxy-steps li.done { color: var(--text-sub); }
.proxy-steps li.proxy-step-now { font-weight: bold; }
.proxy-services { max-width: 720px; }
.proxy-intro-text { max-width: 720px; }
.pay-explain { max-width: 720px; margin: 8px 0 24px; padding: 16px 24px 12px; background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; }
.pay-explain ol { margin: 8px 0 12px; padding-left: 1.4em; }
.pay-explain li { margin: 0 0 10px; line-height: 1.8; }
.pay-explain .free-campaign { margin-top: 0; }
.proxy-admin-bar { position: sticky; top: 0; z-index: 50; }
.preview-notice { margin-bottom: 16px; }
