/* ハカシル 共通の見た目（W7、2026-10-08 ユーザー承認の見本 work/samples/w7/ の w7v2.css から）。ビルドの道具なしの素のCSS。
   W1〜W5 の見た目（site.css の前の版）は Git の履歴に残っている。 */
/* W7 デザインの見本 第2版（2026-10-08、ユーザーの作り直しの指示による）。ビルドの道具なしの素のCSS。システムの文字。
   方針：白が基本。明るい黄緑と水色を「線・影・薄い背景」に使い、すがすがしい印象にする。茶色・ベージュは使わない。
   読みやすさ：文字はすべて暗い色で、背景とのコントラスト比 4.5 以上（色の組み合わせは contrast.php で計算して確かめる）。
   ボタン：白い地に濃い色の大きな文字（17px以上）、1行に収める、押せる高さ48px以上、下側の色の影で立体に。押すと沈む。
   色だけで意味を伝えない（LINEのボタンは「LINE」と文字で書く）。
   使わないもの：枠・カードの左端・上端の色の帯、どれも同じ角丸カードで囲む作り、意味のないアイコン・絵文字、派手なグラデーション。 */
:root {
  --text: #1f2328;        /* 本文（白の上で 15.8:1） */
  --sub: #4a5560;         /* 補足（白の上で 7.5:1） */
  --link: #0b5cad;        /* リンク（白の上で 6.4:1） */
  --green: #8cc63f;       /* 黄緑（線・影・飾りだけ。文字には使わない） */
  --green-deep: #6aa12a;  /* 黄緑の影 */
  --green-text: #2c6200;  /* 黄緑の系統の文字（白の上で 7.0:1） */
  --green-wash: #f1f9e4;  /* 黄緑の薄い背景 */
  --blue: #4fb3e8;        /* 水色（線・影・飾りだけ） */
  --blue-deep: #2a8fc6;   /* 水色の影 */
  --blue-text: #0b5cad;   /* 水色の系統の文字（白の上で 6.4:1） */
  --blue-wash: #eaf6fd;   /* 水色の薄い背景 */
  --line-green: #06c755;  /* LINE の緑（線・影だけ。文字には使わない） */
  --line-deep: #049a42;
  --line-text: #0f6b32;   /* LINE のボタンの文字（白の上で 6.6:1） */
  --rule: #d6e4ec;        /* 罫線 */
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px; line-height: 1.75; overflow-wrap: anywhere;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
.note { font-size: 15px; color: var(--sub); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* ---------- ボタン（白い地に濃い色の大きな文字。下側の色の影で立体。押すと沈む） ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 10px 16px; border-radius: 8px;
  background: #fff; color: var(--text); text-decoration: none;
  font-size: 17px; font-weight: bold; line-height: 1.3; white-space: nowrap;
  border: 2px solid var(--blue); box-shadow: 0 4px 0 var(--blue-deep);
  position: relative; top: 0; transition: top .06s, box-shadow .06s;
}
.btn:hover { background: var(--blue-wash); color: var(--text); }
.btn:active { top: 3px; box-shadow: 0 1px 0 var(--blue-deep); }
.btn.is-green { border-color: var(--green); box-shadow: 0 4px 0 var(--green-deep); }
.btn.is-green:hover { background: var(--green-wash); }
.btn.is-green:active { box-shadow: 0 1px 0 var(--green-deep); }
.btn.is-sub { border-color: var(--rule); box-shadow: 0 3px 0 #b9cbd6; font-size: 17px; }
.btn.is-sub:active { box-shadow: 0 1px 0 #b9cbd6; }
.btn.is-line { color: var(--line-text); border-color: var(--line-green); box-shadow: 0 4px 0 var(--line-deep); }
.btn.is-line:hover { background: #eafaf0; color: var(--line-text); }
.btn.is-line:active { box-shadow: 0 1px 0 var(--line-deep); }
.btn .arrow { font-weight: normal; color: var(--sub); }

/* ---------- ヘッダー ---------- */
.site-header { background: #fff; border-bottom: 3px solid var(--blue); }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
.logo img { width: 170px; height: auto; display: block; }
.tagline { margin: 0; font-size: 15px; color: var(--sub); }
.header-nav { margin-left: auto; display: flex; gap: 4px; }
.header-nav a { color: var(--text); text-decoration: none; font-weight: bold; padding: 10px 12px; border-radius: 6px; }
.header-nav a:hover { background: var(--blue-wash); }
.header-line { flex: 0 0 auto; }
.sp-menu, .sp-line-bar { display: none; }

/* ---------- ページの組み立て（PC：本文＋右の列） ---------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 20px 20px 48px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.main { min-width: 0; }

/* 大きな見出し（下に水色の線。左端の帯は使わない） */
.section { margin: 0 0 36px; }
.section-title { font-size: 24px; line-height: 1.4; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 3px solid var(--blue); }
.section-lead { margin: -6px 0 16px; color: var(--sub); }

/* ---------- トップ：はじめ ---------- */
.hero { background: var(--blue-wash); border: 1px solid #cfe9f8; border-radius: 10px; padding: 24px 24px 22px; margin: 0 0 32px; }
.hero h1 { font-size: 30px; line-height: 1.35; margin: 0 0 8px; }
.hero p { margin: 0 0 16px; font-size: 17px; }
.hero-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; }

/* ---------- 目的から探す ---------- */
/* PC は2列（「お墓」の2つのボタンを横に並べても、17pxの文字が1行に収まる幅にするため） */
.purpose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.purpose .main { display: grid; gap: 12px; }
.purpose .main.is-pair { grid-template-columns: 1fr 1fr; }
.lbl-long { display: none; }
.purpose { border: 1px solid var(--rule); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; background: #fff; }
.main .purpose h3 { font-size: 21px; margin: 0 0 4px; }
.purpose p { margin: 0 0 14px; color: var(--sub); font-size: 15px; flex: 1 1 auto; }
.purpose .actions { display: grid; gap: 12px; margin-top: auto; }

/* ---------- エリアから探す ---------- */
.area-table { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.area-row { display: grid; grid-template-columns: 9em minmax(0, 1fr); border-top: 1px solid var(--rule); }
.area-row:first-child { border-top: 0; }
.main .area-row h3 { margin: 0; font-size: 17px; background: var(--green-wash); padding: 12px 14px; display: flex; align-items: center; }
.area-row ul { list-style: none; margin: 0; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.area-row a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; font-size: 17px; text-decoration: underline; text-underline-offset: 3px; }
.area-more { margin: 14px 0 0; }

/* ---------- LINE相談 ---------- */
.line-box { border: 2px solid var(--line-green); border-radius: 10px; padding: 20px; background: #f3fcf6; margin: 0 0 36px; }
.line-box h2 { font-size: 22px; margin: 0 0 6px; }
.line-box p { margin: 0 0 14px; }
.line-box .btn { max-width: 420px; }

/* ---------- お役立ち記事 ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.main .guide h3 { font-size: 19px; margin: 14px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { border-bottom: 1px solid #eef3f6; }
.article-list a { display: block; padding: 10px 0; font-size: 16px; line-height: 1.55; }
.more { margin: 8px 0 0; font-size: 16px; }

/* ---------- 差し替え可能なバナーの枠 ---------- */
.slot { border: 2px dashed #9fc7dd; border-radius: 10px; padding: 12px; margin: 0 0 32px; background: #fbfdff; }
.slot-label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.slot-dummy { min-height: 90px; display: flex; align-items: center; justify-content: center; color: var(--sub); background: var(--blue-wash); border-radius: 6px; text-align: center; padding: 10px; }

/* ---------- 右の列（バナーとサイドメニュー） ---------- */
.side { display: grid; gap: 20px; position: sticky; top: 12px; }
.side-line { border: 2px solid var(--line-green); border-radius: 10px; padding: 16px; background: #f3fcf6; }
.side-line .title { font-size: 19px; font-weight: bold; margin: 0 0 4px; }
.side-line p { margin: 0 0 12px; font-size: 15px; }
.side-box { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.side-box h2 { margin: 0; font-size: 17px; background: var(--blue-wash); padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-top: 1px solid #eef3f6; color: var(--text); text-decoration: none; font-size: 16px; }
.side-links li:first-child a { border-top: 0; }
.side-links a:hover { background: var(--blue-wash); }
.side-box .article-list a { padding: 10px 14px; font-size: 15px; }

/* ---------- 一覧・施設・記事の中身（今の新サイトの部品を、第2版の見た目にする） ---------- */
.crumb-bar { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px 0; }
.crumb { font-size: 15px; color: var(--sub); }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.crumb li + li::before { content: "›"; margin: 0 8px; color: var(--sub); }
.main h1 { font-size: 28px; line-height: 1.4; margin: 6px 0 4px; }
.main .lead { margin: 0 0 20px; font-size: 17px; color: var(--sub); }
section.block { margin: 0 0 32px; }
section.block > h2, .related > h2 { font-size: 22px; line-height: 1.45; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--blue);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.main h3 { font-size: 18px; margin: 18px 0 8px; }
.tag { font-size: 14px; font-weight: normal; color: var(--sub); background: var(--blue-wash); border-radius: 4px; padding: 1px 8px; }
.main table { border-collapse: collapse; width: 100%; font-size: 16px; }
.main th, .main td { border-bottom: 1px solid var(--rule); padding: 12px 10px; text-align: left; vertical-align: top; }
.main th { width: 10em; color: var(--text); background: #f6fafc; font-weight: bold; }
ul.near { list-style: none; padding: 0; margin: 0; }
ul.near li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eef3f6; padding: 10px 0; }
ul.near li > span:last-child { flex-shrink: 0; }
.bar { display: flex; align-items: center; gap: 8px; font-size: 16px; padding: 2px 0; }
.bar .bar-label { flex: 0 0 10em; }
.bar .b { display: inline-block; height: 12px; background: var(--blue); border-radius: 3px; max-width: calc(100% - 10em - 4.5em); }
.bar .bar-n { flex-shrink: 0; }
.map { height: 360px; border: 1px solid var(--rule); border-radius: 8px; margin: 10px 0; z-index: 0; }
.card { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.card .name { font-size: 18px; font-weight: bold; }
.card b, ul.near b, ul.near li > span:last-child { white-space: nowrap; }   /* 金額（例：3万円）を途中で折り返さない */
ul.links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
ul.links a { display: flex; align-items: center; min-height: 52px; padding: 8px 14px; border: 2px solid var(--rule); border-radius: 8px; box-shadow: 0 3px 0 #c7d8e2;
  text-decoration: none; color: var(--text); font-weight: bold; background: #fff; }
ul.links a:hover { background: var(--blue-wash); }
ul.links a:active { position: relative; top: 2px; box-shadow: 0 1px 0 #c7d8e2; }
h3.ward { font-size: 19px; border-bottom: 1px solid var(--rule); padding-bottom: 4px; margin-top: 22px; }
dl.town { columns: 2 260px; column-gap: 28px; margin: 10px 0; }
dl.town > div { break-inside: avoid; margin-bottom: 12px; }
dl.town dt { font-weight: bold; font-size: 16px; }
dl.town dd { margin: 0; font-size: 16px; line-height: 1.9; }
details.area-list { border-top: 1px solid var(--rule); padding: 10px 0; }
details.area-list summary { cursor: pointer; font-weight: bold; min-height: 44px; display: flex; align-items: center; }
.sources { margin-top: 10px; }

/* LINE相談の部品（今の新サイトの .cta）：白い地、LINEの緑の枠、ボタンは白い地に濃い緑の文字 */
section.cta { border: 2px solid var(--line-green); border-radius: 10px; padding: 20px; background: #f3fcf6; margin: 0 0 32px; text-align: left; }
section.cta h2 { font-size: 21px; margin: 0 0 6px; padding: 0; border: 0; display: block; }
section.cta p { margin: 0 0 12px; }
section.cta a.btn { color: var(--line-text); border: 2px solid var(--line-green); box-shadow: 0 4px 0 var(--line-deep); max-width: 420px; }
section.cta a.btn:hover { background: #eafaf0; }
section.cta a.btn:active { box-shadow: 0 1px 0 var(--line-deep); }
section.cta .note { margin: 12px 0 0; }

/* 記事 */
.article { margin: 0 0 32px; }
.article h1 { font-size: 28px; }
.toc { background: var(--blue-wash); border-radius: 10px; padding: 14px 20px; margin: 16px 0 24px; }
.toc-title { font-weight: bold; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { padding: 3px 0; }
.article-body { font-size: 17px; line-height: 1.9; }
.article-body h2, .article-body .ttlMidashiL { font-size: 23px; line-height: 1.45; margin: 36px 0 14px; padding: 0 0 8px; border: 0; border-bottom: 3px solid var(--blue); display: block; }
.article-body h3, .article-body .ttlMidashiM { font-size: 20px; margin: 28px 0 10px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
.article-body h4, .article-body .ttlMidashiS { font-size: 18px; margin: 20px 0 8px; }
.article-body p { margin: 0 0 14px; }
.article-body img { max-width: 100%; height: auto; }
.article-body iframe { width: 100%; min-height: 300px; border: 0; }
.article-body table { margin: 14px 0; font-size: 16px; }
.article-body th, .article-body td { border: 1px solid var(--rule); }
.article-body th { width: auto; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 14px; }
.article-body .speechLeft, .article-body .speechRight { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }
.article-body .speechRight { flex-direction: row-reverse; }
.article-body .speechLeft img, .article-body .speechRight img { width: 64px; border-radius: 50%; }
.article-body .speechLeft p, .article-body .speechRight p { background: var(--blue-wash); border-radius: 10px; padding: 10px 14px; margin: 0; }
.article-body .clearfix::after { content: ""; display: block; clear: both; }

/* ---------- フッター ---------- */
.site-footer { background: #f5f9fb; border-top: 1px solid var(--rule); font-size: 15px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 20px 20px 28px; }
.footer-inner ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-inner p { margin: 0; color: var(--sub); }

/* ---------- スマートフォン（幅860px以下）：1列のカード ---------- */
@media (max-width: 860px) {
  .header-inner { padding: 8px 14px; gap: 10px; }
  .logo img { width: 128px; }
  .tagline, .header-nav, .header-line { display: none; }
  .sp-menu { display: block; margin-left: auto; }
  .sp-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 48px; min-width: 96px; padding: 6px 14px;
    font-size: 17px; font-weight: bold; border: 2px solid var(--blue); border-radius: 8px; box-shadow: 0 3px 0 var(--blue-deep); background: #fff; }
  .sp-menu > summary::-webkit-details-marker { display: none; }
  .sp-menu[open] > summary { box-shadow: 0 1px 0 var(--blue-deep); position: relative; top: 2px; }
  .sp-menu-body { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: #fff; border-bottom: 3px solid var(--blue); padding: 14px 14px 20px; max-height: calc(100vh - 140px); overflow-y: auto; box-shadow: 0 8px 18px rgba(20, 60, 90, .12); }
  .sp-menu-body h2 { font-size: 18px; margin: 16px 0 8px; }
  .sp-menu-body .side-links { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
  .site-header { position: relative; }

  .page { display: block; padding: 14px 14px 110px; }
  .side { display: none; }
  .hero { padding: 18px 16px; margin-bottom: 26px; }
  .hero h1 { font-size: 24px; }
  .hero-buttons { grid-template-columns: 1fr; max-width: none; }
  .section-title { font-size: 21px; }
  .purpose-grid { grid-template-columns: 1fr; gap: 14px; }
  /* スマートフォンでは、2つのボタンも縦に並べ、元の文言にする */
  .purpose .main.is-pair { grid-template-columns: 1fr; }
  .lbl-long { display: inline; }
  .lbl-short { display: none; }
  .area-row { grid-template-columns: 1fr; }
  .main .area-row h3 { padding: 10px 14px; }
  /* 都道府県は3列の格子。押せる高さ48px以上（指で押しやすく） */
  .area-row ul { padding: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .area-row a { display: flex; justify-content: center; min-height: 48px; padding: 0 4px; border: 1px solid var(--rule); border-radius: 6px;
    text-decoration: none; color: var(--link); font-weight: bold; background: #fff; box-shadow: 0 2px 0 #c7d8e2; }
  .area-row a:active { position: relative; top: 2px; box-shadow: none; }
  .guide-grid { grid-template-columns: 1fr; }
  .line-box .btn { max-width: none; }
  .crumb-bar { padding: 8px 14px 0; }
  .main h1, .article h1 { font-size: 24px; }
  section.block > h2, .related > h2 { font-size: 20px; }
  /* 施設・一覧の表は、見出しを上、値を下の2段にする（見出しが長くても折り返しが少ない） */
  section.block table, section.block tbody, section.block tr, section.block th, section.block td { display: block; width: auto; }
  section.block th { border-bottom: 0; padding: 10px 12px 2px; background: #f6fafc; }
  section.block td { padding: 4px 12px 12px; background: #fff; }
  .bar .bar-label { flex-basis: 7.5em; }
  .bar .b { max-width: calc(100% - 7.5em - 4.5em); }
  ul.links { grid-template-columns: 1fr; }
  dl.town { columns: 1; }
  section.cta a.btn { max-width: none; }
  .article-body { font-size: 16px; }
  .article-body h2, .article-body .ttlMidashiL { font-size: 21px; }
  .article-body table { display: block; overflow-x: auto; }

  /* 画面下に常に出る「LINEで無料相談」 */
  .sp-line-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px 14px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rule); }
  .sp-line-bar .btn { width: 100%; }
}

/* ---------- 記事の本文に残る、元のサイトの部品（2026-10-08、上位50件の写真の確認で直した） ---------- */
/* 「条件を見る」などの開閉する箱（acbox）：チェックボックスを隠し、ラベルを押せる立体の形にする。JavaScript なし。中身は開くまで隠す（元のサイトと同じ） */
.article-body [class^="acbox"], .article-body [class*=" acbox"] { margin: 14px 0; position: relative; }
.article-body [class^="acbox"] > input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.article-body [class^="acbox"] > label { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 10px 14px;
  border: 2px solid var(--rule); border-radius: 8px; box-shadow: 0 3px 0 #c7d8e2; background: #fff; font-weight: bold; font-size: 17px; cursor: pointer; }
.article-body [class^="acbox"] > label::after { content: "開く"; flex-shrink: 0; font-weight: normal; font-size: 15px; color: var(--link); text-decoration: underline; }
.article-body [class^="acbox"] > input:checked + label::after { content: "閉じる"; }
.article-body [class^="acbox"] > input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.article-body [class^="acbox"] > input:checked + label { box-shadow: 0 1px 0 #c7d8e2; position: relative; top: 2px; }
.article-body [class^="acbox"] > div { display: none; padding: 12px 2px 0; }
.article-body [class^="acbox"] > input:checked ~ div { display: block; }
/* スマートフォン用・PC用の画像の出し分け（元のサイトと同じ。例「口コミをもっと見る」の画像が2枚並ばないように） */
@media (min-width: 861px) { .article-body .spCta01, .article-body .spCta02 { display: none; } }
@media (max-width: 860px) { .article-body .pcCta { display: none; } }
/* 強調の文字（元のサイトの黄色のマーカー・赤・橙の文字）。コントラスト比 4.5 以上 */
.article-body .markerYellow { background: linear-gradient(transparent 55%, #fff3a0 55%); font-weight: bold; }
.article-body .txtred { color: #b3261e; font-weight: bold; }
.article-body .txtorange { color: #9a4500; font-weight: bold; }
.article-body .txtblack { color: var(--text); font-weight: bold; }

/* ---------- 新しいサイトだけで使う部品 ---------- */
/* 確認場所だけに出す帯 */
.check-banner { background: #fff8d6; color: var(--text); padding: 6px 16px; font-size: 14px; text-align: center; border-bottom: 1px solid #ecd97a; }
/* LINE相談の案内ページ（W5） */
ul.facts { padding-left: 1.2em; margin: 4px 0; font-size: 17px; }
table.numbers { margin-top: 10px; }
table.numbers .note { margin-left: 6px; }
.source-list { padding-left: 1.2em; }
/* 目的ごとのお役立ち記事の一覧（W7） */
.guide-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 28px; }
.side-note { margin: 10px 0 0; }
.line-box-note { margin: 12px 0 0; }