@charset "UTF-8";
/* ============================================================
   77スマートBizローン LP
   Figma: design01 (PC 1440) / SP_design_my (SP 390)
   ============================================================ */

/* ---------- 変数 ---------- */
:root {
  --blue: #004ea2; /* ブランドブルー */
  --blue-mid: #0061bf;
  --blue-light: #2480e7;
  --blue-pale: #a6d0ff;
  --blue-bg: #e7f0ff; /* 特長カード */
  --blue-bg2: #e7f7ff; /* シミュレーション / 吹き出し */
  --blue-bg3: #edf4ff; /* テーブル交互・QA 本文 */
  --blue-wm: #f0f7ff; /* 透かし文字 */
  --blue-th: #c8e2ff; /* テーブル見出し */
  --blue-border: #acc8e7;
  --orange: #f3981c; /* CTA */
  --orange-text: #ff6200; /* 強調テキスト */
  --yellow: #ffee00; /* マーカー */
  --yellow-btn: #ffd902;
  --cream: #fffae2;
  --cream2: #f8f5e6;
  --ink: #333333;
  --gray-line: #d4d4d4;
  --gray-line2: #c5c5c5;
  --gray-bg: #f7f7f7;
  --gray-bg2: #f0f0f0;

  --inner: 1100px;
  --pad: 20px;
  --cv-h: 149px; /* 固定 CTA バーの高さ。JS が実測値で上書きする */
  --tracking: 0.1em;
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* ページ内リンクで固定 CTA バーの裏に潜り込まないように */
  scroll-padding-bottom: var(--cv-h);
}
body {
  margin: 0;
  font-family:
    "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo,
    sans-serif;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: #fff;
  /* 小書き仮名・長音符を行頭に置かない（Figma の折り返しに合わせる） */
  line-break: strict;
  /* 固定 CTA バーの高さぶんを確保 */
  padding-bottom: var(--cv-h);
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: inherit;
}
button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
table {
  border-collapse: collapse;
}

/* ---------- 共通レイアウト ---------- */
.l-inner,
.spec__inner,
.features__inner,
.worry__inner,
.scene__inner,
.sim__inner,
.outline__inner,
.apply__inner,
.qa__inner,
.contact__inner {
  width: 100%;
  max-width: calc(var(--inner) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

/* 見出し（透かし文字＋キャラクター） */
/* Figma では透かし文字の上に見出しが重なる。
   透かしの上端を基準に、見出しを --head-gap ぶん下げる
   （PC: Features 159px / Q&A 146px、SP: 94px / Q&A 153px）。
   透かしは absolute なのでレイアウト高さには影響しない。 */
.section-head {
  position: relative;
  text-align: center;
  padding-top: var(--head-gap, 159px);
}
.section-head__watermark {
  position: absolute;
  top: 0;
  left: calc(var(--pad) * -1);
  right: calc(var(--pad) * -1);
  z-index: 0;
  overflow: hidden; /* 画面幅を超える分はクリップ（横スクロール防止） */
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 200px;
  line-height: 260px;
  letter-spacing: 0;
  color: var(--blue-wm);
  user-select: none;
}
.section-head__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
}
.section-head__char {
  position: absolute;
  z-index: 2;
}

.u-br-sp {
  display: none;
}
.u-sm {
  font-size: 1em;
}
.u-md {
  font-size: 1.364em;
}
/* Figma のマーカーは高さ 17px の矩形。行ボックスより 2px 下にはみ出すので
   padding-bottom で背景ボックスを広げ、下端合わせで敷く */
.marker {
  padding-bottom: 2px;
  background: no-repeat 0 100% / 100% 17px
    linear-gradient(var(--yellow), var(--yellow));
}

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 460px;
  max-width: 100%;
  height: 70px;
  border-radius: 999px;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}
.btn:hover {
  opacity: 0.85;
}
.btn--orange {
  background: var(--orange);
}
.btn--blue {
  background: var(--blue);
}
.btn--lightblue {
  background: var(--blue-light);
}
.btn__arrow {
  position: absolute;
  right: 25px;
  width: 10px;
  height: 16px;
  background: currentColor;
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M1.5 1.5 8 8l-6.5 6.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M1.5 1.5 8 8l-6.5 6.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.btn-outline,
.btn-yellow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: var(--blue);
  transition: opacity 0.2s;
}
.btn-outline:hover,
.btn-yellow:hover {
  opacity: 0.8;
}
.btn-outline {
  background: #fff;
  border: 2px solid var(--blue);
}
.btn-yellow {
  background: var(--yellow-btn);
}

/* ============================================================
   ヘッダー
   ============================================================ */
.header {
  background: #fff;
}
.header__inner {
  height: 80px;
  display: flex;
  align-items: center;
  padding-inline: 50px;
}
.header__logo {
  display: inline-flex;
}
.header__logo img {
  width: 192px;
}

