/*
Theme Name: 仏壇処分引取りネット
Theme URI: https://www.butsudanhikitori.net/
Description: 仏壇処分引取りネット専用テーマ。メインページ・サブページ・府県ページ・市区町村ページと、料金計算機・お申し込みフォーム・引き取り事例を備えます。
Version: 1.6.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: butsudanhikitori
*/

/* layout: 1 column, content max 760px, mobile first */
:root {
  --ink: #232220;
  --body: #45423d;
  --sub: #5b6670;
  --sub2: #67635c;
  --line: #e3e9ee;
  --line2: #d3dce3;
  --surface: #f3f6f8;
  --blue: #0a6aa1;
  --blue-dark: #07507a;
  --blue-soft: #e5f2fa;
  --blue-ink: #0b4566;
  --select: #1f2a33;
  --line-green: #06c755;
  --dark: #232220;
  --dark-text: #d8d5ce;
  --gold: #9c7d22;
  --danger: #b3261e;
  --f-head: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --f-body: 'BIZ UDPGothic', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-num: 'Jost', 'Zen Kaku Gothic New', sans-serif;
  --f-mincho: 'Shippori Mincho B1', 'Hiragino Mincho ProN', serif;
  --w: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  padding-bottom: 72px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.45; text-wrap: balance; margin: 0; }
