/* ================================================================
 * TOP PAGE (front-page) — Figma node 106:410 忠実再現版
 * ============================================================== */

/* =========================================================
 * ① HERO — Figma 106:412 (1920×650 固定)
 * 左：コピー / 中央：女性写真＋千葉県マップ / 右：シミュレーターカード
 * ======================================================= */
.hero {
  position: relative;
  background-color: #d1f1f7;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg-pattern.png") top left / 120px 120px repeat;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

/* Figma 1920×650 ベース：1200幅コンテナ内に絶対配置。
 *   copy:   x=0,   y=51 w=665（バッジ折返し幅）
 *   visual: x=365, y=49 w=470（コピーと重なる）
 *   card:   x=805, y=66 w=395
 */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 24px;
  min-height: 650px;
}

/* ---- Left ---- */
.hero__copy {
  position: absolute;
  top: 51px;
  left: 24px;
  width: 665px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 3;
}
.hero__headline {
  margin: 0;
  width: 474px;
  max-width: 100%;
}
.hero__headline img {
  width: 100%;
  height: auto;
  display: block;
}
/* 画像が未到達の場合のフォールバック文字（altが見える） */
.hero__headline img[src$="hero-pc-headline.png"]:not([src*="?"])::before {
  content: attr(alt);
}

.hero__note {
  margin: 0;
  font-family: var(--font-jp-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  color: #1a8094;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 665px;
  max-width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 10px 20px;
  background: #fff;
  border: 2px solid #1fa6c1;
  border-radius: 50px;
  white-space: nowrap;
}
.hero-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(90deg, #1fa6c1, #1a8094);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-badge__icon img {
  width: 20px;
  height: 20px;
}
.hero-badge__text {
  font-family: var(--font-jp-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: #1fa6c1;
}

.hero__caption {
  font-size: 12px;
  line-height: 1.6;
  color: #222;
}

/* ---- Center (woman + chiba map)
 *   Figmaレイヤー順：map（背面） → woman（前面）
 *   map位置：写真の左端から 107px、上端から 9px
 *   比率：map 135×212（アスペクト比を固定）、woman は自然比率で表示
 * ---- */
.hero__visual {
  position: absolute;
  top: 49px;
  left: 340px;
  width: 470px;
  z-index: 2;
  isolation: isolate;
}
.hero__map {
  position: absolute;
  top: 2%;
  left: 22.8%;
  width: 28.7%;
  height: auto;
  aspect-ratio: 135 / 212;
  object-fit: contain;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  display: block;
}
.hero__woman {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 2;
}

/* ---- Right (Simulator card) ---- */
.sim-card {
  position: absolute;
  top: 66px;
  right: 24px;
  width: 395px;
  background: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(34, 34, 34, 0.25);
  overflow: hidden;
  z-index: 3;
}
.sim-card__title {
  margin: 0;
  padding: 20px 30px;
  background: linear-gradient(90deg, #1fa6c1 0%, #006d83 100%);
  color: #fff;
  font-family: var(--font-jp-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.8;
  text-align: center;
}
.sim-card__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 30px;
}
.sim-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 0.5px solid #d9d9d9;
  border-radius: 5px;
  box-shadow: 0 4px 0 #d9d9d9;
  min-height: 72px;
  overflow: hidden;
}
.sim-card__row label {
  flex: 0 0 80px;
  font-family: var(--font-jp-body);
  font-weight: 500;
  font-size: 14px;
  color: #222;
  white-space: nowrap;
}
.sim-card__input {
  flex: 1;
  min-width: 0; /* flex子のoverflow防止 */
  display: flex;
  align-items: center;
  gap: 6px;
}
.sim-card__input select,
.sim-card__input input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: #f9f9f9;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  color: #222;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
/* ブラウザ標準のnumberスピナーを非表示 */
.sim-card__input input[type="number"]::-webkit-inner-spin-button,
.sim-card__input input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.sim-card__input--select {
  position: relative;
}
.sim-card__input--select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #1fa6c1;
  border-bottom: 2px solid #1fa6c1;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.sim-card__input select {
  background: #fff;
  padding-right: 32px;
}
.sim-card__suffix {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}
.sim-card__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 295px;
  padding: 20px 60px;
  margin: 0 auto;
  background: linear-gradient(90deg, #1fa6c1 0%, #006d83 100%);
  border: 0;
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-jp-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.15s var(--ease),
    filter 0.15s var(--ease);
  white-space: nowrap;
}
.sim-card__submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.sim-card__submit:active {
  transform: translateY(1px);
}
.sim-card__submit-arrow {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Hero responsive：中間幅（768〜1199）用の2列グリッドフォールバック
 * 1200未満では絶対配置を解除し、コピー＋写真を左、シミュレーターを右に配置。
 */
@media (max-width: 1199px) and (min-width: 768px) {
  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 360px;
    grid-template-areas:
      "copy card"
      "visual card";
    column-gap: 24px;
    row-gap: 16px;
    padding: 32px 24px;
    min-height: 0;
    align-items: start;
  }
  .hero__copy {
    position: static;
    grid-area: copy;
    top: auto;
    left: auto;
    width: auto;
    max-width: 500px;
    justify-self: start;
    align-self: start;
  }
  .hero__badges {
    width: auto;
  }
  .hero__visual {
    position: relative;
    grid-area: visual;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 420px;
    justify-self: center;
    align-self: end;
    margin-inline: 0;
  }
  .sim-card {
    position: static;
    grid-area: card;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 395px;
    justify-self: end;
    align-self: stretch;
  }
}

/* =========================================================
 * ② 当日申込OK バナー — Figma 106:519 忠実再現
 * ======================================================= */
.banner-today {
  padding: 50px 50px;
  display: flex;
  justify-content: center;
  background: #fff;
}
.banner-today__card {
  position: relative;
  width: 100%;
  max-width: 1820px;
  height: 481px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  isolation: isolate;
}
.banner-today__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.banner-today__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-today__overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.5);
  pointer-events: none;
}
.banner-today__content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

