/* =========================================================
   スマイル供養堂 — 仏壇処分LP「地域密着・チラシ風」デザイン
   設計方針(オーナー指示):
   - 圧倒的にシンプル。シャドウ・グラデーション・角丸は一切不使用
   - 折込チラシのように古めかしく泥臭い・地域密着の親しみやすさ
   - 背景は全て白。テーマカラー(ヘッダー・ボタン・見出し帯)は紺色
   - 文字色は 黒 / 赤(注意喚起・強調) / 青(料金・割引などお得情報) の3色のみ
   - テキストは横幅ギリギリ、余白は極小。行間は広め(高齢者可読性)
   ========================================================= */

:root {
  --navy: #16336e;       /* 紺(テーマ:ヘッダー・帯・ボタン) */
  --navy-d: #0f2350;     /* 濃紺(罫線) */
  --red: #cc0000;        /* 赤(注意喚起・強調) */
  --blue: #0033cc;       /* 青(料金・割引などお得情報) */
  --line: #1c1c1c;       /* 黒系の罫線 */
  --red-soft: #d59a9a;   /* 薄い赤(電話CTA・他色とトーン統一) */
  --green-soft: #a8cfa8; /* 薄い緑(LINE CTA・他色とトーン統一) */
}

/* ---- リセット:角丸・影・グラデを全廃して強制 ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  background-image: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8px;
}

body,
body.bg-white {
  background: #fff;
  color: #000;
  font-family: "ＭＳ Ｐゴシック", "MS PGothic", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 2.0;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

/* ---- 横幅いっぱい・余白極小コンテナ ---- */
.wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 6px;
}

.sect {
  padding: 14px 0;
  border-bottom: 4px solid var(--navy);
}

/* ---- 文字色ユーティリティ(黒・赤・青の3色) ---- */
.warn { color: var(--red); font-weight: bold; }
.blue { color: var(--blue); font-weight: bold; }
.b { font-weight: bold; }
.center { text-align: center; }
.big { font-size: 1.2rem; }
.mt { margin-top: 12px; }
.mb { margin-bottom: 12px; }
.u { border-bottom: 3px solid currentColor; padding-bottom: 1px; }
.marker {
  /* マーカーペン風:下半分のみ黄色(リセットの background-image:none を上書き) */
  background-image: linear-gradient(transparent 55%, #fff066 55%) !important;
  background-color: transparent;
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.note { font-size: 0.85rem; line-height: 1.8; margin-top: 10px; }

p { margin-bottom: 6px; }
p:last-child { margin-bottom: 0; }

/* =========================================================
   ヘッダー(紺ベタ・チラシの社名枠)
   ========================================================= */
.hd {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid #fff;
}

.hd-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px;
}

.hd-logo { line-height: 1.4; }

.hd-sub {
  display: block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.hd-name {
  display: block;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.pc-nav { display: none; }

.hamburger {
  background: #fff;
  color: var(--navy);
  border: 2px solid #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
}

.mobile-menu {
  background: var(--navy);
  border-top: 2px solid #fff;
}

.mobile-menu nav { display: flex; flex-direction: column; }

.mobile-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 14px 10px;
  border-bottom: 1px solid #fff;
}

.hidden { display: none !important; }

/* =========================================================
   ファーストビュー
   ========================================================= */
.fv-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 14px 8px;
  border: 3px solid var(--navy-d);
}

.fv-band h1 {
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: bold;
}

.fv-tag {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.06em;
}

.fv-img {
  margin-top: 8px;
  border: 3px solid var(--navy);
}

.fv-img img { width: 100%; }

.pricehook {
  border: 3px solid var(--navy);
  border-top: none;
  text-align: center;
  padding: 12px 6px;
}

.ph-lead { font-size: 1rem; font-weight: bold; margin-bottom: 2px; }

.ph-main { font-weight: bold; line-height: 1.3; color: #000; }

.ph-1ten { font-size: 1.2rem; }

.ph-yen { color: var(--blue); }

.ph-num { font-size: 3.4rem; letter-spacing: -0.02em; vertical-align: -2px; }

.ph-yen { font-size: 1.6rem; }

.ph-tax { font-size: 1rem; }

.ph-day { font-size: 1.2rem; color: #000; }

.grid4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.g-box {
  border: 2px solid var(--navy);
  text-align: center;
  padding: 12px 4px;
  font-weight: bold;
  line-height: 1.5;
}

/* =========================================================
   見出し帯(全セクション共通・紺ベタ白文字)
   ========================================================= */
.band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 1.35rem;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.04em;
  padding: 12px 8px;
  margin-bottom: 12px;
  border: 3px solid var(--navy-d);
}

.sub-ttl {
  background: var(--navy);
  color: #fff;
  font-size: 1.15rem;
  font-weight: bold;
  padding: 8px 10px;
  margin: 16px 0 8px;
}

/* 共通の白枠ボックス(角丸・影なし) */
.box {
  background: #fff;
  border: 2px solid var(--navy);
  padding: 12px;
  margin-bottom: 12px;
}

.box:last-child { margin-bottom: 0; }

.note-l { border-left: 8px solid var(--navy); }

.s-ttl {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
  border-left: 6px solid var(--navy);
  padding-left: 8px;
  margin-bottom: 6px;
  line-height: 1.5;
}

/* 下矢印(セクション間の誘導:お悩み→解決) */
.down-arrow {
  text-align: center;
  color: var(--navy);
  font-size: 3rem;
  line-height: 1;
  font-weight: bold;
  margin: 14px 0 0;
}

/* 和の区切り(極シンプル) */
.wa-divider {
  text-align: center;
  color: var(--navy);
  font-weight: bold;
  letter-spacing: 0.4em;
  margin: 10px 0;
}

/* =========================================================
   お悩み・各テキストブロック
   ========================================================= */
.qa {
  border: 2px solid var(--navy);
  padding: 10px;
  margin-bottom: 8px;
}

.q-ttl {
  font-size: 1.05rem;
  font-weight: bold;
  color: #000;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 4px;
  margin-bottom: 6px;
  line-height: 1.5;
}

/* リスト類 */
.check-list,
.dot-list,
.bar-list,
.x-list { list-style: none; }

.check-list li,
.dot-list li,
.bar-list li,
.x-list li {
  position: relative;
  padding-left: 1.6em;
  font-weight: bold;
  line-height: 1.9;
  margin-bottom: 6px;
}

.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--navy); font-weight: bold; }
.dot-list li::before { content: "●"; position: absolute; left: 0; color: var(--navy); }
.bar-list li::before { content: "・"; position: absolute; left: 0; color: var(--navy); }
.x-list li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: bold; }