/* ============================================================
   メインビジュアル
   ============================================================ */
/* Figma: PC MV 1440x630 / element 920x530 を上下左右センター（余白 260/50）
   SP  KV 390x610 / element 357.5x560 を上下左右センター（余白 16.25/25）
   デザイン幅を基準に等倍スケールし、デザイン幅を超えたら原寸で止める
   （= 1440px 以上では常に高さ 630px。aspect-ratio だと高さが青天井に伸びる） */
.mv {
  --mv-frame: min(1440px, 100vw);
  display: grid;
  place-items: center;
  background: var(--blue-mid) url("../assets/img/mv-bg-pc.png") center / cover
    no-repeat;
  height: calc(var(--mv-frame) * 630 / 1440);
}
.mv__heading {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}
.mv__element {
  display: block;
  margin-inline: auto;
  width: calc(var(--mv-frame) * 920 / 1440);
  height: auto;
}
.mv__element--sp {
  display: none;
}

/* ============================================================
   CTA
   ============================================================ */
/* Figma SP の注記「常時表示」に合わせ、画面下部へ常時固定。
   高さぶんは body の padding-bottom で確保する（フッターが隠れないように） */
.cv {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #fff;
  padding: 20px var(--pad);
  text-align: center;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
}
.cv__note {
  font-size: 18px;
}
.cv__buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: nowrap; /* 固定バーの高さを一定に保つため折り返さない */
}
.cv__buttons .btn {
  flex: 0 1 460px;
  min-width: 0;
  white-space: nowrap;
}
.cv__note {
  white-space: nowrap;
}

/* ============================================================
   商品スペック
   ============================================================ */
.spec {
  background: var(--cream);
  padding: 50px 0;
  max-width: 1100px;
  margin-inline: auto;
  margin-block: 70px 0;
}
.spec__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.spec__item {
  padding-inline: 30px;
  text-align: center;
}
.spec__item + .spec__item {
  border-left: 1px solid var(--gray-line2);
}
.spec__label {
  font-size: 22px;
  font-weight: 700;
}
.spec__value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.spec__value em {
  font-style: normal;
  font-size: 2.091em;
  color: var(--orange-text);
}
.spec__note {
  margin-top: 24px;
  font-size: 16px;
  text-align: center;
}

/* ============================================================
   特長
   ============================================================ */
/* Figma: セクション上端から 透かし0 / 見出し159 / カード1段目276 /
   2段目561 / 05カード850 / セクション下端1050。写真は画面端まで裁ち落とし */
.features {
  padding: 20px 0 233px;
  overflow-x: clip; /* 裁ち落とし写真を画面端でクリップ */
}
.features__char {
  top: 72px;
  left: min(calc(100% - 97px), calc(50% + 285px));
  width: 97px;
}
.features__list {
  position: relative;
  z-index: 1; /* 裁ち落とし写真より前面（Figma でも写真はカードの背面） */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
  margin-top: 70px;
}
.feature-card {
  position: relative;
  background: var(--blue-bg);
  padding: 40px 30px;
}
.feature-card__num {
  position: absolute;
  top: -40px;
  right: 20px;
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-style: italic; /* Figma: Roboto Bold Italic */
  font-size: 80px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--blue-pale);
}
.feature-card__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--blue);
}
.feature-card__text {
  margin-top: 20px;
  font-size: 18px;
}

.features__last {
  position: relative;
  margin-top: 60px;
}
/* 写真は 05 カードの上端を基準に配置し、左右は画面端まで裁ち落とす
   （Figma: 左 y=723・右 y=759 に対し 05 カードは y=850） */
.features__photo {
  position: absolute;
  z-index: 0;
}
.features__photo--left {
  top: -127px;
  left: calc(50% - 50vw);
  width: 320px;
}
.features__photo--right {
  top: -91px;
  right: calc(50% - 50vw);
  width: 500px;
}
.feature-card--center {
  position: relative;
  z-index: 1;
  width: 530px;
  margin-inline: auto;
}

/* ============================================================
   お悩み
   ============================================================ */
.worry {
  padding-bottom: 150px;
}
.worry__head {
  position: relative;
  text-align: center;
  padding-top: 20px;
}
.worry__char {
  position: absolute;
  left: 90px;
  top: 1px;
  width: 104px;
}
.worry__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
}
.worry__title em {
  font-style: normal;
  font-size: 48px;
}
.worry__sub {
  margin-top: 20px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue);
}
.worry__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.worry-item {
  text-align: center;
}
.worry-item__cloud {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 310 / 238;
  padding: 0 30px;
  background: no-repeat center / contain url("../assets/img/cloud.svg");
}
.worry-item__cloud p {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
}
.worry-item__arrow {
  width: 84px;
  margin: 0 auto;
  display: block;
}
.worry-item__solution {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
}
.worry-item__solution em {
  font-style: normal;
  font-size: 32px;
  color: var(--orange-text);
}