/* ---- タイトル（画像書き出し） ---- */
.banner-today__title {
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 0;
}
.banner-today__title img {
  display: inline-block;
  width: auto;
  height: 104px; /* Figma実寸：1148×208 @2x → 574×104 */
  max-width: 100%;
}

/* ---- リード ---- */
.banner-today__lead {
  margin: 0;
  font-family: var(--font-jp-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
  text-align: center;
}

/* ---- ボタン ---- */
.banner-today__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 295px;
  padding: 20px 60px;
  background: linear-gradient(90deg, #1fa6c1 0%, #006d83 100%);
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-jp-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s var(--ease),
    filter 0.15s var(--ease);
}
.banner-today__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  opacity: 1;
}
.banner-today__btn-arrow {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* =========================================================
 * ③ 即日入居スタート — Figma 106:537 忠実再現
 * ======================================================= */
.steps {
  position: relative;
  background: #1fa6c1;
  color: #fff;
  padding: 50px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
/* サンバースト（放射状）背景：CSSで近似 */
.steps__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background: repeating-conic-gradient(
    from 0deg at 50% 140%,
    rgba(255, 255, 255, 0.45) 0deg 2deg,
    transparent 2deg 6deg
  );
}
.steps__deco {
  position: absolute;
  bottom: 0;
  width: 210px;
  height: auto;
  pointer-events: none;
  z-index: 2;
}
.steps__deco--left {
  left: 200px;
}
.steps__deco--right {
  right: 210px;
}

.steps__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

/* ---- タイトル（画像） ---- */
.steps__title {
  margin: 0;
  text-align: center;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}
.steps__title img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* ---- 3枚カード（画像書き出し：枠・影・ラベル込み） ---- */
.step-cards {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}
.step-card {
  flex: 0 0 380px;
  width: 380px;
  height: auto;
  display: block;
}

/* ---- リード ---- */
.steps__lead {
  margin: 0;
  font-family: var(--font-jp-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 2;
  color: #fff;
  text-align: center;
}

/* ---- ボタン ---- */
.steps__cta {
  display: flex;
  justify-content: center;
}
.steps__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 295px;
  padding: 20px 60px;
  background: linear-gradient(90deg, #1fa6c1 0%, #006d83 100%);
  border: 2px solid #C7EDF4;
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-jp-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s var(--ease),
    filter 0.15s var(--ease);
}
.steps__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  opacity: 1;
}
.steps__btn-arrow {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* =========================================================
 * ④ シンプルな料金体系 — Figma 106:633 忠実再現
 * ======================================================= */
.pricing {
  position: relative;
  padding: 100px 24px;
  background: #c7edf4;
  overflow: hidden;
  isolation: isolate;
}
.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(31, 166, 193, 0.35) 1.6px, transparent 2px),
    radial-gradient(circle, rgba(31, 166, 193, 0.35) 1.6px, transparent 2px);
  background-size: 18px 18px;
  background-position:
    0 0,
    9px 9px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
.pricing__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

/* ---- タイトル（画像書き出し：枠＋PRICE LIST eyebrow込み） ---- */
.pricing__title {
  margin: 0;
  text-align: center;
  line-height: 0;
  position: relative;
}
.pricing__title-img {
  display: inline-block;
  width: auto;
  height: 127px; /* Figma実寸：1384×255 @2x → 692×127 */
  max-width: 100%;
}
.pricing__title-sp {
  display: none; /* PCでは非表示 */
}

/* ---- リード ---- */
.pricing__lead {
  margin: 0;
  font-family: var(--font-jp-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 2;
  color: #1d99b2;
  text-align: center;
}

/* ---- プラン表 ---- */
.plan-table {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}
.plan-row {
  display: grid;
  /* 左2セル（プラン名・利用期間）を圧縮して rate/pack 側に幅を配分。
     period は「30泊〜」が1行に収まる幅（170px）を確保、
     rate/pack は桁数の多い pack を広めに保ちつつ rate の ¥マーク見切れを防ぐ
     0.85:1 比率で割り振る（3プランとも同一グリッドで統一）。 */
  grid-template-columns: 280px 170px 0.85fr 1fr;
  align-items: stretch;
  box-shadow: 0 6px 0 rgba(34, 34, 34, 0.25);
  border-radius: 16px;
  /* 各セルは個別に背景とborderを持つ */
}

/* 各プランのテーマカラー変数 */
.plan-row--long {
  --plan-color: #f29f05;
  --plan-bg: #fff6e4;
  --plan-name-text: #f29f05;
  --plan-period-text: #f29f05;
}
.plan-row--middle {
  --plan-color: #1fa6c1;
  --plan-bg: #ecfcff;
  --plan-name-text: #1fa6c1;
  --plan-period-text: #1fa6c1;
}
.plan-row--short {
  --plan-color: #007c91;
  --plan-bg: #ffffff;
  --plan-name-text: #007c91;
  --plan-period-text: #006d83;
}

/* プラン名セル（左端） */
.plan-row__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px 20px;
  background: var(--plan-color);
  border-radius: 16px 0 0 16px;
  color: #fff;
}
.plan-row__main-name {
  font-family: var(--font-jp-heading);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.5;
  color: #fff;
}
.plan-row__sub-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #fff;
  border-radius: 50px;
  font-family: var(--font-jp-heading);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.5;
  color: var(--plan-name-text);
  white-space: nowrap;
}

