/* ======== Base Style ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #292929;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
}

header,
main,
footer {
  width: 100%;
}

section {
  width: 100%;
  margin: auto;
}

img {
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: #292929;
}

/* ======== Header ======== */
.h-container {
  width: 100%;
  padding: 20px 25px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.h-container .logo {
  width: 200px;
}
.h-container .btn-group {
  display: flex;
  align-items: center;
  gap: 30px;
}
.h-container .btn-group .h-cta {
  width: 250px;
}
.h-container .btn-group .h-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.h-container .btn-group .h-nav a {
  font-size: 16px;
  font-weight: 700;
}

/* ======== Main ======== */

.concern {
  margin-top: -6px;
}

.reason {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 50px 100px;
}
.reason-title {
  position: relative;
  z-index: 2;
  margin-bottom: -65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 30px;
  background-color: #ffffff;
}
.reason-title .title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: auto;
}
.reason-title .title p {
  font-size: 42px;
  font-weight: 700;
  color: #0b193c;
}
.reason-title .title img {
  width: 318px;
}
.reason-title .star {
  width: 427px;
}
.reason-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 40px;
  padding-block: 150px 40px;
  border: 4px solid #00164f;
}
.reason-content .reason-item {
  width: 313px;
}

.plan {
  padding-block: 70px 100px;
}
.plan-content {
  width: 100%;
  max-width: 1220px;
  margin: auto;
  margin-top: 50px;
}
.plan-content .title-box {
  padding-block: 10px;
  border-block: 4px solid #05a7a8;
}
.plan-content .title-box .title {
  padding-block: 10px;
  border-block: 2px dashed #05a7a8;
  text-align: center;
}
.plan-content .title-box .title p {
  font-size: 42px;
  font-weight: 700;
  color: #0b193c;
}
.plan-content .title-box .title span {
  font-size: 52px;
  color: #efea2e;
  -webkit-text-stroke: 2px #1d8c9d;
  -webkit-text-stroke-width: 3px;
}
.plan-content .title-box .title span img {
  width: 180px;
}
.plan-content .items {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
}
.plan-content .plan-item {
  width: 384px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-block: 30px;
  border: 3px solid #1d8c9d;
  border-radius: 6px;
}
.plan-content .plan-item img {
  width: auto;
  height: 142px;
}
.plan-content .plan-item p {
  font-size: 34px;
  font-weight: 700;
  text-align: center;
}

/* ===== plan：スマホ用サイズ調整 ===== */
@media (max-width: 768px) {
  .plan {
    padding-block: 40px 60px;
  }

  .plan-content {
    margin-top: 30px;
    padding-inline: 12px; /* 画面端に詰まりすぎないように */
  }

  /* タイトル */
  .plan-content .title-box .title p {
    font-size: 24px;
    line-height: 1.4;
  }

  .plan-content .title-box .title span img {
    width: 110px;
  }

  /* 3つ並びは維持したまま全体を小さく */
  .plan-content .items {
    gap: 8px;
    margin-top: 24px;
  }

  .plan-content .plan-item {
    width: auto;              /* 固定幅解除 */
    padding-block: 16px;
    gap: 16px;
    border-width: 2px;
  }

  .plan-content .plan-item img {
    height: 80px;             /* アイコンを小さく */
  }

  .plan-content .plan-item p {
    font-size: 18px;
    line-height: 1.3;
  }
}
/* ===== plan：スマホ時の枠サイズ・余白調整 ===== */
@media (max-width: 768px) {
  /* 3つの枠を必ず同じ横幅にする */
  .plan-content .items {
    gap: 8px;
  }

  .plan-content .plan-item {
    flex: 1;                 /* ← 横幅を完全に均等化 */
    width: auto;             /* 固定幅を解除 */
    padding: 14px 10px 16px; /* ← 枠内パディング調整（左右多め） */
    gap: 12px;
    border-width: 2px;
    box-sizing: border-box;  /* ← これ超重要 */
  }

  /* アイコン */
  .plan-content .plan-item img {
    height: 78px;
  }

  /* 文字が枠に当たらないように */
  .plan-content .plan-item p {
    font-size: 17px;
    line-height: 1.4;        /* ← 境界線と当たらない */
    padding-inline: 2px;     /* 念のため */
  }
}


