/* こころね堂 共通スタイル */
:root {
  --teal: #0e9b90;
  --teal-dark: #0a7a72;
  --band: #128a83;
  --ink: #35312e;
  --ink2: #56534f;
  --muted: #6b6763;
  --faint: #8a8682;
  --line: #e9eeee;
  --line2: #eef1f1;
  --bg-soft: #f2f7f7;
  --yellow: #ffdf00;
  --yellow-sh: #e5c400;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(12px, 2vw, 28px); }
.narrow { max-width: 900px; margin: 0 auto; }

/* ---------- ヘッダー ---------- */
.site-header { padding: 10px 0; position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo img { height: clamp(38px, 4vw, 48px); width: auto; display: block; }
.global-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); flex-wrap: wrap; font-size: clamp(13px, 1vw, 14.5px); font-weight: 500; }
.global-nav a { color: #4d4a47; }
.global-nav a:hover, .global-nav a.current { color: var(--teal); }
.header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.header-contact { border: 1.5px solid #d8ebe9; border-radius: 999px; padding: 5px 20px 7px; text-align: center; background: #fff; }
.header-contact-note { font-size: 10.5px; color: var(--teal); font-weight: 500; letter-spacing: .01em; }
.header-phone { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 1px; font-weight: 700; font-size: clamp(19px, 1.7vw, 23px); color: var(--teal); letter-spacing: .01em; white-space: nowrap; }
.header-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--yellow); border-radius: 12px; padding: 9px 18px 10px; box-shadow: 0 3px 0 var(--yellow-sh); color: var(--ink); text-align: center; transition: transform .12s ease, box-shadow .12s ease; }
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--yellow-sh); color: var(--ink); }
.header-cta .l1 { font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.header-cta .l2 { font-size: 14.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

/* ---------- ページタイトル ---------- */
.page-title { background: var(--bg-soft); margin-top: 6px; }
.page-title-inner { padding: clamp(26px, 3.2vw, 44px) 0 clamp(22px, 2.8vw, 38px); text-align: center; }
.page-title h1 { margin: 0; font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; color: var(--ink); letter-spacing: .03em; }
.page-title .subtitle { margin-top: 6px; font-size: clamp(12px, 1vw, 14px); color: var(--teal); font-weight: 500; }
.breadcrumb { font-size: 11.5px; color: var(--faint); padding: 10px 0 0; }
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--teal); }

/* ---------- セクション ---------- */
.section { padding: clamp(30px, 4vw, 56px) 0 0; }
.section:last-of-type { padding-bottom: clamp(34px, 4.5vw, 64px); }
.section-title { margin: 0 0 clamp(18px, 2.2vw, 28px); text-align: center; font-size: clamp(19px, 1.8vw, 26px); font-weight: 700; color: var(--teal); }
.section-title .en { display: block; font-size: 11px; letter-spacing: .18em; color: var(--faint); font-weight: 500; margin-top: 2px; }
.section-lead { text-align: center; font-size: clamp(13px, 1.1vw, 15.5px); color: var(--ink2); margin: -8px auto 24px; max-width: 760px; }

/* ---------- カード ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 2.2vw, 28px); }
.card-grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card h3 { margin: 0 0 8px; font-size: clamp(15px, 1.25vw, 17.5px); color: var(--teal); font-weight: 700; }
.card p { margin: 0; font-size: clamp(12.5px, 1.05vw, 14.5px); color: var(--ink2); }

/* お悩みリスト */
.trouble-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.trouble-item { display: flex; align-items: flex-start; gap: 12px; background: var(--bg-soft); border-radius: 10px; padding: 14px 16px; font-size: clamp(13px, 1.1vw, 15px); color: var(--ink); }
.trouble-item svg { flex: 0 0 auto; margin-top: 3px; }

/* イラスト付きカード(供養先など) */
.illust-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.illust-card .illust { width: 92px; height: 92px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; }
.illust-card h3 { margin: 0; }
.illust-card p { text-align: left; }

/* チェックリスト */
.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: clamp(13px, 1.1vw, 15px); color: var(--ink); }
.check-list li svg { flex: 0 0 auto; margin-top: 5px; }

