* {
  box-sizing: border-box;
}

html {
  background: #e9f7ff;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #e9f7ff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: #0b2a5b;
}

.lp {
  width: min(100%, 760px);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 42px rgba(0, 65, 130, .13);
  overflow: hidden;
}

/* ── 画像セクション ───────────────────────────── */
.panel {
  position: relative;
  width: 100%;
  line-height: 0;
  container-type: inline-size;
}

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

/* 画像の中のボタンを押せるようにする当たり判定。
   見た目は画像のボタンそのまま。光が走る演出と、押した感触だけを足す。 */
.hot {
  position: absolute;
  z-index: 2;
  display: block;
  overflow: hidden;
  border-radius: 3.6cqw;
  -webkit-tap-highlight-color: transparent;
  transition: translate .1s ease, filter .1s ease, box-shadow .2s ease;
}

.hot:hover {
  box-shadow: 0 0 0 3px #fff;
}

.hot:active {
  translate: 0 3px;
  filter: brightness(.93);
}

.hot:focus-visible {
  outline: 4px solid #ffd43b;
  outline-offset: 2px;
}


/* 位置は画像（1024×1536）のボタンの色の範囲から測った値 */
.hot-fv {
  left: 1.9%;
  width: 96.3%;
  top: 87.2%;
  height: 10.6%;
  border-radius: 5cqw;
}

.hot-tel,
.hot-line,
.hot-est {
  top: 69.9%;
  height: 10.1%;
  border-radius: 2.4cqw;
}

.hot-tel { left: 5.5%; width: 28.8%; }
.hot-line { left: 36%; width: 27.9%; }
.hot-est { left: 65.6%; width: 28.9%; }


.hot-price {
  left: 9.9%;
  width: 80.2%;
  top: 92.6%;
  height: 5.5%;
  border-radius: 999px;
}


/* ── ボタンだけの帯 ───────────────────────────── */
.cta-band {
  padding: 26px 18px 30px;
  background: #001c74;
  text-align: center;
}

.cta-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 58px 18px 18px;
  min-height: 84px;
  border-radius: 999px;
  overflow: hidden;
  background: #f26a00;
  border-bottom: 4px solid #b34e00;
  color: #fff;
  text-decoration: none;
  transition: translate .1s ease, border-bottom-width .1s ease, background-color .15s ease, filter .1s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta-main:hover { background: #e05f00; }

.cta-main:active {
  translate: 0 3px;
  border-bottom-width: 2px;
  filter: brightness(.95);
}

.cta-main:focus-visible {
  outline: 4px solid #ffd43b;
  outline-offset: 3px;
}


.cta-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff;
  color: #c95400;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .04em;
}

.cta-label {
  font-size: clamp(17px, 5.1vw, 28px);
  white-space: nowrap;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .03em;
}

.cta-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #f26a00;
}

.cta-arrow svg { width: 22px; height: 22px; }

.cta-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin: 14px auto 0;
}

