/* /css/haka-jimai.css */
/* 墓じまいページ専用の装飾（hj- 名前空間のみ） */
@import url("/css/subpage.css");
@import url("https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@400;500;700&display=swap");

/* =========================
   Key Visual
   ========================= */
.hj-kv {
  color: #fff;
  display: flex;
  align-items: flex-end;
  min-height: 42vh;
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(
      180deg,
      rgba(8, 38, 44, 0.4),
      rgba(8, 38, 44, 0.3)
    ),
    url("/img/pages/haka-jimai/kv-hj.png") center/cover no-repeat;
}
@media (min-width: 992px) {
  .hj-kv {
    min-height: 52vh;
    padding: 5rem 0 3.5rem;
  }
}
@media (max-width: 575.98px) {
  .hj-kv {
    background: linear-gradient(
        180deg,
        rgba(8, 38, 44, 0.4),
        rgba(8, 38, 44, 0.3)
      ),
      url("/img/pages/haka-jimai/kv-hj.png") center 30% / cover no-repeat;
  }
}

/* KV: breadcrumb（白統一） */
.hj-bc .breadcrumb-item a,
.hj-bc .breadcrumb-item a:visited,
.hj-bc .breadcrumb-item a:hover,
.hj-bc .breadcrumb-item a:focus {
  color: #fff;
  text-decoration: none;
}
.hj-bc .breadcrumb-item.active {
  color: #fff;
}
.hj-bc .breadcrumb-item + .breadcrumb-item::before {
  color: #fff;
  opacity: 1;
}

/* KV: title/sub */
.hj-kv-title {
  font-weight: 800;
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.875rem, 3.2vw + 1rem, 3rem);
}
.hj-kv-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1vw + 0.6rem, 1.125rem);
  margin: 0;
}

/* =========================
   INTRO（導入）
   ========================= */
.hj-intro {
  padding: 3rem 0 0; /* 下0で次セクションと密着 */
}
@media (min-width: 992px) {
  .hj-intro {
    padding: 4rem 0 0;
  }
}

.hj-label {
  display: inline-block;
  padding: 0.48rem 0.95rem;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: clamp(0.95rem, 0.6rem + 0.7vw, 1.05rem);
}

.hj-title {
  font-weight: 800;
  line-height: 1.25;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.25rem);
  margin: 0;
}
.hj-title-hi {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hj-title-hi::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.55em;
  border-radius: 6px;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(16, 185, 129, 0.22),
    rgba(16, 185, 129, 0.1)
  );
}

.hj-lead {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.9;
  margin: 0;
}

/* =========================
   マスコット＋セリフ
   ========================= */
.hj-speechbox {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* モバイル基準：左寄せ */
  gap: 1.25rem;
  margin-top: 1.25rem; /* 詰め気味に */
}
@media (min-width: 992px) {
  .hj-speechbox {
    justify-content: center;
  } /* PCだけ中央寄せ */
}

.hj-speech-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .hj-speech-img {
    width: 120px;
    height: 120px;
  }
}
@media (min-width: 992px) {
  .hj-speech-img {
    width: 140px;
    height: 140px;
  }
}

/* 吹き出し（Kiwi Maru、太枠、可変高さ） */
.hj-speech-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  background: #fffbe8;
  border: 2px solid #facc15;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  color: #374151;
  font: 500 1rem/1.8 "Kiwi Maru", "Hiragino Maru Gothic ProN", "Yu Gothic",
    "游ゴシック体", sans-serif;
  max-width: 520px;
}
.hj-speech-text p {
  margin: 0;
}

/* しっぽ：PC=左、SP=上中央 */
.hj-speech-text::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-right-color: #facc15;
}
@media (max-width: 991.98px) {
  .hj-speechbox {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hj-speech-text::before {
    left: 50%;
    top: -16px;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #facc15;
  }
}

/* =========================
   POINTS（要点カード）
   ========================= */
.hj-points {
  padding: 0 0 1.5rem; /* 下だけ軽く、上は0で密着 */
}
@media (min-width: 992px) {
  .hj-points {
    padding: 0 0 2rem;
  }
}

.hj-icon-hd {
  font-size: 1.25rem;
  color: #047857;
}

.hj-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(2, 8, 23, 0.08);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.06);
}
.hj-card-ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8fff3;
  color: #047857;
  border: 1px solid #d1fae5;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}
