/* =========================================================
  Variables
  概要：全体で使う色・半径などのCSSカスタムプロパティ
========================================================= */
:root {
  --c-bg: #d7e8f8;
  --c-accent: #e85188; /* ピンク系アクセント */
  --c-blue: #4a86e8;
  --c-text: #1a1a1a;
  --c-neybee: #0457a7;
  --c-: #0f3b58; /* WARN: 変数名 --c- は用途不明。タイポの可能性あり */
  --radius: 14px;

  /* セクションタイトル 斜線（ユーザー調整値） */
  --slash-len: 30px;
  --slash-thick: 2px;
  --slash-gap: 18px;
  --slash-angle: 110deg;
  --slash-offset-y: 1px;
}

/* =========================================================
  Base / Reset
  概要：共通の初期化・ベースタイポグラフィ
========================================================= */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--c-text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial;
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-weight: 400;
}

/* ==== フォント切替ユーティリティ ==== */
.font-noto {
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif !important;
}
.font-roboto {
  font-family:
    "Roboto",
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif !important;
  /* 桁を揃えて見やすくする（対応ブラウザでは有効） */
  font-variant-numeric: tabular-nums lining-nums;
}

/* =========================================================
  Layout helpers
  概要：幅・余白・センタリングなどのユーティリティ
========================================================= */
/* -------------------- コンテナ -------------------- */
.container {
  width: min(1100px, 96%);
  margin: auto;
  padding: 0 20px;
}
.container--narrow {
  width: min(820px, 96%);
}

/* -------------------- 余白/配置 -------------------- */
.section--pad {
  padding-block: clamp(40px, 6vw, 72px);
}
.center {
  text-align: center;
}

/* =========================================================
  Header / Nav
  概要：サイトヘッダーとグローバルナビゲーション
========================================================= */
/* -------------------- ヘッダー本体（旧ベース） -------------------- */
.site-header {
  position: relative; /* ★ 追加：これで nav の基準になる */
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  z-index: 1000; /* 念のため：他要素より前面へ */
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.site-logo {
  font-weight: 700;
  text-decoration: none;
  color: #000;
}

/* -------------------- ナビゲーション（旧ベース） -------------------- */
.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}
.nav a {
  text-decoration: none;
  color: #333;
}

/* =========================================================
  Header（Benesse仕様）
========================================================= */

.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-benesse {
  height: 32px;
}

.logo-inuneko {
  height: 36px;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__nav a {
  color: #0f3b58;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.header__nav a:hover {
  text-decoration: underline;
}

.nav-icon {
  width: 16px;
  height: 16px;
}

/* ==== ハンバーガーボタン ==== */
.header__menu-btn {
  display: none; /* PCでは非表示 */
  width: 32px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background-color: #0f3b58;
}

.header__menu-btn span + span {
  margin-top: 5px;
}

/* ==================== 大項目：オーナー用ヘッダーロゴ ==================== */
.logo-link--owner {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.logo-owner {
  display: block;
  height: 42px; /* 必要に応じて調整 */
  width: auto;
  margin: 0;
}

/* =========================================================
  スマホレイアウト
  〜768px：画像のように
  左 Benesse／中央 いぬねこロゴ／右 ハンバーガー
========================================================= */
@media (max-width: 768px) {
  .header__inner {
    padding: 0 16px;
    max-width: none;
  }

  .header__left {
    flex: 1 1 auto;
    position: relative;
    justify-content: center; /* 中央に いぬねこロゴ */
    gap: 0;
    padding-left: 88px;
  }

  /* 左端に Benesse ロゴを固定 */
  .header__left .logo-link:first-child {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  /* ロゴサイズ少しだけ小さめでもOK（好みで調整） */
  .logo-benesse {
    height: 26px;
  }

  .logo-inuneko {
    height: 32px;
  }

  /* ナビはスマホでは非表示（ハンバーガーに切り替え） */
  .header__nav {
    display: none;
  }

  /* ハンバーガーを表示 */
  .header__menu-btn {
    display: block;
    margin-left: 16px;
  }
}

/* ==== ハンバーガーメニュー開閉用 ==== */
@media (max-width: 768px) {
  /* 閉じているときは非表示（既存の .header__nav {display:none;} でOK） */
  .header__nav {
    display: none;
    position: absolute;
    top: 100%; /* ヘッダーの下からドロップダウン */
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
  }

  /* .site-header に is-open が付いたらナビ表示 */
  .site-header.is-open .header__nav {
    display: block;
  }

  .header__nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .header__nav li {
    width: 100%;
    padding: 12px 24px;
    border-top: 1px solid #eee;
  }

  .header__nav a {
    display: block;
    width: 100%;
    font-size: 15px;
  }

  /* ボタン本体（既存の指定に追記） */
  .header__menu-btn {
    position: relative;
  }

  /* ハンバーガー 3本線（既存） */
  .header__menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background-color: #0f3b58;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
    transform-origin: center;
  }

  .header__menu-btn span + span {
    margin-top: 5px;
  }

  /* ===== 開いているとき：×マークに変形 ===== */

  .site-header.is-open .header__menu-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.is-open .header__menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .header__menu-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0;
  }

  .header__inner {
    min-height: 72px;
    padding: 10px 16px;
    align-items: center;
  }

  .header__left {
    align-items: center;
  }

  .header__left .logo-link,
  .header__left img,
  .footer__brand img,
  .footer__benesse img {
    display: block;
  }

  .logo-benesse {
    height: 24px;
    width: auto;
  }

  .logo-inuneko {
    height: 40px;
    width: auto;
  }

  .header__menu-btn {
    align-self: center;
  }
}

/* =========================================================
  footer（Benesse仕様）
========================================================= */
/* ==== フッター：上段（水色バー） ==== */
.site-footer {
  background: #fff;
  color: #0f3b58;
}
.footer__topbar {
  background: #d9eaf9;
}
.footer__topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
}
.footer__brand-logo {
  height: 40px;
} /* 画像の見え方に合わせた大きさ */

.footer__nav ul {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__nav a {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #0f3b58;
  text-decoration: none;
  padding: 6px 0;
}
.footer__nav a:hover {
  text-decoration: underline;
}

/* ==== フッター：下段（白地バー） ==== */
.footer__bottombar {
  border-top: 1px solid #e5e5e5;
  background: #fff;
}
.footer__bottombar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto; /* 左ロゴ／中央コピー／右リンク */
  gap: 20px;
}
.footer__benesse {
  display: inline-flex;
  align-items: center;
}
.footer__benesse-logo {
  height: 30px;
}

.footer__copy {
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__legal a {
  color: #808080;
  text-decoration: none;
  font-size: 12px;
}
.footer__legal a:hover {
  text-decoration: underline;
}

/* ==== レスポンシブ（タブレット程度までの共通調整） ==== */
@media (max-width: 768px) {
  .footer__topbar-inner {
    padding: 12px 16px;
  }
  .footer__brand-logo {
    height: 34px;
  }
  .footer__nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .footer__nav a {
    font-size: 14px;
    padding: 8px 0;
  }

  .footer__bottombar-inner {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 10px;
  }
  .footer__legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }
}

/* ==== Footer Responsive (SPレイアウトを画像準拠に) ==== */
@media (max-width: 820px) {
  /* 上段：水色バー（ロゴ中央＋2×2ナビ） */
  .footer__topbar-inner {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    row-gap: 18px;
    padding: 22px 16px;
  }
  .footer__brand {
    justify-content: center;
  }
  .footer__brand-logo {
    height: 38px; /* 画像に合わせて少し大きめ */
  }

  /* ナビ：2×2のセンター配置グリッド */
  .footer__nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    column-gap: 48px; /* 左右の離れ具合（画像準拠） */
    row-gap: 18px; /* 上下間隔 */
    justify-items: center;
    padding: 0;
    margin: 0;
  }
  .footer__nav a {
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.02em;
    padding: 4px 0;
    text-align: center;
  }

  /* 下段：白地（ロゴ＋リンク左寄せ・コピーライト中央） */
  .footer__bottombar-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "legal"
      "copy";
    row-gap: 16px;
    padding: 20px 16px 24px;
    text-align: left; /* ロゴ・リンクは左寄せ */
  }

  .footer__benesse {
    grid-area: logo;
    justify-content: flex-start;
  }
  .footer__benesse-logo {
    height: 28px;
  }

  .footer__legal {
    grid-area: legal;
    display: flex;
    flex-direction: column; /* 3リンク縦並び */
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .footer__legal a {
    font-size: 12px;
    line-height: 1.6;
  }

  .footer__copy {
    grid-area: copy;
    text-align: center; /* コピーライトだけ中央 */
    font-size: 12px;
    line-height: 1.6;
  }
}

/* 極小端末の微調整（任意） */
@media (max-width: 360px) {
  .footer__nav ul {
    column-gap: 28px;
    row-gap: 16px;
  }
  .footer__brand-logo {
    height: 34px;
  }
}

/* =========================================================
  Section Label
  概要：各セクション共通の「Point」など小タイトル（左右の斜線付き）
========================================================= */

.section-label {
  position: relative;
  display: inline-block;
  text-align: center;
  font-weight: 800;
  color: var(--c-neybee);
  letter-spacing: 0.06em;
  margin: 8px 0 24px;
  font-size: clamp(18px, 2.4vw, 20px);
  line-height: 1.2;
}

.section-label::before,
.section-label::after {
  content: "";
  position: absolute;
  top: calc(50% + var(--slash-offset-y));
  width: var(--slash-len);
  height: var(--slash-thick);
  background: currentColor;
  transform-origin: center;
  border-radius: 2px;
}

.section-label::before {
  right: 100%;
  margin-right: var(--slash-gap);
  transform: translateY(-50%) rotate(calc(-1 * var(--slash-angle))); /* ＼ */
}

.section-label::after {
  left: 100%;
  margin-left: var(--slash-gap);
  transform: translateY(-50%) rotate(var(--slash-angle)); /* ／ */
}

/* =========================================================
  Buttons
  概要：CTA配置・共通ボタン・バリアント・状態
========================================================= */
/* -------------------- CTA行（2列グリッド） -------------------- */
/* 2ボタンを同幅で並べる（共通ユーティリティ） */
.hero__cta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 10px 0;
}

/* -------------------- ベースボタン -------------------- */
/* 丸角ピル型・共通トランジション */
.btn {
  --btn-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--btn-radius);
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease,
    background-color 0.12s ease,
    border-color 0.12s ease;
  will-change: transform, box-shadow;
}

/* -------------------- CTA行内のボタン揃え -------------------- */
/* セルいっぱいに広げ中央寄せ */
.hero__cta .btn {
  width: 100%;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  padding: 16px 26px;
}

/* -------------------- アイコン -------------------- */
.btn__icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

/* -------------------- バリアント（色） -------------------- */
/* ブルー（資料請求） */
.btn--primary {
  background: #1f59a8; /* 必要なら var(--c-blue) に置換可 */
  border-color: #1f59a8;
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 89, 168, 0.28);
}
/* ピンク（相談） */
.btn--accent {
  background: #d7638f;
  border-color: #d7638f;
  color: #fff;
  box-shadow: 0 10px 22px rgba(215, 99, 143, 0.28);
}

/* -------------------- インタラクション -------------------- */
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  filter: brightness(1.02);
  outline: none;
}
/* 押下時は戻す＋影を弱める */
.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