/* ============================================================
   ご利用シーン
   ============================================================ */
.scene {
  /* Figma: セクション上下の余白は前後（.worry / .photo-strip）側で持つ */
  padding: 0;
}
.scene__list {
  margin-top: 50px;
  display: grid;
  gap: 50px;
}
.scene-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 30px;
  align-items: start;
}
.scene-item__photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  align-self: center;
}
.scene-item__chip {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 10px;
}
.scene-item__problem {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
}
.scene-item__solution {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--orange-text);
}
.scene-item__text {
  margin-top: 10px;
  font-size: 18px;
}

/* ============================================================
   業種写真ストリップ
   ============================================================ */
/* Figma 注記「自動スクロールさせる」。写真4枚（PC 400x300 / SP 300x225）を
   2セット並べ、1セットぶん（=track の 50%）動かして途切れなくループさせる。
   .scene との余白は PC 150px / SP 60px */
.photo-strip {
  --marquee-duration: 40s; /* 1600px / 40s = 40px/s */
  overflow: hidden;
  margin: 150px 0;
}
.photo-strip__track {
  display: flex;
  width: max-content;
  animation: photo-strip-marquee var(--marquee-duration) linear infinite;
}
.photo-strip__list {
  display: flex;
}
.photo-strip__list li {
  flex: 0 0 auto;
}
.photo-strip__list img {
  display: block;
  width: 400px;
  height: 300px;
  object-fit: cover;
}
@keyframes photo-strip-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* 動きを減らす設定では停止し、手動で横スクロールできるようにする */
@media (prefers-reduced-motion: reduce) {
  .photo-strip {
    overflow-x: auto;
  }
  .photo-strip__track {
    animation: none;
  }
}

/* ============================================================
   ローン返済シミュレーション
   ============================================================ */
/* Figma: 幅 1100px の水色パネル。パネル上端からの距離は
   見出し50 / リード127 / 入力・結果229 / 返済予定表793 / 表862 */
.sim {
  background: var(--blue-bg2);
  padding: 50px 0 46px;
  max-width: 1100px;
  margin-inline: auto;
}
.section-head--sim {
  --head-gap: 0px; /* 透かしなし。Figma: .sim 上端から見出しまで 50px = .sim の padding-top */
}
.sim__char {
  top: -100px;
  left: max(0px, calc(50% - 415px));
  width: 97px;
}
.sim__lead {
  margin-top: 30px;
  font-size: 16px;
  text-align: center;
}

.sim__cols {
  display: grid;
  grid-template-columns: 415px 480px;
  justify-content: center; /* Figma: 入力 240 / 結果 720（パネル左右 70px 空き） */
  gap: 65px;
  margin-top: 51px;
}

/* --- 入力フォーム --- */
.sim-form__row {
  display: grid;
  grid-template-columns: 183px 180px auto;
  align-items: center;
  column-gap: 0; /* ラベル列 183px に入力が直結。単位側だけ 8px 空ける */
  margin-bottom: 30px;
}
/* Figma では「金利」以降がひとまとまりとして 26px 多く空いている */
.sim-form__row:nth-of-type(2) {
  margin-bottom: 56px;
}
.sim-form__row:last-of-type {
  margin-bottom: 0;
}
.sim-form__label {
  font-size: 22px;
  font-weight: 700;
}
.sim-form__control {
  position: relative;
}
.sim-form__input {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border: 2px solid var(--gray-line);
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: var(--tracking);
  color: var(--ink);
  text-align: right;
}
.sim-form__input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.sim-form__control--select .sim-form__input {
  /* 矢印（right:10px・幅15px）に文字がかからないぶんを左右そろえて確保。
     片側だけ広いと text-align:center の中心がずれる */
  padding-inline: 30px;
}
.sim-form__select {
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}
.sim-form__select:disabled {
  background: #f2f2f2;
  color: #999;
  cursor: not-allowed;
}
.sim-form__control--select::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  background: #e9e9e9;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.sim-form__control--select::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 12px;
  top: 50%;
  margin-top: -1px;
  width: 11px;
  height: 9px;
  transform: translateY(-50%);
  background: var(--ink);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  pointer-events: none;
}
.sim-form__unit {
  padding-left: 8px;
  font-size: 16px;
  white-space: nowrap;
}
.sim-form__note {
  grid-column: 1 / -1;
  margin-top: 10px;
  font-size: 16px;
  color: #000;
}