.hj-card-ttl {
  font-weight: 700;
  margin: 0 0 0.25rem;
  line-height: 1.35;
}
.hj-card-txt {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================
   NOTE（補足・背景情報）
   ========================= */
.hj-note {
  padding: 2.5rem 0; /* 控えめな上下余白 */
  background: #fffcf5; /* やさしいクリーム系背景 */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hj-note-box {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid rgba(251, 191, 36, 0.25); /* 黄系の淡いボーダー */
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* アイコン（左） */
.hj-note-ic {
  flex-shrink: 0;
  font-size: 1.6rem;
  color: #ca8a04; /* 深めの黄土色（amber-600） */
  background: #fef3c7; /* 淡い黄背景 */
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

/* 見出し */
.hj-note-hd {
  font-weight: 700;
  font-size: 1.05rem;
  color: #92400e; /* amber-700 */
  margin-bottom: 0.3rem;
}

/* 本文 */
.hj-note-txt {
  color: #374151;
  font-size: 0.96rem;
  line-height: 1.75;
  margin: 0;
}

/* スマホ調整 */
@media (max-width: 575.98px) {
  .hj-note {
    padding: 2rem 0;
  }
  .hj-note-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.2rem 1rem;
  }
  .hj-note-ic {
    margin-bottom: 0.6rem;
  }
}

/* =========================
   HAKA-JIMAI: ILLUSTRATIONS
   ========================= */
.hj-illu-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  text-align: center;
}

/* 画像ブロック1つ分（ボックス＋キャプション） */
.hj-illu-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 220px;
  min-width: 180px;
}

/* ボックス本体：上下左右均等余白＋角丸＋自動高さ */
.hj-illu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形を維持 */
  padding: 0.5rem;
  border-radius: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 背景色：Before（青）／After（オレンジ） */
.hj-illu-before {
  background: linear-gradient(145deg, #0ea5e9, #0284c7);
}
.hj-illu-after {
  background: linear-gradient(145deg, #f59e0b, #d97706);
}

/* 画像：角丸＋サイズ調整（枠内にきれいに収まる） */
.hj-illu img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1rem; /* ← 画像も角丸 */
}

/* キャプション（ボックスの外） */
.hj-caption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
}

/* 矢印 */
.hj-arrow {
  font-size: 2rem;
  color: #888;
  flex-shrink: 0;
  align-self: center;
}

/* ===== スマホ（横幅いっぱい＋バランス調整） ===== */
@media (max-width: 767.98px) {
  .hj-illu-wrap {
    flex-direction: column;
    align-items: center;
  }

  .hj-illu-block {
    width: 100%;
    max-width: 400px; /* ← 中央寄せ＆横いっぱいに見える上限値 */
  }

  .hj-illu {
    aspect-ratio: 1 / 1; /* 縦横比キープ */
    width: 100%;
    border-radius: 1.2rem;
  }

  .hj-arrow {
    transform: rotate(90deg);
  }
}

/* ========== PC用：矢印を上品に＆少し上に ========== */
/* 矢印共通スタイル（PC・スマホ両対応） */
.hj-arrow {
  font-size: 1.25rem;
  color: #6b7280; /* やわらかいグレー */
  background: linear-gradient(
    180deg,
    #fef3c7,
    #fde68a
  ); /* オレンジ系グラデ背景 */
  border: 1px solid rgba(146, 64, 14, 0.25);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(2, 8, 23, 0.06);
  flex-shrink: 0;
  margin-inline: 0.25rem;
}

/* ===== PC（位置調整のみ） ===== */
@media (min-width: 768px) {
  .hj-arrow {
    align-self: flex-start;
    margin-top: clamp(7.5rem, 1.2vw, 1.6rem); /* 少し下げる */
  }
}

/* ===== スマホ（縦向き） ===== */
@media (max-width: 767.98px) {
  .hj-arrow {
    transform: rotate(90deg);
  }
}

/* =========================
   BENEFITS（メリット3つ）
   ========================= */