/* ---------- テーブル ---------- */
.table-wrap { overflow-x: auto; }
.def-table { width: 100%; border-collapse: collapse; font-size: clamp(13px, 1.05vw, 14.5px); }
.def-table th, .def-table td { border: 1px solid var(--line2); padding: 13px 16px; text-align: left; vertical-align: top; }
.def-table th { background: var(--bg-soft); color: var(--ink); font-weight: 700; width: 30%; min-width: 130px; }
.def-table td { color: var(--ink2); }
.price-table { width: 100%; border-collapse: collapse; font-size: clamp(13px, 1.05vw, 14.5px); }
.price-table th, .price-table td { border: 1px solid var(--line2); padding: 12px 16px; text-align: center; }
.price-table thead th { background: var(--teal); color: #fff; font-weight: 700; }
.price-table td.price { color: var(--teal); font-weight: 700; font-size: 1.1em; }
.note { font-size: 11.5px; color: var(--faint); margin-top: 8px; }

/* ---------- ステップ(流れ) ---------- */
.step-item { display: flex; gap: clamp(14px, 2vw, 24px); align-items: flex-start; position: relative; padding-bottom: clamp(22px, 2.6vw, 34px); }
.step-item:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: 6px; border-left: 2px dashed #b8dcd8; }
.step-num { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.step-num .label { font-size: 8.5px; letter-spacing: .08em; }
.step-num .num { font-size: 22px; font-weight: 700; }
.step-body h3 { margin: 4px 0 6px; font-size: clamp(15.5px, 1.3vw, 18px); color: var(--ink); font-weight: 700; }
.step-body h3 .period { font-size: 11.5px; color: var(--teal); background: var(--bg-soft); border-radius: 999px; padding: 3px 12px; margin-left: 10px; font-weight: 500; white-space: nowrap; }
.step-body p { margin: 0; font-size: clamp(12.5px, 1.05vw, 14.5px); color: var(--ink2); }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: clamp(22px, 2.6vw, 34px); }
.faq-group h2 { font-size: clamp(15.5px, 1.3vw, 18px); color: var(--teal); font-weight: 700; margin: 0 0 12px; padding-left: 12px; border-left: 4px solid var(--teal); }
.faq-item { border: 1px solid var(--line2); border-radius: 8px; background: #fbfcfc; margin-bottom: 10px; }
.faq-item summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: clamp(13px, 1.1vw, 15px); color: var(--ink); font-weight: 500; }
.faq-item summary .q { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.faq-item summary svg { margin-left: auto; flex: 0 0 auto; transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item .answer { padding: 0 16px 15px 52px; font-size: clamp(12.5px, 1.05vw, 14px); color: var(--ink2); }

/* ---------- CTA帯(全幅) ---------- */
.cta-band { background: var(--band); padding: clamp(20px, 2.4vw, 30px) clamp(12px, 2vw, 28px); margin-top: clamp(34px, 4.5vw, 64px); }
.cta-band-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); flex-wrap: wrap; }
.cta-band img { height: clamp(84px, 8vw, 112px); width: auto; flex: 0 0 auto; }
.cta-band .copy { flex: 1 1 260px; }
.cta-band .copy .main { font-size: clamp(16px, 2vw, 27px); font-weight: 700; color: #fff; letter-spacing: .02em; white-space: nowrap; }
.cta-band .copy .sub { font-size: clamp(11.5px, 1vw, 13.5px); color: #e2f3f1; margin-top: 6px; }
.cta-band .tel-pill { flex: 0 1 auto; background: #fff; border-radius: 999px; padding: 12px clamp(20px, 2vw, 34px) 14px; text-align: center; }
.cta-band .tel-pill .note { font-size: 12px; color: #45423f; font-weight: 500; margin: 0; }
.cta-band .tel-pill a { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--teal); margin-top: 2px; font-weight: 700; font-size: clamp(24px, 2.5vw, 34px); white-space: nowrap; }
.cta-wrap { position: relative; flex: 1 1 300px; max-width: 560px; margin: 0 auto; }
.btn-cta { display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--yellow); border-radius: 12px; padding: 19px 24px; box-shadow: 0 5px 0 var(--yellow-sh); color: var(--ink); font-size: clamp(18px, 1.8vw, 25px); font-weight: 700; letter-spacing: .05em; transition: transform .12s ease, box-shadow .12s ease; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--yellow-sh); color: var(--ink); }
.btn-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--yellow-sh); }
.badge-60 { position: absolute; top: -14px; right: -10px; width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; font-size: 10.5px; font-weight: 700; color: var(--teal); }