/* -------------------- レスポンシブ（ボタン行） -------------------- */
@media (max-width: 640px) {
  .hero__cta {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn {
    width: 100%;
  }
}
/* =========================================================
  Hero (First View)
  概要：ファーストビューのレイアウト・見出し・価格ブロック
========================================================= */

/* -------------------- レイアウト -------------------- */
.hero {
  background: var(--c-bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero__left {
  text-align: center;
  display: flex; /* 縦並びレイアウト */
  flex-direction: column;
  align-items: center;
}

/* -------------------- リード文 -------------------- */
.leadline {
  margin: 0 0 10px;
  text-align: center;
  color: #1b2b44;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 20px;
}

/* 1行目は常時1行にする */
.leadline__pre {
  white-space: nowrap;
}
.leadline__note {
  font-size: 0.65em;
  vertical-align: super;
  line-height: 1;
  margin-left: 1px;
}

/* -------------------- ブランド名チップ -------------------- */
.brand-chip {
  display: inline-block;
  padding: 6px 10px;
  margin: 0 6px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  font-weight: 800;
  line-height: 1.1;
  font-size: 23px;
}

/* -------------------- 見出し・リード・CTA（Hero内） -------------------- */
.hero__title {
  font-size: 32px;
  line-height: 1.2;
  margin: 10px 0 14px;
  color: var(--c-neybee);
  font-weight: bold;
}
.hero__lead {
  font-size: 26px;
  margin-bottom: 24px; /* 画像との距離感UP */
}

/* ボタン＋料金カードをまとめるラッパー */
.hero-actions {
  max-width: 450px; /* PCでの横幅 */
  width: 100%;
  margin: 24px auto 0; /* 中央寄せ */
  display: flex;
  flex-direction: column;
  gap: 12px; /* ボタン群と料金カードの間 */
}

/* Hero セクション内のCTAは flex で横並びにする */
.hero .hero__cta {
  display: flex;
  gap: 12px;
  margin: 0; /* 外側余白は hero-actions 側に持つ */
}
.hero .hero__cta .btn {
  flex: 1 1 auto;
}

/* -------------------- 料金ブロック -------------------- */
.hero-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 18px 22px;
  width: 100%; /* hero-actions の幅いっぱい */
  margin: 0;
  container-type: inline-size;
  place-content: center;
}

/* 左側は2行縦並び */
.hero-price__left {
  color: #1b2b44;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
  font-size: 20px;
}
/* 「初期費用無料」「解約金なし」幅合わせ */
.hero-price__left p {
  margin: 0;
  display: block;
}
.hero-price__left p:last-child {
  letter-spacing: 0.12em; /* 見た目幅を近づける */
}

/* 真ん中の縦仕切りは画像で表現 */
.hero-price__divider {
  flex: 0 0 auto;
  width: auto;
  display: block;
  margin: 0 4px;
}

/* 右側は ラベル(縦書き) | 数字 | 単位群 を横並び */
.hero-price__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap; /* 折り返し防止 */
}

/* 「月額」を縦書きで表示 */
.hero-price__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: #1b2b44;
  line-height: 1;
  margin-right: 4px;
  font-size: 20px;
}

/* 価格の数字を強調 */
.hero-price__num {
  font-size: 56px;
  font-weight: 800;
  color: #d7638f;
  line-height: 1;
}

/* 「（税抜）」上／「円〜」下 で縦積み */
.hero-price__yen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-left: 4px;
}
.hero-price__note {
  font-size: 12px;
  color: #6b7280;
  line-height: 1;
}
.hero-price__unit {
  color: #1b2b44;
  line-height: 1;
  font-size: 24px;
}

/* -------------------- ブランドロゴ（見出し内） -------------------- */
.hero__brand {
  display: inline-block;
  line-height: 0;
  padding-top: 10px;
}
.hero__logo {
  display: inline-block;
  vertical-align: middle;
  width: 80%;
}

/* -------------------- 強調テキスト -------------------- */
.hero_highlight {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* -------------------- 右カラム（メトリクス＋画像） -------------------- */
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* 実績ブロック（PC / タブで使用） */
.hero-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: max-content;
}

/* SP用 実績ブロック（左カラム内） */
.hero-metrics--sp {
  display: none; /* デフォルトは非表示（SPで表示） */
  margin: 0 auto 16px;
  justify-content: center;
  place-self: center;
}

/* --- 小項目：メトリクスカード本体 --- */
.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 14px 16px;
}
.metric__label {
  font-size: 20px;
  color: var(--c-text);
  margin-bottom: 6px;
  font-weight: bold;
}

/* 数字＋単位の指定サイズ（PC基準） */
.metric__num {
  font-weight: 800;
  font-size: 40px; /* 30 / 99.9 を 40px */
  line-height: 1.1;
  color: var(--c-accent);
}

/* 単位部分：万人／突破／%／※ */
.metric__unit {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}
.metric__unit-main {
  font-size: 28px; /* 万人 / % */
  line-height: 1.1;
}
.metric__unit-sub {
  font-size: 22px; /* 突破 */
  line-height: 1.1;
  margin-left: 2px;
}
.metric__sup {
  font-size: 12px; /* ※2 / ※3 */
  line-height: 1;
  position: relative;
  top: -0.8em; /* 上付きっぽく */
}

/* 上部の王冠ロゴのサイズを統一 */
.logo_crown {
  display: block;
  margin-bottom: 8px;
  line-height: 0;
}
.logo_crown img {
  display: block;
  height: clamp(20px, 3vw, 32px);
  width: auto;
}

/* 画像スタック（PC＋犬猫／PC版） */
.stack {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 16 / 10;
  margin-top: 16px; /* 見出しとの距離感UP */
  margin-bottom: clamp(40px, 6vw, 72px); /* ★追加：下に十分な余白を作る */
}
.stack__img {
  position: absolute;
  display: block;
  max-width: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}
.stack__pc {
  width: 110%;
  left: 53%;
  top: 2%;
  transform: translateX(-50%);
  z-index: 1;
}
.stack__pet {
  width: 50%;
  right: 0%;
  bottom: -16%;
  z-index: 2;
}

/* SP用スタック（左カラム内のもの） */
.stack--sp {
  display: none; /* SPメディアクエリで表示 */
}

/* -------------------- 注釈（※1〜3） -------------------- */
.metric-notes-section {
  margin-top: 24px;
}
.metric-notes {
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(10px, 1.1vw, 11px);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #4f4f4f;
  text-align: left;

  /* ★PC：横並びにする */
  display: flex;
  gap: 24px;
}
.metric__note {
  margin: 0;
}

/* ★SP：1 行ずつ（縦並び）にする */
@media (max-width: 768px) {
  .metric-notes {
    display: block; /* flex を解除して縦並びに */
  }
  .metric__note {
    display: block;
  }
  .metric__note + .metric__note {
    margin-top: 4px; /* ※1 と ※2 の間の縦余白 */
  }
}

/* =========================================================
  Hero レスポンシブ
========================================================= */

/* --- タブレット以下：2カラム → 1カラム --- */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero__right {
    align-items: center;
  }
  .hero-metrics {
    justify-content: flex-end;
  }
  .stack {
    margin-inline: auto;
  }
  .hero__left {
    text-align: center;
  }
}

/* --- スマホ幅：実績差し替え ＋ 料金カード／ボタン／画像位置調整 --- */
@media (max-width: 640px) {
  .hero.section--pad {
    padding-top: 4px;
  }

  /* ▼ ここを追加：SPでは「料金カード → ボタン」の順にする */
  .hero-actions {
    display: flex; /* 念のため明示（すでにflexならなくてもOK） */
    flex-direction: column;
  }
  .hero-actions .hero-price {
    order: 0; /* 先に表示 */
  }
  .hero-actions .hero__cta {
    order: 1; /* 後に表示 */
  }

  .leadline {
    /* 画面が狭いほど小さく、広いほど14pxまで大きく */
    font-size: clamp(12px, 3.5vw, 14px);
    white-space: nowrap; /* 1行キープ */
  }
  .brand-chip {
    font-size: clamp(12px, 3.5vw, 16px);
    padding: 4px 8px;
  }
  .hero__title {
    /* 18〜24pxの範囲で自動調整 */
    font-size: clamp(18px, 6vw, 24px);
    line-height: 1.3;
    white-space: nowrap; /* ここも1行キープ */
  }
  .hero__lead {
    font-size: 18px;
    margin-bottom: 16px;
  }

  /* ロゴサイズ */
  .hero__logo {
    width: 280px;
  }

  /* 実績：SP では hero-metrics--sp を表示、右カラムの実績は非表示 */
  .hero-metrics--sp {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }
  .hero__right .hero-metrics {
    display: none;
  }

  /* SP用PC画像：left 内 stack--sp を表示、右カラム側は非表示 */
  .stack--sp {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 20px auto 0;
    aspect-ratio: 16/10;
  }
  .stack--sp .stack__pc {
    width: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }
  .stack--sp .stack__pet {
    width: 50%;
    right: 2%;
    bottom: 10%;
  }
  .hero__right .stack {
    display: none;
  }

  /* CTAボタン：全幅・縦並び */
  .hero-actions {
    max-width: 100%;
    margin: 24px auto 0;
  }
  .hero .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* 料金カード：SP用に少しコンパクトに */
  .hero-price {
    gap: 8px;
    padding: 16px 12px;
  }
  .hero-price__left {
    text-align: center;
    white-space: normal;
    font-size: 16px;
  }
  .hero-price__divider {
    width: auto;
    height: 48px;
    margin: 0 4px;
  }
  .hero-price__right {
    justify-content: center;
  }
  .hero-price__label {
    font-size: 16px;
  }
  .hero-price__num {
    font-size: 40px;
  }
  .hero-price__unit {
    font-size: 20px;
  }

  /* 実績カード調整（SP） */
  .metric {
    padding: 10px 12px;
  }
  .metric__label {
    font-size: 14px;
  }
  .metric__num {
    font-size: 32px;
  }
  .metric__unit-main {
    font-size: 18px;
  }
  .metric__unit-sub {
    font-size: 16px;
  }
  .metric__sup {
    top: -0.3em;
  }

  /* スタック画像サイズ */
  .stack {
    width: 100%;
    max-width: 340px;
  }

  /* 注釈は下部に1カラムで */
  .metric-notes {
    padding-inline: 16px;
  }
}

/* =========================================================
  Generic Cards
  概要：汎用カードとバリエーション
========================================================= */
/* -------------------- グリッド -------------------- */
.cards {
  display: grid;
  gap: 20px;
}
.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* -------------------- カード本体 -------------------- */
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 18px;
}
.card--link a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.card__icon {
  font-size: 28px;
}
.card__title {
  margin: 10px 0 6px;
}

