/* さかい葬祭 さいたま市向けテーマ（PHASE 13 デザイン仕様）
   スマホを基準に書き、768px・1024px以上で広げます。 */

:root {
  --purple: #7F2F8E;     /* 見出しの線・金額 */
  --blue: #0056A9;       /* 電話ボタン・リンク */
  --sky: #3CB2E0;        /* 飾りだけ（文字には使わない） */
  --text: #2B2829;
  --gray: #5A5657;
  --line: #E3DEE5;
  --tint: #F7F4F8;
  --white: #FFFFFF;
  --line-green: #06C755;
  --line-text: #06331A;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --radius: 10px;
  --max: 1080px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  padding-bottom: var(--bar-h);
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.5; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
small, .small { font-size: 14px; color: var(--gray); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.site-logo { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; }
.site-logo img { width: 150px; height: auto; }
.site-tag { font-size: 12px; color: var(--gray); line-height: 1.4; margin-top: 2px; }
.header-tel a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--blue); }
.header-tel-num { font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.header-tel-note { display: none; }
.header-tel .header-tel-num { display: none; }
.header-tel .icon { width: 28px; height: 28px; }
.header-tel a { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
.menu-toggle { display: flex; flex-direction: column; align-items: center; border: 0; background: none; color: var(--text); font: inherit; font-size: 11px; line-height: 1.2; padding: 4px; min-width: 44px; min-height: 44px; cursor: pointer; }
.global-nav { display: none; border-top: 1px solid var(--line); }
.global-nav.is-open { display: block; }
.global-nav ul { list-style: none; margin: 0; padding: 0 16px 8px; max-width: var(--max); margin-inline: auto; }
.global-nav li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.global-nav .nav-kyu a { color: var(--purple); font-weight: 700; }

/* ---------- ボタン ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 700; line-height: 1.4; }
.btn-tel { background: var(--blue); color: var(--white); min-height: 64px; box-shadow: 0 2px 0 #003C77; }
.btn-tel:hover { background: #004A92; }
.btn-tel .icon { width: 28px; height: 28px; }
.btn-body { display: flex; flex-direction: column; align-items: flex-start; }
.btn-label { font-size: 15px; }
.btn-label small { color: inherit; font-size: 12px; font-weight: 400; }
.btn-num { font-size: 24px; letter-spacing: .03em; }
.btn-line { background: var(--line-green); color: var(--line-text); }
.btn-ghost { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.tel-inline { font-weight: 700; white-space: nowrap; }
.link-arrow { font-weight: 700; }
.link-arrow::after { content: " ›"; }

/* ---------- ファーストビュー ---------- */
.fv { background: var(--tint); }
.fv-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column-reverse; }
.fv-text { padding: 20px 16px 24px; }
.fv-title { font-family: var(--mincho); font-weight: 600; font-size: 26px; line-height: 1.55; margin-bottom: 12px; }
.fv-price { margin: 0; color: var(--purple); font-weight: 700; display: flex; align-items: baseline; gap: 6px; }
.fv-plan { font-size: 16px; color: var(--text); border: 1px solid var(--purple); color: var(--purple); padding: 0 8px; border-radius: 4px; }
.fv-num { font-size: 40px; line-height: 1.2; letter-spacing: .01em; }
.fv-yen { font-size: 20px; }
.price-note { font-size: 14px; color: var(--gray); margin: 2px 0 12px; font-weight: 400; }
.fv-tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.fv-tags li { font-size: 13px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.fv-note { font-size: 14px; color: var(--gray); margin: 8px 0 0; text-align: center; }
.fv-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 35% 25%; }

/* ---------- セクション ---------- */
.sec { padding: 48px 0; }
.sec-tint { background: var(--tint); }
.sec-inner { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sec-title { font-family: var(--mincho); font-weight: 600; font-size: 22px; text-align: center; padding-bottom: 12px; margin-bottom: 20px; position: relative; }
.sec-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 2px; background: var(--purple); transform: translateX(-50%); }
.sec-title-left { text-align: left; }
.sec-title-left::after { left: 0; transform: none; }
.sec-lead { text-align: center; }
.sec-more { text-align: center; margin-top: 20px; }

.sec-kyu .btn-tel, .cta-box .btn-tel { max-width: 480px; margin-inline: auto; }
.sec-kyu { background: var(--white); border-bottom: 1px solid var(--line); }
.kyu-steps { list-style: none; padding: 0; margin: 0 0 12px; }
.kyu-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kyu-steps span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-top: 2px; }