/* --- 結果 --- */
.sim-result__head {
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 10px 20px;
}
.sim-result__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 90px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-top: none;
}
.sim-result__label {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
}
.sim-result__value {
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sim-result__note {
  margin-top: 10px;
  font-size: 12px;
}

/* --- 返済予定表 --- */
.sim__table-title {
  margin-top: 60px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
/* 縦スクロールのヒント（フェード・バッジ）を重ねるための基準 */
.sim-table-vwrap {
  position: relative;
}
.sim-table-scroll {
  margin-top: 30px;
}
.sim-table-wrap {
  width: 640px;
  max-width: 100%;
  margin-inline: auto;
  max-height: 440px;
  overflow-x: hidden; /* 縦スクロールのみ。横は動かさない */
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* 下にまだ行が続くことを示すフェード（スクロールバーを隠しているため） */
.sim-table-vwrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 640px;
  max-width: 100%;
  height: 56px;
  transform: translateX(-50%);
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.75) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.sim-table-vwrap.is-v-scrollable::after {
  opacity: 1;
  visibility: visible;
}

/* 「縦にスクロールできます」バッジ。初回のみ表示し、スクロールしたら消える */
.sim-table-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s;
}
.sim-table-vwrap.is-v-hint .sim-table-hint {
  opacity: 1;
  visibility: visible;
}
.sim-table-hint__arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  animation: sim-table-hint-bounce 1.4s ease-in-out infinite;
}
@keyframes sim-table-hint-bounce {
  0%,
  100% {
    transform: rotate(45deg) translate(-2px, -2px);
    opacity: 0.4;
  }
  50% {
    transform: rotate(45deg) translate(2px, 2px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sim-table-hint__arrow {
    transform: rotate(45deg);
    animation: none;
  }
}
/* スクロールバーの表示は OS / ブラウザ設定で変わるため、
   見え方をそろえる目的でバー自体は隠す（スクロールは可能なまま） */
.sim-table-scroll,
.sim-table-wrap,
.flow {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* 旧 Edge / IE */
}
.sim-table-scroll::-webkit-scrollbar,
.sim-table-wrap::-webkit-scrollbar,
.flow::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome / Safari / Edge */
}
.sim-table {
  width: 640px;
  margin-inline: auto;
  background: #fff;
}
.sim-table th,
.sim-table td {
  border: 1px solid var(--blue-border);
  height: 54px;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sim-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--blue-th);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.sim-table td {
  text-align: right;
}
.sim-table td:first-child {
  text-align: right;
}
/* 未計算時（金額・期間が未入力）の案内行
   列幅・右寄せの指定より詳細度を上げる必要があるため tbody から書く */
.sim-table tbody .sim-table__empty td {
  width: auto;
  height: auto;
  padding: 24px 16px;
  text-align: center;
  white-space: normal;
  color: #767676;
}
.sim-table th:nth-child(1),
.sim-table td:nth-child(1) {
  width: 106px;
}
.sim-table th:nth-child(2),
.sim-table td:nth-child(2) {
  width: 106px;
}
.sim-table th:nth-child(3),
.sim-table td:nth-child(3) {
  width: 128px;
}
.sim-table th:nth-child(4),
.sim-table td:nth-child(4) {
  width: 150px;
}
.sim-table th:nth-child(5),
.sim-table td:nth-child(5) {
  width: 150px;
}

/* ============================================================
   アコーディオン（商品概要 / Q&A 共通）
   ============================================================ */
.accordion__head {
  margin: 0;
}
.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  border: 0;
  background: var(--blue);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.accordion__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--blue);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.accordion__icon::before {
  width: 20px;
  height: 3.5px;
}
.accordion__icon::after {
  width: 3.5px;
  height: 20px;
}
.accordion.is-open .accordion__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.accordion.is-open .accordion__panel {
  grid-template-rows: 1fr;
}
.accordion__panel-inner {
  overflow: hidden;
}