/* =========================================================
  Logos
  概要：ロゴの一覧表示
========================================================= */
.logo-list {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.logo-list img {
  height: 36px;
  display: block;
}

/* =========================================================
  Post (single)
  概要：単一記事ページの要素
========================================================= */
.post__title {
  margin-top: 0;
}
.post__thumb img {
  border-radius: var(--radius);
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
  Footer（汎用シンプル版）
  概要：別ページなどで使うシンプルフッター
========================================================= */
.simple-footer {
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 24px 0;
  margin-top: 40px;
}

/* =========================================================
  Scroll Reveal
  概要：スクロール時のフェードイン演出
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
  CASE LIST (Archive)
  概要：事例一覧のカードUI
========================================================= */
/* -------------------- 旧スタイル（残す場合） -------------------- */
.case-grid .card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* -------------------- 新カードUI -------------------- */
.case-grid {
  gap: 24px;
}
.case-card {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.case-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.case-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.case-card__body {
  padding: 16px 16px 8px;
}
.case-card__title {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.case-card__meta {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 13px;
}
.case-card__excerpt {
  margin: 0;
  color: #374151;
  font-size: 14px;
}
.case-card__footer {
  padding: 12px 16px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #2563eb;
}
.case-card__more {
  font-weight: 600;
}
.case-card__chev {
  flex: 0 0 auto;
}
.case-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* =========================================================
  Pagination
  概要：ページネーション（数字型含む）
========================================================= */
.pager {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.pager .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
}
.pager .current {
  background: #333;
  color: #fff;
  border-color: #333;
}
/* 数字型の見た目 */
.pager--numbers .page-numbers {
  min-width: 36px;
  margin: 0 4px;
  border-color: #e5e7eb;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
}
.pager--numbers .page-numbers:hover {
  background: #f3f4f6;
}
.pager--numbers .current {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 600;
}

/* =========================================================
  Responsive
  概要：ブレークポイント別の崩し
========================================================= */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__right {
    align-items: center;
  }
  .hero-metrics {
    margin: 8px 0 0;
  }
  .cards--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cards--3 {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
  導入メリットセクション
========================================================= */

/* ==== セクション全体 ==== */
.pp-intro {
  --pp-bg: #eef5fb;
  --pp-navy: #0457a7;
  --pp-deep: #0f3b58;
  --pp-text: #1a1a1a;
  --pp-white: #fff;
  --pp-radius: 16px;

  position: relative;
  background: var(--pp-bg);
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 84px);
}

/* ==== コンテナ ==== */
.pp-intro .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==== 見出し ==== */
.pp-intro__title {
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
  font-size: clamp(20px, 2.4vw, 32px);
  color: var(--pp-deep);
  letter-spacing: 0.02em;
  margin: 0 0 28px;
  position: relative;
  z-index: 1; /* 足跡より前 */
}
.pp-intro__title-accent {
  color: var(--pp-navy);
  font-weight: 800;
}

/* ==== グリッド ==== */
.pp-intro__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 幅を必ず揃える */
  gap: 24px;
  position: relative;
  z-index: 1; /* 足跡より前 */
}

@media (max-width: 900px) {
  .pp-intro__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==== カード ==== */
.pp-intro__card {
  position: relative;
  background: var(--pp-white);
  border-radius: var(--pp-radius);
  box-shadow: 0 6px 18px rgba(15, 59, 88, 0.08);
  padding: clamp(20px, 3.5vw, 28px);
  text-align: center;
  width: 100%;
}

@media (max-width: 900px) {
  .pp-intro__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-align: left;
  }
}

/* ==== アイコン ==== */
.pp-intro__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--pp-navy);
}
.pp-intro__check {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* SPではチェックマークを小さく */
@media (max-width: 900px) {
  .pp-intro__icon {
    margin: 0;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
  }
  .pp-intro__check {
    width: 18px;
    height: 18px;
  }
}

/* ==== テキスト ==== */
.pp-intro__text {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.9;
  color: var(--pp-deep);
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 「ご年配の〜」はPCでは1行、SPは折り返しOK */
@media (min-width: 901px) {
  .pp-intro__text-line {
    white-space: nowrap;
  }
}

/* カード1：PC / SP で文言切り替え */
.pp-intro__text-sp {
  display: none;
}
@media (max-width: 680px) {
  .pp-intro__text-pc {
    display: none;
  }
  .pp-intro__text-sp {
    display: inline;
  }
}

/* ==== レーティング ==== */
.pp-intro__rate-row {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
}

/* 「iPhone＋★」「Android＋★」をひとかたまりに */
.pp-intro__rate-group {
  display: inline-block;
  white-space: nowrap; /* グループ内では改行させない */
  margin-right: 12px; /* iPhone と Android の間隔 */
}

.pp-intro__rate-os {
  font-weight: 700;
  color: var(--pp-deep);
  font-size: 17px;
}

.pp-intro__rate-star {
  font-weight: 800;
  color: #e85188;
  margin-left: 2px;
}

.pp-intro__rate-row sup {
  font-size: 60%;
  vertical-align: super;
}

/* ==== 注記（カード外・右下） ==== */
.pp-intro__note {
  font-size: 12px;
  color: #6b7b8c;
  margin: 8px 0 0;
  text-align: right;
}

/* ==== 足あと画像 ==== */
.pp-intro__fp {
  position: absolute;
  top: clamp(6px, 1.8vw, 18px);
  right: clamp(6px, 1.8vw, 18px);
  width: clamp(56px, 8vw, 96px);
  transform: rotate(12deg);
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  z-index: 0; /* 見出し・カードより奥 */
}

@media (max-width: 680px) {
  .pp-intro__fp {
    width: 64px;
    opacity: 0.85;
  }
}

/* =========================================================
  説明ブロック（explanation）
========================================================= */

/* ==== 変数 ==== */
:root {
  --exp-text: #0f172a; /* 文字色 */
  --exp-muted: #475569; /* 補助文字色 */
  --exp-bg: #ffffff; /* 背景色 */
  --exp-accent: #0457a7; /* アクセント色（強調文字） */

  --exp-h2: clamp(1.4rem, 1.05rem + 1.6vw, 2.2rem);
  --exp-h3: clamp(1.1rem, 0.95rem + 0.7vw, 1.6rem);
  --exp-body: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);

  --exp-max: 1120px;
  --exp-pad-y: clamp(40px, 6vw, 80px);
  --exp-gap: clamp(16px, 3vw, 32px);
}

/* ==== SP用 改行ユーティリティ ==== */
.u-br-sp {
  display: none;
}

/* ==== ベース ==== */
.explanation {
  background: var(--exp-bg);
  color: var(--exp-text);
  padding-block: var(--exp-pad-y);
}

.explanation__container {
  width: min(100% - 32px, var(--exp-max));
  margin-inline: auto;
  text-align: center;
  display: grid;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  row-gap: var(--exp-gap);
}

/* ==== タイトル（上テキスト） ==== */
.explanation__title {
  margin: 0 0 12px;
  font-size: 14px; /* SP：1行目 14px */
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
  text-wrap: balance;
}

/* 2行目（強調部分） */
.explanation__title .is-strong {
  display: block; /* 強制改行 */
  margin-top: 4px;
  font-size: 20px; /* SP：2行目 20px */
  font-weight: 800;
}

/* アクセント部分だけ青に */
.explanation__title .is-accent {
  color: var(--exp-accent);
  font-weight: inherit;
}

/* ==== 中央イメージ ==== */
.explanation__figure {
  margin: 0;
  width: 100%;
  display: flex;
  text-align: -webkit-center;
}

.explanation__img {
  display: block;
  width: min(960px, 100%);
  height: auto;
  /* image-rendering: -webkit-optimize-contrast; */
}

/* ==== サブタイトル（下テキスト） ==== */
.explanation__subtitle {
  margin: 0;
  font-size: var(--exp-h3);
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-wrap: balance;
  color: var(--exp-text);
}

/* 下の文は全体太字 */
.explanation .is-strong {
  font-weight: 800;
}

/* サブタイトルのサイズ（SP：24px） */
.explanation__subtitle.is-strong {
  font-size: 24px;
}

/* サブタイトル内のアクセント（色のみ変更） */
.explanation__subtitle .is-accent {
  color: var(--exp-accent);
  font-weight: inherit;
}

/* ==== 補助 ==== */
.explanation + * {
  scroll-margin-top: 80px;
}

/* =========================================================
  レスポンシブ
========================================================= */

/* ---- SP専用（〜767px） ---- */
@media (max-width: 767px) {
  .u-br-sp {
    display: inline; /* 指定位置でのみ改行させる */
  }

  .explanation__container {
    width: min(100% - 24px, var(--exp-max));
  }
}

/* ---- タブレット以上（768px〜） ---- */
@media (min-width: 768px) {
  .u-br-sp {
    display: none; /* PCでは改行しない */
  }

  .explanation__title {
    font-size: 24px; /* 1行目を大きめに */
    line-height: 1.5;
    letter-spacing: 0.01em;
  }

  .explanation__title .is-strong {
    font-size: 32px; /* 2行目 既存デザインに近いサイズ */
  }

  .explanation__subtitle {
    letter-spacing: 0.01em;
    font-size: var(--exp-h3);
  }

  .explanation__subtitle.is-strong {
    font-size: 28px; /* PC時は少し控えめに強調 */
  }
}

/* ---- ワイド（1200px〜） ---- */
@media (min-width: 1200px) {
  .explanation {
    --exp-pad-y: 96px;
  }
}

/* =========================================================
  フローティングCTA（右下固定帯） 全体
========================================================= */
.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 420px;
  width: calc(100% - 24px);
  background: #fff;
  color: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  z-index: 9999;
  padding: 4px 8px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  box-sizing: border-box;
}

/* ==== 内側レイアウト（上：ボタン／下：料金） ==== */
.floating-cta__inner {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 10px;
}

/* ==== 初期状態（非表示） ==== */
.floating-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* ==== 表示状態 ==== */
.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================================================
  上段：ボタン 2 つ（画像の pill ボタン）
========================================================= */
/* 上段：ボタンエリア */
.floating-cta .hero__cta {
  display: flex; /* grid → flex に変更 */
  justify-content: center; /* 全体を中央寄せ */
  gap: 10px;
  flex-wrap: wrap; /* 画面が狭い時は折り返し */
}

.floating-cta .hero__cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 150px; /* ★ ここで幅固定 */
  padding: 11px 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.floating-cta .hero__cta .btn__icon {
  width: 18px;
  height: 18px;
}

.floating-cta .hero__cta .btn--primary {
  background: #1c74d9;
  color: #fff;
}

.floating-cta .hero__cta .btn--accent {
  background: #e85188;
  color: #fff;
}

/* =========================================================
  下段：料金行
  左：2 行テキスト｜縦仕切り｜右：月額 7,000 円〜
========================================================= */
.floating-cta .hero-price {
  display: flex; /* ← grid から flex に変更 */
  align-items: center;
  justify-content: center; /* 全体を中央に */
  gap: 12px; /* 要素間の余白 */
  width: 100%;

  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 左テキスト（初期費用無料／解約金なし） */
.floating-cta .hero-price__left {
  display: grid;
  gap: 2px;
  line-height: 1.3;
}
.floating-cta .hero-price__left p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

/* 仕切り線画像 */
.floating-cta .hero-price__divider {
  width: auto; /* SVG 幅に任せる */
  height: 38px; /* 画像の縦サイズを少し強調 */
}

/* 右側：価格ブロック */
.floating-cta .hero-price__right {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
}

.floating-cta .hero-price__label {
  font-size: 20px;
  transform: translateY(-2px); /* 7,000 の上目に合わせる */
}

.floating-cta .hero-price__num {
  font-weight: 800;
  font-size: 44px;
  color: #e85188;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* （税抜）と 円〜 を縦に配置 */
.floating-cta .hero-price__yen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.floating-cta .hero-price__note {
  font-size: 11px;
  color: #777;
  transform: translateY(-2px);
}
.floating-cta .hero-price__unit {
  font-size: 18px;
  font-weight: 700;
}

/* =========================================================
  レスポンシブ（SP 幅調整）
========================================================= */
@media (max-width: 480px) {
  .floating-cta {
    right: 8px;
    bottom: 10px;
    max-width: 360px;
    padding: 10px 12px;
  }
  .floating-cta .hero-price__num {
    font-size: 44px;
  }
  .floating-cta .hero-price__unit {
    font-size: 16px;
  }
}

/* =========================================================
  導入病院様の声（トップセクション）
========================================================= */
.voices {
  background: #e7f1fb; /* セクション薄青 */
  border-radius: 12px;
}
.voices .section__title {
  text-align: center;
  margin: 0 0 28px;
  font-size: 48px;
}

/* ==== カード一覧 ==== */
/* ★ Grid をやめて Flex でセンタリング */
.voice-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 横方向中央寄せ */
  gap: 17px;
  max-width: 1120px; /* 全体の最大幅 */
  margin: 0 auto; /* セクション内で中央寄せ */
}

/* SP では必ず1列にする */
@media (max-width: 768px) {
  .voice-cards {
    flex-direction: column; /* 縦並び */
    align-items: center; /* カードを中央寄せ */
  }

  .voices .section__title {
    text-align: center;
    margin: 0 0 28px;
    font-size: 28px;
  }
}

/* ==== カード（トップ用） ==== */
.voices .voice-card {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(16, 58, 88, 0.12);
  overflow: hidden;
  width: 280px; /* ★ 元のカードサイズを維持 */
  max-width: 100%; /* 画面が狭いときは縮む */
  text-align: -webkit-left;
  text-align: left;
}

.voices .voice-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.voices .voice-card__media {
  aspect-ratio: 16 / 9;
  background: #f2f4f7;
  overflow: hidden;
}
.voices .voice-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.voices .voice-card__body {
  padding: 16px;
}
.voices .voice-card__title {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
  margin: 0 0 12px;
  color: #0f3b58;
}
.voices .voice-card__meta {
  font-size: 13px;
  color: #4b5563;
  margin: 0 0 12px;
}

/* ==== タグ（チップ） ==== */
.voice-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chip {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 10px 12px;
  border-radius: 999px;
  background: #f3f7ff;
  border: 1px solid #d6e3ff;
  color: #1f3a5f;
  max-width: 100%; /* 画面幅以上に広がらない */
  white-space: normal; /* 1行固定をやめて折り返しを許可 */
  overflow-wrap: anywhere; /* スペースがなくても途中で折り返す */
}

/* ==== ボタン（下部：トップセクション専用） ==== */
.voices .center {
  text-align: center;
  margin-top: 28px;
}
.voices .btn--primary {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background: #2f6eeb;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(47, 110, 235, 0.25);
}
.voices .btn--lg {
  font-size: 16px;
}

/* =========================================================
   5つの理由セクション (#five-reasons)
========================================================= */

/* トークン */
#five-reasons {
  --reasons-max: 1100px;
  --reasons-gap: 48px;

  /* 色 */
  --c-num: #d9e8f8;
  --c-text: #1a1a1a;
  --c-accent: #0457a7;
  --c-brand-blue: #2f66b3;
}

/* コンテナ */
#five-reasons .reasons__container {
  width: min(100%, var(--reasons-max));
  margin-inline: auto;
  padding-inline: 40px;
  text-align: center; /* 見出しは中央 */
}