/* 料金カード */
.plan-cards { display: grid; gap: 12px; }
.plan-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--purple); border-radius: var(--radius); padding: 16px; }
.plan-name { font-weight: 700; margin: 0; font-size: 18px; }
.plan-name span { display: block; font-size: 13px; font-weight: 400; color: var(--gray); }
.plan-price { color: var(--purple); font-weight: 700; font-size: 36px; line-height: 1.3; margin: 6px 0 0; letter-spacing: .01em; }
.plan-more { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 700; min-height: 44px; }
.plan-more .icon { width: 1em; height: 1em; }

.price-box { border: 2px solid var(--purple); border-radius: var(--radius); padding: 20px 16px; margin: 0 0 24px; background: var(--white); }
.plan-price-lg { font-size: 40px; }
.price-box-h { font-weight: 700; margin: 16px 0 4px; }
.price-box-sub { font-size: 14px; color: var(--gray); margin: 12px 0 0; }

.check-list, .dot-list { list-style: none; padding: 0; margin: 0 0 12px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.check-list .icon { color: var(--purple); margin-top: .3em; width: 1.1em; height: 1.1em; }
.dot-list li { padding: 4px 0 4px 1.1em; position: relative; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--gray); }

.inout { display: grid; gap: 16px; }
.inout-col { background: var(--white); border-radius: var(--radius); padding: 16px; }
.inout-col h3 { font-size: 17px; border-left: 4px solid var(--purple); padding-left: 10px; }

.compare-list { counter-reset: c; list-style: none; padding: 0; margin: 0 0 16px; }
.compare-list li { counter-increment: c; display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--tint); border-radius: var(--radius); margin-bottom: 8px; font-weight: 700; }
.compare-list li::before { content: counter(c); flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--purple); color: var(--purple); display: grid; place-items: center; }

.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reasons li { background: var(--white); border-radius: var(--radius); padding: 16px; }
.reason-no { font-family: var(--mincho); color: var(--sky); font-size: 24px; font-weight: 600; line-height: 1; }
.reason-h { font-weight: 700; margin: 6px 0 4px; }
.reasons p:last-child { margin: 0; }
.review-badge { text-align: center; margin: 20px 0 0; }
.review-badge small { display: block; }

.ward-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ward-list li > * { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; font-weight: 700; color: var(--text); }
.ward-list li > a { color: var(--blue); }

.flow { list-style: none; padding: 0; margin: 0; }
.flow li { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.flow li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.flow-no { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.flow-h { font-weight: 700; margin: 4px 0 2px; }
.flow p:last-child { margin: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; gap: 10px; padding: 14px 32px 14px 0; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--purple); }
.faq-item[open] summary::after { content: "−"; }
.faq-q, .faq-a-mark { flex: none; font-family: var(--mincho); font-weight: 600; color: var(--purple); width: 1.2em; }
.faq-a-mark { color: var(--blue); }
.faq-a { display: flex; gap: 10px; padding: 0 0 14px; }
.faq-a p { margin: 0; }

/* CTA */
.cta-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; margin: 32px 0 0; }
.cta-title { font-weight: 700; text-align: center; margin-bottom: 12px; }
.cta-note { text-align: center; font-size: 14px; color: var(--gray); margin: 6px 0 12px; }
.cta-sub { display: grid; gap: 8px; }
.sec-cta .cta-box { margin: 0; }
.cta-split { display: grid; gap: 16px; }
.cta-split img { border-radius: var(--radius); }

/* 会社 */
.company-mini { display: grid; gap: 20px; }
.company-photo img { width: 60%; max-width: 280px; margin: 0 auto; border-radius: var(--radius); }
.sign { font-family: var(--mincho); font-weight: 600; text-align: right; }
.company-dl { display: grid; grid-template-columns: 5em 1fr; gap: 4px 8px; margin: 0 0 12px; font-size: 15px; }
.company-dl dt { color: var(--gray); }
.company-dl dd { margin: 0; }