.hj-benefits {
  padding: 2.5rem 0; /* 余白ひかえめ */
  background: #fffcf5; /* NOTEと同系のやさしい下地 */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hj-benefit-row {
  margin-top: 1rem;
}

/* 各カード */
.hj-bnf {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(2, 8, 23, 0.08);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.06);
}

/* 見出し行：ナンバー + タイトル */
.hj-bnf-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

/* 番号バッジ（オレンジ系） */
.hj-bnf-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  font-weight: 800;
  color: #92400e; /* amber-700 */
  background: linear-gradient(180deg, #fef3c7, #fde68a);
  border: 1px solid rgba(146, 64, 14, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* タイトル */
.hj-bnf-ttl {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: #374151;
}

/* 本文 */
.hj-bnf-txt {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* モバイル調整：詰めすぎ防止 */
@media (max-width: 575.98px) {
  .hj-benefits {
    padding: 2rem 0;
  }
  .hj-bnf {
    padding: 1rem 0.9rem;
  }
  .hj-bnf-num {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  .hj-bnf-ttl {
    font-size: 1rem;
  }
  .hj-bnf-txt {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}
/* =========================
   強調テキスト（メリット内）
   ========================= */
.hj-em {
  position: relative;
  font-weight: 700;
  color: #92400e; /* 深いオレンジ（amber-700） */
  background: linear-gradient(
    90deg,
    rgba(253, 224, 71, 0.35),
    rgba(253, 224, 71, 0.15)
  );
  padding: 0 0.15em;
  border-radius: 0.25em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hj-em:hover {
  background: linear-gradient(
    90deg,
    rgba(251, 191, 36, 0.45),
    rgba(251, 191, 36, 0.25)
  );
  color: #78350f;
}

/* =========================
   BEFORE START（始める前に）
   ========================= */
.hj-prep {
  padding: 2.5rem 0; /* 余白は控えめ */
  background: #f8feff; /* ごく淡い青で「話し合い＝落ち着き」演出 */
  border-top: 1px solid rgba(2, 8, 23, 0.05);
  border-bottom: 1px solid rgba(2, 8, 23, 0.05);
}

/* 理由：タグ風ピル（折り返しOK） */
.hj-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}
.hj-reason {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #075985; /* 青系の文字色 */
  background: linear-gradient(180deg, #e0f2fe, #dbeafe);
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 3px 10px rgba(2, 8, 23, 0.05);
  max-width: 100%;
}

/* 補足テキスト（本文） */
.hj-prep-text {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.8;
  text-align: center;
  margin: 0;
}

/* 注意メモ（同意・署名まわり） */
.hj-prep-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(2, 8, 23, 0.08);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 20px rgba(2, 8, 23, 0.06);
}
.hj-prep-ic {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #0ea5e9; /* 青系アイコン */
  background: #e0f2fe;
  border: 1px solid rgba(14, 165, 233, 0.25);
}
.hj-prep-hd {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.hj-prep-txt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
}

/* SP微調整：詰め気味＆中央寄せ */
@media (max-width: 575.98px) {
  .hj-prep {
    padding: 2rem 0;
  }
  .hj-prep-note {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .hj-prep-ic {
    margin-bottom: 0.25rem;
  }
}

/* =========================
   HAKA-JIMAI: FLOW（流れ）
   ========================= */
.hj-flow {
  background: #f9fafb;
  padding: 2rem 0 2rem;
}
@media (min-width: 992px) {
  .hj-flow {
    padding: 2rem 0;
  }
}

/* ステップ全体 */
.hj-flow-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

/* ステップ行 */
.hj-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(2, 8, 23, 0.06);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.05);
}

/* 番号 */
.hj-flow-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #10b981, #34d399);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

/* 本文部分 */
.hj-flow-body {
  flex: 1;
}
.hj-flow-ttl {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  color: #0f172a;
}
.hj-flow-txt {
  margin: 0;
  color: #475569;
  line-height: 1.8;
  font-size: 0.98rem;
}

/* 強調 */
.hj-flow .hj-em {
  font-weight: 600;
  color: #047857;
  background: linear-gradient(transparent 60%, #d1fae5 60%);
}

/* モバイル調整 */
@media (max-width: 575.98px) {
  .hj-flow-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .hj-flow-num {
    margin-bottom: 0.25rem;
  }
}

/* h3＋バッジを横並びに */
.hj-flow-ttl {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  color: #0f172a;
}

/* 担当バッジ */
.hj-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* バリエーション */
.hj-badge-customer {
  background: #e0f2fe;
  color: #0369a1;
}
.hj-badge-stone {
  background: #dcfce7;
  color: #166534;
}
.hj-badge-temple {
  background: #fef3c7;
  color: #92400e;
}
.hj-badge-alt {
  background: #f1f5f9;
  color: #334155;
}
.hj-badge-both {
  background: #e0e7ff;
  color: #3730a3;
}

/* モバイルでは自動折り返しで下に落ちる */
@media (max-width: 575.98px) {
  .hj-flow-ttl {
    flex-wrap: wrap;
    gap: 0.3rem;
  }
}

/* =========================
   実際に進めるときのポイント
   ========================= */
/* ===== 実際に進めるときのポイント（アンバー配色・再構築） ===== */
.hj-points-detail {
  background: linear-gradient(180deg, #fff7ed 0%, #ffead5 100%);
  padding: 2rem 0;
}

/* ステップ一覧 */
.hj-step-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ステップカード */
.hj-step {
  display: flex; /* ← 横並び前提 */
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.18); /* amber-600系 */
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.08);
}

/* 番号バッジ */
.hj-step-num {
  background: linear-gradient(145deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.28);
  flex-shrink: 0;
}

/* 本文側 */
.hj-step-body {
  flex: 1;
}

.hj-step-ttl {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.hj-step-txt {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 0;
}

/* 強調テキスト（緑系で可読） */
.hj-em {
  font-weight: 700;
  color: #047857;
}

/* 💡ポイントボックス */
.hj-tip {
  background: #fffbe8;
  border-left: 4px solid #facc15;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.06);
}
.hj-tip-ic {
  color: #ca8a04;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.hj-tip-txt {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.75;
  margin: 0;
}

/* 書類リスト */
.hj-list {
  list-style: none;
  padding-left: 1.2rem; /* インデントは残す */
  margin: 0.5rem 0 0;
}
.hj-list li {
  position: relative;
  margin: 0 0 0.25rem;
  padding-left: 0.25rem;
}
.hj-list li::before {
  content: "・";
  position: absolute;
  left: -1.1rem;
  top: 0;
  color: #0284c7; /* 青で視認性UP */
}

/* モバイル最適化 */
@media (max-width: 575.98px) {
  .hj-points-detail {
    padding: 1.75rem 0;
  }
  .hj-step {
    flex-direction: column; /* 縦積み */
    padding: 1rem;
  }
  .hj-step-num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ===== ワンポイントアドバイスセクション ===== */
.hj-advice {
  background: linear-gradient(
    180deg,
    #f0fdfa 0%,
    #ecfeff 100%
  ); /* 優しいミントブルー */
  padding: 2rem 0;
}

.hj-advice-item {
  background: #fff;
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.08);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.hj-advice-ttl {
  font-size: 1.15rem;
  font-weight: 700;
  color: #075985;
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hj-advice-txt {
  color: #475569;
  line-height: 1.9;
  font-size: 0.97rem;
}

.hj-advice .hj-em {
  color: #0284c7;
  font-weight: 700;
}

/* 吹き出し微調整 */
.hj-advice .hj-speechbox {
  margin-top: 2rem;
}

/* ===== まとめセクション ===== */
.hj-summary {
  background: linear-gradient(
    180deg,
    #fff7ed 0%,
    #fef3c7 100%
  ); /* 温かい淡オレンジ */
  padding: 3rem 0 3.5rem;
}

.hj-summary-txt {
  font-size: 1.05rem;
  line-height: 2;
  color: #374151;
  max-width: 800px;
  margin: 0 auto;
}

.hj-summary .hj-em {
  color: #b45309;
  font-weight: 700;
}

/* 吹き出しは再利用 */
.hj-summary .hj-speechbox {
  margin-top: 2.5rem;
}
/* =========================
   HAKA-JIMAI - Section Color Bands
   ========================= */

/* パレット（既存トーンに寄せた淡色） */
:root {
  --hj-band-1: #f1f9ff; /* sky系（イントロ/費用①） */
  --hj-band-2: #f8faff; /* indigo系（費用②） */
  --hj-band-3: #f7fff8; /* green系（コツ） */
  --hj-band-4: #fff9f2; /* amber系（まとめ） */
  --hj-band-5: #fdf7ff; /* purple系（FAQ） */

  --hj-border: rgba(2, 6, 23, 0.1);
  --hj-grad-hi: 0.85; /* グラデの濃さ（0〜1） */
}

/* ベース：セクションの帯表現 */
.hj-band {
  position: relative;
  isolation: isolate; /* 子の影がにじまないように */
  border-top: 1px solid var(--hj-border);
  border-bottom: 1px solid var(--hj-border);
}
.hj-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hj-bg, #fff);
  /* 上から少しだけトーンが入る柔らかいグラデ */
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, calc(var(--hj-grad-hi) * 0.02)) 100%
  );
}

/* テーマ（必要に応じて選択） */
.hj-theme-a {
  --hj-bg: var(--hj-band-1);
}
.hj-theme-b {
  --hj-bg: var(--hj-band-2);
}
.hj-theme-c {
  --hj-bg: var(--hj-band-3);
}
.hj-theme-d {
  --hj-bg: var(--hj-band-4);
}
.hj-theme-e {
  --hj-bg: var(--hj-band-5);
}

/* ゼブラ自動（クラスひとつで偶数セクションを反転） */
.hj-zebra .hj-section:nth-of-type(even) {
  --hj-bg: #fff;
}
.hj-zebra .hj-section:nth-of-type(odd) {
  --hj-bg: var(--hj-band-2);
}

/* 区切りの“見え感”を少し強めたい場合の補助 */
.hj-sep-top {
  box-shadow: inset 0 8px 12px -10px rgba(2, 6, 23, 0.15);
}
.hj-sep-bottom {
  box-shadow: inset 0 -8px 12px -10px rgba(2, 6, 23, 0.15);
}

/* 見出し行の下線（淡色帯でも読めるように） */
.hj-section .h4.fw-semibold {
  border-bottom: 1px solid rgba(2, 6, 23, 0.08);
  padding-bottom: 0.25rem;
}

/* カード/表の背景が帯で薄く沈まないよう微調整 */
.hj-band .card,
.hj-band .hj-card,
.hj-band .table {
  background: #fff;
}

/* イントロ帯の強調（.hj-introにテーマを付けたとき） */
.hj-intro.hj-band .hj-lead {
  color: #334155;
}

/* まとめ帯（bg-iceと併用可） */
.hj-summary.hj-band .hj-summary-txt {
  color: #374151;
}

/* FAQ帯でのアコーディオンのフチ色最適化 */
.hj-band.hj-theme-e .hj-faq .accordion-item {
  border-color: rgba(109, 40, 217, 0.2); /* 紫系ラインをほんのり */
}


/* ===== セクション③「費用を抑えるコツ」配色（読みやすさ優先） ===== */
.hj-theme-c{
  /* アクセント（淡めのアンバー）と可読用の濃色 */
  --hj-accent:        #fa8a2a; /* アイコン・強調 */
  --hj-accent-ink:    #8a3b06; /* 見出し文字の濃色（コントラスト確保） */
  --hj-pill-bg:       #fff4e8; /* ピル＆ラベルの淡背景 */
  --hj-pill-border:   #ffd7b2; /* ピル＆ラベルの枠線 */
  --hj-card-tint:     rgba(250,138,42,.05); /* カードのごく淡い下地 */
  --hj-card-border:   rgba(250,138,42,.16); /* カードの縁 */
}

/* ラベル（上の小さなタグ） */
.hj-theme-c .hj-label-amber{
  background: var(--hj-pill-bg) !important;
  color: var(--hj-accent-ink) !important;
  border: 1px solid var(--hj-pill-border) !important;
}

/* 見出しの番号アイコン＆見出し文字色 */
.hj-theme-c .hj-accent{ color: var(--hj-accent) !important; }
.hj-theme-c .hj-accent-ink{ color: var(--hj-accent-ink) !important; }

/* 中央の丸ピル */
.hj-theme-c .hj-pill-amber{
  background: #fff !important;
  border: 1px solid var(--hj-pill-border) !important;
}
.hj-theme-c .hj-pill-amber i{ color: var(--hj-accent) !important; }

/* カード（ほんのり色づけ＆読みやすさUP） */
.hj-theme-c .hj-card{
  background: linear-gradient(0deg, var(--hj-card-tint), var(--hj-card-tint));
  border: 1px solid var(--hj-card-border);
  border-radius: 1rem;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.hj-theme-c .hj-card-ic i{ color: var(--hj-accent); }
.hj-theme-c .hj-card-ttl{
  color: #111827; /* ほぼ黒で視認性 */
  font-weight: 600;
}
.hj-theme-c .hj-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.08);
  border-color: rgba(250,138,42,.28);
}

/* フォーカスリング（キーボード操作向け） */
.hj-theme-c .hj-card:focus-within{
  outline: 2px solid color-mix(in srgb, var(--hj-accent) 60%, transparent);
  outline-offset: 2px;
}



/* ===== セクション③：カード背景を明るめの薄色に ===== */
.hj-theme-c{
  --hj-card-bg:     #fff9f2;         /* 明るい薄アンバー */
  --hj-card-border: #ffe4cc;         /* うっすら枠線 */
}

/* カードの見た目を上書き（HTML変更なし） */
.hj-theme-c .hj-card{
  background-color: var(--hj-card-bg);
  border: 1px solid var(--hj-card-border);
  border-radius: 1rem;
  box-shadow: 0 .1rem .35rem rgba(0,0,0,.04);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

/* ホバー時はほんの少しだけ強調 */
.hj-theme-c .hj-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.08);
  border-color: #ffd9b8;
}



/* ===== セクション「まとめ」(hj-theme-d) の配色・装飾 ===== */
.hj-theme-d{
  --sum-accent:       #10b3a5; /* ミント系アクセント（やや落ち着き） */
  --sum-ink:          #0b766e; /* 見出し・重要文字の濃色 */
  --sum-pill-bg:      #e6fffb; /* ラベル用の淡背景 */
  --sum-pill-border:  #baf3ef; /* ラベルの枠線 */
  --sum-item-bg:      #f5fffe; /* 手順ボックスの薄色背景 */
  --sum-item-border:  #d8f6f2; /* 手順ボックスの枠 */
  --sum-cta-border:   #d8f6f2; /* CTAカードの枠 */
}

/* ラベル（「まとめ」） */
.hj-theme-d .hj-label{
  background: var(--sum-pill-bg);
  color: var(--sum-ink);
  border: 1px solid var(--sum-pill-border);
  padding: .25rem .6rem;
  border-radius: .6rem;
  font-weight: 600;
}

/* 見出しの色味 */
.hj-theme-d .hj-title{
  color: var(--sum-ink);
}

/* 左側のステップ一覧（list-group） */
.hj-theme-d .list-group .list-group-item{
  background: var(--sum-item-bg);
  border: 1px solid var(--sum-item-border);
  border-radius: .75rem;
  padding: .8rem 1rem;
}
.hj-theme-d .list-group .list-group-item + .list-group-item{
  margin-top: .5rem; /* 角丸維持のため隙間を開ける */
  border-top: 1px solid var(--sum-item-border);
}

/* ステップ番号アイコンの色（1〜4の丸数字） */
.hj-theme-d .list-group .bi{
  color: var(--sum-accent);
}

/* CTAカードもほんのり輪郭を合わせる */
.hj-theme-d .rounded-4.shadow-sm.w-100{
  border: 1px solid var(--sum-cta-border);
}

/* フォーカス強調（キーボード操作向け） */
.hj-theme-d .list-group-item:focus-within{
  outline: 2px solid color-mix(in srgb, var(--sum-accent) 55%, transparent);
  outline-offset: 2px;
}



/* ===== FAQ セクション (hj-theme-e) 配色・装飾 ===== */
.hj-theme-e{
  /* やわらかインディゴ系 */
  --faq-accent:        #4f46e5; /* 見出し・アイコンの主色 */
  --faq-ink:           #3730a3; /* 読ませ色（濃いめ） */
  --faq-pill-bg:       #eef2ff; /* ラベルの淡背景 */
  --faq-pill-border:   #c7d2fe; /* ラベルの枠線 */
  --faq-item-bg:       #fafaff; /* アコーディオン項目の背景（少しだけ色） */
  --faq-item-border:   #e5e7fef0; /* 項目の枠線 */
  --faq-item-hover:    #f3f4ff; /* hover時の背景 */
  --faq-focus:         #a5b4fc; /* フォーカスリング */
}

/* 見出しラベル＆タイトル */
.hj-theme-e .hj-label{
  background: var(--faq-pill-bg);
  color: var(--faq-ink);
  border: 1px solid var(--faq-pill-border);
  padding: .25rem .6rem;
  border-radius: .6rem;
  font-weight: 600;
}
.hj-theme-e .hj-title{ color: var(--faq-ink); }

/* Bootstrap Accordion のトークンを上書き */
.hj-theme-e .accordion{
  --bs-accordion-bg:           var(--faq-item-bg);
  --bs-accordion-border-color: var(--faq-item-border);
  --bs-accordion-active-bg:    #ffffff;
  --bs-accordion-active-color: #111827; /* ほぼ黒で可読性 */
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem var(--faq-focus);
  --bs-accordion-color:        #111827;
  --bs-accordion-btn-icon:     url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234f46e5' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}

/* 項目コンテナ */
.hj-theme-e .accordion-item{
  border: 1px solid var(--faq-item-border);
  border-radius: .8rem;
  overflow: hidden; /* 角丸を保つ */
}
.hj-theme-e .accordion-item + .accordion-item{
  margin-top: .75rem;  /* 角丸維持のため隙間を開ける */
}

/* 見出しボタン */
.hj-theme-e .accordion-button{
  background: var(--faq-item-bg);
  color: #111827;
  padding: .9rem 1rem;
  font-weight: 600;
}
.hj-theme-e .accordion-button:hover{
  background: var(--faq-item-hover);
}
.hj-theme-e .accordion-button:focus{
  box-shadow: var(--bs-accordion-btn-focus-box-shadow);
  border-color: var(--faq-pill-border);
}
.hj-theme-e .accordion-button:not(.collapsed){
  border-bottom: 1px solid var(--faq-item-border);
}

/* アイコン色を強調（数字以外も今後入る想定で） */
.hj-theme-e .accordion-button::after{
  filter: drop-shadow(0 0 0 rgba(0,0,0,0)); /* iOSでのにじみ防止のダミー */
}

/* 本文 */
.hj-theme-e .accordion-body{
  background: #fff; /* 展開面は白で読みやすく */
  color: #374151;
  line-height: 1.7;
}

/* フォーカス可視化（キーボード操作） */
.hj-theme-e .accordion-item:focus-within{
  outline: 2px solid color-mix(in srgb, var(--faq-accent) 55%, transparent);
  outline-offset: 2px;
}



/* バッジ「シンプル価格」を見える色に */
.badge.hj-pill-amber{
  --bs-badge-color: var(--hj-accent-ink, #8a3b06);   /* 文字色 */
  --bs-badge-bg:    var(--hj-pill-bg,   #fff4e8);   /* 背景色 */
  color: var(--bs-badge-color) !important;
  background-color: var(--bs-badge-bg) !important;
  border: 1px solid var(--hj-pill-border, #ffd7b2) !important;
}
/* フォームカード */
.form-panel{
  padding: clamp(1rem, 2vw, 1.5rem);
}
.form-panel__head{
  padding-bottom: .5rem;
  border-bottom: 1px dashed var(--hj-pill-border, #ffd7b2);
}
.shadow-hover:hover{ transform: translateY(-1px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.08)!important; }

/* ヘッダーの高さ分だけスクロール位置を下げる */
#contactFormTitle{
  scroll-margin-top: 80px; /* ヘッダーが約80pxなら調整 */
}