/* サブ見出し「ペットPASSが選ばれる 5つの理由」 */
#five-reasons .reasons__lead {
  margin: 0 0 28px;
  text-align: center;
  font-weight: 700;
  font-size: 32px; /* PC 基準：1行目 */
  line-height: 1.6;
  letter-spacing: 0.02em;
}

#five-reasons .reasons__lead-strong {
  display: block;
  margin-top: 4px;
  font-size: 48px; /* PC 基準：2行目 */
  font-weight: 800;
}

/* 行（左右2カラム固定） */
#five-reasons .reasons__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--reasons-gap);
  margin-block: clamp(28px, 6vw, 64px);
}

#five-reasons .reasons__item.is-reverse {
  direction: rtl; /* PC 時だけ左右反転したいので、SP は下のメディアクエリで打ち消し */
}

#five-reasons .reasons__item.is-reverse > * {
  direction: ltr;
}

/* カラム内のコンテンツが幅を主張しても崩れない保険 */
#five-reasons .reasons__media,
#five-reasons .reasons__body {
  min-width: 0;
}

/* 画像 */
#five-reasons .reasons__media {
  display: grid;
  place-items: center;
}

#five-reasons .reasons__media img {
  width: 100%;
  height: auto;
  max-width: 520px;
}

/* 本文側 */
#five-reasons .reasons__body {
  position: relative;
  text-align: left; /* 本文は PC / SP とも左揃え */
}

/* 大きい番号「01」など */
#five-reasons .reasons__num {
  position: absolute;
  top: -140px;
  left: 0;
  font-size: 170px; /* PC 基準 */
  line-height: 1;
  font-weight: 800;
  color: rgba(212 234 255);
  z-index: 0;
}

/* 共通テキスト */
#five-reasons .reasons__text {
  font-size: 20px;
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.9;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

/* 上テキスト（「未来の〜」「順番が近づくと〜」など） */
#five-reasons .reasons__text--small {
  margin-top: -16px; /* 01 と少し重ねる */
}

/* 下テキスト（青で強調） */
#five-reasons .reasons__text--em {
  color: var(--c-brand-blue);
  font-weight: 800;
  font-size: 26px;
}

/* 区切りベクター */
#five-reasons .reasons__divider {
  margin: 8px 0 12px;
  line-height: 0;
}

#five-reasons .reasons__divider img {
  width: clamp(200px, 32vw, 320px);
  height: auto;
}

/* =========================================================
   レスポンシブ
========================================================= */

/* タブレット以下：縦積み ＋ reverse を解除 */
@media (max-width: 960px) {
  #five-reasons {
    --reasons-gap: 28px;
  }

  #five-reasons .reasons__item {
    grid-template-columns: 1fr; /* 1 カラム縦積み */
  }

  #five-reasons .reasons__item.is-reverse {
    direction: ltr; /* 反転を解除 */
  }

  #five-reasons .reasons__item.is-reverse > * {
    direction: ltr;
  }

  #five-reasons .reasons__media img {
    max-width: 420px;
  }
}

/* スマホ（画像のデザイン準拠） */
@media (max-width: 560px) {
  /* 見出し：ペットPASSが選ばれる／5つの理由 */
  #five-reasons .reasons__lead {
    font-size: 20px;
    margin-bottom: 20px;
  }

  #five-reasons .reasons__lead-strong {
    font-size: 28px;
  }

  #five-reasons .reasons__item {
    margin-block: 40px;
  }

  #five-reasons .reasons__media img {
    max-width: 360px;
  }

  /* 番号「01〜05」：80px */
  #five-reasons .reasons__num {
    font-size: 80px;
    top: -70px;
  }

  /* 上テキスト（黒）だけ 20px にする */
  #five-reasons .reasons__text--small {
    font-size: 20px;
  }

  /* 下テキスト（青）は 28px に固定 */
  #five-reasons .reasons__text--em {
    font-size: 28px;
  }

  /* 区切り画像：本文ブロック幅にフィット */
  #five-reasons .reasons__divider img {
    width: 100%;
    max-width: none;
  }

  /* 01 の青テキストの <br> を念のため無効化 */
  #five-reasons .reasons__item .reasons__text--em br {
    display: none;
  }
}

/* PC のときだけ、02・04（is-reverse）の本文ブロックを少し右に寄せる */
@media (min-width: 961px) {
  #five-reasons .reasons__item.is-reverse .reasons__body {
    margin-left: 80px; /* お好みで 40〜120px くらいで微調整してください */
  }
}

/* =========================================================
   人気機能例セクション
========================================================= */
/* ==== 人気機能例セクション：土台 ==== */
.features {
  background: var(--c-section-bg, #eaf2fb);
}
.features .container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
  text-align: center;
}

/* ==== SP/PC用 改行ユーティリティ ==== */
/* SPでだけ改行させたい */
.u-br-sp {
  display: none;
}
/* PCでだけ改行させたい */
.u-br-pc {
  display: block;
}

