*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFD43B;
  color: #1D2B53;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.8;
}
main { max-width: 560px; margin: 0 auto; background: #fff; box-shadow: 0 0 40px rgba(29,43,83,.18); }
.part { margin: 0; }
.frame { position: relative; line-height: 0; container-type: inline-size; }
.frame img { display: block; width: 100%; height: auto; }

/* 画像内のボタンに重ねる実際のリンク */
.hit {
  position: absolute; display: block;
  font-size: 0; color: transparent; overflow: hidden;
  border-radius: 999px;
  outline-offset: 3px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.hit:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.hit:active { transform: translateY(2px); }
.hit:focus-visible { outline: 3px solid #2E6FE0; }
.hit.text-link { border-radius: 6px; }

/* FV の見せ場：写真がふわっと寄って現れる */
.part-fv .frame > img { animation: fv-in 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fv-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.part-fv { overflow: hidden; }

/* コーラルのボタンに、ときどき光が横切る */
.shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  animation: shine 3.6s ease-in-out 1.4s infinite;
}
@keyframes shine { 0% { left: -40%; } 35%, 100% { left: 120%; } }

/* 募集要項：画像の表の右列に、値を文字で重ねる（決まったら HTML だけ差し替え） */
.req-values { position: absolute; inset: 0; line-height: 1.5; }
.req-values p {
  position: absolute; margin: 0; left: 32.5%; width: 58%;
  display: flex; align-items: center;
  font-size: clamp(12px, 3.4cqw, 19px); color: #1D2B53;
}
.req-values .todo { color: #C2413A; }

/* スクロールで出る（下からふわっと） */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* 追従の見学ボタン（FV のボタンと最後の CTA が見えていない間だけ） */
.float-cta {
  position: fixed; left: 50%; bottom: 14px; z-index: 20;
  width: min(92vw, 520px); min-height: 56px;
  transform: translate(-50%, 160%);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #F25C54; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 18px; letter-spacing: .06em;
  border-radius: 999px;
  box-shadow: 0 5px 0 #1D2B53, 0 10px 24px rgba(29,43,83,.25);
  transition: transform .3s ease;
}
.float-cta i { font-style: normal; font-size: 20px; }
.float-cta.is-shown { transform: translate(-50%, 0); }
.float-cta:active { box-shadow: 0 1px 0 #1D2B53; transform: translate(-50%, 4px); }
.float-cta:focus-visible { outline: 3px solid #2E6FE0; outline-offset: 3px; }

/* 動きを止めるボタン（右下。追従ボタンの上） */
.motion-toggle {
  position: fixed; right: 10px; bottom: 86px; z-index: 21;
  width: 44px; height: 44px; padding: 0;
  font-size: 14px; line-height: 1; font-family: inherit;
  color: #fff; background: rgba(29,43,83,.82);
  border: 1px solid rgba(255,255,255,.6); border-radius: 50%; cursor: pointer; opacity: .85;
}
.motion-toggle[aria-pressed="true"] { background: rgba(46,111,224,.9); }

.footer { max-width: 560px; margin: 0 auto; padding: 24px 20px 110px; text-align: center; font-size: 13px; line-height: 1.8; color: #1D2B53; }
.footer p { margin: 0; }
.footer .todo { margin-top: 6px; color: #C2413A; word-break: keep-all; overflow-wrap: anywhere; }

/* 動きを止める（OS の設定・ボタン） */
.no-motion .part-fv .frame > img, .no-motion .shine::after { animation: none; }
.no-motion .shine::after { display: none; }
.no-motion .reveal { opacity: 1; transform: none; transition: none; }
.no-motion .float-cta { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .part-fv .frame > img { animation: none; }
  .shine::after { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-cta, .hit { transition: none; }
}

@media (min-width: 900px) {
  body {
    background-color: #FFD43B;
    background-image: radial-gradient(#F5C72A 2px, transparent 2px);
    background-size: 28px 28px;
  }
}