/* ご利用期間セル */
.plan-row__period {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: var(--plan-bg);
  border: 3px solid var(--plan-color);
  border-right: 0;
}
.plan-row__period-label {
  font-family: var(--font-jp-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: #222;
}
.plan-row__period-value {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-jp-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: #222;
  /* 「30泊〜」が狭幅セル内でも1行に保たれるように改行禁止 */
  white-space: nowrap;
}
.plan-row__period-value strong {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  color: var(--plan-period-text);
}

/* 単価／パック料金セル */
.plan-row__rate,
.plan-row__pack {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding: 20px 30px 20px 20px;
  background: var(--plan-bg);
  border: 3px solid var(--plan-color);
  border-right: 0;
  /* 1fr 1fr の grid を正しくシュリンクさせるため */
  min-width: 0;
  overflow: hidden;
}
.plan-row__pack {
  border-right: 3px solid var(--plan-color);
  border-radius: 0 16px 16px 0;
}
.plan-row__price {
  display: inline-flex;
  align-items: flex-end;
  font-family: var(--font-en);
  font-weight: 900;
  color: #e01b1f;
  line-height: 1.5;
  white-space: nowrap;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}
.plan-row__price-sym,
.plan-row__price-num {
  color: #e01b1f;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  text-shadow: none;
}
.plan-row__price-sym {
  font-size: 36px;
  line-height: 1.5;
}
.plan-row__price-num {
  font-size: 64px;
  line-height: 1.5;
}
.plan-row__unit {
  font-family: var(--font-jp-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: #222;
  margin-left: 2px;
  /* 狭い画面でも "/30泊" が単独で改行しないよう保護 */
  white-space: nowrap;
  flex-shrink: 0;
}

/* ノートPC〜タブレット域（768〜1199px）で価格・単位を縮小して
   "¥144,000" と "/30泊" が同一行に収まるようにする */
@media (min-width: 768px) and (max-width: 1199px) {
  .plan-row {
    /* 桁数の多い pack セルに幅を寄せつつ、rate も ¥マーク見切れしない幅を確保
       period は「30泊〜」が1行に収まるよう 170px を確保 */
    grid-template-columns: 280px 170px 0.85fr 1fr;
  }
  .plan-row__rate,
  .plan-row__pack {
    padding: 16px 14px;
    min-width: 0;
    overflow: hidden;
  }
  .plan-row__price-sym { font-size: 26px; }
  .plan-row__price-num { font-size: 44px; }
  .plan-row__unit { font-size: 14px; margin-left: 4px; }
  .plan-row__period-value strong { font-size: 36px; }
  .plan-row__period-label { font-size: 14px; }
  .plan-row__period-value { font-size: 14px; }
  .plan-row__main-name { font-size: 26px; }
  .plan-row__sub-name { font-size: 13px; padding: 6px 14px; white-space: nowrap; }
}

/* ---- 注釈 ---- */
.pricing__note {
  margin: 0;
  font-family: var(--font-jp-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 2;
  color: #666;
  text-align: left;
  align-self: flex-start;
}

/* =========================================================
 * ⑤ 圧倒的コスパ比較表 — Figma 106:705 忠実再現
 * ======================================================= */
.compare {
  background: #fff;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

/* ---- タイトル帯 + 三角ノッチ ---- */
.compare__hero {
  position: relative;
  width: 100%;
  background: #2eacc6;
  padding: 80px 20px;
  text-align: center;
}
.compare__title {
  margin: 0;
  text-align: center;
  line-height: 0;
}
.compare__title img {
  display: inline-block;
  width: auto;
  height: 93px; /* Figma実寸：2144×187 @2x → 1072×93.5 */
  max-width: 100%;
}
.compare__notch {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  width: 68px;
  height: 36px;
  background: #2eacc6;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ---- リード ---- */
.compare__lead {
  margin: 0;
  font-family: var(--font-jp-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 2;
  color: #1d99b2;
  text-align: center;
}

/* ---- 比較表（grid 4列） ---- */
.compare-tablewrap {
  position: relative;
  width: 100%;
  max-width: 1248px; /* 1200 + padding */
  margin-inline: auto;
}
.compare-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  padding-inline: 24px;
  margin-inline: auto;
}
/* スクロールヒントは scroll-hint ライブラリ（.js-scrollable）に一任 */
.compare-row {
  display: grid;
  grid-template-columns: 250px 420px 1fr 1fr;
  column-gap: 10px;
  align-items: stretch;
}
.compare-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: var(--font-jp-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #999;
}

/* ---- ヘッダー行 ---- */
.compare-row--head .compare-cell {
  padding: 30px 50px;
  font-weight: 700;
  font-size: 20px;
  line-height: 2;
  color: #999;
}
.compare-cell--empty {
  background: transparent;
  opacity: 0;
}
/* --primaryhead — .compare-cell--primary より後に定義される --primary に上書きされないよう
   .compare-row--head の子孫として優先度を上げる */
.compare-row--head .compare-cell--primaryhead {
  background: #1d99b2;
  border-radius: 16px 16px 0 0;
  font-family: var(--font-jp-mincho);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.1em;
  color: #ffd447;
  white-space: nowrap;
}
.compare-cell--colhead {
  background: #f5f5f5;
  border-radius: 16px 16px 0 0;
  white-space: nowrap;
}

/* ノートPC〜タブレット域（768〜1199px）でヘッダー・データセルの
   padding / font-size を縮小して、タブタイトルが1行に収まるようにする */
@media (min-width: 768px) and (max-width: 1199px) {
  .compare-row {
    grid-template-columns: 200px 340px 1fr 1fr;
    column-gap: 8px;
  }
  .compare-row--head .compare-cell {
    padding: 20px 14px;
    font-size: 15px;
    line-height: 1.5;
  }
  .compare-row--head .compare-cell--primaryhead {
    font-size: 16px;
    padding: 20px 10px;
  }
  .compare-cell {
    padding: 14px 10px;
    font-size: 13px;
  }
}

/* ---- データ行 ---- */
.compare-cell--rowlabel {
  background: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 2;
  color: #222;
  border-bottom: 2px solid #e5e5e5;
}
.compare-cell--primary {
  background: #ecfcff;
  border-right: 2px solid rgba(29, 153, 178, 0.2);
  border-bottom: 2px solid rgba(29, 153, 178, 0.2);
  border-left: 2px solid rgba(29, 153, 178, 0.2);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: #006d83;
  padding: 30px 50px;
}
.compare-row:not(.compare-row--head)
  .compare-cell:not(.compare-cell--rowlabel):not(.compare-cell--primary) {
  border-bottom: 2px solid #e5e5e5;
}

/* 最終行の角丸（主カラム） */
.compare-row--last .compare-cell--primary {
  border-radius: 0 0 16px 16px;
}

/* スマホ域（〜767px）
   各 .compare-row は独立した grid のため、横幅が縮むと 1fr 列幅が
   行ごとの文字量で変わり、列が縦に揃わずズレてしまう。
   min-width で横スクロール前提にし、全行で列幅を固定して縦のズレを解消する。
   ヘッダーの white-space:nowrap も解除し、データ行と同じ列幅に揃える。 */
@media (max-width: 767px) {
  .compare-table {
    min-width: 720px;
    padding-inline: 0;
  }
  .compare-row {
    grid-template-columns: 120px 210px 1fr 1fr;
    column-gap: 6px;
  }
  .compare-row--head .compare-cell {
    padding: 14px 8px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
  }
  .compare-row--head .compare-cell--primaryhead {
    font-size: 13px;
    padding: 14px 6px;
    white-space: normal;
  }
  .compare-cell--colhead {
    white-space: normal;
  }
  .compare-cell {
    padding: 12px 7px;
    font-size: 12px;
  }
  .compare-cell--rowlabel {
    font-size: 13px;
    line-height: 1.5;
  }
  .compare-cell--primary {
    padding: 12px 8px;
    font-size: 12px;
  }
}

/* =========================================================
 * ⑤-b 物件外観フォト — Figma 143:119 / 1200×400
 * ======================================================= */
.property-photo {
  padding: 0 24px 100px;
  background: #fff;
  display: flex;
  justify-content: center;
}
.property-photo__frame {
  margin: 0;
  width: 100%;
  max-width: 1200px;
  height: 400px;
  background: #d9d9d9;
  overflow: hidden;
}
.property-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
 * ⑥ カンタン申込 CTA — Figma 106:787 忠実再現
 * ======================================================= */
.cta-apply {
  padding: 50px 50px;
  display: flex;
  justify-content: center;
  background: #fff;
}
.cta-apply__card {
  position: relative;
  width: 100%;
  max-width: 1820px;
  height: 481px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  isolation: isolate;
}
.cta-apply__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #ffd447;
  /* 市松模様（チェッカーパターン）— 2枚の45度グラデを重ねて格子化 */
  background-image:
    linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.35) 25%,
      transparent 25%,
      transparent 75%,
      rgba(255, 255, 255, 0.35) 75%
    ),
    linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.35) 25%,
      transparent 25%,
      transparent 75%,
      rgba(255, 255, 255, 0.35) 75%
    );
  background-size: 120px 120px;
  background-position:
    0 0,
    60px 60px;
}
.cta-apply__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