/* ==== サブ見出し ==== */
.features__kicker {
  margin: 8px 0 0;
  font-size: clamp(16px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--c-text, #14161a);
}
.features__title {
  margin: 8px 0 24px;
  font-size: clamp(26px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-text, #14161a);
}

/* ==== グリッド ==== */
.features__grid {
  --gap: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* タブレット以下：3列 */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==== カード（アイコン＋テキストを含む“全体を正方形”） ==== */
.feature-card {
  aspect-ratio: 1 / 1; /* 正方形固定 */
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(17, 31, 62, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.2vw, 20px);
  text-align: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(17, 31, 62, 0.13);
}

/* アイコン（カード面積に対する比率で可変） */
.feature-card__thumb {
  width: 64%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}
.feature-card__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ラベル */
.feature-card__label {
  margin: 0;
  font-weight: 700;
  font-size: clamp(12px, 1.8vw, 14px);
  line-height: 1.3;
  color: var(--c-text, #14161a);
  padding-inline: 6px; /* 折返し時の余白 */
  display: -webkit-box; /* 2行までで省略（長い文言対策） */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* ★追加：ラベル部分の高さを2行分に固定してカードの高さを揃える */
  min-height: calc(1.3em * 2); /* line-height × 2行 */
}

/* ==== CTA ==== */
.features__cta {
  text-align: center;
  margin: 32px 0 0;
  font-size: clamp(14px, 2.6vw, 30px);
  line-height: 1.8;
  color: var(--c-text, #14161a);
}
.features__cta-strong {
  color: var(--c-blue, #3a73c9);
  font-weight: 800;
}

/* ==== SPレイアウト調整（目安：～600px） ==== */
@media (max-width: 600px) {
  /* 改行ユーティリティ */
  .u-br-sp {
    display: block; /* SPでだけ改行 */
  }
  .u-br-pc {
    display: none; /* SPでは改行しない */
  }

  /* 見出しの指定サイズ */
  .features__kicker {
    font-size: 20px; /* 診察以外の業務を / 徹底的に効率化！ */
    line-height: 1.5;
  }
  .features__title {
    font-size: 28px; /* ペットPASSの / 人気機能例 */
    line-height: 1.4;
  }

  /* グリッド：SPも3列にする */
  .features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* CTAテキスト */
  .features__cta {
    font-size: 24px; /* 「貴院に合わせた機能～」 */
    line-height: 1.6;
  }
}

/* =========================================================
   サポートセクション
========================================================= */

/* ==== サポートセクション全体 ==== */
.support {
  background-color: var(--c-bg, #d7e8f8);
  padding: 80px 0;
}

/* ==== 見出し ==== */
.support__title {
  text-align: center;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 56px;
  font-size: 1.8rem;
}

/* 「初めて受付システムを導入される病院様も」 */
.support__lavel {
  display: inline-block;
  color: var(--c-text, #1a1a1a);
  font-size: 32px;
}

/* 「安心のサポート体制！」 */
.support__highlight {
  display: inline-block;
  font-size: 48px;
  color: var(--c-text, #1a1a1a);
  font-weight: 800;
}

.support__block {
  margin-bottom: 64px;
}

/* ==== 吹き出し共通 ==== */
.supportBalloon {
  position: relative;
  background: var(--c-neybee, #0457a7);
  color: #fff;
  border-radius: 16px;
  overflow: visible;
  padding: 0; /* 個別で指定 */
}

.supportBalloon__label {
  display: inline-block;
  background: #fff;
  color: var(--c-neybee, #0457a7);
  font-weight: 800;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 18px;
  margin: 0 0 16px;
  width: 90px;
}

.supportBalloon__text {
  margin: 0;
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: 0.02em;
  font-size: clamp(1.25rem, 1.8vw + 0.9rem, 28px);
}

.supportBalloon__illust {
  position: absolute;
  right: 24px;
  pointer-events: none;
}

.supportBalloon__illust img {
  width: 100%;
  height: auto;
  display: block;
}

.supportBalloon__tail {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  display: block;
}

/* ==== 吹き出し：ブロック01 ==== */
.supportBalloon--01 {
  padding: 44px 280px 48px 48px;
}
.supportBalloon--01 .supportBalloon__illust {
  top: -22px;
  width: 240px;
}
.supportBalloon--01 .supportBalloon__tail {
  left: 88px;
  bottom: -22px;
  border-width: 22px 18px 0 18px;
  border-color: var(--c-neybee, #0457a7) transparent transparent transparent;
}

/* ==== 吹き出し：ブロック02 ==== */
.supportBalloon--02 {
  padding: 44px 280px 48px 48px;
}
.supportBalloon--02 .supportBalloon__illust {
  top: -18px;
  width: 246px;
}
.supportBalloon--02 .supportBalloon__tail {
  left: 104px;
  bottom: -22px;
  border-width: 22px 18px 0 18px;
  border-color: var(--c-neybee, #0457a7) transparent transparent transparent;
}

/* ==== 回答カード共通 ==== */
.supportCard {
  margin-top: 32px;
  background: #fff;
  border-radius: var(--radius, 14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.supportCard__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 40px 32px;
}

.supportCard__tag {
  display: inline-block;
  background: var(--c-neybee, #0457a7);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 18px;
  margin-bottom: 18px;
}

.supportCard__title {
  font-size: clamp(1.35rem, 1.2vw + 1rem, 28px);
  font-weight: 800;
  line-height: 1.5;
  margin: 6px 0 18px;
  color: var(--c-text, #1a1a1a);
}

.supportCard__desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text, #1a1a1a);
  margin: 0;
}

.supportCard__image img {
  width: 100%;
  max-width: 560px;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* ==== ブロック02：レイアウト（左テキスト／右アイコン／下ピル） ==== */
.supportCard__inner--02 {
  grid-template-columns: 1.1fr 1fr;
  grid-template-areas:
    "text  icons"
    "pill  pill";
}
.supportCard__text--02 {
  grid-area: text;
}

/* ==== ブロック02：アイコン群 ==== */
.supportIcons {
  grid-area: icons;
  margin: 6px 0 8px;
  display: grid;
  grid-template-columns: repeat(2, 220px);
  gap: 40px;
  align-items: start;
  justify-content: start;
}

.supportIcon {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.supportIcon__caption {
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  min-height: 2.8em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 18px;
}

.supportIcon__circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #eef3f9;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.supportIcon__circle img {
  width: 88%;
  height: auto;
  display: block;
}

/* ==== ブロック02：横長ピル（リンク：PC用） ==== */
.supportPill {
  grid-area: pill;
  position: relative;
  display: grid; /* ← 2カラムグリッドにする */
  grid-template-columns: 1fr auto; /* 左：テキスト / 右：ボタン */
  align-items: center;
  column-gap: 24px;
  margin-top: 22px;
  padding: 18px 32px 18px 150px; /* 左はスマホ + 余白ぶん広め */
  background: #e8f3ff;
  border-radius: 9999px;
  text-decoration: none;
  color: inherit;
}

/* ピル全体の影 */
.supportPill--raised {
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

/* 縦線も ::after も使わない（縦線削除） */
.supportPill--raised::before,
.supportPill--raised::after {
  content: none;
}

/* 左のスマホ画像（上に飛び出す） */
.supportPill__media {
  width: 80px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.supportPill--raised .supportPill__media {
  position: absolute;
  left: 40px;
  top: -20px; /* 少しだけ上に出す */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.supportPill__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 中央のテキスト（グリッド1列目） */
.supportPill__text {
  grid-column: 1 / 2;
  margin: 0;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.7;
  text-align: center; /* ← 中央揃え */
}

/* 右側まとめ：テキスト＋ボタンを横並びに */
.supportPill__right {
  display: flex;
  align-items: center;
  gap: 24px; /* テキストとボタンの間隔 */
  width: 100%;
}

/* 右端の「詳しく見る」ボタン（グリッド2列目・丸・文字中央） */
.supportPill__cta {
  grid-column: 2 / 3;
  justify-self: end; /* 右寄せ */
  display: flex;
  align-items: center;
  justify-content: center; /* ボタン内の文字中央 */
  width: 72px;
  height: 72px;
  background: #2e77c9;
  color: #fff;
  border-radius: 50%; /* 丸 */
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 6px 16px rgba(46, 119, 201, 0.45);
  text-align-last: center;
}

/* =========================================================
   レスポンシブ
========================================================= */

/* タブレット程度までの調整 */
@media (max-width: 1024px) {
  .supportBalloon--01,
  .supportBalloon--02 {
    padding: 36px 240px 40px 32px;
  }
  .supportBalloon--01 .supportBalloon__illust {
    width: 210px;
    top: -18px;
    right: 16px;
  }
  .supportBalloon--02 .supportBalloon__illust {
    width: 220px;
    top: -14px;
    right: 16px;
  }
}

/* ===== SP（デザイン指定どおり） ===== */
@media (max-width: 820px) {
  /* ===== セクション全体 ===== */
  .support {
    padding: 56px 0 64px;
  }

  /* ===== 見出し ===== */
  .support__lavel {
    font-size: 20px; /* 初めて受付システムを導入される病院様も */
  }
  .support__highlight {
    font-size: 28px; /* 安心のサポート体制！ */
  }

  .spOnly {
    display: inline;
  }

  /* ===== 吹き出し（共通・SP） ===== */
  .supportBalloon--01,
  .supportBalloon--02 {
    /* 左：テキスト（ラベル＋本文）／右：イラスト */
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 20px 20px 32px 20px;
  }

  /* ★ ラベル＆本文は 1 列目に縦積みで固定 */
  .supportBalloon__label,
  .supportBalloon__text {
    grid-column: 1 / 2;
    text-align: left;
  }

  .supportBalloon__label {
    font-size: 16px; /* 「心配…」 */
    padding: 6px 14px;
    margin: 0 0 12px;
  }

  .supportBalloon__text {
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.02em;
  }

  /* 「今まで紙の受付表を…」などの <br> は SP では無効にして 1 行扱い */
  .supportBalloon__text br {
    display: none;
  }

  /* ★ イラストは 2 列目・1〜2 行目に配置して右下に収める */
  .supportBalloon__illust {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    width: 100%;
    max-width: 140px; /* 吹き出し内に収まるサイズ */
    margin: 8px 0 0 auto; /* 右寄せ */
    position: static;
    pointer-events: none;
  }
  .supportBalloon__illust img {
    width: 100%;
    height: auto;
    display: block;
  }

  .supportBalloon__tail {
    left: 48px;
    bottom: -18px;
    border-width: 18px 14px 0 14px;
  }

  /* ===== 回答カード（共通） ===== */
  .supportCard__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 20px;
  }

  .supportCard__tag {
    font-size: 16px; /* 「大丈夫！」 */
    padding: 8px 14px;
    margin-bottom: 14px;
  }

  .supportCard__title {
    font-size: 24px; /* 「スターターキットをご用意！」など */
    margin: 4px 0 14px;
  }

  .supportCard__desc {
    font-size: 14px;
    line-height: 1.8;
  }

  /* ブロック02のレイアウト：縦積み */
  .supportCard__inner--02 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "icons"
      "pill";
  }

  /* ===== アイコン2つ（ブロック02） ===== */
  .supportIcons {
    grid-area: icons;
    margin: 8px 0 4px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
    justify-content: center;
  }

  .supportIcon__caption {
    min-height: 3em;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0 0 8px;
  }

  .supportIcon__circle {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  /* ===== 飼い主様向けホームページピル（下部ボタン） ===== */

  /* 外枠：左 media / 右（テキスト＋ボタン） */
  .supportPill {
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-areas: "media right";
    column-gap: 12px;
    align-items: center;
    border-radius: 9999px;
    background: #e8f3ff;
  }

  .supportPill--raised {
    margin-left: 0;
    margin-right: 0;
    position: static;
    padding-left: 18px;
  }

  .supportPill--raised::before,
  .supportPill--raised::after {
    display: none;
    content: none;
  }

  /* 左スマホ画像 */
  .supportPill--raised .supportPill__media {
    grid-area: media;
    position: static;
    width: 52px;
    height: 76px;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: grid;
    place-items: center;
  }

  /* 右側まとめ（縦方向に中央寄せ） */
  .supportPill__right {
    grid-area: right;
    display: flex;
    flex-direction: column;
    align-items: center; /* ← 中央揃え */
    gap: 6px;
    width: 100%;
  }

  .supportPill__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }

  .supportPill__cta {
    height: auto;
    width: 100%; /* 右カラムいっぱい */
    padding: 6px 0;
    border-radius: 9999px;
    background: #2e77c9;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center; /* ボタン内も中央 */
    box-shadow: 0 2px 6px rgba(46, 119, 201, 0.45);
  }

  .supportPill__cta br {
    display: none;
  }
}

/* PC では spOnly 非表示 */
@media (min-width: 821px) {
  .spOnly {
    display: none;
  }
}

/* =========================================================
   3STEP セクション（整理済み・完全版）
========================================================= */

/* ==== セクション全体 ==== */
.steps {
  background: #fff;
}
.steps .container,
.steps__inner.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

/* ==== 見出し（PC/Tab 基本） ==== */
.steps__title {
  text-align: center;
  font-size: 26px; /* お申し込みから */
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 40px;
  color: #000;
}
.steps__title span {
  font-size: 30px; /* 最短5日で運用開始！ */
  color: #000;
}

/* ==== グリッド（カード3枚＋矢印） ==== */
.steps__grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: stretch;
  gap: 16px;
}
@media (max-width: 900px) {
  .steps__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==== 矢印（PC: 右向き / SP: 下向き） ==== */
.steps__arrow {
  position: relative;
  align-self: center;
  width: 40px;
  height: 40px;
}
.steps__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 16px solid #0f3b58; /* 右向き */
}
@media (max-width: 900px) {
  .steps__arrow {
    height: 18px;
    width: 100%;
  }
  .steps__arrow::before {
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid #0f3b58; /* 下向き */
    border-bottom: none;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ==== カード（PC/Tab 基本） ==== */
.step-card {
  background: var(--c-bg);
  border-radius: 10px;
  padding: 28px 22px 22px;
  box-shadow: 0 8px 20px rgba(15, 59, 88, 0.12);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
@media (max-width: 900px) {
  .step-card {
    min-height: 480px;
  }
}

/* ==== STEPバッジ（PC/Tab 基本） ==== */
.step-card__badge {
  font-weight: 800;
  color: #2d66c3;
  letter-spacing: 0.06em;
  text-align: center;
  margin: 0 0 14px;
  font-size: 33px;
}

/* ==== イラスト（PC/Tab 基本） ==== */
.step-card__illustration {
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  height: 150px; /* 3つのうち一番背が高いイラストに合わせて調整 */
}
.step-card__illustration img {
  width: 120px;
  height: auto;
  display: block;
}

/* ==== タイトル・本文（PC/Tab 基本） ==== */
.step-card__title {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 6px 0 10px;
  color: #0f3b58;
  text-align: left;
}
.step-card__desc {
  font-size: 16px;
  line-height: 1.9;
  color: #1a1a1a;
  margin: 0 0 18px;
  flex: 1 1 auto; /* CTA を下へ押し下げる */
  text-align: left;
}

/* ==== CTA（PC/Tab 基本） ==== */
.step-card__cta {
  margin-top: auto;
  display: flex;
  justify-content: center;
  text-align: center;
}

/* ==== 下：補足テキスト（PC/Tab 基本） ==== */
.steps__foot {
  text-align: center;
  margin-top: 40px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.8;
  color: #0f3b58;
}
.steps__foot span {
  color: #2d66c3;
}

/* =========================================================
   SP（～560px）上書き：最後に配置して確実に適用
========================================================= */
@media (max-width: 560px) {
  /* 見出し（SP） */
  .steps__title {
    font-size: 20px; /* お申し込みから */
    line-height: 1.5;
    margin-bottom: 24px;
  }
  .steps__title span {
    font-size: 28px; /* 最短5日で運用開始！ */
  }

  /* カード：バッジ中央 → 左：画像 / 右：テキスト */
  .step-card {
    display: grid; /* flex → grid */
    grid-template-columns: 110px 1fr; /* 左：画像 / 右：テキスト */
    grid-auto-rows: auto;
    column-gap: 14px;
    row-gap: 8px;
    padding: 20px 16px;
    min-height: 0; /* 可変 */
    box-shadow: 0 6px 14px rgba(15, 59, 88, 0.12);
  }

  /* バッジ：一番上・中央 */
  .step-card__badge {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0 0 6px;
    font-size: 24px;
  }

  /* イラスト：左カラム縦中央 */
  .step-card__illustration {
    grid-column: 1 / 2;
    grid-row: 2 / span 3;
    margin: 0;
    align-self: center; /* ← 縦中央 */
    display: grid;
    place-items: center;
  }
  .step-card__illustration img {
    height: auto;
  }

  /* タイトル / 本文（字間を少し詰める） */
  .step-card__title {
    grid-column: 2 / -1;
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 6px;
    text-align: left;
  }
  .step-card__desc {
    grid-column: 2 / -1;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: -0.02em; /* ← 字間を狭める */
    margin: 0 0 10px;
    text-align: left;
    flex: initial; /* 旧 flex の影響を解除 */
  }

  /* CTA：ボタンをカード内で余白を持たせつつ中央揃え */
  .step-card__cta {
    grid-column: 1 / -1;
    margin-top: 12px;
    display: flex;
    justify-content: center; /* ボタンを中央寄せ */
    text-align: center;
  }

  .step-card__cta .btn {
    display: inline-flex; /* ← アイコン＋テキストを中央揃え */
    align-items: center;
    justify-content: center;
    width: calc(100% - 32px); /* ← 左右16pxずつの余白 */
    max-width: 100%;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 9999px;
    text-align: center;
  }

  /* 矢印：厳密に中央 */
  .steps__arrow {
    height: 18px;
    width: 100%;
    margin: 2px 0 6px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .steps__arrow::before {
    content: "";
    position: static;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid #0f3b58;
    transform: none;
  }

  /* 下：補足テキスト（SPは24px） */
  .steps__foot {
    font-size: 24px !important; /* ← 読み込み順対策の保険 */
    line-height: 1.6;
    margin-top: 28px;
  }
}

/* =========================================================
   よくある質問セクション
========================================================= */
/* ==== FAQ セクション全体 ==== */
.faq {
  background-color: #0457a7;
  padding: 80px 0;
}

/* 横幅だけを制御（背景は付けない） */
.faq .container {
  max-width: 900px;
  margin: 0 auto;
}

/* 上部ヘッダー（青背景の上に表示） */
.faq__header {
  text-align: center;
  margin-bottom: 32px;
}

.faq__title {
  font-size: 48px;
  font-weight: 700;
  color: #fff; /* 白文字 */
  margin: 0;
}

.faq__header .section-label {
  color: #fff;
}

/* 白いカード部分 */
.faq__card {
  background: #fff;
  border-radius: 16px;
  padding: 60px 40px;
}

/* 以下、既存スタイルはほぼそのままでOK */
.faq__category {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
}

:root {
  --faq-icon-size: 40px;
  --faq-gap: 16px;
  --faq-accent: #0457a7;
  --faq-rule: #e5eaf0;
  --faq-text: #1a1a1a;
  --faq-q: #0457a7;
}

.faq__item {
  border-top: 1px solid var(--faq-rule);
}
.faq__item:last-child {
  border-bottom: 1px solid var(--faq-rule);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: var(--faq-icon-size) 1fr 14px;
  align-items: center;
  column-gap: var(--faq-gap);
  text-align: left;
}

.faq__text {
  color: var(--faq-q);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.faq__arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--faq-accent);
  border-bottom: 2px solid var(--faq-accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  justify-self: end;
}
.faq__item.active .faq__arrow {
  transform: rotate(-135deg);
}

.faq__icon-q,
.faq__icon-a {
  width: var(--faq-icon-size);
  height: var(--faq-icon-size);
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.faq__icon-q {
  background: var(--faq-accent);
  color: #fff;
}

.faq__icon-a {
  position: relative;
  color: var(--faq-accent);
}
.faq__icon-a::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--faq-accent);
  border-radius: 9999px;
  pointer-events: none;
}

.faq__answer {
  display: none;
  padding-bottom: 24px;
}
.faq__item.active .faq__answer {
  display: block;
}

.faq__answer-inner {
  display: grid;
  grid-template-columns: var(--faq-icon-size) 1fr;
  column-gap: var(--faq-gap);
  align-items: start;
  padding-left: 0;
}

.faq__answer p {
  font-size: 15px;
  color: var(--faq-text);
  line-height: 1.8;
  margin: 0;
}

/* ==== FAQ：SPだけ「料金について」上の余白を詰める ==== */
@media (max-width: 767px) {
  /* 白カード内の上パディングを少し減らす */
  .faq__card {
    padding: 32px 20px 40px; /* お好みで数値調整 */
  }

  /* 最初のカテゴリ見出し（料金について）の上マージンを消す */
  .faq__content > .faq__category:first-of-type {
    margin-top: 0;
  }

  .faq__title {
    font-size: 28px;
    font-weight: 700;
    color: #fff; /* 白文字 */
    margin: 0;
  }
}

/* =========================================================
  Image Hero セクション（下部ヒーロー）
  大項目／中項目／小項目 ルール準拠
========================================================= */

/* ==================== レイアウト ==================== */
/* ---- セクション余白・最大幅 ---- */
.image-hero {
  background: #fff;
  padding: clamp(56px, 9vw, 96px) clamp(24px, 5.5vw, 64px);
}
.image-hero__wrapper {
  max-width: 1120px;
  margin-inline: auto;
}

/* ---- パネル（角丸＋影） ---- */
.image-hero__panel {
  background: var(--c-bg, #d7e8f8);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: clamp(24px, 3.2vw, 34px) 0;
}
.image-hero__container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(30px, 5vw, 48px);
}

/* ---- hero 本体：縦積み＋中央寄せ ---- */
.image-hero .hero__left {
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 12px;
}

/* ==================== タイトル ==================== */
/* ---- 見出し（PC基準） ---- */
.image-hero__title {
  margin: 0 0 clamp(20px, 3.8vw, 32px);
  text-align: center;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

/* ---- SP時の強制改行ユーティリティ ---- */
.u-br-sp {
  display: none;
}

/* ==================== CTAボタン（資料請求／相談） ==================== */
/* ---- 横並び時の中央寄せ ---- */
.image-hero .hero__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

/* ---- ボタン本体（アイコン＋テキストを中央） ---- */
.image-hero .hero__cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 24px;
  min-height: 56px;
  border-radius: 9999px;
  text-align: center;
  line-height: 1;
}
.image-hero .hero__cta .btn--hasicon .btn__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* ==================== 料金ブロック ==================== */
/* ---- カード全体 ---- */
.image-hero .hero-price {
  width: min(100%, 560px);
  margin: 20px auto 16px;
  padding: 12px 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: auto min-content auto;
  align-items: center;
  column-gap: 16px;
}

/* CTA＋料金カードの共通ラッパー */
.image-hero .hero-mainblock {
  width: 500px;
  max-width: 100%;
  margin: 20px auto 0; /* 中央寄せ */
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

/* ---- 左テキスト ---- */
.image-hero .hero-price__left {
  text-align: left;
}
.image-hero .hero-price__left p {
  margin: 0;
  line-height: 1.6;
  font-weight: 700;
}

/* ---- 仕切り画像（縦の仕切り） ---- */
.image-hero .hero-price__divider {
  justify-self: center;
  align-self: center;
  width: auto;
  height: 72px;
  max-width: none;
  object-fit: contain;
}
.image-hero .hero-price img.hero-price__divider {
  width: auto !important;
  height: 72px !important;
}

/* ---- 右側金額 ---- */
.image-hero .hero-price__right {
  text-align: left;
}
.image-hero .hero-price__label {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.image-hero .hero-price__num {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1;
  font-weight: 800;
}
.image-hero .hero-price__yen {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-left: 4px;
}
.image-hero .hero-price__note {
  font-size: 10px;
  opacity: 0.9;
  line-height: 1.2;
}
.image-hero .hero-price__unit {
  font-size: 20px;
  line-height: 1.2;
}

/* 「で 働きやすく、 通いやすい 病院に！」の上下マージンを詰める */
.image-hero .hero__lead {
  margin: 4px 0 0; /* 上だけ少し、下は0 */
}

/* リード文と料金・ボタンブロックの間も少しだけ詰める */
.image-hero .hero-mainblock {
  margin-top: 12px; /* もともと 20px → 12px に */
}

/* ==================== オンライン個別相談（カード） ==================== */
/* ---- ベース ---- */
.consult-cta {
  display: block;
  text-decoration: none;
  color: #fff;
}
.consult-cta--card {
  width: min(100%, 650px);
  margin: 8px auto 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, #1f6fb0 0%, #0e5aa0 100%);
}

/* ---- 内部グリッド（PC） ---- */
.consult-cta__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

/* ---- 左アイコン ---- */
.consult-cta__iconwrap {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}
.consult-cta__iconwrap img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

/* ---- テキスト ---- */
.consult-cta__texts {
  text-align: left;
}
.consult-cta__title {
  margin: 0 0 4px;
  font-weight: 900;
  font-size: clamp(18px, 2.4vw, 32px);
  letter-spacing: 0.02em;
  color: #ffcc00;
}
.consult-cta__desc {
  margin: 0;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 24px);
  color: #fff;
  opacity: 0.98;
}

/* ---- 右矢印 ---- */
.consult-cta__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #fff;
  color: #0e5aa0;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

/* ---- hover ---- */
@media (hover: hover) {
  .consult-cta--card:hover {
    transform: translateY(-1px);
    box-shadow:
      0 3px 0 rgba(0, 0, 0, 0.06),
      0 16px 32px rgba(0, 0, 0, 0.14);
  }
}
.consult-cta--card:active {
  transform: translateY(0);
}

/* ==================== SP専用レイアウト（～640px） ==================== */
.u-br-sp {
  display: none;
} /* 他でも使っているので初期化 */

@media (max-width: 640px) {
  .u-br-sp {
    display: block;
    height: 0;
  }

  .consult-cta--card {
    width: 100%;
    margin-top: 16px;
  }

  /* 行1: [icon][title][arrow]
     行2: [desc desc desc]（ボタン全幅ぶち抜き） */
  .consult-cta__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    padding: 14px 16px;
    align-items: center;
  }

  /* 左アイコン：1列目を上下2行ぶん使う */
  .consult-cta__iconwrap {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
  }

  /* ラッパーは contents で“透過” */
  .consult-cta__texts {
    display: contents;
  }

  /* 上の黄色タイトルはこれまで通り2列目だけに配置 */
  .consult-cta__title {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin: 0;
    font-size: 23px;
    line-height: 1.5;
    text-align: center;
  }

  /* ★下の白文字だけ 1〜3列目を全て使う＝ボタン全体の中央 */
  .consult-cta__desc {
    grid-column: 1 / 4; /* 3列ぶち抜き */
    grid-row: 2 / 3;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
  }

  /* 右矢印：3列目を上下2行ぶん使って縦中央 */
  .consult-cta__arrow {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
    font-size: 18px;
    align-self: center;
    justify-self: center;
  }
}

/* ==================== 注釈 ==================== */
.image-hero__notes {
  margin-top: clamp(14px, 2.2vw, 18px);
  font-size: 12px;
}
.metric-notes .metric__note {
  line-height: 1.5;
}

/* =========================================================
  Breakpoints
========================================================= */

/* ---- ～820px：タブレット最適化 ---- */
@media (max-width: 820px) {
  .image-hero__container {
    padding: 0 20px;
  }
  .image-hero .hero__cta {
    gap: 10px;
  }
}

/* ---- ～640px：SPレイアウト ---- */
@media (max-width: 640px) {
  /* セクション上部余白を圧縮 */
  .image-hero {
    padding: 32px 16px 40px;
  }

  /* タイトル：28px・2行 */
  .image-hero__title {
    font-size: 28px;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
  }
  .u-br-sp {
    display: block;
    height: 0;
  }

  /* パネル余白圧縮 */
  .image-hero__panel {
    padding: 10px 0;
  }
  .image-hero__container {
    padding: 0 4px;
  }

  .image-hero .hero-mainblock {
    width: 100%;
    margin-top: 16px;
  }

  /* hero 内部の並び順変更：
     料金カード → CTA ボタン の順にする */
  .image-hero .hero__left {
    row-gap: 10px;
  }
  .image-hero .hero-price {
    order: 2;
  }
  .image-hero .hero__cta {
    order: 3;
  }

  /* CTA：縦積み・幅いっぱい */
  .image-hero .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
  }
  .image-hero .hero__cta .btn {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    font-size: 16px;
  }
  .image-hero .hero__cta .btn .btn__icon {
    width: 18px;
    height: 18px;
  }

  /* 料金カード：幅いっぱい＆中央寄せ */
  .image-hero .hero-price {
    width: 100%;
    padding: 12px 16px;
    grid-template-columns: auto 24px 1fr;
    column-gap: 12px;
  }
  .image-hero .hero-price__left {
    font-size: 13px;
  }
  .image-hero .hero-price__divider {
    width: 24px !important;
    height: 64px !important;
  }
  .image-hero .hero-price__label {
    font-size: 14px;
  }
  .image-hero .hero-price__unit {
    font-size: 18px;
  }

  /* 相談カード：幅いっぱい＆ややコンパクトに */
  .consult-cta--card {
    width: 100%;
    margin-top: 16px;
  }
  .consult-cta__inner {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    padding: 16px;
  }
  .consult-cta__iconwrap {
    width: 56px;
    height: 56px;
  }
  .consult-cta__arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* =========================================================
   病院バナーセクション（上下余白ほぼゼロ・継ぎ目補正をpaddingで）
========================================================= */
/* ==== ロゴマルキー：基本 ==== */
.logo-marquee {
  --marquee-height: 100px; /* 行の高さ */
  --gap: 56px; /* ロゴ間隔 */
  --fade-size: 24px; /* 両端フェード幅 */
  --speed: 28s; /* アニメ速度（秒） */
  background-color: #fff;
}

/* セクション上下余白を打ち消し */
.logo-marquee.section--pad {
  padding-top: 0;
  padding-bottom: 0;
}

/* ビューポート（はみ出し隠し＋フェード） */
.logo-marquee__viewport {
  position: relative;
  overflow: hidden;
  height: var(--marquee-height);
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black var(--fade-size),
    black calc(100% - var(--fade-size)),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black var(--fade-size),
    black calc(100% - var(--fade-size)),
    transparent 100%
  );
}

/* レール（同内容のトラックを2本横並び） */
.logo-marquee__rail {
  display: flex;
  align-items: center;
  height: 100%;
}

/* トラック（2本とも同じ中身） */
.logo-marquee__track {
  flex-shrink: 0;
  display: flex; /* 縦並び防止 */
  align-items: center;
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
  /* ← 末尾だけ gap 相当の余白を付けて継ぎ目を均一化 */
  padding-inline-end: var(--gap);

  will-change: transform;
  animation: logo-marquee-scroll var(--speed) linear infinite;
}

/* アイテム＆画像サイズ（高さフィット） */
.logo-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0; /* 念のため margin を明示的にリセット */
}
.logo-marquee__item img {
  height: 52px;
  width: auto;
  display: block;
  opacity: 0.95;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.logo-marquee__item img:hover {
  transform: translateY(-1px) scale(1.02);
  opacity: 1;
}

/* 無限スクロール（左方向固定） */
@keyframes logo-marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* 低速環境配慮（ホバー停止なし） */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation: none;
    transform: none;
  }
}

/* モバイル微調整 */
@media (max-width: 640px) {
  .logo-marquee {
    --marquee-height: 64px;
    --gap: 40px;
    --fade-size: 16px;
  }

  .logo-marquee__item img {
    height: 32px;
  }
}

/* =========================================================
  導入事例（single-voice） - Responsive Clean Build
  構成：SP（基本） → 768px → 1024px
========================================================= */

/* ==================== 大項目：共通（Container / 画像 / 微調整） ==================== */
/* --- 中項目：コンテナ幅 --- */
.case-article .container,
.voice-hero__inner,
.voice-header__inner,
.voice-profile__inner,
.voice-article__inner,
.voice-nav__inner {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* --- 中項目：画像の基本 --- */
.voice-header__image-img,
.voice-profile__photo-img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- 中項目：ヘッダー直下余白（0固定） --- */
.case-article.section--pad {
  padding-top: 0;
}
.voice-hero {
  margin-top: 0;
}

/* ==================== 大項目：ヒーロー帯（水色背景＋パンくず＋病院名） ==================== */
/* --- 中項目：帯背景 --- */
.voice-hero {
  background-color: #d7e8f8;
  background-image: url("../images/article_footprint.svg");
  background-repeat: no-repeat;
  background-position: right 1rem top -10px;
  background-size: 140px auto;
  padding: 24px 0;
  border: 0;
  margin: 0;
}

/* --- 中項目：パンくず --- */
.voice-hero__breadcrumb {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #000;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  color: #000;
  flex-shrink: 0;
}
.breadcrumb__link {
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb__link:hover,
.breadcrumb__link:focus {
  text-decoration: underline;
}
.breadcrumb__sep {
  color: #000;
  font-size: 0.8em;
  line-height: 1;
  flex-shrink: 0;
}
.breadcrumb__homeicon {
  width: 1em;
  height: 1em;
}

/* パンくずの横スクロールは維持して、スクロールバーだけ隠す */
.breadcrumb {
  overflow-x: auto;
  white-space: nowrap;

  /* iOS慣性スクロール */
  -webkit-overflow-scrolling: touch;

  /* Firefox */
  scrollbar-width: none;
}

/* Chrome / Safari / Edge */
.breadcrumb::-webkit-scrollbar {
  display: none;
}

/* --- 中項目：病院名（見出し） --- */
/* 小項目：SP基準 */
.voice-hero__title {
  margin: 0;
  text-align: center;
  color: #000;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
}

/* ==================== 大項目：記事ヘッダー（記事タイトル・タグ・外観画像） ==================== */
.voice-header {
  background: #fff;
  padding: 32px 0 16px;
}
.voice-header__inner {
  text-align: left;
}

/* --- 中項目：記事タイトル --- */
/* 小項目：SP=22px（指定） */
.voice-header__title {
  margin: 0 0 16px;
  color: #000;
  font-weight: 700;
  line-height: 1.5;
  font-size: 22px;
}

/* --- 中項目：タグピル --- */
.voice-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.voice-header__tag-item {
  margin: 0;
  padding: 0;
}
.voice-header__tag {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid #003a8c;
  background: #fff;
  color: #003a8c;
  font-size: 13px;
  line-height: 1;
  border-radius: 9999px;
  font-weight: 500;
  max-width: 100%; /* 画面幅以上に広がらない */
  white-space: normal; /* 1行固定をやめて折り返しを許可 */
  overflow-wrap: anywhere; /* スペースがなくても途中で折り返す */
}

/* --- 中項目：外観画像 --- */
.voice-header__image {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
}

/* ==================== 大項目：プロフィール＋Topics ==================== */
.voice-profile {
  background: #eaf0f5;
  padding: 32px 0;
}

/* --- 中項目：プロフィールカード --- */
.voice-profile__card {
  display: grid;
  grid-template-columns: 1fr; /* SPは縦積み */
  gap: 16px;
  padding: 16px;
  background: transparent;
  margin: 0 0 16px;
}

/* 小項目：SPは写真のみ中央寄せ */
.voice-profile__photo {
  max-width: 200px;
  justify-self: center;
  margin-inline: auto;
  text-align: center;
}
.voice-profile__photo-img {
  border-radius: 4px;
}

.voice-profile__info {
  color: #000;
  font-size: 14px;
  line-height: 1.6;
  min-width: 220px;
  text-align: left;
}

/* --- 中項目：プロフィール テーブル --- */
.voice-profile__table {
  margin: 0;
}

/* 小項目：行 */
.voice-profile__row {
  display: grid;
  grid-template-columns: auto 1fr;
  /* column-gap: 12px; */
  row-gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: none; /* デフォ：線なし */
}
/* .voice-profile__term {
  color: #000;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.4;
} */
.voice-profile__desc {
  color: #000;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

/* 小項目：住所行（dtに住所が入る前提） */
.voice-profile__row--address {
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}
.voice-profile__row--address .voice-profile__term {
  font-weight: 400;
  white-space: normal;
}

/* 小項目：人数行（上ボーダーのみ） */
.voice-profile__row--counts {
  grid-template-columns: 1fr;
  border-top: 1px solid #cfd6dc;
  margin-top: 12px;
  padding-top: 12px;
}
.voice-profile__minirow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  line-height: 1.4;
}
.voice-profile__minihead {
  font-weight: 400;
  color: #000;
}
.voice-profile__minival {
  font-weight: 400;
  color: #000;
}

/* --- 中項目：Topicsカード --- */
.voice-topics {
  padding: 0;
}
.voice-topics__card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.03);
  padding: 16px;
  color: #000;
  margin: 0 auto 16px;
}
.voice-topics__heading {
  font-size: 20px;
  color: #000;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 12px;
  position: relative;
}
.voice-topics__heading::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: #003a8c;
  border-radius: 1px;
  margin: 8px auto 0;
}
.voice-topics__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #000;
  font-size: 16px;
  line-height: 1.6;
}
.voice-topics__item {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}
.voice-topics__item:last-child {
  margin-bottom: 0;
}
.voice-topics__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: #003a8c;
  border-radius: 50%;
}

/* ==================== 大項目：記事本文・Q&A ==================== */
.voice-article {
  background: #fff;
  padding: 20px 0;
  color: #000;
} /* 32 -> 20 */
.voice-article__content {
  font-size: 15px;
  line-height: 1.8;
  color: #000;
}
.voice-article__content p {
  margin: 0 0 0.8em;
} /* 1em -> .8em */

/* --- 中項目：Q&A（質問→回答） --- */
/* 小項目：質問（吹き出し） */
.voice-qa {
  margin-bottom: 20px;
  color: #000;
} /* 32 -> 20 */
.voice-qa__question {
  position: relative;
  background: #fff;
  border: 1px solid #cfd6dc;
  border-radius: 4px;
  padding: 10px 14px; /* 12 16 -> 10 14 */
  margin: 0 0 2px; /* 16 -> 12 */
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  color: #000;
}
.voice-qa__question::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 1px solid #cfd6dc;
  border-bottom: 1px solid #cfd6dc;
  transform: rotate(-45deg);
  border-radius: 0 0 0 2px;
}
.voice-qa__question-text {
  display: block;
  font-weight: 400;
}

/* 小項目：回答ブロック */
.voice-block {
  position: relative;
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 5px; /* 24 -> 14（積み上がる余白の主因） */
  margin-bottom: 10px; /* 32 -> 20 */
  color: #000;
  font-size: 16px;
  line-height: 1.7;
}
.voice-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0; /* .4rem -> .35rem（気持ちだけ詰める） */
  width: 4px;
  border-radius: 2px;
  background: #cfdaf0;
  transform: translateX(12px);
}
.voice-block__title {
  position: relative;
  margin: 0 0 10px; /* 12 -> 10 */
  padding-left: 24px;
  color: #003a8c;
  font-weight: 700;
  line-height: 1.5;
  font-size: 20px;
}
.voice-block__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1.2em;
  border-radius: 2px;
  background: #003a8c;
  transform: translateX(12px);
}
.voice-block__body {
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: #000;
}
.voice-block__body p {
  margin: 0 0 0.8em;
} /* 1em -> .8em */
.voice-block__body b,
.voice-block__body strong {
  font-weight: 600;
}

/* --- 任意：スマホだけ、さらに少し詰めたい場合（必要なら有効化） --- */
/*
@media (max-width: 767px) {
  .voice-article { padding: 16px 0; }
  .voice-qa { margin-bottom: 16px; }
  .voice-block { padding-bottom: 12px; margin-bottom: 16px; }
}
*/

/* ==================== 大項目：前後ナビ ==================== */
.voice-nav {
  background: #fff;
  color: #000;
  padding: 32px 0 48px;
  text-align: center;
}

/* --- 中項目：SPは横並び（三分割） --- */
.voice-nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto; /* 左:前 / 中央:一覧 / 右:次 */
  align-items: center;
  gap: 12px;
}
.voice-nav__item {
  display: flex;
  justify-content: center;
  font-size: 15px;
  line-height: 1.4;
  color: #000;
}
.voice-nav__item--prev {
  justify-content: flex-start;
}
.voice-nav__item--middle {
  justify-content: center;
}
.voice-nav__item--next {
  justify-content: flex-end;
}

.voice-nav__item a,
.voice-nav__disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}
.voice-nav__disabled {
  opacity: 0.4;
  cursor: default;
}

.voice-nav__arrow-circle {
  width: 32px;
  height: 32px;
  border: 2px solid #003a8c;
  color: #003a8c;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.9rem;
  font-weight: 600;
}
/* 記事一覧への真ん中ボタン（SP/PC 共通） */
.voice-nav__middle-link {
  display: inline-flex; /* すでに display:flex なら省略可 */
  flex-direction: column; /* アイコン上・テキスト下 */
  align-items: center; /* 中央揃え */
  gap: 0.5rem; /* すき間 */
  text-align: center; /* テキストも中央 */
}

.voice-nav__dots {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 6px;
  margin-bottom: 0; /* SPは横並びなので下マージン不要 */
}
.voice-nav__dots > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #003a8c;
}

/* ==================== 大項目：ブレークポイント ==================== */
/* --- 中項目：>= 480px（微調整） --- */
@media (min-width: 480px) {
  .voice-header__title {
    font-size: 24px;
  }
}

/* --- 中項目：>= 768px（タブレット） --- */
@media (min-width: 768px) {
  /* ヒーロー */
  .voice-hero {
    padding: 32px 0;
    background-position: right 2rem top -20px;
    background-size: 180px auto;
  }
  .voice-hero__title {
    font-size: 28px;
  }

  /* 記事ヘッダー */
  .voice-header {
    padding: 40px 0 24px;
  }
  .voice-header__title {
    font-size: 28px;
  }
  .voice-header__tags {
    margin-bottom: 20px;
  }

  /* プロフィール：横並び（写真200px + 本文） */
  .voice-profile__card {
    grid-template-columns: 200px 1fr;
    align-items: center;
    gap: 20px 24px;
    padding: 20px 16px;
    place-self: center;
  }
  /* タブレット以上は写真左寄せに戻す */
  .voice-profile__photo {
    justify-self: start;
    margin-inline: 0;
    text-align: left;
  }

  /* Topicsカードの左右パディング拡張（PC準拠） */
  .voice-topics__card {
    padding: 20px 68px;
  }

  /* 前後ナビ：三分割はそのまま・中央は縦組みに変更 */
  .voice-nav__inner {
    grid-template-columns: 1fr auto 1fr;
  }
}

/* --- 中項目：>= 1024px（デスクトップ） --- */
@media (min-width: 1024px) {
  .voice-header__title {
    font-size: 32px;
  }
  .voice-article__content {
    font-size: 16px;
  }
}

/* SPのみ：パンくず非表示 */
@media (max-width: 768px) {
  .voice-hero__breadcrumb {
    display: none;
  }
}

/* =========================================================
   導入事例一覧（アーカイブ）
========================================================= */

/* ==== コンテナ ==== */
.voice__container {
  width: min(100%, var(--reasons-max));
  margin-inline: auto;
  padding-inline: 16px;
  text-align: center;
}

/* ===== アーカイブ ヒーロー帯 ===== */
/* セクション自体は余白だけを持ち、背景は子要素に分離 */
.voice-archive-hero {
  padding: 0;
  border: 0;
}

/* 上段：青背景（パンくず＋h1） */
.voice-archive-hero__top {
  background-color: #d7e8f8;
  padding: 1rem 1rem 2rem;

  /* 足跡SVG。生CSSなので相対パスで指定 */
  background-image: url("../images/article_footprint.svg");
  background-repeat: no-repeat;

  /* 足跡の位置：右上からちょい内側・やや斜めに降りてくる感じ */
  background-position: right 1rem top -10px;
  background-size: 140px auto;
}

@media (min-width: 768px) {
  .voice-archive-hero__top {
    padding: 1rem 1rem 2rem;
    background-size: 180px auto;
  }
}

/* 下段：白背景（リード文＋キーワード検索） */
.voice-archive-hero__bottom {
  padding: 1.5rem 1rem 2rem;
  background-color: #fff; /* ページ背景と同じ */
}

.voice-archive-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* パンくず（上段） */
.voice-archive-hero__breadcrumb {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #000;
  margin: 0 0 1rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb__item {
  color: #000;
  display: flex;
  align-items: center;
  font-weight: 400;
}
.breadcrumb__item--current {
  font-weight: 400;
}
.breadcrumb__link {
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.breadcrumb__link:hover {
  text-decoration: underline;
}
.breadcrumb__sep {
  flex-shrink: 0;
  font-size: 0.8em;
  line-height: 1;
  color: #000;
}
.breadcrumb__homeicon {
  width: 1em;
  height: 1em;
  display: inline-block;
}

/* SPのみ：パンくず非表示（必要なら display: none; を指定） */
@media (max-width: 768px) {
  .voice-archive-hero__breadcrumb {
    /* display: none; */
  }
}

/* タイトルとリード文 */
.voice-archive-hero__title {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 700;
  color: #000;
}
@media (min-width: 768px) {
  .voice-archive-hero__title {
    font-size: 1.625rem;
  }
}
.voice-archive-hero__lead {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #000;
  font-weight: 400;
}

/* ===== キーワードから探すブロック ===== */
/* ここは従来どおり「カード」なので、背景色＋最大幅のみ */
.voice-filter {
  background-color: #d7e8f8;
  border-radius: 4px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 1rem;
}

.voice-filter__head {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 500;
  color: #000;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
  text-align: center;
}
.voice-filter__icon {
  font-size: 1rem;
  line-height: 1;
}
.voice-filter__label {
  font-weight: 500;
  color: #000;
}

/* タグボタンリスト */
.voice-filter__taglist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.voice-filter__tagbtn {
  display: inline-block;
  min-height: 32px;
  border-radius: 30px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #003a8c;
  background-color: #fff;
  color: #003a8c;
  font-size: 0.8125rem;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  max-width: 100%; /* 画面幅以上に広がらない */
  white-space: normal; /* 1行固定をやめて折り返しを許可 */
  overflow-wrap: anywhere; /* スペースがなくても途中で折り返す */
}
.voice-filter__tagbtn.is-active {
  background-color: #003a8c;
  color: #fff;
}

.voice-filter__tagbtn {
  text-decoration: none;
}

/* =========================================================
   一覧カード（アーカイブ用）
========================================================= */
.voice-archive-list {
  background-color: #fff;
  padding: 2rem 1rem 3rem;
}
.voice-archive-list__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 3カラムカード */
.voice-archive-list .voice-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .voice-archive-list .voice-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .voice-archive-list .voice-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* カード本体（アーカイブ用） */
.voice-archive-list .voice-card {
  background-color: #fff;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #000;
  position: relative; /* 全体クリック用リンクのため */
}

/* カード全体クリック用の透明リンク */
.voice-archive-list .voice-card__linkarea {
  position: absolute;
  inset: 0;
  z-index: 10; /* 一番上にする */
  text-indent: -9999px;
}

/* 実際のコンテンツはリンクの上に表示 */
.voice-archive-list .voice-card__media,
.voice-archive-list .voice-card__body {
  position: relative;
  z-index: 1; /* もしくは z-index 行自体を削除してOK */
}

/* ホバー時の挙動（PCのみ反応させたい場合は @media(min-width:768px) 内に入れてもOK） */
.voice-archive-list .voice-card:hover {
  cursor: pointer;
  /* 影を少し強くしたい場合は以下をON
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  */
}

/* メディア領域（上部のアイキャッチ画像） */
.voice-archive-list .voice-card__media {
  position: relative;
  width: 100%;
  border-bottom: 1px solid #d0d7de;
  background-color: #fff;
}
/* ここで画像エリアの比率を固定する（例：16:9） */
.voice-archive-list .voice-card__mainimg {
  width: 100%;
  line-height: 0;
  aspect-ratio: 16 / 9; /* ← 好きな比率に変更OK */
  overflow: hidden;
}

/* 画像は枠にフィットさせてトリミング */
.voice-archive-list .voice-card__mainimg-img {
  display: block;
  width: 100%;
  height: 100%; /* ← auto ではなく 100% に変更 */
  object-fit: cover;
}

/* 本文ブロック */
.voice-archive-list .voice-card__body {
  padding: 1rem 1rem 1rem;
  color: #000;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* 記事タイトル（h2） */
.voice-archive-list .voice-card__title {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  color: #000;
  margin: 0 0 1rem;
}

/* （必要なら）アーカイブ内で別リンクに使う場合 */
.voice-archive-list .voice-card__link {
  color: inherit;
  text-decoration: none;
}
.voice-archive-list .voice-card__link:hover {
  text-decoration: underline;
}

/* 病院名・院長 */
.voice-archive-list .voice-card__meta {
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 400;
  color: #000;
  margin: 0 0 1rem;
}
.voice-archive-list .voice-card__hospital {
  font-weight: 500;
  color: #000;
}
.voice-archive-list .voice-card__doctor {
  font-weight: 400;
  color: #000;
}

/* カード内タグ（押せないラベル） */
.voice-archive-list .voice-card__taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.voice-archive-list .voice-card__tagitem {
  margin: 0;
  padding: 0;
}
.voice-archive-list .voice-card__tag {
  display: inline-block;
  min-height: 28px;
  border-radius: 30px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #003a8c;
  background-color: #fff;
  color: #003a8c;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 500;
  max-width: 100%; /* 画面幅以上に広がらない */
  white-space: normal; /* 1行固定をやめて折り返しを許可 */
  overflow-wrap: anywhere; /* スペースがなくても途中で折り返す */
}

/* ===== ページネーション部分 ===== */
.voice-archive-pagination {
  text-align: center;
  margin-top: 2rem;
  color: #000;
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 500;
}

/* 数字・prev/next 共通 */
.voice-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  margin: 0 0.25rem;
}

/* 現在ページ（数字を青に） */
.voice-archive-pagination .current {
  font-weight: 700;
  color: #003a8c;
}

/* 数字リンク */
.voice-archive-pagination a.page-numbers {
  color: #000;
  text-decoration: none;
}

.voice-archive-pagination a.page-numbers:hover {
  text-decoration: underline;
}

/* === 左右の矢印ボタン（青い丸） === */
.voice-archive-pagination .page-numbers.prev,
.voice-archive-pagination .page-numbers.next {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #003a8c;
  color: #fff;
  font-size: 1rem;
  margin: 0 0.4rem;
}

.voice-archive-pagination .page-numbers.prev:hover,
.voice-archive-pagination .page-numbers.next:hover {
  background-color: #0050c8; /* ほんの少し明るく（お好みで） */
  text-decoration: none;
}

/* ===== TOPへリンク ===== */
.voice-archive-pagination__toplink {
  margin-top: 0.75rem;
}

/* 画像のように常に下線あり + [ ] をテキストで出す */
.voice-archive-pagination__top {
  color: #000;
  font-size: 0.875rem;
  text-decoration: underline; /* 常に下線 */
  text-underline-offset: 2px; /* 少し余白 */
}

/* hoverしてもずっと下線のまま */
.voice-archive-pagination__top:hover {
  text-decoration: underline;
}

/* === 左右の矢印ボタン（arrow.svg 用に微調整） === */
.voice-archive-pagination .page-numbers.prev,
.voice-archive-pagination .page-numbers.next {
  /* ▼丸アイコン全体の大きさ */
  width: 26px; /* お好みで 22〜26px くらいに */
  height: 26px;
  margin: 0 0.35rem;

  display: inline-block; /* 数字と同じ行に自然に並べる */
  vertical-align: middle;
  font-size: 0; /* 中の「＜」「＞」は見えなくする */
  line-height: 0;
  text-decoration: none;
}

/* 共通：中に arrow.svg を表示 */
.voice-archive-pagination .page-numbers.prev::before,
.voice-archive-pagination .page-numbers.next::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("../images/arrow.svg"); /* パスは環境に合わせて */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%; /* ←丸の内側に少し余白を作るイメージ */
}

/* prev だけ左右反転して「←」にする */
.voice-archive-pagination .page-numbers.prev::before {
  transform: scaleX(-1);
}

/* hover 時も下線は付けない */
.voice-archive-pagination .page-numbers.prev:hover,
.voice-archive-pagination .page-numbers.next:hover {
  text-decoration: none;
}

/* ===========================
   404 ページ
=========================== */
.notfound {
  text-align: center;
}

.notfound__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.6;
  margin: 0 0 16px;
}

.notfound__lead {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 12px;
}

.notfound__text {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 24px;
  color: #555;
}

.notfound__actions {
  margin-bottom: 32px;
}

.notfound__links-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.notfound__linklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notfound__linklist li + li {
  margin-top: 4px;
}

.notfound__linklist a {
  text-decoration: underline;
}

/* =========================================================
   PetPASS CMS ログインページ（WPデフォルト風）
========================================================= */
.petpass-login-page {
  background: #f1f1f1; /* グレー背景 */
  font-family: "Noto Sans JP", sans-serif;
}

/* 画面中央に寄せる */
.petpass-login-page .login-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6%;
  padding-bottom: 6%;
}

/* ロゴ（上の丸いWPロゴっぽい位置） */
.petpass-login-page .login-page__inner {
  text-align: center;
}

.petpass-login-page .login-page__logo {
  margin-bottom: 16px;
}

/* ここでロゴ画像を指定（なければテキストのままでもOK） */
.petpass-login-page .login-page__logo-text {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1d2327; /* 見出しと同じくらいの色 */
  letter-spacing: 0.05em; /* ほんの少しだけ字間を空ける */
}

/* ↓ ロゴ画像を使いたい場合はこっちに差し替えでもOK
.petpass-login-page .login-page__logo-text {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  background: url('../images/wp-like-logo.svg') no-repeat center/contain;
  text-indent: -9999px;
}
*/

/* 白いパネル部分（元WPの #login 相当） */
.petpass-login-page .login-page__card {
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
  padding: 26px 24px 24px;
  text-align: left;
}

/* タイトル（「ログイン」）*/
.petpass-login-page .login-page__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 18px;
}

/* ---------- フォーム要素（wp_login_form 出力） ---------- */
.petpass-login-page #loginform p {
  margin-bottom: 16px;
}

.petpass-login-page #loginform label {
  display: block;
  font-size: 14px;
  color: #50575e;
  margin-bottom: 4px;
}

.petpass-login-page #loginform input[type="text"],
.petpass-login-page #loginform input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 16px;
  border-radius: 2px;
  border: 1px solid #8c8f94;
  background-color: #fff;
  box-sizing: border-box;
}

.petpass-login-page #loginform input[type="text"]:focus,
.petpass-login-page #loginform input[type="password"]:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

/* Remember Me ＋ ボタン行を横並びに（右に青ボタン） */
.petpass-login-page #loginform .login-remember {
  float: left;
  font-size: 13px;
  color: #50575e;
}

.petpass-login-page #loginform .login-submit {
  text-align: right;
  margin-top: 4px;
  clear: none;
}

/* 青い「Log In」ボタン */
.petpass-login-page #loginform .button-primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
  padding: 0 12px;
  height: 32px;
  line-height: 30px;
  font-size: 13px;
  border-radius: 3px;
  box-shadow: 0 1px 0 #0a4b78;
}

.petpass-login-page #loginform .button-primary:hover {
  background: #135e96;
  border-color: #135e96;
}

/* フッターリンク部分（Register / Lost your password? など） */
.petpass-login-page .login-page__links {
  margin-top: 16px;
  border-top: 1px solid #dcdcde;
  padding-top: 12px;
  font-size: 13px;
  color: #50575e;
}

.petpass-login-page .login-page__links p {
  margin: 4px 0;
}

.petpass-login-page .login-page__links a {
  color: #2271b1;
  text-decoration: none;
}

.petpass-login-page .login-page__links a:hover {
  text-decoration: underline;
}

/* SP では少しマージンを詰める */
@media (max-width: 480px) {
  .petpass-login-page .login-page {
    padding-top: 10%;
  }
  .petpass-login-page .login-page__card {
    margin: 0 12px;
    width: auto;
  }
}