/* ---------- 商品概要 ---------- */
.outline {
  padding: 100px 0 150px;
}
.accordion--outline .accordion__btn {
  height: 80px;
  padding: 0 20px 0 60px;
  border-radius: 15px 15px 0 0;
}
.accordion--outline .accordion__btn-text {
  flex: 1;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
}
.accordion--outline .accordion__icon {
  width: 40px;
  height: 40px;
}
.accordion--outline .accordion__icon::before {
  width: 25px;
  height: 4px;
}
.accordion--outline .accordion__icon::after {
  width: 4px;
  height: 25px;
}
.outline__item {
  padding: 20px 30px;
  background: #fff;
}
.outline__item:nth-child(even) {
  background: var(--blue-bg3);
}
.outline__item dt {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}
.outline__item dd {
  margin: 20px 0 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.outline__notes {
  margin-top: 50px;
  padding: 30px;
  background: var(--gray-bg2);
}
.outline__notes p {
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Q&A ---------- */
.qa {
  padding: 100px 0 80px;
}
.section-head--qa {
  --head-gap: 146px;
}
.qa__char {
  top: 0;
  left: 50%;
  margin-left: -79px;
  width: 159px;
}
.qa__list {
  margin-top: 50px;
}
.accordion--qa + .accordion--qa {
  margin-top: 30px;
}
.accordion--qa .accordion__btn {
  min-height: 62px;
  padding: 18px 20px;
}
.accordion--qa .accordion__btn-text {
  font-size: 16px;
  font-weight: 700;
}
.accordion--qa .accordion__panel-inner p {
  padding: 20px;
  background: var(--blue-bg3);
  font-size: 16px;
}

/* ============================================================
   お申込みについて
   ============================================================ */
.band-title {
  background: var(--blue);
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  padding: 20px var(--pad);
}
.apply {
  background: var(--cream2);
  padding: 50px 0 100px;
}
.apply__heading {
  font-size: 30px;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
}
.apply__heading--flow {
  margin-top: 100px;
}
.apply__docs {
  max-width: 910px;
  margin: 40px auto 0;
  display: grid;
  gap: 52px;
}
.apply-doc {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 40px;
  align-items: start;
}
.apply-doc__icon {
  display: grid;
  place-items: center;
  height: 170px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 10px;
}
.apply-doc__title {
  font-size: 20px;
  font-weight: 700;
}
.apply-doc__text {
  margin-top: 10px;
  font-size: 16px;
}
.apply-doc__text--sm {
  margin-top: 10px;
}
.apply__caution {
  max-width: 910px;
  margin-inline: auto;
  margin-top: 50px;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
}
.apply__caution-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.apply__caution-text {
  margin-top: 20px;
  font-size: 16px;
}

/* --- ご融資までの流れ --- */
.flow {
  margin-top: 50px;
}
.flow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.flow-step__card {
  position: relative;
  margin-top: 28px;
  padding: 45px 20px 20px;
  min-height: 240px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 10px;
  text-align: center;
}
.flow-step__num {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
}
.flow-step__title {
  font-size: 24px;
  font-weight: 700;
}
.flow-step__icon {
  margin-top: 20px;
  display: grid;
  place-items: center;
  min-height: 106px;
}
.flow-step__icon--1 {
  position: relative;
}
.flow-step__icon-hand {
  position: absolute;
  left: 50%;
  margin-left: -23px;
  top: 36px;
}
.flow-step__text {
  margin-top: 20px;
  font-size: 16px;
}

/* --- 来店予約バナー --- */
.bank-banner {
  position: relative;
  margin-top: 80px;
  padding: 40px 20px;
  background: #fff;
  border: 4px solid var(--blue);
  border-radius: 15px;
  text-align: center;
}
.bank-banner__char {
  position: absolute;
  top: 20px;
  width: 84px;
}
.bank-banner__char--left {
  left: 160px;
}
.bank-banner__char--right {
  right: 160px;
}
.bank-banner__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--orange-text);
}
.bank-banner__text {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 700;
}
.bank-banner .btn {
  margin: 30px auto 0;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}

/* ============================================================
   お問い合わせ
   ============================================================ */
.contact {
  position: relative;
  padding-top: 140px;
  background: #fff;
}
.contact__char {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 362px;
}
.contact__body {
  background: var(--gray-bg);
  padding: 100px 0; /* Figma: グレー帯 653px（上下 100px） */
}
.contact__inner {
  display: grid;
  grid-template-columns: 360px 700px;
  justify-content: space-between;
  gap: 40px;
}
/* Figma: 白カードは左右とも relY317 / 高さ 376px で揃う。
   左カード（3ボタン）が自然高 376px なので、右カードを同じ高さまで伸ばす */