/* ----------- */
.btn-box {
  background: url("../img/contact-bnr-bg.png");
  padding-block: 30px 40px;
  margin-bottom: 20px;
}
.btn-box .btn-box-title {
  width: fit-content;
  margin: auto;
}
.btn-box .btn-box-title p {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #0b193c;
  -webkit-text-stroke: #ffffff;
  paint-order: stroke fill;
}
.btn-box .btn-box-title img {
  width: 160px;
}
.btn-box .btn-content {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 30px;
}
.btn-box .btn-content .btn-item {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.btn-box .btn-content .btn-item p {
  font-size: 18px;
  font-weight: 600;
  color: #0b193c;
  margin-bottom: 30px;
  text-align: center;
}
.btn-box .btn-content .btn-item a {
  width: 100%;
  display: flex;
  margin-bottom: 5px;
}
.btn-box .btn-content .btn-item span {
  font-size: 16px;
  font-weight: 600;
  color: #0b193c;
}


/* ===== btn-box：スマホでは縦並び ===== */
@media (max-width: 768px) {
  .btn-box {
    padding-block: 24px 32px;
  }

  .btn-box .btn-box-title img {
    width: 120px; /* タイトル画像も少し小さく */
  }

  .btn-box .btn-content {
    flex-direction: column;   /* ← 横 → 縦 */
    gap: 20px;                /* 縦間隔 */
    margin-top: 24px;
    padding-inline: 12px;     /* 画面端に詰まりすぎない */
  }

  .btn-box .btn-content .btn-item {
    width: 100%;              /* 横幅いっぱい */
    padding: 20px 16px;       /* SP用にパディング調整 */
    border-radius: 16px;
    box-sizing: border-box;
  }

  .btn-box .btn-content .btn-item p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .btn-box .btn-content .btn-item span {
    font-size: 14px;
  }
}

/* ===== reason：スマホ調整 ===== */
@media (max-width: 768px) {
  .reason {
    padding-inline: 12px; /* section左右に余白 */
    box-sizing: border-box;
  }

  .reason-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 14px;
  }

  .reason-content .reason-item {
    width: 100%;
    box-sizing: border-box;
    margin: 5px;
  }

  .reason-content .reason-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: ;
  }

  /* ★最後の1個を「2列の真ん中」に配置 */
  .reason-content .reason-item:last-child {
    grid-column: 1 / -1;   /* 2列をまたぐ（配置用） */
    width: 50%;            /* 見た目は1列分 */
    justify-self: center;  /* 真ん中に寄せる */
  }
}

