/* ==========================================================================
   front-page.css — サポキタ LP: 画像セクション 01–10
   Figma: Desktop 121:1453 (1440px) / Mobile 121:2101 (375px)
   画像: theme-sapokita/assets/images/front-page/{desktop,mobile}/（docs/SAPOKITA_IMAGE_EXPORT_MANIFEST.md）
   ========================================================================== */

/* Utility
   ========================================================================== */

.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Layout
   ========================================================================== */

.front-page {
  width: 100%;
  overflow-x: clip;
}

.image-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 画像はデザイン基準幅 1440px を上限に中央配置（それ以上は拡大しない） */
.image-section__frame {
  position: relative;
  width: min(100%, 1440px);
  margin-inline: auto;
}

.image-section picture {
  display: block;
}

.image-section img {
  display: block;
  width: 100%;
  height: auto;
}

/* Section background
   1440px を超える viewport で画像左右の余白を埋めるためだけの背景。
   色は書き出し画像（desktop 1x）の左右端の列から取得。端に装飾や写真がかかる行は、
   横縞にならないよう下地の色で塗っている（s4 は写真のため強く平滑化）
   ========================================================================== */

.image-section--hero {
  background:
    linear-gradient(#27aab2, #27aab2) left top / 50% 100% no-repeat,
    linear-gradient(#fff, #fff) right top / 50% 100% no-repeat;
}

.image-section--s1 {
  background: #fffaee;
}

.image-section--s2,
.image-section--s8 {
  background: #fff;
}

.image-section--s3 {
  background:
    linear-gradient(to bottom, #73c5cb, #91d5d9) left top / 50% 100% no-repeat,
    linear-gradient(to bottom, #dbe5af 0%, #dae7a8 3.99%, #e3e7a4 100%) right top / 50% 100% no-repeat;
}

/* 写真の端は筋になるため、明暗の流れだけを残したなだらかなグラデーションにしている */
.image-section--s4 {
  background:
    linear-gradient(to bottom, #8f9298 0%, #5a5a5e 16%, #474f5e 57%, #22242c 75%, #999 100%) left top / 50% 100% no-repeat,
    linear-gradient(to bottom, #272f35 0%, #353d46 21.45%, #252321 36%, #18190e 81%, #3a3a3a 86%, #a0a197 100%) right top / 50% 100% no-repeat;
}

.image-section--s5 {
  background:
    linear-gradient(to bottom, #ebebeb, #ececec) left top / 50% 100% no-repeat,
    linear-gradient(to bottom, #ececec, #eee) right top / 50% 100% no-repeat;
}

.image-section--s6 {
  background: linear-gradient(to bottom, #fffaf0, #fffaee);
}

.image-section--s7 {
  background:
    linear-gradient(to bottom, #73c5c9 0%, #72c6cc 13.27%, #97d8db 100%) left top / 50% 100% no-repeat,
    linear-gradient(to bottom, #dae6ac, #e3e7a4) right top / 50% 100% no-repeat;
}

.image-section--cta {
  background:
    linear-gradient(to bottom, #70c5cb, #8ad2d7) left top / 50% 100% no-repeat,
    linear-gradient(to bottom, #dce5ae 0%, #dce7a6 24.31%, #e0e7a3 100%) right top / 50% 100% no-repeat;
}

/* Image hotspot
   画像内のボタンに透明なリンクを重ねる。座標は画像サイズに対する %。
   Figma に hover 表現が無いため見た目は変えない
   ========================================================================== */

.image-hotspot {
  position: absolute;
  display: block;
}

/* 10-cta「資料ダウンロード」（Desktop: 1440×436 内 x 403–773 / y 279–376） */
.image-hotspot--cta-download {
  top: 63.991%;
  left: 27.986%;
  width: 25.694%;
  height: 22.248%;
}

/* 10-cta「無料相談を予約する」（Desktop: 1440×436 内 x 813–1098 / y 279–376） */
.image-hotspot--cta-consult {
  top: 63.991%;
  left: 56.458%;
  width: 19.792%;
  height: 22.248%;
}

@media (max-width: 767px) {
  /* Mobile: 375×481 内 x 20–355 / y 95–192 */
  .image-hotspot--cta-download {
    top: 19.751%;
    left: 5.333%;
    width: 89.333%;
    height: 20.166%;
  }

  /* Mobile: 375×481 内 x 20–355 / y 213–294 */
  .image-hotspot--cta-consult {
    top: 44.283%;
    left: 5.333%;
    width: 89.333%;
    height: 16.84%;
  }
}