.contact__col {
  display: flex;
  flex-direction: column;
}
.contact__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.contact__card {
  flex: 1;
  margin-top: 30px;
  padding: 24px 40px;
  background: #fff;
  border-radius: 15px;
}
.contact__card--row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 40px;
}
.contact__unit {
  width: 280px;
}
.contact__label {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.contact__label + .btn-outline {
  margin-top: 14px;
}
.btn-outline + .contact__label,
.btn-yellow + .contact__label {
  margin-top: 14px;
}
.contact__label + .btn-yellow {
  margin-top: 20px;
}
.contact__tel + .btn-yellow {
  margin-top: 15px;
}
.contact__tel {
  margin-top: 15px;
  line-height: 1.3;
  text-align: center;
}
.contact__tel a {
  font-size: 34px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

/* ============================================================
   フッター
   ============================================================ */
.footer {
  background: var(--blue);
  color: #fff;
  padding: 40px var(--pad);
  text-align: center;
}
.footer__legal {
  font-size: 14px;
}
.footer__copy {
  margin-top: 30px;
  font-size: 14px;
}

/* ============================================================
   タブレット（〜1180px）: 全体を等倍縮小せず余白だけ詰める
   ============================================================ */
@media (max-width: 1180px) {
  /* 固定 CTA バー：2 段に折り返さないようボタンと文字を画面幅に追従 */
  .cv__buttons .btn {
    font-size: min(26px, 3.1vw);
  }
  .cv__buttons .btn__arrow {
    right: min(25px, 2.1vw);
  }
  .cv__note {
    font-size: min(18px, 2.1vw);
  }
  /* スペックバーは white-space: nowrap のため縮まない。画面幅に追従させる */
  .spec__item {
    padding-inline: min(30px, 2.4vw);
  }
  .spec__label,
  .spec__value {
    font-size: min(22px, 2.15vw);
  }
  .sim__cols {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .sim-form {
    width: 100%;
    max-width: 415px;
  }
  .sim-result {
    width: 100%;
    max-width: 480px;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .contact__col {
    width: 100%;
    max-width: 700px;
  }
  .features__photo {
    display: none;
  }
  .features__char {
    right: 0;
    left: auto;
  }
  .worry__head {
    padding-top: 0;
  }
  .worry__char {
    position: static;
    display: block;
    margin: 0 auto 10px;
  }
  .worry {
    padding-bottom: 100px;
  }
}

/* ============================================================
   スマートフォン（〜768px）
   ============================================================ */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .header__inner {
    height: 52px;
    padding-inline: 20px;
  }
  .header__logo img {
    width: 156px;
  }

  /* MV */
  .mv {
    /* 430px = 大型スマートフォンの実幅上限。それ以上は拡大しない */
    --mv-frame: min(430px, 100vw);
    background-image: url("../assets/img/mv-bg-sp.png");
    height: calc(var(--mv-frame) * 610 / 390);
  }
  .mv__element--pc {
    display: none;
  }
  .mv__element--sp {
    display: block;
    width: calc(var(--mv-frame) * 357.5 / 390);
  }

  /* CTA */
  :root {
    --cv-h: 109px; /* フォールバック（JS が実測値で上書き） */
  }
  .cv {
    padding: 15px 10px;
  }
  .cv__note {
    font-size: min(12px, 3.15vw); /* 小型端末でも 1 行を維持 */
  }
  .cv__buttons {
    gap: 10px;
    margin-top: 10px;
    flex-wrap: nowrap;
  }
  .btn {
    width: auto;
    height: 50px;
    font-size: 16px;
    padding-inline: 8px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .cv__buttons .btn {
    flex: 0 1 auto;
    min-width: 0;
  }
  .cv__buttons .btn--orange {
    flex-basis: 170px;
    font-size: clamp(16px, 5.1vw, 20px);
  }
  .cv__buttons .btn--blue {
    flex-basis: 190px;
    font-size: clamp(13px, 4.1vw, 16px);
  }
  .btn__arrow {
    display: none;
  }
  .bank-banner .btn {
    width: 100%;
    flex: none;
    font-size: 20px;
    height: 70px;
  }
  .bank-banner .btn__arrow {
    display: block;
  }

  /* スペック */
  .spec {
    padding: 40px 0;
    margin-block: 0;
  }
  .spec__list {
    display: block;
  }
  .spec__item {
    padding: 0 0 20px;
  }
  .spec__item + .spec__item {
    border-left: 0;
    border-top: 1px solid var(--gray-line2);
    padding-top: 20px;
  }
  /* @media (max-width: 1180px) の横並び用 vw 指定（min(22px, 2.15vw) =
     390px 幅で 8px）を打ち消す。ラベルは短いので固定 22px、
     値は nowrap で長いため画面幅に追従させる */
  .spec__label {
    font-size: 22px;
  }
  .spec__value {
    font-size: min(5.4vw, 22px);
  }
  .spec__note {
    font-size: 13px;
    text-align: left;
  }

  /* 見出し */
  .section-title,
  .section-head__title {
    font-size: 28px;
  }
  .u-br-sp {
    display: inline;
  }
  /* Figma SP: 透かし28 → 見出し122（差 94px）、透かしは 100px/130px */
  .section-head {
    --head-gap: 94px;
  }
  .section-head__watermark {
    font-size: 100px;
    line-height: 130px;
  }
  .section-head__title {
    font-size: 28px;
    line-height: 1.6;
  }
  .section-head__char {
    top: 0;
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%);
  }
  .features__char,
  .sim__char {
    width: 66px;
  }
  .features__char {
    top: -28px; /* キャラはセクション上端＝透かしの 28px 上 */
  }
  .sim__char {
    top: -114px; /* Figma SP: .sim 上端の 64px 上（見出しは上端 +50 から） */
  }

  /* 特長 — Figma SP: 透かし58 / 見出し152 / カード282、カード間 50px */
  .features {
    padding: 58px 0 60px;
  }
  .features__list {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 40px;
  }
  .feature-card__num {
    top: -40px;
    right: 0;
  }
  .feature-card__title {
    font-size: 22px;
  }
  .feature-card__text {
    font-size: 16px;
  }
  .features__last {
    margin-top: 50px;
  }
  .feature-card--center {
    width: 100%;
  }

  /* お悩み */
  .worry {
    padding-bottom: 0px;
  }
  /* Figma SP: キャラ 70x112、見出し 28px/lh1.6（「お悩み」のみ 42px/lh1.3） */
  .worry__char {
    width: 70px;
  }
  .worry__title {
    font-size: 28px;
    line-height: 1.6;
  }
  .worry__title em {
    font-size: 42px;
    line-height: 1.3;
  }
  .worry__sub {
    font-size: 26px;
    line-height: 1.6;
  }
  .worry__list {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
  }
  .worry-item__cloud p {
    font-size: 20px;
  }
  .worry-item__solution {
    font-size: 20px;
  }
  .worry-item__solution em {
    font-size: 28px;
  }

  /* ご利用シーン */
  .scene {
    padding-top: 60px; /* Figma SP: .worry から 60px */
  }
  .section-head--sim {
    --head-gap: 13px; /* Figma SP: .sim 上端から見出しまで 63px */
  }
  .scene__list {
    gap: 40px;
  }
  .scene-item {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: stretch;
  }
  .scene-item__photo {
    justify-self: center;
  }
  .scene-item__chip {
    font-size: 18px;
  }
  .scene-item__problem,
  .scene-item__solution {
    font-size: 20px;
  }
  .scene-item__text {
    font-size: 16px;
  }

  /* 写真ストリップ */
  .photo-strip {
    --marquee-duration: 30s; /* 1200px / 30s = 40px/s（PC と同速） */
    margin: 60px 0 80px;
  }
  .photo-strip__list img {
    width: 300px;
    height: 225px;
  }

  /* シミュレーション */
  .sim__lead {
    margin-top: 20px;
    text-align: left;
    font-size: 16px;
  }
  .sim__cols {
    gap: 40px;
    margin-top: 22px;
  }
  .sim-form,
  .sim-result {
    max-width: none;
  }
  /* Figma SP: ラベル 147 / 入力 160 / 単位 43（合計 350）の比率で追従 */
  .sim-form__row {
    grid-template-columns: minmax(0, 147fr) minmax(0, 160fr) minmax(
        min-content,
        43fr
      );
    column-gap: 0;
    margin-bottom: 20px;
  }
  .sim-form__row:nth-of-type(2) {
    margin-bottom: 20px; /* SP は行間が一定 */
  }
  .sim-form__unit {
    padding-left: 9px;
  }
  .sim-form__label {
    font-size: 18px;
  }
  .sim-form__input {
    font-size: 20px;
    padding-inline: 14px;
  }
  .sim-form__control--select .sim-form__input {
    padding-inline: 26px;
  }
  .sim-form__note {
    font-size: 14px;
  }
  .sim-result__head {
    font-size: 22px;
  }
  .sim-result__row {
    min-height: 60px;
    padding: 14px 20px;
  }
  .sim-result__label {
    font-size: 16px;
  }
  .sim-result__value {
    font-size: 20px;
  }
  .sim__table-title {
    margin-top: 40px;
    font-size: 22px;
    line-height: 1.6;
  }
  .sim-table-scroll {
    margin-top: 20px;
    overflow-x: auto;
    overscroll-behavior-x: none;
  }
  .sim-table-wrap {
    width: 516px;
    max-width: none;
    margin-inline: 0;
    max-height: 400px;
  }
  /* SP は表が横スクロールするため、フェードは表示領域いっぱいに敷く */
  .sim-table-vwrap::after {
    left: 0;
    width: 100%;
    max-width: none;
    height: 48px;
    transform: none;
  }
  .sim-table-hint {
    bottom: 12px;
    padding: 7px 14px;
    font-size: 13px;
  }
  .sim-table {
    width: 516px;
  }
  .sim-table th,
  .sim-table td {
    height: 48px;
    padding: 4px 10px;
    font-size: 16px;
  }
  .sim-table thead th {
    font-size: 16px;
  }
  .sim-table th:nth-child(1),
  .sim-table td:nth-child(1) {
    width: 90px;
  }
  .sim-table th:nth-child(2),
  .sim-table td:nth-child(2) {
    width: 90px;
  }
  .sim-table th:nth-child(3),
  .sim-table td:nth-child(3) {
    width: 100px;
  }
  .sim-table th:nth-child(4),
  .sim-table td:nth-child(4) {
    width: 118px;
  }
  .sim-table th:nth-child(5),
  .sim-table td:nth-child(5) {
    width: 118px;
  }

  /* 商品概要 */
  .accordion--outline .accordion__btn {
    height: 65px;
    padding: 0 16px 0 50px;
  }
  .accordion--outline .accordion__btn-text {
    font-size: 28px;
  }
  .outline {
    padding: 60px 0 48px;
  }
  .outline__item {
    padding: 16px 20px;
  }
  .outline__item dt {
    font-size: 18px;
  }
  .outline__item dd {
    margin-top: 12px;
    font-size: 16px;
  }
  .outline__notes {
    margin-top: 30px;
    padding: 20px;
  }
  .outline__notes p {
    font-size: 12px;
  }

  /* お申込み */
  .band-title {
    font-size: 28px;
    padding: 12px var(--pad);
  }
  .apply {
    padding: 30px 0 60px;
  }
  .apply__heading {
    font-size: 22px;
  }
  .apply__heading--flow {
    margin-top: 60px;
  }
  .apply-doc {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .apply-doc__icon {
    height: 170px;
  }
  .apply-doc__title {
    font-size: 18px;
  }
  .apply__caution {
    padding: 20px;
  }
  .flow {
    overflow-x: auto;
    /* iOS の弾性スクロールで最後のカードより先まで動くのを止める */
    overscroll-behavior-x: none;
    padding-bottom: 6px;
  }
  /* flex + flex-basis だと min-width:auto で中身に押し広げられる余地が残り、
     iOS でスクロール幅がカード 4 枚分より広くなることがある。
     グリッドで 260px × 4 + gap 20px × 3 = 1100px に固定する */
  .flow__list {
    display: grid;
    grid-template-columns: repeat(4, 260px);
    width: max-content;
  }
  .flow-step {
    min-width: 0;
  }
  .bank-banner {
    margin-top: 50px;
    padding: 30px 20px;
  }
  .bank-banner__char {
    position: static;
    display: inline-block;
    width: 56px;
  }
  .bank-banner__char--left,
  .bank-banner__char--right {
    margin: 0 9px;
  }
  .bank-banner__title {
    margin-top: 12px;
    font-size: 22px;
  }
  .bank-banner__text {
    font-size: 16px;
  }

  /* Q&A — Figma SP: 透かし 200px、透かし上端 → 見出し 153px */
  .qa {
    padding-top: 44px;
  }
  .section-head--qa {
    --head-gap: 153px;
  }
  .qa__list {
    margin-top: 40px;
  }
  .section-head--qa .section-head__watermark {
    font-size: 200px;
    line-height: 260px;
  }
  .qa__char {
    top: 4px;
    width: 159px;
  }
  .accordion--qa + .accordion--qa {
    margin-top: 20px;
  }
  .accordion--qa .accordion__btn-text {
    font-size: 15px;
  }

  /* お問い合わせ */
  .contact {
    padding-top: 60px;
  }
  .contact__char {
    width: 180px;
  }
  .contact__body {
    padding: 60px 0 50px;
  }
  .contact__inner {
    gap: 50px;
  }
  .contact__title {
    font-size: 28px;
  }
  .contact__card {
    padding: 24px 20px;
  }
  .contact__card--row {
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
  }
  .contact__unit {
    width: 100%;
  }
  .contact__tel a {
    font-size: 30px;
  }

  /* フッター */
  .footer {
    padding: 30px 12px;
  }
  .footer__legal {
    font-size: 12px;
  }
  .footer__copy {
    font-size: 12px;
  }
}

/* ============================================================
   小型スマートフォン（〜389px / iPhone SE・360px Android など）
   デザインの基準幅 390px を下回る分だけ縮小する
   ============================================================ */
@media (max-width: 389px) {
  .sim-form__label {
    font-size: 16px;
  }
  .sim-form__input {
    font-size: 18px;
    padding-inline: 10px;
  }
  .sim-form__control--select .sim-form__input {
    padding-inline: 22px;
  }
  /* 「元金均等」が入る幅を確保するため、狭い画面では矢印を端に寄せる */
  .sim-form__control--select::after {
    right: 6px;
  }
  .sim-form__control--select::before {
    right: 8px;
  }
  .sim-form__unit {
    font-size: 14px;
    padding-left: 6px;
  }
  .sim-form__note {
    font-size: 12px;
  }

  .sim-result__head {
    font-size: 18px;
  }
  .sim-result__row {
    padding: 12px 14px;
  }
  .sim-result__label {
    font-size: 14px;
  }
  .sim-result__value {
    font-size: 18px;
  }

  .contact__tel a {
    font-size: 26px;
  }
  .bank-banner__title {
    font-size: 20px;
  }
  .accordion--outline .accordion__btn {
    padding-left: 40px;
  }
  .accordion--outline .accordion__btn-text {
    font-size: 24px;
  }
}