/* ===== reason タイトル：スマホ最適化（star表示する） ===== */
@media (max-width: 768px) {
  /* タイトル全体：星を左右に、中央にロゴ＋文言 */
  .reason-title {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: -40px;     /* 既存の-65pxが強すぎる場合の調整 */
    padding-inline: 12px;
  }

  /* 星は消さない（以前の display:none を打ち消す） */
  .reason-title .star {
    display: block;
    width: 90px;              /* スマホ用に小さく */
    height: auto;
    flex-shrink: 0;
  }

  /* 中央のロゴ＋文言は縦並び（画像の下に「が選ばれる理由」） */
  .reason-title .title {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .reason-title .title img {
    width: 160px;             /* ロゴ縮小 */
    height: auto;
  }

  .reason-title .title p {
    font-size: 20px;
    line-height: 1.2;
  }
}



@media (max-width: 768px) {
  .reason-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .reason-title .star {
    display: none; /* スマホでは星は非表示（おすすめ） */
  }

  .reason-title .title {
    display: flex;
    flex-direction: column; /* ← 縦並び */
    align-items: center;
    gap: 4px;
  }

  .reason-title .title img {
    width: 120px; /* ロゴ少し小さく */
    height: auto;
  }

  .reason-title .title p {
    font-size: 20px;
    text-align: center;
  }
}



/* ----------- */
.flow {
  padding-block: 50px;
  background-color: #05a7a8;
}

.flow-title p {
  font-size: 50px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

/* ★ ここを flex → grid に変更 */
.flow-content {
  width: 100%;
  max-width: 1220px;
  margin: 90px auto 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC・タブレット：3列 */
  gap: 50px 90px; /* row-gap / column-gap 相当 */
}

/* スマホ：2列 */
@media (max-width: 768px) {
  .flow-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
}

/* 画像は親幅にフィット */
.flow-item img {
  width: 100%;
  height: auto;
  display: block;
}

.flow .flow-deadline {
  width: 100%;
  max-width: 1220px;
  margin: auto;
  display: flex;
  justify-content: flex-end;
}

.flow .flow-deadline img {
  width: 65%;
  margin-top: 20px;
}

/* flow-deadline：スマホでは横いっぱい */
@media (max-width: 768px) {
  .flow .flow-deadline {
    justify-content: center; /* 右寄せ解除（必要なら） */
  }

  .flow .flow-deadline img {
    width: 100%;
    max-width: 100%;
  }
}

/* ----------- */

.price {
  padding-block: 50px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.section-t {
  font-size: 50px;
  color: #0b193c;
}
.price-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.price-content img {
  width: 36px;
}
.price-content .main-price {
  padding: 5px 20px;
  background-color: #f0fcfc;
  border-block: 2px solid #05a7a8;
  display: flex;
  align-items: center;
  gap: 80px;
}
.price-content .main-price p {
  font-size: 56px;
  font-weight: 700;
  color: #0b193c;
}
.price-content .change-price {
  font-size: 32px;
  font-weight: 700;
  color: #0b193c;
  text-decoration: underline;
  text-decoration-color: #cac624;
  text-align: center;
}

/* ---------- */
.area {
  padding-block: 50px;
  background-color: #f0fcfc;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.area-content {
  width: 100%;
  max-width: 656px;
  margin-top: 76px;
}
.area-content p {
  font-size: 32px;
  font-weight: 700;
  color: #0b193c;
  text-decoration: underline;
  text-decoration-color: #cac624;
  text-align: center;
  margin-top: 42px;
}
/* ---------- */
.faq {
  padding-block: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faq .section-t {
  margin-bottom: 85px;
}
.faq-content {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 55px;
}
.faq-content .faq-item {
  width: 100%;
}
.faq-content .faq-item .q {
  display: flex;
  align-items: center;
  gap: 42px;
  padding: 15px 27px;
  background-color: #f0fcfc;
  border-radius: 200px;
}
.faq-content .faq-item .a {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-top: 35px;
  padding-inline: 27px;
}
.faq-content .faq-item img {
  width: 56px;
}
.faq-content .faq-item p {
  font-size: 32px;
  font-weight: 700;
  color: #149a9b;
  letter-spacing: 2px;
}
.faq-content .faq-item .a p {
  color: #0b193c;
}


/* ===== FAQ：スマホ最適化 ===== */
@media (max-width: 768px) {
  .faq {
    padding-block: 50px;
    padding-inline: 12px; /* 端にベタ付きを防ぐ */
    box-sizing: border-box;
  }

  .faq .section-t {
    margin-bottom: 30px;
    font-size: 26px; /* section-t が共通なら不要。必要なら調整 */
  }

  .faq-content {
    gap: 18px;
  }

  .faq-content .faq-item .q {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px; /* 200pxだと崩れやすいのでSPは控えめ */
  }

  .faq-content .faq-item .a {
    gap: 12px;
    margin-top: 12px;
    padding-inline: 14px;
  }

  /* Q/Aアイコンを小さく */
  .faq-content .faq-item img {
    width: 28px;
    flex-shrink: 0;
  }

  /* 文字をスマホ向けに */
  .faq-content .faq-item p {
    font-size: 16px;
    letter-spacing: 0.5px;
    line-height: 1.4;
  }

  /* 改行タグがあっても詰まりすぎないように */
  .faq-content .faq-item .a p {
    line-height: 1.5;
  }
}


/* ======== footer ======== */
footer {
  background-color: #058081;
  padding-block: 45px 30px;
}
.f-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 66px;
}
.f-container .f-logo {
  width: 180px;
}
.f-container .f-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.f-container .f-nav a {
  font-size: 14px;
  color: #ffffff;
}
.f-container .f-nav span {
  font-size: 14px;
  color: #ffffff;
}
footer .copyright {
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  margin-top: 15px;
}


/* ===== header: スクロール追従（固定） ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff; /* 背景が画像の上に乗っても読めるように */
}

/* ヘッダー固定分、本文を下げる（高さは実際に合わせて調整） */
body {
  padding-top: 84px; /* ←ヘッダーの実高さに合わせて調整 */
}

/* 既存レイアウトが崩れる場合用の最低限 */
.h-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== ハンバーガー（SPだけ表示） ===== */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: #111;
  position: absolute;
  left: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }

/* 開いてる時の× */
body.menu-open .hamburger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ヘッダー高さ（PC/SPで変わるならここだけ調整） */
:root {
  --header-h: 84px;
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }
}

/* ヘッダーは常に最前面 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;
  background: #fff;
}

/* SPメニューは「ヘッダーより下」だけを覆う */
.sp-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
}

body.menu-open .sp-menu {
  display: block;
}

/* 黒い背景（ヘッダー部分はそもそも覆わない） */
.sp-menu__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0,0,0,0.45);
  cursor: pointer;
}

/* 右から出る白いパネル */
.sp-menu__inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: #fff;
  padding: 18px 16px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

body.menu-open .sp-menu__inner {
  transform: translateX(0);
}