.cta-tel,
.cta-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 8px;
  border-radius: 14px;
  color: #fff;
  font-size: clamp(14px, 4.3vw, 17px);
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: translate .1s ease, filter .1s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta-tel { background: #2b6cb0; }
.cta-line { background: #08aa16; }
.cta-tel svg { width: 22px; height: 22px; }
.cta-tel:active, .cta-line:active { translate: 0 2px; filter: brightness(.92); }
.cta-tel:focus-visible, .cta-line:focus-visible { outline: 3px solid #ffd43b; outline-offset: 2px; }

.line-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 22px;
  border-radius: 11px;
  background: #fff;
  color: #08aa16;
  font: 900 9px/1 Arial, "Helvetica Neue", sans-serif;
  letter-spacing: -.2px;
}

/* ── フッター ───────────────────────────── */
.foot {
  padding: 22px 16px 26px;
  background: #001c74;
  color: #cfe0ff;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.foot p { margin: 0; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
}

.foot-links a { color: #fff; }

.foot-copy { margin-top: 6px !important; opacity: .8; }

/* ── 画面下の固定バー（参考：crisia-aircon.org と同じ形）────────── */
.fixbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 0 0 env(safe-area-inset-bottom);
  background: #fff;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .08), 0 -4px 12px rgba(0, 0, 0, .1);
}

.fb {
  position: relative;
  flex: 1 1 33.333%;
  min-width: 0;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 3px 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  transition: filter .1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.fb-tel { color: #fff; background: #001c74; }
.fb-line { color: #fff; background: #08aa16; }
.fb-form { color: #d45a00; background: #fff; border: 3px solid #f26a00; }

.fb:hover { filter: brightness(1.04); }
.fb:active { filter: brightness(.88); }
.fb:active > * { translate: 0 2px; }
.fb:focus-visible { z-index: 5; outline: 3px solid #ffd24a; outline-offset: -3px; }

.fb-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transform: translateY(2px);
}

.fb-icon::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background-color: currentColor;
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}

.fb-icon-tel {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.46 15.46 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2Z'/%3E%3C/svg%3E");
}

/* 見積書（書類）のアイコン */
.fb-icon-form {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6Zm-1 7V3.5L18.5 9H13ZM8 13h8v2H8v-2Zm0 4h5v2H8v-2Z'/%3E%3C/svg%3E");
}

.fb-line-icon {
  position: relative;
  z-index: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding-bottom: 2px;
  color: #08aa16;
  font: 900 7.5px/30px Arial, "Helvetica Neue", sans-serif;
  letter-spacing: -.35px;
  isolation: isolate;
}

.fb-line-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 1px;
  z-index: -1;
  width: 30px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
}

.fb-line-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 3px;
  z-index: -1;
  width: 8px;
  height: 8px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 15% 100%);
}

.fb-text {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

/* 固定バーにLPの最後が隠れないよう、下に余白を空ける */
body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }


/* ── ボタンの動き（2026-10-13）─────────────────────────────
   画像に描かれたボタンは、上に重ねた .hot に「同じ画像の同じ場所」を
   背景として表示し、その重ねた部分だけを動かす（画像のボタンがそのまま動いて見える）。
   位置は % なのでスマホ・PCどちらでもずれない。
   背景位置の計算：left / (1 - width)、top / (1 - height)。 */
.hot-fv, .hot-tel, .hot-line, .hot-est, .hot-price {
  background-repeat: no-repeat;
  background-size: calc(100% / var(--w)) calc(100% / var(--h));
  background-position: calc(var(--l) / (1 - var(--w)) * 100%) calc(var(--t) / (1 - var(--h)) * 100%);
}
.hot-fv { --l: .019; --t: .872; --w: .963; --h: .106; background-image: url("/public/images/section-01-fv.webp"); }
.hot-tel { --l: .055; --t: .699; --w: .288; --h: .101; }
.hot-line { --l: .36; --t: .699; --w: .279; --h: .101; }
.hot-est { --l: .656; --t: .699; --w: .289; --h: .101; }
.hot-tel, .hot-line, .hot-est { background-image: url("/public/images/section-03-cta.webp"); }
.hot-price { --l: .099; --t: .926; --w: .802; --h: .055; background-image: url("/public/images/section-06-price.webp"); }

/* 数秒おきに、ゆっくり少し大きくなって、軽く揺れる */
@keyframes cta-nudge {
  0%, 62%, 100% { scale: 1; rotate: 0deg; }
  70% { scale: var(--nudge, 1.045); rotate: 0deg; }
  76% { scale: var(--nudge, 1.045); rotate: var(--tilt, -1.2deg); }
  82% { scale: var(--nudge, 1.045); rotate: calc(var(--tilt, -1.2deg) * -1); }
  88% { scale: 1.02; rotate: 0deg; }
}
/* 固定バーの中身用（バー自体は動かさず、アイコンと文字だけ少し大きく） */
@keyframes cta-nudge-in {
  0%, 62%, 100% { scale: 1; }
  72% { scale: 1.1; }
  80% { scale: 1; }
  86% { scale: 1.06; }
}

.hot, .cta-main, .cta-tel, .cta-line {
  animation: cta-nudge 4s ease-in-out infinite;
}
.hot.hot-line, .cta-line { animation-delay: .5s; }
.hot.hot-est { animation-delay: 1s; }
/* 横長のボタンは画面からはみ出さないよう、動きを小さめに */
.hot-fv, .hot-price { --nudge: 1.025; --tilt: -.6deg; }
.cta-tel { animation-delay: .25s; }
/* 動いている間に周りの画像と重なっても自然に見えるよう、薄い影だけ付ける */
.hot { box-shadow: 0 2px 8px rgba(0, 30, 90, .12); }

.fb > * { animation: cta-nudge-in 4s ease-in-out infinite; }
.fb-line > * { animation-delay: .4s; }
.fb-form > * { animation-delay: .8s; }

/* 押している間は動きを止めて、へこむ動きだけにする */
.hot:active, .cta-main:active, .cta-tel:active, .cta-line:active, .fb:active > * { animation-play-state: paused; }

/* 「動きを減らす」設定の端末では動かさない */
@media (prefers-reduced-motion: reduce) {
  .hot, .cta-main, .cta-tel, .cta-line, .fb > * { animation: none; }
}
