:root {
  --bg: #FBFAFD;
  --text: #4A3F3A;
  --brown: #A9804F;
  --muted: #9A8F88;
  --grad: linear-gradient(90deg, #EE8FA3, #B48CDB, #82A9E8);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(60vw 60vw at 0% 0%, #F9DCE4 0%, transparent 60%),
    radial-gradient(60vw 60vw at 100% 100%, #DDE9F8 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .headline { word-break: auto-phrase; text-wrap: balance; line-break: strict; }

.lp {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(180, 140, 219, .18);
  overflow: hidden;
}
.part {
  position: relative;
  container-type: inline-size;
  line-height: 0;
}
.part > img {
  display: block;
  width: 100%;
  height: auto;
}

/* 画像の上に重ねるボタンのリンク領域 */
.hit {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  border-radius: 999px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.hit:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.55), 0 10px 28px rgba(180,140,219,.45); transform: translateY(-1px); }
.hit:focus-visible { outline: 3px solid #B48CDB; outline-offset: 3px; }

/* あとで実物の画像を入れる枠 */
.slot {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  border-radius: 1.953cqw; /* 20px / 1024px */
  overflow: hidden;
  display: grid;
  place-items: center;
  line-height: 1.5;
}
.slot > span {
  font-size: clamp(10px, 2.4cqw, 14px);
  color: var(--muted);
  letter-spacing: .04em;
  text-align: center;
  padding: 0 .5em;
}
.slot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* 画像の文字を読み上げ・検索用に持つ（見た目には出さない） */
.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.foot {
  padding: 28px 16px 36px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--brown);
  line-height: 1.6;
}
.foot p { margin: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(92vw, 480px);
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 8px 30px rgba(120, 90, 160, .25);
  z-index: 10;
}

/* 表示のときにふわっと出す（動きを減らす設定では止める） */
.part > img { transition: opacity .8s ease, transform .8s ease; }
.js .part:not(.in) > img { opacity: 0; transform: translateY(16px); }
.js .part:first-child > img { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .part > img, .hit { transition: none; }
  .js .part:not(.in) > img { opacity: 1; transform: none; }
}