/* ハンバーガーは常に押せる（ヘッダーの中なのでOKだが念のため） */
/* ===== z-index 最終整理 ===== */

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
}

/* ハンバーガー / 閉じるボタン（常に最前面） */
.hamburger {
  position: fixed;        /* ← 親の影響を完全に断つ */
  top: 8px;
  right: 12px;
  z-index: 30000;         /* ← 何よりも前 */
  pointer-events: auto;
}

/* SPメニュー全体 */
.sp-menu {
  position: fixed;
  inset: 0;
  z-index: 20000;
}

/* メニュー本体（右から出る） */
.sp-menu__inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  z-index: 20010;
}

/* 暗転レイヤー（これより前に hamburger が来る） */
.sp-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 20000;
}



body.menu-open .sp-menu__inner {
  transform: translateX(0);
}

.sp-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.sp-link {
  display: block;
  padding: 12px 10px;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #eee;
}

.sp-cta {
  display: block;
  margin-top: 16px;
}

/* ===== レスポンシブ切替 ===== */
@media (max-width: 768px) {
  /* PC用の右側を隠す（SPはメニューへ） */
  .btn-group {
    display: none;
  }
  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ヘッダー高さが変わるならbodyのpaddingも調整 */
  body {
    padding-top: 72px; /* SPのヘッダー高さに合わせて */
  }
}

/* ===== SPでPCメニューを確実に非表示 ===== */
@media (max-width: 768px) {
  header .btn-group,
  header .h-nav,
  header .h-cta {
    display: none !important;
  }

  header .hamburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* ハンバーガーをオーバーレイより前面に */
.hamburger {
  position: relative;
  z-index: 1201;
}

/* ヘッダー自体も前に出す（念のため） */
.site-header {
  z-index: 1200;
}

/* sp-menu はそれより下 */
.sp-menu {
  z-index: 1100;
}


:root { --header-h: 84px; }
@media (max-width: 768px){ :root{ --header-h: 72px; } }

/* headerは最前面 */
.site-header { z-index: 3000; }

/* sp-menuはheaderの下の層で表示（白パネルは前面） */
.sp-menu { z-index: 2500; }
.sp-menu__inner { z-index: 2501; position: absolute; }
.sp-menu__backdrop { z-index: 2500; position: absolute; }

/* ヘッダーより下から覆う */
.sp-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  display: none;
}
body.menu-open .sp-menu { display: block; }

/* ハンバーガーは押せるように */
.hamburger { position: relative; z-index: 3100; }


/* fv全体 */
.fv-inner {
  position: relative; /* ← 重ねるための基準 */
  width: 100%;
}

/* メインビジュアル */
.fv-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 見積もりボタン */
.fv-mitsumori {
  position: absolute;
  left: 6%;
  bottom: 10%;
  display: block;
  z-index: 10;
}

/* ボタン画像 */
.fv-mitsumori img {
  width: 500px; /* 好みで調整 */
  height: auto;
}

/* SP用 微調整 */
@media (max-width: 768px) {
  .fv-mitsumori {
    right: 4%;
    bottom: 6%;
  }

  .fv-mitsumori img {
    width: 160px;
  }
}

/* 右端固定ボタン（fv終了後に表示） */
.mitsumori-side {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(24px); /* 最初は少し右に逃がす */
  z-index: 5000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mitsumori-side img {
  width: auto; /* お好みで調整 */
  height: auto;
  display: block;
}

/* 表示状態 */
.mitsumori-side.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

/* SP調整 */
@media (max-width: 768px) {
  .mitsumori-side {
    transform: translateY(-50%) translateX(0) scale(0.5);
    transform-origin: right center; /* 右端基準で縮小 */
  }
}


/* ===== スマホ：全sectionに共通の左右余白 ===== */
@media (max-width: 768px) {
  section {
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }
}

/* ===== FVだけ左右余白なし ===== */
@media (max-width: 768px) {
  .fv {
    padding-left: 0;
    padding-right: 0;
  }
}

html, body {
  overflow-x: hidden;
}




/* スマホ：固定ヘッダー分だけFVを下げて被り防止 */
@media (max-width: 768px) {
  :root { --header-h: 40px; } /* ヘッダーの実高さに合わせて調整 */

  .fv {
    padding-top: var(--header-h);
  }
}


/* ===== z-index整理 ===== */

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
}

/* ハンバーガーボタン（常に最前面） */
.hamburger {
  position: relative;
  z-index: 10020;
}

/* ===== SPメニュー：右寄せ ===== */
.sp-menu {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: none; /* 初期は非表示 */
}

/* メニューOPEN時 */
body.menu-open .sp-menu {
  display: block;
}

