/* ========================================
   基本設定（スマホLP・横幅750px固定）
   ======================================== */

/* 750px幅で1rem=10pxとなるvwベースのフォントサイズ
   375px幅では1rem=5px（すべて半分にスケール） */
html {
  font-size: 1.33333vw;
  /* 10 / 750 * 100 */
}

/* 750px以上ではフォントサイズ固定 */
@media (min-width: 750px) {
  html {
    font-size: 10px;
  }
}

body {
  max-width: 750px;
  margin: 0 auto;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "メイリオ", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
}

img {
  max-width: 100%;
  width: 100%;
  height: auto;
  vertical-align: bottom;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-backface-visibility: hidden;
}

/* ========================================
   layout01_01 — メインビジュアル
   ======================================== */

.layout01_01 {
  position: relative;
  background-image: url('../img/layout01_01gazou.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.layout01_01-text {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

/* ヘッダーロゴ */
.layout01_01-logo {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
}

/* 先着５組様限定の特別企画 */
.layout01_01-limited {
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: #fff;
}

.layout01_01-limited .layout01_01-limited-number {
  font-size: 4rem;
}

.layout01_01-limited .layout01_01-limited-text {
  font-weight: 400;
}

/* キャンペーン期間 */
.layout01_01-period {
  position: absolute;
  top: 72.2%;
  right: -13.5%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: #40220F;
}

/* ========================================
   layout01_02
   ======================================== */

.layout01_02 {
  position: relative;
}

.layout01_02-text {
  display: block;
  width: 100%;
  height: auto;
}

.layout01_02-gazou {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* ========================================
   layout01_03
   ======================================== */

.layout01_03 {
  position: relative;
  background-image: url('../img/layout01_03gazou.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.layout01_03-text {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

/* ========================================
   layout01_06
   ======================================== */

.layout01_06 {
  position: relative;
  background-image: url('../img/layout01_06gazou.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.layout01_06-text {
  display: block;
  position: relative;
  z-index: 1;
}

/* ========================================
   layout01_07 — 補助金制度
   ======================================== */

.layout01_07 {
  position: relative;
  background-image: url('../img/layout01_07gazou.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.layout01_07-text {
  display: block;
  position: relative;
  z-index: 1;
}

/* ========================================
   layout02_04 — モデルハウス スライダー
   ======================================== */

.layout02_04 {
  position: relative;
  background-image: url('../img/layout02_04gazou.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.layout02_04-text {
  display: block;
  position: relative;
  z-index: 1;
}

/* スライダー共通 */
.slider02_04 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  z-index: 2;
}

/* スライダー1（平屋）の位置 — テキストSVG比率で計算 */
.slider02_04[data-slider="slider-l"] {
  top: 30.5%;
}

/* スライダー2（2階建）の位置 */
.slider02_04[data-slider="slider-r"] {
  top: 61%;
}

/* リボンラベル（スライダーに重なる） */
.slider02_04-label {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: -5rem;
  /* この値で重なり具合を調整 */
}

.slider02_04-label img {
  width: 55%;
  height: auto;
}

/* スライダーラッパー: 矢印 + トラック */
.slider02_04-wrap {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* 矢印ボタン */
.slider02_04-prev,
.slider02_04-next {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 5.3%;
  line-height: 0;
}

.slider02_04-prev img,
.slider02_04-next img {
  width: 100%;
  height: auto;
}

/* スライダートラック */
.slider02_04-track {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 2rem;
}

.slider02_04-inner {
  display: flex;
  transition: transform 0.5s ease;
}

/* スライド画像 */
.slider02_04-slide {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
}

/* ========================================
   layout02_07 — 店舗情報・地図
   ======================================== */

.layout02_07 {
  position: relative;
  background-image: url('../img/layout02_07gazou.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.layout02_07-text {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.layout02_07-info {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  z-index: 2;
  top: 54.5%;
  /* この値で位置調整 */
}

.layout02_07-dl {
  margin: 0 0 1.5rem;
}

.layout02_07-dl dt {
  display: inline-block;
  width: 20%;
  font-weight: 400;
  font-size: 2.6rem;
  color: #40220F;
  vertical-align: top;
  padding: 1.25rem 0;
}

.layout02_07-dl dd {
  display: inline-block;
  width: 70%;
  margin: 0;
  font-size: 2.6rem;
  color: #40220F;
  padding: 1.25rem 0;
}

.layout02_07-dl dd a {
  color: #40220F;
  text-decoration: none;
}

.layout02_07-map {
  width: 100%;
  aspect-ratio: 600 / 335;
  border-radius: 0.5rem;
  overflow: hidden;
}

.layout02_07-map iframe {
  width: 100%;
  height: 100%;
}

/* ========================================
   layout02_09 — フッター
   ======================================== */

.layout02_09 {
  position: relative;
}

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

/* 電話お問い合わせブロック */
.layout02_09-tel {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  z-index: 2;
  text-align: center;
}

.layout02_09-tel-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #40220F;
}

.layout02_09-tel-number {
  display: block;
  margin: 3rem 0;
}

.layout02_09-tel-number img {
  width: 100%;
  height: auto;
}

.layout02_09-tel-hours {
  font-size: 1.7rem;
  color: #40220F;
  margin-top: 4rem;
}

.layout02_09-tel-note {
  font-size: 1.7rem;
  color: #40220F;
  margin-top: 2rem;
}

/* フッター情報ブロック */
.layout02_09-footer {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  z-index: 2;
  text-align: center;
}

.layout02_09-logo {
  margin: 0 auto 4rem;
}

.layout02_09-logo img {
  width: 60%;
  height: auto;
}

.layout02_09-company {
  font-size: 2rem;
  color: #40220F;
  margin: 0.3rem 0;
}

.layout02_09-address {
  font-size: 2rem;
  color: #40220F;
  margin: 0.8rem 0;
}

.layout02_09-copy {
  font-size: 1.8rem;
  color: #40220F;
  margin: 1.2rem 0 0;
}

/* ========================================
   プランタブ切り替え
   ======================================== */

.plan-tab {
  position: relative;
  margin-top: -10%;
}

/* タブボタン領域：画像上部のタブ耳位置に重ねる */
.plan-tab-buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6.5%;
  z-index: 10;
  display: flex;
}

.plan-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* タブコンテンツ */
.plan-tab-content {
  display: none;
}

.plan-tab-content.is-active {
  display: block;
}

/* ========================================
   固定CTA
   ======================================== */

.cta-fixed {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 750px;
  z-index: 9999;
  text-align: center;
  padding: 1rem 2rem 1.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 30%);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
}

.cta-fixed.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.cta-fixed a {
  display: block;
}

.cta-fixed a img {
  width: 94%;
  max-width: 670px;
  filter: drop-shadow(0 0.3rem 0.6rem rgba(0, 0, 0, 0.25));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.cta-fixed a:hover img,
.cta-fixed a:active img {
  filter: drop-shadow(0 0.4rem 0.8rem rgba(0, 0, 0, 0.35));
  transform: scale(1.02);
}