@charset "utf-8";

/* ============================================================
   口座振替登録ガイド（ヘルプページ）専用スタイル
   既存サイトのトーン（Zen Maru Gothic・#2995c6・#EAF5FA）を踏襲し、
   cases/case_detail.css のヒーロー／セクション構造を再利用する前提のスタイル
============================================================ */

:root {
  --help-blue: #2995c6;
  --help-navy: #1a698d;
  --help-green: #3a9d6e;
  --help-green-bg: #eaf7f0;
  --help-teal: #1a8a8a;
  --help-teal-bg: #e8f5f5;
}

/* ─── 案内ノート ─── */
.help-note {
  background-color: #fff8e6;
  border: 1px solid #f0d878;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 36px;
  font-size: 1.4rem;
  line-height: 1.8;
}

.help-note strong {
  color: #a06b00;
}

/* ─── パターン選択カード（このページ内リンク） ─── */
.help-route-select {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0 40px;
}

.help-route-card {
  flex: 1 1 280px;
  display: block;
  border-radius: 14px;
  padding: 20px 22px;
  border: 2px solid var(--help-blue);
  background-color: #eaf5fa;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.help-route-card.is-navy {
  border-color: var(--help-navy);
  background-color: #eaf1f5;
}

.help-route-card.is-green {
  border-color: var(--help-green);
  background-color: var(--help-green-bg);
}

.help-route-card.is-teal {
  border-color: var(--help-teal);
  background-color: var(--help-teal-bg);
}

@media (min-width: 769px) {
  .help-route-card:hover {
    opacity: 0.8;
    transform: translateY(-2px);
  }
}

.help-route-card h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: var(--help-blue);
}

.help-route-card.is-navy h3 {
  color: var(--help-navy);
}

.help-route-card.is-green h3 {
  color: var(--help-green);
}

.help-route-card.is-teal h3 {
  color: var(--help-teal);
}

.help-route-card p {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #445;
}

.help-route-card .help-route-arrow {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--help-blue);
}

.help-route-card.is-navy .help-route-arrow { color: var(--help-navy); }
.help-route-card.is-green .help-route-arrow { color: var(--help-green); }
.help-route-card.is-teal .help-route-arrow { color: var(--help-teal); }

/* ─── ルートセクションの見出し帯 ─── */
.help-route-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background-color: var(--help-blue);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.help-route-heading.is-navy { background-color: var(--help-navy); }
.help-route-heading.is-green { background-color: var(--help-green); }
.help-route-heading.is-teal { background-color: var(--help-teal); }

.help-route-desc {
  font-size: 1.3rem;
  color: #556;
  margin: 0 0 24px 2px;
}

/* ─── ステップカード ─── */
.help-step {
  display: flex;
  gap: 26px;
  background-color: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.help-step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--help-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.help-route-b .help-step-num { background-color: var(--help-navy); }
.help-route-c .help-step-num { background-color: var(--help-green); }
.help-route-d .help-step-num { background-color: var(--help-teal); }

.help-step-img {
  flex: 0 0 200px;
  text-align: center;
}

.help-step-img img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.help-step-body {
  flex: 1 1 320px;
  min-width: 240px;
}

.help-step-body h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: #1f2933;
}

.help-step-body p {
  margin: 0 0 8px;
  font-size: 1.4rem;
  line-height: 1.8;
}

.help-step-body ul {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 1.35rem;
  line-height: 1.8;
}

.help-step-body ul li {
  list-style: outside disc;
  margin-bottom: 4px;
}

.help-tag {
  display: inline-block;
  background-color: #eef2f7;
  border: 1px solid #c3d0dd;
  border-radius: 5px;
  padding: 1px 10px;
  font-weight: 700;
  color: #1a3a5c;
}

.help-highlight {
  background-color: #fff3cd;
  padding: 1px 5px;
  border-radius: 3px;
}

.help-warning {
  background-color: #fdecec;
  border: 1px solid #f3b8b8;
  border-radius: 8px;
  padding: 10px 14px;
  color: #a02020;
  font-weight: 700;
  margin: 12px 0 !important;
}

.help-section-gap {
  margin-top: 56px;
}

.help-next-box {
  background-color: #eef1f5;
  border-left: 5px solid #8b98a8;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 40px 0;
}

.help-next-box h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: #445;
}

.help-next-box p {
  margin: 0;
  font-size: 1.35rem;
  color: #445;
  line-height: 1.8;
}

.help-back-to-top {
  display: inline-block;
  margin: 30px 0 0;
  font-size: 1.3rem;
  color: var(--help-blue);
  text-decoration: none;
}

.help-back-to-top:hover {
  text-decoration: underline;
}

/* ─── STEPラベルの見切れ対策 ───
   .case-section-eyebrow は元々「Q1」等の短い文字用に直径36pxの円形。
   「STEP 0」のような長い文字列を入れると円からはみ出すため、
   このページ内では横長のピル型に上書きする。 */
.l-case-body .case-section-eyebrow {
  width: auto;
  height: auto;
  min-width: 36px;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 1.3rem;
  white-space: nowrap;
}

/* ─── 画像クリックで拡大表示（ライトボックス） ─── */
.help-step-img img {
  cursor: zoom-in;
}

.help-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(20, 30, 40, 0.85);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.help-lightbox.is-open {
  display: flex;
}

.help-lightbox img {
  max-width: min(90vw, 480px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.help-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2.4rem;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
}

@media (min-width: 769px) {
  .help-lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 768px) {
  .help-step {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .help-step-img {
    flex: 0 0 auto;
  }

  .help-route-select {
    flex-direction: column;
  }
}