/* ---------- 下層ページ ---------- */
.page-wrap { max-width: 800px; margin: 0 auto; padding: 16px 16px 48px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; font-size: 13px; color: var(--gray); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin: 0 6px; }
.entry-title { font-family: var(--mincho); font-weight: 600; font-size: 26px; border-bottom: 2px solid var(--purple); padding-bottom: 10px; margin-bottom: 20px; }
.entry-meta { font-size: 13px; color: var(--gray); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.entry-content h2 { font-family: var(--mincho); font-weight: 600; font-size: 22px; margin-top: 2em; padding-left: 12px; border-left: 4px solid var(--purple); }
.entry-content h3 { font-size: 18px; margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content .plan-cards, .entry-content .check-list, .entry-content .dot-list, .entry-content .compare-list, .entry-content .flow, .entry-content .ward-list { padding-left: 0; }
.entry-content figure { margin: 0 0 1.5em; }
.table-wrap, .wp-block-table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--tint); }
.price-table td { white-space: nowrap; font-weight: 700; }
.info-table th { width: 7em; background: var(--tint); font-weight: 700; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.post-list time { font-size: 13px; color: var(--gray); }
.post-list-title { display: block; font-weight: 700; color: var(--blue); }
.post-list-excerpt { display: block; font-size: 14px; color: var(--gray); }

/* 管理者だけに見える確認メモ */
.sakai-todo { display: none; }
body.logged-in .sakai-todo { display: block; background: #FFF4C2; border: 1px dashed #B58900; padding: 8px 12px; font-size: 14px; color: #5C4600; }

/* ---------- フッター ---------- */
.site-footer { background: #2B2829; color: #EDEAEC; padding: 40px 0 16px; font-size: 14px; }
.site-footer a { color: #FFFFFF; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 16px; display: grid; gap: 24px; }
.footer-company img { background: var(--white); padding: 8px 12px; border-radius: 6px; width: 180px; }
.footer-tag { font-family: var(--mincho); margin: 12px 0 8px; }
.site-footer address { font-style: normal; }
.footer-note { color: #C9C3C7; margin-top: 8px; }
.footer-sns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-sns a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.footer-nav li a { display: block; padding: 8px 0; text-decoration: none; }
.footer-other { margin-top: 12px; }
.copyright { text-align: center; color: #A9A2A6; margin: 24px 0 0; font-size: 12px; }

/* ---------- 固定バー（スマホ） ---------- */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 3fr 2fr; height: var(--bar-h); background: var(--white); box-shadow: 0 -2px 8px rgba(0,0,0,.12); padding-bottom: env(safe-area-inset-bottom); transition: transform .2s; }
.sticky-bar.is-hidden { transform: translateY(110%); }
.sticky-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; }
.sticky-tel { background: var(--blue); color: var(--white); }
.sticky-tel > span { display: flex; flex-direction: column; line-height: 1.25; }
.sticky-sub { font-size: 11px; font-weight: 400; }
.sticky-line { background: var(--line-green); color: var(--line-text); }
.sticky-main { font-size: 16px; }

/* ---------- 768px以上 ---------- */
@media (min-width: 768px) {
  .plan-cards { grid-template-columns: repeat(2, 1fr); }
  .inout { grid-template-columns: 1fr 1fr; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .ward-list { grid-template-columns: repeat(5, 1fr); }
  .company-mini { grid-template-columns: 280px 1fr; align-items: start; }
  .company-photo img { width: 100%; }
  .cta-sub { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.2fr 1fr; }
  .fv-title { font-size: 32px; }
  .sec-title { font-size: 26px; }
  .entry-title { font-size: 30px; }
}

/* ---------- 1024px以上（PC） ---------- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  .site-logo img { width: 200px; }
  .header-tel a { width: auto; height: auto; border: 0; border-radius: 0; flex-wrap: wrap; justify-content: flex-end; column-gap: 6px; row-gap: 0; }
  .header-tel .header-tel-num { display: inline; font-size: 24px; }
  .header-tel-note { display: block; width: 100%; text-align: right; font-size: 12px; color: var(--gray); }
  .menu-toggle { display: none; }
  .global-nav { display: block; }
  .global-nav ul { display: flex; justify-content: center; gap: 4px; padding: 0 16px; }
  .global-nav li a { border: 0; padding: 10px 14px; font-size: 15px; }
  .fv-inner { flex-direction: row; align-items: stretch; }
  .fv-text { flex: 1; padding: 48px 32px 48px 16px; }
  .fv-photo { flex: 1; }
  .fv-photo img { height: 100%; aspect-ratio: auto; }
  .fv-title { font-size: 38px; }
  .fv-num { font-size: 56px; }
  .fv .btn-tel { max-width: 420px; }
  .fv-note { text-align: left; }
  .plan-cards { grid-template-columns: repeat(3, 1fr); }
  .plan-price { font-size: 48px; }
  .sec { padding: 72px 0; }
  .reasons { grid-template-columns: repeat(4, 1fr); }
  .cta-split { grid-template-columns: 1fr 1fr; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-bar { transition: none; }
}
