:root {
  --content-w: 541px;
  --header-h: 8.43%;
  --footer-h: 12.08%;
}



/* =========================
リセット
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: url(../images/bg.webp) no-repeat center;
  background-size: cover;
  font-family: sans-serif;
  overflow: hidden;
  display: flex;
  justify-content: center;
}


/* =========================
LPコンテナ
========================= */

.lp-container {
  height: 100dvh;
  width: auto;
  aspect-ratio: 541 / 902;
  position: relative;
}

@media (max-aspect-ratio: 541/902) {
  .lp-container {
    height: 100dvh;
    width: 100vw;

  }
}
@media (min-aspect-ratio: 541/902) {
  .lp-container {
    height: 100dvh;
    width: calc(100dvh * 541 / 902);
    max-width: 100vw;
  }
}

/* =========================
ヘッダー
========================= */

.fixed-header {
  position: absolute;
  top: 0;
  width: 100%;
  height: var(--header-h);
  background: #ffffff;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding-left: 4%;
  padding-right: 4%;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(155, 155, 155, 0.09);
}

.header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: auto;
  height: clamp(28px, 5vh, 42px);
  object-fit: contain;
  display: block;
}

.contact {
  text-align: right;
  line-height: 1.2;
  flex-shrink: 1;
  min-width: 0;
}

.contact p {
  font-size: clamp(10px, 1.2vh, 14px);
  color: #0a0a0a;
  line-height: 1.3;
}

.time {
  font-size: clamp(10px, 1.2vh, 14px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6vh;
}

.badge {
  background: #ffee00;
  color: #000000;
  padding: 0.3vh 0.8vh;
  border-radius: 999px;
  font-size: 0.9em;
  font-weight: bold;
  white-space: nowrap;
}

.tel {
  font-size: clamp(18px, 3vh, 30px);
  font-weight: bold;
  text-decoration: none;
  color: #000000;
  white-space: nowrap;
}


/* =========================
スワイプエリア
========================= */

.wrapper {
  position: absolute;
  top: var(--header-h);
  bottom: var(--footer-h);
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  background: #ffffff;
}

.wrapper::-webkit-scrollbar {
  display: none;
}


/* =========================
セクション
========================= */

.section,
.mixed-section {
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
}

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

.mixed-section p {
  width: 90%;
  font-size:14px;
  margin: 0 auto;
}
@media (max-height: 700px) {
.mixed-section p {
  font-size:12px;
}
}

/* =========================
画像＋シート混在セクション
========================= */

.mixed-section {
  background: url(../images/06.webp) no-repeat center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 150px 0;
  background-color: #fffef7;
}

.block-img {
  width: 80%;
  height: auto;
  display: block;
}

/* ===== 実績iframe ===== */

.jiseki {
  width: 90%;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
  border: 2px solid #cda11b;
  background: #fff;
  display: block;
  margin: 0 auto;
}

.jiseki iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}


/* =========================
iframeレスポンシブ
（小→大の順：モバイルファースト）
========================= */

/* 320px以下：極小スマホ */
@media (max-width: 320px) {
  .block-img { width: 85%; }
  .jiseki { width: 95%; }
  .jiseki iframe {
    width: 200%;          /* 100 ÷ 0.5 */
    transform: scale(0.5);
    transform-origin: top left;
    height: 800px;
  }
}

/* 321px〜375px：小さいスマホ */
@media (min-width: 321px) and (max-width: 375px) {
  .block-img { width: 85%; }
  .jiseki { width: 95%; }
  .jiseki iframe {
    width: 166.6%;        /* 100 ÷ 0.6 */
    transform: scale(0.6);
    transform-origin: top left;
    height: 700px;
  }
}

/* 376px〜480px：通常スマホ */
@media (min-width: 376px) and (max-width: 480px) {
  .block-img { width: 85%; }
  .jiseki { width: 95%; }
  .jiseki iframe {
    width: 142.8%;        /* 100 ÷ 0.7 */
    transform: scale(0.7);
    transform-origin: top left;
    height: 650px;
  }
}
/* 481px〜1024px：タブレット */
@media (min-width: 481px) and (max-width: 1024px) {
  .jiseki { width: 92%; }
  .jiseki iframe {
    width: 133.3%;        /* 100 ÷ 0.75 */
    transform: scale(0.75);
    transform-origin: top left;
    height: 1000px;
  }
}

/* =========================
テキストセクション（免責など）
========================= */

.legal-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fffcf0;
}

.legal-inner {
  width: 88%;
  height: 90%;
  overflow-y: auto;
  padding: 0 2%;
  margin: 0 auto;
  color: #4b3610;
  -webkit-overflow-scrolling: touch;
}
.legal-inner::-webkit-scrollbar {
  display: none;
}
.legal-inner h2 {
  font-size: 2.3vh;
  font-weight: bold;
  margin-top: 1.2vh;
  margin-bottom: 0.5vh;
}

.legal-inner p {
  font-size: 1.7vh;
  line-height: 1.6;
  margin-bottom: 0.9vh;
}
/* =========================
フッター
========================= */

.fixed-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: var(--footer-h);
  background-color: #ffffff;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 4%;
  padding-right: 4%;
}

.fixed-footer form {
  width: 100%;
  height: 100%;
}

.cta-btn {
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-btn img {
  width: 100%;
  height: auto;
  display: block;
}