/* 右から出てくるメニュー本体 */
.sp-menu__inner {
  position: absolute;
  top: 0;
  right: 0;              /* ← 右寄せ */
  width: 80%;            /* お好みで 70〜85% */
  max-width: 320px;
  height: 100%;
  background: #ffffff;
  padding: 24px 20px;
  box-sizing: border-box;

  transform: translateX(100%); /* 右外に待機 */
  transition: transform 0.3s ease;
  z-index: 10015;
}

/* OPEN時にスライドイン */
body.menu-open .sp-menu__inner {
  transform: translateX(0);
}

/* 背景の暗転 */
.sp-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10005;
}

/* ===== area：スマホ最適化 ===== */
@media (max-width: 768px) {
  .area {
    padding-block: 50px;
    padding-inline: 12px;
    box-sizing: border-box;
  }

  .area .section-t {
    margin-bottom: 24px;
    font-size: 26px; /* section-t が共通なら調整用 */
    text-align: center;
  }

  .area-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .area-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .area-content p {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
  }
}


/* ===== price：スマホ最適化 ===== */
@media (max-width: 768px) {
  .price {
    padding-block: 50px;
    padding-inline: 12px;
    box-sizing: border-box;
    text-align: center;
  }

  .price .section-t {
    margin-bottom: 24px;
    font-size: 26px;
  }

  .price-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .price-content .main-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* 星アイコンを小さく */
  .price-content .main-price img {
    width: 22px;
    height: auto;
  }

  /* 金額をスマホ向けサイズに */
  .price-content .main-price p {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap; /* 改行防止 */
  }

  .price-content .change-price {
    font-size: 14px;
    line-height: 1.4;
    color: #0b193c;
  }
}


/* ===== plan：スマホで plan-item の幅を完全に揃える ===== */
@media (max-width: 768px) {
  .plan-content .items {
    display: flex;
    gap: 8px;
  }

  .plan-content .plan-item {
    flex: 1;                 /* ← これが一番重要 */
    width: auto;             /* 固定幅を解除 */
    box-sizing: border-box;
    padding: 14px 10px 16px; /* 枠内余白を統一 */
    gap: 12px;
  }

  .plan-content .plan-item p {
    font-size: 16px;
    line-height: 1.35;
    text-align: center;
  }

  .plan-content .plan-item .ico img {
    height: 70px;
    width: auto;
  }
}



.mitsumori-side img{
  content: url("../img/mitsumori_side.png");
}

/* SP */
@media (max-width: 768px){
  .mitsumori-side img{
    content: url("../img/mitsumori_side_sp.png");
  }
}


@media (max-width: 768px) {
  .reason-content {
    padding-block: 60px 24px; /* 上下を大幅に縮める */
    padding-inline: 12px;     /* 左右も少しだけ */
    box-sizing: border-box;
  }
}


/* ===== plan：タイトルを少し小さく（スマホ） ===== */
@media (max-width: 768px) {
  .plan-content .title-box .title p {
    font-size: 20px;     /* ← 少し小さく（元が大きめなので程よく） */
    line-height: 1.4;
  }

  .plan-content .title-box .title span img {
    width: 96px;         /* 「4日以内」画像も一緒に少し縮小 */
    height: auto;
  }
}


/* ===== plan-item ico：横幅を統一（スマホ） ===== */
/* ===== plan-item：アイコン高さを揃えてテキストの凸凹を解消（SP） ===== */
@media (max-width: 768px) {
  /* アイコンの入れ物を固定高さにする */
  .plan-content .plan-item .ico {
    height: 72px;               /* ← ここで全員の高さを統一（調整OK） */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 画像は枠内に収める（比率維持） */
  .plan-content .plan-item .ico img {
    max-width: 56px;            /* ← 横幅の上限（統一したいサイズ） */
    max-height: 72px;           /* ← icoの高さに合わせる */
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
  }
}

/* ===== flow-title：スマホサイズ最適化 ===== */
@media (max-width: 768px) {
  .flow-title {
    margin-bottom: 20px;
  }

  .flow-title p {
    font-size: 26px;   /* ← 見出しとしてちょうど良い */
    line-height: 1.3;
    letter-spacing: 1px;
  }
}


/* ===== fv-mitsumori：スマホ時の位置＆サイズ調整 ===== */
@media (max-width: 768px) {
  .fv-mitsumori {
    left: auto;        /* PC指定を無効化 */
    left: 3%;         /* 右寄せ */
    bottom: 20%;        /* 少し上げる（被り防止） */
  }

  .fv-mitsumori img {
    width: 280px;      /* ← スマホでちょうどいいサイズ */
    height: auto;
  }
}