/* ---------- ステップフォーム(CTA帯) ---------- */
.cta-band-left { flex: 1 1 240px; max-width: 320px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin: 0 auto; }
.cta-band-left img { height: clamp(90px, 9vw, 128px); width: auto; }
.cta-band-left .main { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; color: #fff; letter-spacing: .02em; line-height: 1.5; white-space: normal; }
.cta-band-left .sub { font-size: clamp(11.5px, 1vw, 13px); color: #e2f3f1; }
.cta-band-left .sub2 { font-size: 13px; color: #cfe9e6; margin-top: 8px; line-height: 1.6; }
.cta-band-left .sub2 a { color: #fff; font-weight: 700; font-size: 32px; white-space: nowrap; letter-spacing: .01em; }
.stepform-mount { flex: 1 1 540px; max-width: 820px; margin: 0; min-width: 0; }
.stepform-card { background: #fff; border-radius: 14px; padding: clamp(16px, 2vw, 24px) clamp(16px, 2.2vw, 30px) clamp(18px, 2.2vw, 26px); box-shadow: 0 8px 28px rgba(0, 40, 38, .18); }
.sf-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--line2); }
.sf-badge { background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; border-radius: 999px; padding: 5px 15px; white-space: nowrap; }
.sf-title { font-size: clamp(15px, 1.35vw, 18px); font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.sf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sf-progress { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; }
.sf-steps-label { font-size: 13.5px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.sf-steps-label em { font-style: normal; font-size: 11px; color: var(--faint); }
.sf-bar { flex: 1 1 auto; max-width: 200px; height: 6px; background: #e8efee; border-radius: 999px; overflow: hidden; }
.sf-bar span { display: block; height: 100%; width: 25%; background: var(--teal); border-radius: 999px; transition: width .35s ease; }
.sf-time { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--teal); background: var(--bg-soft); border-radius: 999px; padding: 8px 18px; white-space: nowrap; }
.sf-q { font-size: clamp(14.5px, 1.25vw, 16.5px); font-weight: 700; color: var(--ink); margin: 2px 0 12px; }
.sf-step { display: none; }
.sf-step.is-active { display: block; animation: sfIn .32s ease; }
@keyframes sfIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.sf-field { margin-bottom: 12px; }
.sf-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.sf-req { background: #e35d5d; color: #fff; font-size: 9.5px; font-weight: 700; border-radius: 4px; padding: 1.5px 7px; margin-left: 7px; vertical-align: 1.5px; }
.sf-opt { background: #d5d2cf; color: #fff; font-size: 9.5px; font-weight: 700; border-radius: 4px; padding: 1.5px 7px; margin-left: 7px; vertical-align: 1.5px; }
.sf-field input[type="text"], .sf-field input[type="tel"], .sf-field input[type="email"], .sf-field textarea { width: 100%; border: 1.5px solid #d8dedd; border-radius: 8px; padding: 11px 13px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fdfdfd; }
.sf-field input:focus, .sf-field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.sf-field textarea { min-height: 84px; resize: vertical; }
.sf-cue { display: none; align-items: center; gap: 6px; color: #c98d00; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.sf-field.cue-on .sf-cue { display: inline-flex; }
.sf-field.cue-on input, .sf-field.cue-on .sf-checks { border-color: #f0c800; }
.sf-arrow { animation: sfBounce .85s ease-in-out infinite; }
@keyframes sfBounce { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(4px); } }
.sf-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.sf-check { position: relative; }
.sf-check input { position: absolute; opacity: 0; pointer-events: none; }
.sf-check span { display: flex; align-items: center; gap: 9px; border: 1.5px solid #d8dedd; border-radius: 8px; padding: 10px 12px; font-size: 13px; font-weight: 500; color: var(--ink); background: #fdfdfd; cursor: pointer; transition: border-color .15s, background .15s; user-select: none; }
.sf-check span::before { content: ""; width: 17px; height: 17px; flex: 0 0 auto; border: 1.5px solid #c6cdcc; border-radius: 4px; background: #fff; transition: background .15s, border-color .15s; }
.sf-check span:hover { border-color: var(--teal); }
.sf-check input:checked + span { border-color: var(--teal); background: #f2f7f7; color: var(--teal-dark); font-weight: 700; }
.sf-check input:checked + span::before { border-color: var(--teal); background-color: var(--teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 8.5 15 16 5.5'/%3E%3C/svg%3E"); background-size: 11px; background-position: center; background-repeat: no-repeat; }
.sf-check input:focus-visible + span { outline: 2px solid var(--teal); }
.sf-error { display: none; color: #b3423d; background: #fdf0f0; border-radius: 6px; padding: 8px 12px; font-size: 12.5px; margin-top: 4px; }
.sf-consent { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--faint); margin: 14px 2px 0; }
.sf-consent input { width: 14px; height: 14px; accent-color: var(--teal); margin: 0; flex: 0 0 auto; cursor: pointer; }
.sf-consent a { color: var(--faint); text-decoration: underline; }
.sf-consent a:hover { color: var(--teal); }
.sf-nav { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; }
.sf-next, .sf-submit { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); border: 0; border-radius: 10px; padding: 13px 28px; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .03em; cursor: pointer; box-shadow: 0 3px 0 var(--yellow-sh); transition: transform .12s ease, box-shadow .12s ease; }
.sf-next:hover, .sf-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--yellow-sh); }
.sf-next:active, .sf-submit:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-sh); }
.sf-submit:disabled { opacity: .7; cursor: default; transform: none; }
.sf-back { background: #fff; border: 1.5px solid #d8dedd; color: var(--muted); border-radius: 10px; padding: 12px 18px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.sf-back:hover { border-color: var(--teal); color: var(--teal); }
.sf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) {
  .sf-bar { max-width: none; }
  .sf-checks { grid-template-columns: 1fr; }
  .sf-nav { justify-content: stretch; }
  .sf-next, .sf-submit { flex: 1 1 auto; justify-content: center; }
}

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(24px, 3vw, 40px) 0 26px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.footer-logo img { height: 40px; width: auto; }
.footer-nav { display: flex; gap: clamp(12px, 2vw, 28px); flex-wrap: wrap; justify-content: center; font-size: 12.5px; }
.footer-nav a { color: var(--ink2); }
.footer-nav a:hover { color: var(--teal); }
.footer-meta { font-size: 11.5px; color: var(--faint); }
.footer-meta a { color: var(--faint); text-decoration: underline; }
.footer-meta a:hover { color: var(--teal); }
.copyright { font-size: 11px; color: #b0aca8; }

/* ---------- フォーム ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 40px); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.req, .opt { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 4px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; }
.req { background: #e35d5d; color: #fff; }
.opt { background: #d5d2cf; color: #fff; }
.form-row input[type="text"], .form-row input[type="tel"], .form-row input[type="email"], .form-row select, .form-row textarea {
  width: 100%; border: 1.5px solid #d8dedd; border-radius: 8px; padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fdfdfd;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.form-row textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: 11.5px; color: var(--faint); margin-top: 5px; }
.consent-row { text-align: center; font-size: 13.5px; margin: 26px 0 18px; }
.consent-row input { width: 16px; height: 16px; accent-color: var(--teal); margin-right: 6px; vertical-align: -2px; }
.form-submit { max-width: 480px; margin: 0 auto; position: relative; }
.form-submit button { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.error-box { background: #fdf0f0; border: 1px solid #f0c8c8; color: #b3423d; border-radius: 8px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 20px; }
.assure-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.assure-chips span { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); border-radius: 999px; padding: 7px 16px; font-size: 12px; font-weight: 700; color: var(--teal); white-space: nowrap; }

/* ---------- ユーティリティ ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tel-inline { white-space: nowrap; font-weight: 700; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .site-header { position: static; }
  .header-inner { justify-content: center; }
  .global-nav { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .def-table th { width: auto; min-width: 96px; }
  .step-item:not(:last-child)::before { left: 23px; }
  .step-num { width: 46px; height: 46px; }
  .step-num .num { font-size: 18px; }
  .faq-item .answer { padding-left: 16px; }
  .cta-band .copy { text-align: center; }
}