/* ---- タイトル（画像書き出し） ---- */
.cta-apply__title {
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 0;
}
.cta-apply__title img {
  display: inline-block;
  width: auto;
  height: 104px; /* Figma実寸：1148×208 @2x → 574×104 */
  max-width: 100%;
}

/* ---- リード ---- */
.cta-apply__lead {
  margin: 0;
  font-family: var(--font-jp-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: #006d83;
  text-align: center;
}

/* ---- ボタン ---- */
.cta-apply__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 295px;
  padding: 20px 60px;
  background: linear-gradient(90deg, #1fa6c1 0%, #006d83 100%);
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-jp-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s var(--ease),
    filter 0.15s var(--ease);
}
.cta-apply__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  opacity: 1;
}
.cta-apply__btn-arrow {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ---- イラスト ---- */
.cta-apply__illust {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.cta-apply__illust--left {
  left: 100px;
  top: 189px;
  width: 214px;
  height: 292px;
}
.cta-apply__illust--right {
  right: 121px;
  bottom: 0;
  width: 301px;
  height: 280px;
}

/* =========================================================
 * 画像H2用の共通ラッパ
 * ======================================================= */
.section-title--img {
  margin-block: 0 40px;
  text-align: center;
}
.section-title--img img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* ボタン共通は components.css で定義 */

/* =========================================================
 * SP（≤767px）— Figma SPカンプ忠実再現
 * 375px 幅基準 / 左右 20px padding（コンテンツ幅335px）
 * ≥768px は PC レイアウト（3列グリッド）
 * ======================================================= */
@media (max-width: 767px) {
  /* ---- ① ヒーロー（MV）— Figma 262:1761 忠実再現 ---- */
  .hero {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
  }
  .hero::before {
    background-size: 120px 120px;
    opacity: 0.05;
  }
  .hero__inner {
    display: block;
    grid-template-columns: initial;
    grid-template-areas: none;
    max-width: none;
    padding: 30px 20px 40px;
    min-height: 0;
  }

  /* 左カラム：コピー（ヘッドライン・バッジ・キャプション） */
  .hero__copy {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 335px;
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    margin: 0;
    z-index: 5;
    justify-self: start;
  }
  .hero__headline {
    width: 221px;
    max-width: 100%;
    z-index: 6;
    position: relative;
    margin: 0;
  }
  .hero__headline img {
    width: 100%;
    max-width: 221px;
    height: auto;
    margin: 0;
    display: block;
  }
  .hero__note {
    font-size: 10px;
  }
  .hero__badges {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 178px;
    max-width: 100%;
  }
  .hero-badge {
    width: 178px;
    max-width: 100%;
    height: auto;
    padding: 6px 12px;
    gap: 6px;
    border-width: 1px;
  }
  .hero-badge__icon {
    width: 16px;
    height: 16px;
  }
  .hero-badge__icon img {
    width: 10px;
    height: 10px;
  }
  .hero-badge__text {
    font-size: 12px;
    line-height: 1.5;
  }
  .hero__caption {
    font-size: 10px;
    line-height: 1.5;
    text-align: left;
    color: #222;
    text-shadow: 0 4px 4px rgba(255, 255, 255, 0.25);
    margin: 0;
  }

  /* 右カラム：女性写真＋千葉県マップ（左カラムに絶対配置で重ねる）
   * 注意：visual には z-index を付けず、stacking context を作らないようにする
   *        （map を copy の上、woman を copy の下、という 3 層構造を実現するため） */
  .hero__visual {
    position: absolute;
    top: 50px;
    right: 27px;
    left: auto;
    bottom: auto;
    transform: none;
    width: 223px;
    height: auto;
    z-index: auto;
    pointer-events: none;
    justify-self: initial;
    align-self: initial;
    max-width: none;
  }
  .hero__map {
    position: absolute;
    top: -10px;
    left: 130px;
    width: 68px;
    height: 107px;
    object-fit: contain;
    z-index: 8;
  }
  .hero__woman {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    margin-top: 120px;
    z-index: 2;
  }

  /* シミュレーターカード：ヒーロー内に流れで配置 */
  .sim-card {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    transform: none;
    width: 335px;
    max-width: 100%;
    margin: 20px auto 0;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(34, 34, 34, 0.25);
    background: #f5f5f5;
    overflow: visible;
    justify-self: center;
  }
  .sim-card__title {
    padding: 20px 50px;
    font-size: 16px;
    line-height: 2;
    font-weight: 800;
    border-radius: 8px 8px 0 0;
  }
  .sim-card__form {
    padding: 20px;
    gap: 20px;
    margin: 0;
  }
  .sim-card__row {
    padding: 12px 20px;
    gap: 12px;
    min-height: 0;
    border-radius: 5px;
  }
  .sim-card__row label {
    flex: 0 0 auto;
    width: 70px;
    font-size: 14px;
  }
  /* iOSでinput fontが16px未満だとフォーカス時に自動ズームで画面がゆれるのを防止 */
  .sim-card__input select,
  .sim-card__input input {
    font-size: 16px;
  }
  .sim-card__submit {
    width: 100%;
    max-width: 295px;
    padding: 20px 60px;
    margin: 0 auto;
    font-size: 16px;
  }
  .sim-card__submit-arrow {
    width: 32px;
    height: 32px;
  }

  /* ---- ② 当日申込OKバナー ---- */
  .banner-today {
    padding: 30px 20px;
  }
  .banner-today__card {
    height: auto;
    border-radius: 12px;
  }
  .banner-today__content {
    padding: 40px 20px;
    gap: 24px;
  }
  .banner-today__title img {
    height: auto;
    max-height: 64px;
    width: auto;
  }
  .banner-today__lead {
    font-size: 14px;
    line-height: 1.7;
  }
  .banner-today__lead br {
    display: none;
  }
  .banner-today__btn {
    width: 100%;
    max-width: 295px;
    padding: 16px 20px;
    font-size: 14px;
  }
  .banner-today__btn-arrow {
    width: 24px;
    height: 24px;
  }

  /* ---- ③ 即日入居スタート ---- */
  .steps {
    padding: 40px 0 60px;
  }
  .steps__inner {
    padding-inline: 20px;
    gap: 30px;
  }
  .steps__title img {
    max-height: 72px;
    width: auto;
  }
  /* SPではスタッフ装飾を下端中央に左右並び表示 */
  .steps {
    position: relative;
    padding-bottom: 200px;
  }
  .steps__deco {
    position: absolute;
    bottom: 0;
    width: 140px;
    height: auto;
    display: block;
  }
  .steps__deco--left {
    left: 20px;
    right: auto;
  }
  .steps__deco--right {
    right: 20px;
    left: auto;
  }
  .step-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .step-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 335px;
  }
  .steps__lead {
    font-size: 14px;
    line-height: 1.8;
  }
  .steps__lead br {
    display: none;
  }
  .steps__btn {
    width: 100%;
    max-width: 295px;
    padding: 16px 20px;
    font-size: 14px;
  }
  .steps__btn-arrow {
    width: 24px;
    height: 24px;
  }

  /* ---- ④ シンプルな料金体系 ---- */
  .pricing {
    padding: 60px 20px;
  }
  .pricing__inner {
    gap: 30px;
  }
  .pricing__title-img {
    display: none;
  }
  .pricing__title-sp {
    display: inline-block;
    position: relative;
    line-height: 1;
  }
  .pricing__title-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1fa6c1;
    color: #fff;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 4px;
    z-index: 2;
  }
  .pricing__title-badge-label {
    display: block;
    line-height: 1;
  }
  .pricing__title-badge-tip {
    position: absolute;
    left: 14px;
    bottom: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1fa6c1;
  }
  .pricing__title-text {
    display: inline-block;
    background: #fff;
    border: 6px solid rgba(31, 166, 193, 0.5);
    border-radius: 16px;
    padding: 20px 28px;
    font-family:
      "Noto Sans JP", "Hiragino Sans", sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.3;
    color: #1d99b2;
    white-space: nowrap;
  }
  .pricing__lead {
    font-size: 14px;
    line-height: 1.8;
  }
  .pricing__lead br {
    display: none;
  }

  /* プラン行：4列 → 1列（縦積み）カード化 */
  .plan-table {
    gap: 20px;
  }
  .plan-row {
    grid-template-columns: 1fr;
    border-radius: 16px;
    overflow: hidden;
  }
  /* 名前セル：plan名 ＋ 白ピルsubname を横並び */
  .plan-row__name {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 12px;
    border-radius: 16px 16px 0 0;
  }
  .plan-row__main-name {
    font-size: 22px;
    line-height: 1.3;
  }
  .plan-row__sub-name {
    font-size: 12px;
    padding: 6px 14px;
    white-space: nowrap;
  }

  /* 各行：中央寄せ（Figma 335×70 の余白感覚） */
  .plan-row__period {
    min-height: 70px;
    padding: 16px 20px;
    border: 3px solid var(--plan-color);
    border-top: 0;
    border-bottom: 0;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
  .plan-row__period-label {
    font-size: 14px;
  }
  .plan-row__period-value {
    font-size: 14px;
  }
  .plan-row__period-value strong {
    font-size: 32px;
  }

  .plan-row__rate,
  .plan-row__pack {
    min-height: 70px;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--plan-color);
    border-top: 1px solid var(--plan-color);
    border-bottom: 0;
    background: var(--plan-bg);
  }
  .plan-row__pack {
    border-bottom: 3px solid var(--plan-color);
    border-radius: 0 0 16px 16px;
  }
  .plan-row__period {
    border-bottom: 0;
  }
  .plan-row__rate {
    border-top: 1px solid var(--plan-color);
  }
  .plan-row__pack {
    border-top: 1px solid var(--plan-color);
  }
  .plan-row__price {
    line-height: 1;
  }
  .plan-row__price-sym {
    font-size: 22px;
  }
  .plan-row__price-num {
    font-size: 40px;
  }
  .plan-row__unit {
    font-size: 13px;
  }

  .pricing__note {
    font-size: 11px;
    line-height: 1.8;
  }

  /* ---- ⑤ 圧倒的コスパ比較表 ---- */
  .compare {
    padding-bottom: 60px;
    gap: 30px;
  }
  .compare__hero {
    padding: 30px 20px;
  }
  .compare__title img {
    height: auto;
    max-height: 64px;
    width: auto;
  }
  .compare__notch {
    bottom: -24px;
    width: 48px;
    height: 24px;
  }
  .compare__lead {
    font-size: 13px;
    line-height: 1.8;
    padding-inline: 20px;
  }
  .compare__lead br {
    display: none;
  }

  /* 比較表：横スクロール対応（4列固定幅） */
  .compare-tablewrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-inline: 20px;
    padding-bottom: 40px;
  }
  .compare-table {
    padding-inline: 0;
    min-width: 640px;
  }
  .compare-row {
    grid-template-columns: 120px 200px 1fr 1fr;
    column-gap: 6px;
  }
  .compare-row .compare-cell {
    padding: 12px 10px;
    font-size: 12px;
    line-height: 1.5;
  }
  .compare-row--head .compare-cell--primary,
  .compare-row--head .compare-cell--primaryhead {
    background: #1d99b2;
    color: #ffd447;
  }
  .compare-cell--primaryhead {
    font-size: 12px;
    letter-spacing: -0.03em;
    white-space: normal;
  }
  /* 他社タブは初期のグレー地に戻す */
  .compare-row--head .compare-cell--colhead {
    background: #f5f5f5;
    color: #999999;
  }
  .compare-cell--rowlabel {
    font-size: 13px;
  }
  .compare-cell--primary {
    font-size: 13px;
  }

  /* scroll-hint ライブラリに置き換え（JS 側で .js-scrollable を初期化） */

  /* ---- ⑤-b 物件外観フォト ---- */
  .property-photo {
    padding: 0 20px 50px;
  }
  .property-photo__frame {
    height: 200px;
    border-radius: 8px;
  }

  /* ---- ⑥ カンタン申込 CTA ---- */
  .cta-apply {
    padding: 0 20px 40px;
  }
  .cta-apply__card {
    height: auto;
    border-radius: 12px;
  }
  .cta-apply__bg {
    background-size: 60px 60px;
    background-position:
      0 0,
      30px 30px;
  }
  /* SPではカード下部に左右イラスト並べて表示（男女とも同サイズに揃える） */
  .cta-apply__card {
    padding-bottom: 170px;
  }
  .cta-apply__content {
    padding-bottom: 60px !important;
  }
  .cta-apply__illust {
    position: absolute;
    top: auto;
    bottom: 0;
    height: 160px;
    object-fit: contain;
    object-position: center bottom;
    z-index: 2;
  }
  .cta-apply__illust--left {
    left: -30px;
    right: auto;
  }
  .cta-apply__illust--right {
    right: -50px;
    left: auto;
  }
  .cta-apply__content {
    padding: 40px 20px;
    gap: 24px;
  }
  .cta-apply__title img {
    height: auto;
    max-height: 64px;
    width: auto;
  }
  .cta-apply__lead {
    font-size: 14px;
    line-height: 1.7;
  }
  .cta-apply__lead br {
    display: none;
  }
  .cta-apply__btn {
    width: 100%;
    max-width: 295px;
    padding: 16px 20px;
    font-size: 14px;
  }
  .cta-apply__btn-arrow {
    width: 24px;
    height: 24px;
  }
}