p { margin: 0; }
p, li, dd { text-wrap: pretty; line-break: strict; }
.num { font-family: var(--f-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding-inline: 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 12px; padding-inline: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 17px; color: var(--blue); letter-spacing: .02em; }
.brand-tag { font-size: 10px; color: var(--sub); }
.header-tel { flex: none; padding: 6px 12px; border: 1.5px solid var(--blue); border-radius: 999px; font-family: var(--f-head); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.header-tel .tel-num { display: none; }

.gnav { border-bottom: 1px solid var(--line); background: #fff; }
.gnav ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--w); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gnav li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gnav li:nth-child(3n) { border-right: 0; }
.gnav li:nth-last-child(-n+3) { border-bottom: 0; }
.gnav a { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 4px; font-family: var(--f-head); font-weight: 700; font-size: 13px; line-height: 1.3; text-align: center; word-break: keep-all; color: var(--body); text-decoration: none; }
.gnav a[aria-current="page"] { color: #fff; background: var(--blue); }

.breadcrumb { font-size: 12px; color: var(--sub); padding-block: 8px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9aa6af; }
.breadcrumb a { color: var(--sub); }

/* hero */
.hero-photo { margin: 0; position: relative; max-width: var(--w); margin-inline: auto; }
.hero-photo img { width: 100%; height: auto; }
.hero-photo img.is-custom { height: auto; }
.hero { padding-block: 20px 26px; display: flex; flex-direction: column; gap: 12px; }
.hero-tagline { font-family: var(--f-mincho); font-weight: 800; font-size: 16px; color: var(--blue); letter-spacing: .06em; }
.hero-region { font-size: 12px; color: var(--sub); }
.hero h1 { font-size: 28px; line-height: 1.4; display: flex; flex-direction: column; gap: 8px; }
.hero h1 .h1-main { font-size: 26px; line-height: 1.45; }
.hero h1 .h1-sub { font-size: 14px; line-height: 1.75; font-weight: 700; color: var(--body); }
.img-heading { margin: 0 0 14px; padding: 0; border: 0; }
.img-heading img { display: block; width: 100%; height: auto; border-radius: 12px; }
.hero-lead { font-size: 16px; font-weight: 700; line-height: 1.7; }
.hero-tel { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; border-top: 1px solid #dfe6eb; border-bottom: 1px solid #dfe6eb; color: var(--ink); text-decoration: none; }
.hero-tel .l { display: flex; flex-direction: column; line-height: 1.2; }
.hero-tel .cap { display: inline-block; align-self: flex-start; margin-bottom: 6px; padding: 5px 12px; border-radius: 999px; background: #d7261e; color: #fff; font-family: var(--f-head); font-weight: 700; font-size: clamp(14px, 4.6vw, 17px); line-height: 1.3; letter-spacing: .02em; white-space: nowrap; }
.hero-tel .n { font-family: var(--f-num); font-weight: 600; font-size: clamp(30px, 11vw, 40px); white-space: nowrap; color: var(--blue); letter-spacing: .01em; }
.hero-tel .r { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 13px; color: var(--sub); line-height: 1.5; }
.hero-note { font-size: 13px; color: var(--sub); line-height: 1.8; }
.hero-h2 { font-size: 18px; }

/* zero grid */
.zero { padding-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.zero-title { font-family: var(--f-head); font-weight: 700; font-size: 15px; }
.zero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.zero-grid li { padding: 10px 4px 8px; background: var(--surface); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; gap: 4px; }
.zero-grid .k { font-size: 11px; line-height: 1.45; color: var(--body); }
.zero-grid .v { font-family: var(--f-head); font-weight: 700; font-size: 18px; color: var(--blue); line-height: 1.2; white-space: nowrap; }
.zero-grid .v small { font-family: var(--f-head); font-size: 12px; padding-left: 1px; }

/* calculator */
.calc-band { background: var(--surface); padding-block: 26px 28px; }
.calc { background: #fff; border-radius: 16px; padding: 20px 16px; box-shadow: 0 1px 2px rgba(35,34,32,.06), 0 8px 24px rgba(35,34,32,.06); display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin-inline: auto; }
.calc h2 { font-size: 20px; }
.calc-step { font-size: 14px; color: var(--body); }
.opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.opt { min-height: 48px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; color: var(--ink); font-family: var(--f-head); font-size: 14px; font-weight: 500; line-height: 1.35; cursor: pointer; padding: 4px; }
.opt-grid.k .opt { min-height: 52px; font-size: 13px; }
.opt[aria-pressed="true"] { background: var(--select); border-color: var(--select); color: #fff; font-weight: 700; }
.calc-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-total .lbl { font-family: var(--f-head); font-weight: 700; font-size: 14px; }
.calc-total .v { font-family: var(--f-num); font-weight: 600; font-size: 34px; letter-spacing: .01em; }
.calc-note { font-size: 12px; color: var(--sub2); line-height: 1.6; }
.calc-nophoto { font-size: 13px; color: var(--blue-ink); background: var(--blue-soft); border-radius: 8px; padding: 8px 12px; }

/* buttons */
.btn { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 12px; font-family: var(--f-head); font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; min-height: 56px; font-size: 17px; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { color: #fff; filter: brightness(.95); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line2); }
.btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* sections */
.section { padding-top: 44px; display: flex; flex-direction: column; gap: 12px; }
.section > h2, .section-title { font-size: 22px; line-height: 1.5; }
.section h3 { font-size: 18px; }
.text { font-size: 15px; color: var(--body); line-height: 1.85; }
.text-s { font-size: 13px; color: var(--sub2); line-height: 1.75; }
.more { font-family: var(--f-head); font-weight: 700; font-size: 14px; }
.rows { display: flex; flex-direction: column; margin: 0; padding: 0; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-size: 15px; }
.rows dd { margin: 0; font-family: var(--f-num); font-weight: 600; white-space: nowrap; }
.rows .hi dd { color: var(--blue); }
.price-table { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.price-table > div { padding: 11px 16px; border-bottom: 1px solid #edf1f4; }
.price-table > div:last-child { border-bottom: 0; }

.points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }

.mcards { display: flex; flex-direction: column; gap: 8px; }
.mcard { padding: 14px 16px; background: var(--surface); border-radius: 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.mcard strong { font-family: var(--f-head); font-size: 15px; }
.mcard .v { font-family: var(--f-num); font-weight: 600; }
.mcard .d { font-size: 13px; color: var(--sub2); grid-column: 1 / 3; }
.mcard.is-self { background: var(--blue-soft); }
.mcard.is-self strong, .mcard.is-self .v { color: var(--blue); }
.mcard.is-self .d { color: var(--blue-ink); }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.compare > div { background: var(--surface); border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.compare > div.is-self { background: var(--blue-soft); }
.compare .h { font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--sub2); }
.compare .is-self .h, .compare .is-self .v { color: var(--blue); }
.compare .v { font-family: var(--f-num); font-weight: 600; font-size: 20px; line-height: 1.25; }
.compare ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.6; color: var(--body); }
.sodai-detail { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sodai-detail > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sodai-detail dt { color: var(--sub2); font-size: 13px; }
.sodai-detail dd { margin: 0; }

.case-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.case-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.case-list .d { font-family: var(--f-num); font-weight: 500; font-size: 14px; color: var(--sub2); }
.case-list .t { display: flex; flex-direction: column; line-height: 1.5; }
.case-list .t strong { font-family: var(--f-head); font-size: 15px; }
.case-list .t span { font-size: 13px; color: var(--sub2); }
.case-list .p { font-family: var(--f-num); font-weight: 600; font-size: 17px; }

.reviews { display: flex; flex-direction: column; gap: 10px; }
.reviews blockquote { margin: 0; padding: 18px 18px 16px; background: var(--surface); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.reviews .body { font-size: 15px; line-height: 1.8; }
.reviews .who { font-size: 12px; color: var(--sub2); }
.reviews .stars { color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips a, .chips span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; }
.chips span { background: var(--surface); border-color: transparent; font-size: 13px; padding: 4px 12px; }
.area-index { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.area-index details { border-bottom: 1px solid var(--line); }
.area-index summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 2px; font-family: var(--f-head); font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.area-index summary::-webkit-details-marker { display: none; }
.area-index summary::after { content: "＋"; color: var(--blue); font-size: 18px; }
.area-index details[open] summary::after { content: "－"; }
.area-index summary small { margin-left: auto; font-family: var(--f-body); font-weight: 400; font-size: 12px; color: var(--sub); }
.area-index .body { padding: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.area-index .pref-link { font-family: var(--f-head); font-weight: 700; font-size: 14px; }
.area-index h3 { font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.chips a.is-current { background: var(--blue-soft); border-color: #b9dcf0; font-weight: 700; }
.chip-group { display: flex; flex-direction: column; gap: 8px; }
.chip-group > h3 { font-size: 15px; }
.near { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.near a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; text-decoration: none; }

.faq { display: flex; flex-direction: column; }
.faq > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.faq dt { font-family: var(--f-head); font-weight: 700; font-size: 15px; }
.faq dd { margin: 0; font-size: 14px; color: var(--body); }

.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 15px; counter-increment: s; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--f-num); font-weight: 600; }
.steps-visual { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.steps-visual img { width: 46%; max-width: 240px; height: auto; border-radius: 10px; }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-pair img, .photo-pair figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.photo-pair figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.photo-pair.wide img { aspect-ratio: 4 / 3; }
.photo-pair figcaption { font-size: 13px; display: flex; justify-content: space-between; }
.media { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; }
.media img { border-radius: 10px; border: 1px solid var(--line); }
.box { padding: 18px; background: var(--surface); border-radius: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.repair { margin-top: 44px; padding: 18px; background: var(--dark); color: #f4f3ef; border-radius: 16px; }
.repair strong { font-family: var(--f-head); font-size: 17px; }
.repair p { font-size: 13px; line-height: 1.75; color: var(--dark-text); margin: 6px 0; }
.repair a { font-family: var(--f-head); font-size: 13px; font-weight: 700; color: #8fd0f2; }

.cta-box { margin-top: 44px; padding: 20px 18px; background: var(--surface); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
.cta-box strong { font-family: var(--f-head); font-size: 17px; }
.cta-box .btn-primary { font-family: var(--f-num); font-weight: 600; font-size: 22px; }
.cta-box small { font-size: 12px; color: var(--sub); }

/* forms */
.form { display: flex; flex-direction: column; gap: 18px; padding-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label, .form legend { font-family: var(--f-head); font-weight: 700; font-size: 15px; padding: 0; }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.req { color: var(--danger); font-size: 12px; margin-left: 4px; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=date], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 0 12px; border: 1px solid #c3ccd3; border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; font-family: inherit;
}
.form textarea { padding: 12px; line-height: 1.7; min-height: 120px; }
.radio-list { display: flex; flex-direction: column; gap: 6px; }
.radio-list label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; font-size: 15px; background: #fff; }
.radio-list input { width: 18px; height: 18px; flex: none; }
.opt-box { margin-top: 6px; padding: 16px; background: var(--surface); border-radius: 14px; }
.opt-box summary { font-family: var(--f-head); font-weight: 700; font-size: 15px; cursor: pointer; }
.opt-box[open] summary { margin-bottom: 16px; }
.opt-box .inner { display: flex; flex-direction: column; gap: 16px; }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.notice.ok { background: var(--blue-soft); color: var(--blue-ink); }
.notice.err { background: #fbe9e7; color: var(--danger); }

/* footer */
.site-footer { margin-top: 48px; background: var(--surface); }
.site-footer .wrap { padding-block: 28px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--body); }
.site-footer .f-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.site-footer .f-brand img { width: 30px; height: 30px; }
.site-footer .f-brand strong { font-family: var(--f-head); font-size: 16px; color: var(--blue); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 8px; list-style: none; margin: 0; padding-left: 0; }
.copyright { font-size: 11px; color: var(--sub); padding-top: 8px; }

.fixed-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.12); padding-bottom: env(safe-area-inset-bottom, 0px); }
.fixed-bar .inner { max-width: var(--w); margin: 0 auto; display: grid; grid-template-columns: 3fr 2fr; }
.fixed-bar a { min-height: 60px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; text-decoration: none; line-height: 1.3; }
.fixed-bar .t { font-family: var(--f-head); font-weight: 700; font-size: 16px; }
.fixed-bar .s { font-size: 11px; }
.fixed-bar .tel { background: var(--blue); }
.fixed-bar .line { background: var(--line-green); }
.fixed-bar .apply { background: var(--select); display: none; }

.entry-content > * + * { margin-top: 12px; }
.entry-content h2 { font-size: 22px; margin-top: 44px; }
.entry-content p.more { font-family: var(--f-head); font-weight: 700; font-size: 14px; }
.entry-content .wp-block-image { margin: 16px 0 0; }
.entry-content .wp-block-image img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content .wp-block-image figcaption, .entry-content .wp-block-gallery figcaption { font-size: 13px; color: var(--sub); margin-top: 6px; text-align: left; }
.entry-content .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.entry-content .wp-block-gallery .wp-block-image { margin: 0; width: auto !important; display: flex; flex-direction: column; }
.entry-content .wp-block-gallery .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .wp-block-gallery .wp-block-image figcaption { position: static; background: none; color: var(--ink); padding: 0; }
.entry-content h3 { font-size: 18px; margin-top: 28px; }
.entry-content p { font-size: 15px; color: var(--body); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; color: var(--body); font-size: 15px; }

@media (min-width: 768px) {
  .hero-photo img { border-radius: 0 0 14px 14px; }
  .hero h1 { font-size: 36px; }
  .hero h1 .h1-main { font-size: 34px; }
  .hero h1 .h1-sub { font-size: 16px; }
  .header-tel { font-size: 15px; padding: 8px 16px; }
  .header-tel .tel-num { display: inline; font-family: var(--f-num); }
  .gnav ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gnav li, .gnav li:nth-child(3n) { border-bottom: 0; border-right: 1px solid var(--line); }
  .gnav li:last-child { border-right: 0; }
  .gnav a { min-height: 50px; font-size: 14px; }
  .hero-tel { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-tel .r { flex-direction: column; align-items: flex-end; text-align: right; }
  .zero-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .opt-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .opt-grid.k { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .near { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fixed-bar .inner { grid-template-columns: 2fr 1fr 1fr; }
  .fixed-bar .apply { display: flex; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* order form width choices (radio inputs styled as buttons) */
.opt-label { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.opt-label .p { font-family: var(--f-num); font-weight: 600; font-size: 12px; }
.opt-label:has(input:checked), .opt-label.is-on { background: var(--select); border-color: var(--select); color: #fff; font-weight: 700; }
.opt-label:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }

/* price tiles (width choices in the calculator and the order form) */
.price-head { display: block; width: 100%; height: auto; border-radius: 10px; }
.wrap > .price-head { margin: 0 auto 14px; border-radius: 16px; }
.opt-grid.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.opt.opt-tile { position: relative; display: block; min-height: 0; padding: 0; border: 3px solid transparent; border-radius: 12px; background: #fff; overflow: visible; line-height: 0; }
.opt.opt-tile img { display: block; width: 100%; height: auto; border-radius: 9px; }
.opt.opt-tile[aria-pressed="true"], .opt-label.opt-tile:has(input:checked), .opt-label.opt-tile.is-on { background: #fff; border-color: var(--blue); }
.opt.opt-tile[aria-pressed="true"]::after, .opt-label.opt-tile:has(input:checked)::after, .opt-label.opt-tile.is-on::after { content: "✓"; position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--f-head); font-size: 13px; font-weight: 700; line-height: 20px; text-align: center; }
.price-note { font-size: 13px; color: var(--sub2); line-height: 1.7; }
.price-meirou { display: block; width: 100%; max-width: 480px; height: auto; border-radius: 8px; }
.form .price-head, .form .price-note { margin-top: 10px; }
.price-meirou { margin-inline: auto; }
.form .opt-grid.tiles { margin-top: 10px; }
@media (min-width: 768px) {
  .opt-grid.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.price-help { display: block; width: 100%; max-width: 485px; height: auto; border-radius: 8px; }
.form .price-help { margin-top: 10px; }

/* area page: sodai fee comparison (keep amounts on one line) */
.compare .v { font-size: 16px; }

/* photo captions in page galleries: below the photo */
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: static; background: none; color: var(--ink); text-shadow: none; padding: 0; margin-top: 6px; text-align: left; font-size: 13px; max-height: none; overflow: visible; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { flex-direction: column; justify-content: flex-start; }
/* WP's is-cropped rule (flex: 1 0 0%; height: 100%) squashes a photo to 0px when the other caption wraps longer */
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img { flex: none !important; height: auto !important; width: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image::before { content: none; }

/* service area map under the prefecture list */
.area-map { display: block; width: 100%; height: auto; margin-top: 20px; border-radius: 12px; }

/* top page: three boxes (処分方法・魂抜き・費用), built as columns in the page body */
.entry-content .bh-boxes { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 0; }
.entry-content .bh-box { border: 1px solid #e3e6e8; background: #fff; padding: 14px; display: flex; flex-direction: column; margin: 0; }
.entry-content .bh-box > * + * { margin-top: 10px; }
.entry-content .bh-box .wp-block-image { margin: 0; }
.entry-content .bh-box .wp-block-image img { display: block; width: 100%; height: auto; border: 6px solid #eceeef; border-radius: 0; box-sizing: border-box; }
.entry-content .bh-box h2.bh-box-title { font-size: 18px; margin: 14px 0 0; }
.entry-content .bh-box p { font-size: 15px; line-height: 1.8; }
.entry-content .bh-box p.more { margin-top: auto; padding-top: 8px; text-align: right; }
@media (min-width: 768px) {
  .entry-content .bh-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .entry-content .bh-box h2.bh-box-title { font-size: 16px; }
  .entry-content .bh-box p { font-size: 14px; }
}

/* line breaks: keep short phrases together even on narrow screens or with enlarged text */
.nb { display: inline-block; }
.calc-total { flex-wrap: wrap; gap: 4px 12px; }
.calc-total .v { white-space: nowrap; margin-left: auto; }
.opt-grid.k { grid-template-columns: 1fr; }
.opt-grid.k .opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 6px 14px; font-size: 15px; text-align: left; }
.opt-grid.k .opt .n, .opt-grid.k .opt .p { white-space: nowrap; }
.opt-grid.k .opt .p { font-family: var(--f-num); font-weight: 600; }
@media (min-width: 768px) {
  .opt-grid.k { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opt-grid.k .opt { flex-direction: column; justify-content: center; gap: 0; text-align: center; font-size: 14px; }
}

/* "これらはすべて0円です": 2 columns on narrow screens / enlarged text so labels keep their phrases */
@media (max-width: 419px) {
  .zero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zero-grid .k { font-size: 12px; }
}
.brand-name { white-space: nowrap; }
@media (max-width: 339px) {
  .brand-name { font-size: 15px; letter-spacing: 0; }
  .brand img { width: 28px; height: 28px; }
}

/* page body parts (add the class name in the block editor: 高度な設定 › 追加CSSクラス)
   bh-lead  : blue box at the top of a page (summary)
   bh-card  : white card around a section
   bh-split : 2 columns (image | text), stacked on phones
   bh-note  : grey box for a supplement inside a card */
.entry-content .bh-lead { background: var(--blue-soft); border-radius: 14px; padding: 18px 16px; }
.entry-content .bh-lead > * + *, .entry-content .bh-lead > .wp-block-group__inner-container > * + * { margin-top: 10px; }
.entry-content .bh-lead h2 { margin-top: 0; font-size: 20px; color: var(--blue-ink); }
.entry-content .bh-lead p { color: var(--blue-ink); }
.entry-content .bh-lead p.lead { font-family: var(--f-head); font-weight: 700; font-size: 15px; }
.entry-content .bh-lead ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.entry-content .bh-lead li { background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.7; color: var(--body); }
.entry-content .bh-lead li strong { display: block; font-family: var(--f-head); color: var(--blue); font-size: 14px; }
.entry-content .bh-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px 16px; margin-top: 28px; }
.entry-content .bh-card > * + *, .entry-content .bh-card > .wp-block-group__inner-container > * + * { margin-top: 12px; }
.entry-content .bh-card > h2, .entry-content .bh-card > .wp-block-group__inner-container > h2 { margin-top: 0; font-size: 20px; }
.entry-content .bh-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 0; }
.entry-content .bh-split > .wp-block-column { margin: 0; min-width: 0; }
.entry-content .bh-split > .wp-block-column > * + * { margin-top: 12px; }
.entry-content .bh-split .wp-block-image { margin: 0; }
.entry-content .bh-split .wp-block-image img { display: block; width: 100%; border: 6px solid #eceeef; border-radius: 0; box-sizing: border-box; }
.entry-content .bh-note { background: var(--surface); border-radius: 12px; padding: 14px 16px; }
.entry-content .bh-note > * + *, .entry-content .bh-note > .wp-block-group__inner-container > * + * { margin-top: 8px; }
.entry-content .bh-note h3 { margin-top: 0; font-size: 16px; }
.entry-content .bh-banner img { border-radius: 10px; }
@media (min-width: 768px) {
  .entry-content .bh-card { padding: 22px 24px; }
  .entry-content .bh-split { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 20px; align-items: start; }
  .entry-content .bh-lead ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* price page: plain price list */
.price-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.price-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.price-list li:first-child { border-top: 1px solid var(--line); }
.price-list .w { flex: none; font-family: var(--f-head); font-weight: 700; font-size: 14px; white-space: nowrap; }
.price-list .w b { font-family: var(--f-num); font-size: 22px; font-weight: 600; color: var(--ink); margin-left: 4px; }
.price-list .v { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.price-list .row { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.price-list .row small { font-size: 12px; color: var(--sub2); }
.price-list .row strong { font-family: var(--f-num); font-weight: 600; font-size: 20px; color: var(--blue); }
.price-list .row.note { font-size: 12px; color: var(--sub2); white-space: normal; text-align: right; }
.price-list + .text-s { margin-top: 12px; }
.entry-content .price-meirou { margin-top: 12px; }
.price-list-cta { display: grid; gap: 8px; margin-top: 14px; }
@media (max-width: 379px) {
  .price-list .row { flex-direction: column; align-items: flex-end; gap: 0; }
  .price-list .row strong { font-size: 18px; }
  .price-list .w b { font-size: 20px; }
}
@media (min-width: 768px) {
  .price-list-cta { grid-template-columns: 1fr 1fr; }
}
.price-list-cta .btn { flex-wrap: wrap; column-gap: 8px; row-gap: 0; text-align: center; }
.price-list-cta .btn .nb { white-space: nowrap; }

/* PC: wider page (phones and tablets unchanged) */
@media (min-width: 1024px) {
  :root { --w: 980px; }
  .wrap > .price-head { max-width: 760px; }
  .calc { max-width: 640px; }
}



/* calculator: ③ 仏具の引き取り */
.calc-sub { font-size: 12px; color: var(--sub2); line-height: 1.6; margin-top: -8px; }
@media (min-width: 768px) {
  .opt-grid.k.b { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* tables in page bodies (e.g. 会社概要): item name above its value on phones */
.entry-content .wp-block-table { margin: 12px 0 0; overflow-x: visible; }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content .wp-block-table th, .entry-content .wp-block-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.7; }
.entry-content .wp-block-table th { background: var(--surface); font-family: var(--f-head); font-weight: 700; white-space: nowrap; width: 8em; }
.entry-content .wp-block-table td { overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .entry-content .wp-block-table table, .entry-content .wp-block-table tbody, .entry-content .wp-block-table tr, .entry-content .wp-block-table th, .entry-content .wp-block-table td { display: block; width: 100%; }
  .entry-content .wp-block-table tr + tr { margin-top: 8px; }
  .entry-content .wp-block-table th { border-bottom: 0; padding: 6px 12px; font-size: 13px; }
}

/* LINE申し込み（お申し込みページ上部） */
.line-apply { display: grid; gap: 12px; margin: 0 0 24px; padding: 16px; border: 2px solid var(--line-green); border-radius: 12px; background: #f1fbf5; text-align: center; }
.line-apply p { margin: 0; line-height: 1.7; }
.line-apply strong { display: block; font-size: 1.1em; }
.line-apply .btn { justify-self: center; min-width: 240px; }
@media (max-width: 359px) { .line-apply .btn { min-width: 0; width: 100%; } }

/* LINEボタン（申し込み・相談） */
.btn-line { flex-wrap: wrap; column-gap: 0; row-gap: 0; padding-block: 6px; line-height: 1.35; }
.btn-line .nb { white-space: nowrap; }
.hero-line { flex-direction: column; gap: 2px; min-height: 58px; padding: 8px 16px; font-size: 18px; align-self: stretch; }
.hero-line small { font-size: 12px; font-weight: 500; }
@media (min-width: 768px) { .hero-line { align-self: flex-start; min-width: 360px; } }
.price-list-cta .btn-primary { grid-column: 1 / -1; }
.price-list-cta .btn-line { column-gap: 0; }
@media (max-width: 419px) { .btn-row { grid-template-columns: 1fr; } }
.line-apply .line-apply-time { font-size: 14px; color: var(--sub); }