.x-list li { font-size: 1.1rem; }

/* =========================================================
   注意喚起ボックス(赤枠・赤文字)
   ========================================================= */
.alertbox { border: 3px solid var(--red); }

.alertbox .band {
  margin-bottom: 0;
  border: none;
  border-bottom: 3px solid var(--red);
}

.alert-bd { padding: 12px; }

.warn-item {
  border: 2px solid var(--red);
  border-left: 8px solid var(--red);
  padding: 10px;
  margin-bottom: 8px;
}

.warn-item h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 4px;
  line-height: 1.5;
}

.warn-item p { font-weight: bold; }

.link-right { text-align: right; margin-top: 10px; }

.link-right a { font-size: 0.85rem; font-weight: bold; }

/* =========================================================
   事例 / エリア / スタッフ / サービス / プロセス / 証明書
   ========================================================= */
.case-ttl,
.v-ttl,
.cert-ttl {
  font-size: 1.15rem;
  font-weight: bold;
  color: #000;
  border-left: 6px solid var(--navy);
  padding-left: 8px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.case-img,
.voice-imgs img,
.cert-img img,
.area-img img,
.staff-img img,
.svc-img img,
.step-bd img,
.flow-item img {
  border: 2px solid var(--navy);
}

.case-img { margin-bottom: 8px; }

.case-img img { width: 100%; }

.case-price {
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 3px solid var(--navy);
  display: inline-block;
  padding-bottom: 2px;
  margin-bottom: 8px;
}

.area-img { text-align: center; margin-bottom: 10px; }

.area-img img { width: 200px; max-width: 60%; margin: 0 auto; }

.area-list {
  line-height: 2.1;
  font-weight: 500;
  margin-bottom: 10px;
}

.staff,
.svc { display: flex; gap: 10px; }

.staff-img,
.svc-img { width: 36%; flex-shrink: 0; }

.staff-img img,
.svc-img img { width: 100%; height: 100%; object-fit: cover; }

.staff-txt,
.svc-txt { width: 64%; }

/* 対応サービス:モバイルでは画像が縦に潰れて視認不能になるため、画像→テキストの縦積みに */
.svc { flex-direction: column; }
.svc-img { width: 100%; }
.svc-img img { width: 100%; height: auto; object-fit: contain; }
.svc-txt { width: 100%; }

.staff-prof {
  border: 2px solid var(--navy);
  padding: 8px;
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.staff-prof p { margin-bottom: 2px; }

/* プロセス STEP */
.step { padding: 0; }

.step-hd {
  background: var(--navy);
  color: #fff;
  font-weight: bold;
  padding: 8px 10px;
  font-size: 1.05rem;
}

.step-no {
  display: inline-block;
  border: 2px solid #fff;
  padding: 1px 8px;
  margin-right: 8px;
  font-size: 0.95rem;
}

.step-bd { padding: 10px; }

.step-bd img { width: 100%; margin-bottom: 8px; }

/* 証明書 */
.cert-img { text-align: center; margin-bottom: 10px; }

.cert-img img { width: 100%; max-width: 320px; margin: 0 auto; }

/* =========================================================
   料金表(罫線くっきり・チラシの表)
   ========================================================= */
.tbl {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--navy);
  margin-bottom: 10px;
}

.tbl th,
.tbl td {
  border: 1px solid var(--navy);
  padding: 10px 8px;
  text-align: left;
  font-weight: bold;
  line-height: 1.6;
}

.tbl thead th {
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.tbl th:first-child,
.tbl td:first-child { width: 48%; }

.tax {
  display: inline-block;
  font-size: 0.8rem;
  color: #000;
  font-weight: 500;
  margin-left: 4px;
}

/* =========================================================
   ご利用の流れ(4ステップ)
   ========================================================= */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.flow-item { text-align: center; padding: 0; }

.flow-hd {
  background: var(--navy);
  color: #fff;
  font-weight: bold;
  padding: 6px;
  letter-spacing: 0.1em;
}

.flow-ttl {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
  border-bottom: 2px solid var(--navy);
  padding: 6px 0;
  margin: 0 10px 8px;
}

.flow-item img { width: calc(100% - 20px); margin: 0 10px 8px; }

.flow-item p { padding: 0 10px 10px; text-align: left; }

.txt-link { font-weight: bold; text-decoration: underline; }

.img-full { border: 2px solid var(--navy); }

.img-full img { width: 100%; }

.img-link img { width: 100%; border: 2px solid var(--navy); }

/* =========================================================
   CTA(紺帯+白地・大きな申込ボタン)
   ========================================================= */
.cta { border: 3px solid var(--navy); }

.cta-hd {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 14px 8px;
  border-bottom: 3px solid #fff;
}

.cta-hd-sub {
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

.cta-hd-main {
  font-weight: bold;
  font-size: 1.35rem;
  line-height: 1.5;
}

.cta-hd-main .u { border-bottom: 3px solid #fff; }

.cta-bd { padding: 14px 10px; background: #fff; }

.cta-lead { margin-bottom: 12px; line-height: 1.9; }

.btn {
  display: block;
  width: 100%;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  border: 3px solid var(--navy-d);
  padding: 14px 8px;
  margin-bottom: 10px;
}

.btn:last-child { margin-bottom: 0; }

.btn-num { display: block; font-size: 1.9rem; line-height: 1.3; }

.btn-sub { display: block; font-size: 0.9rem; font-weight: 500; }

/* 電話CTA:薄い赤(他色とトーン統一)・黒文字でチラシ調 */
.btn-tel { background: var(--red-soft); color: #000; }

/* LINE CTA:薄い緑(他色とトーン統一)・黒文字 */
.btn-line { background: var(--green-soft); color: #000; font-size: 1.2rem; }

/* CTA補助文言(ボタン直前直後の案内) */
.cta-cap {
  text-align: center;
  font-weight: bold;
  color: #000;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 6px 0 8px;
}

/* =========================================================
   宗派カード
   ========================================================= */
.shuha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.shuha-card {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding: 16px 4px;
  border: 2px solid var(--navy-d);
}

/* =========================================================
   FAQ(アコーディオン・素朴)
   ========================================================= */
.faq {
  border: 2px solid var(--navy);
  margin-bottom: 8px;
}

.faq > summary {
  list-style: none;
  cursor: pointer;
  font-weight: bold;
  color: #000;
  padding: 12px;
  line-height: 1.6;
}

.faq > summary::-webkit-details-marker { display: none; }

.faq > summary::after {
  content: "［＋］";
  float: right;
  margin-left: 8px;
}

.faq[open] > summary::after { content: "［－］"; }

.faq-q {
  color: #000;
  font-weight: bold;
  margin-right: 6px;
}

.faq-a {
  border-top: 2px solid var(--navy);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  line-height: 1.9;
}

.faq-amark {
  color: var(--red);
  font-weight: bold;
  font-size: 1.3rem;
  margin-right: 8px;
}

/* =========================================================
   メッセージ / フッター
   ========================================================= */
.message p { line-height: 2.0; margin-bottom: 12px; }

.message-foot {
  border-top: 2px dashed var(--navy);
  margin-top: 12px;
  padding-top: 12px;
  text-align: center;
}

.message-foot img { width: 240px; max-width: 80%; margin: 0 auto 12px; }

.message-foot p { color: #000; margin-bottom: 8px; }

.ft {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 20px 10px;
}

.ft-name { font-size: 1.1rem; font-weight: bold; letter-spacing: 0.1em; margin-bottom: 8px; }

.ft-links { font-size: 0.9rem; margin-bottom: 8px; }

.ft-links a { color: #fff; text-decoration: underline; margin: 0 4px; }

.ft-copy { font-size: 0.8rem; }

/* =========================================================
   下層ページ(運営会社・規約・特商法)
   ========================================================= */
.subpage { padding: 16px 0; }

.law-tbl { width: 100%; border-collapse: collapse; border: 2px solid var(--navy); }

.law-tbl th,
.law-tbl td {
  border: 1px solid var(--navy);
  padding: 10px 8px;
  text-align: left;
  line-height: 1.9;
  vertical-align: top;
}

.law-tbl th {
  background: var(--navy);
  color: #fff;
  width: 34%;
  font-weight: bold;
}

.law-note { font-size: 0.82rem; display: block; margin-top: 4px; }

.article { margin-bottom: 14px; }

.article h3 {
  background: var(--navy);
  color: #fff;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 8px 10px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.article p { line-height: 1.95; }

.back-btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border: 3px solid var(--navy-d);
  padding: 12px 28px;
  margin: 16px 0;
}

/* =========================================================
   フローティングCTA(スマホ下部固定)
   ========================================================= */
#floating-cta {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  z-index: 50;
  border-top: 3px solid #fff;
  transform: translateY(100%);
  transition: transform 0.2s;
}

#floating-cta.translate-y-0 { transform: translateY(0); }
#floating-cta.translate-y-full { transform: translateY(100%); }
.translate-y-0 { transform: translateY(0); }
.translate-y-full { transform: translateY(100%); }

#floating-cta a {
  width: 50%;
  text-align: center;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15rem;
  padding: 14px 4px;
}

#floating-cta .fc-tel { background: var(--red-soft); border-right: 2px solid var(--navy); }
#floating-cta .fc-line { background: var(--green-soft); }

.fc-spacer { height: 56px; }

/* =========================================================
   レスポンシブ(スマホ優先 → タブレット・PC)
   ========================================================= */
@media (min-width: 600px) {
  body { font-size: 18px; }
  .wrap { padding: 0 14px; }
  .sect { padding: 22px 0; }

  .fv-band h1 { font-size: 2rem; }
  .ph-num { font-size: 4.6rem; }
  .ph-yen { font-size: 2rem; }

  .band { font-size: 1.7rem; }
  .cta-hd-main { font-size: 1.8rem; }

  .grid4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

  .flow { grid-template-columns: 1fr 1fr; }

  .shuha-card { font-size: 1.8rem; padding: 22px 4px; }

  .area { display: flex; gap: 20px; align-items: flex-start; }
  .area-img { width: 40%; margin: 0; }
  .area-img img { width: 100%; max-width: none; }
  .area-txt { width: 60%; }

  /* タブレット以上は対応サービスを横並びに戻す */
  .svc { flex-direction: row; }
  .svc-img { width: 36%; }
  .svc-img img { height: 100%; object-fit: cover; }
  .svc-txt { width: 64%; }
}

@media (min-width: 900px) {
  .pc-nav { display: flex; gap: 18px; }
  .pc-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
  }
  .hamburger,
  .mobile-menu { display: none !important; }

  .flow { grid-template-columns: 1fr 1fr 1fr 1fr; }

  #floating-cta { display: none !important; }
  .fc-spacer { display: none; }
}

/* 地域別の対応事例カルーセル */
.case-carousel { margin-bottom: 12px; }

.cc-viewport {
  overflow: hidden;
  border: 2px solid var(--navy);
}

.cc-track {
  display: flex;
  transition: transform 0.5s ease;
}

.cc-slide {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px;
}

.cc-card {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.cc-img {
  width: 42%;
  flex-shrink: 0;
  align-self: flex-start;
}

.cc-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border: 2px solid var(--navy);
}

.cc-body { width: 58%; min-width: 0; }

.cc-area {
  font-size: 1.15rem;
  font-weight: bold;
  color: #000;
  border-left: 6px solid var(--navy);
  padding-left: 8px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.cc-work {
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 8px;
}

.cc-price {
  font-size: 1.35rem;
  font-weight: bold;
  border-bottom: 3px solid var(--navy);
  display: inline-block;
  padding-bottom: 2px;
}

.cc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.cc-btn {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy-d);
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
  padding: 8px 18px;
  cursor: pointer;
}

.cc-count {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
  min-width: 56px;
  text-align: center;
}

@media (max-width: 600px) {
  .cc-slide { padding: 8px; }
  .cc-card { gap: 8px; }
  .cc-img { width: 40%; }
  .cc-body { width: 60%; }
  .cc-area { font-size: 1rem; padding-left: 6px; border-left-width: 5px; margin-bottom: 6px; }
  .cc-work { font-size: 0.92rem; line-height: 1.6; margin-bottom: 6px; }
  .cc-price { font-size: 1.1rem; }
}
