/* トークン（配色は coolors.co の Muted Earthy Tones と Soft Sand をもとに調整） */
:root {
  --bg: #f2e1dc;        /* 地の色（くすみピンク） */
  --surface: #ffffff;   /* 白い面 */
  --soft: #f5ebe0;      /* 薄いベージュの面 */
  --sand: #d5bdaf;      /* ベージュの飾り */
  --rose: #e5989b;      /* くすみピンクの飾り */
  --accent: #b5838d;    /* 差し色（モーヴ） */
  --ink: #4a3f44;       /* 文字 */
  --dark: #5b4a50;      /* 暗い面・丸いボタン */
  --line: #4a3f44;
  --font-jp: "Zen Kaku Gothic New", "游ゴシック", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: "Bellefair", serif;
  --font-script: "Qwitcher Grypen", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; overflow-y: scroll; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-jp); font-size: 1.5rem; font-weight: 500; line-height: 2; letter-spacing: .04em; overflow-wrap: anywhere; line-break: strict; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
main { display: block; position: relative; overflow-x: clip; }
p + p { margin-top: 20px; }
p, dd { text-wrap: pretty; }

.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 15px; position: relative; }
.script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

img { display: block; max-width: 100%; height: auto; }

/* 飾り（細い輪とアーチの線） */
.obj { position: absolute; z-index: 0; opacity: 0; pointer-events: none; transition: opacity 1.2s ease, transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.obj.is-act { opacity: 1; }
.obj--ring { aspect-ratio: 1; border: 1px solid var(--rose); border-radius: 50%; transform: translateY(30px) scale(.9); }
.obj--ring::after { content: ""; position: absolute; inset: 14%; border: 1px solid var(--sand); border-radius: 50%; transform: translate(-22%, 18%); }
.obj--ring.is-act { transform: none; }
.obj--arch { aspect-ratio: 3 / 4; border: 1px solid var(--surface); border-bottom: 0; border-radius: 999px 999px 0 0; transform: translateY(40px); }
.obj--arch::after { content: ""; position: absolute; inset: 9% 9% 0; border: 1px solid var(--surface); border-bottom: 0; border-radius: 999px 999px 0 0; opacity: .6; }
.obj--arch.is-act { transform: none; }
.obj--n1 { top: 0; right: 0; width: 46vw; height: 100vh; background: var(--soft); }
.obj--n1.is-act { opacity: .7; }
.obj--n2 { top: 46vh; left: -9vw; width: 22vw; z-index: 1; }
.obj--n3 { display: none; }

/* 見出し（手書き風の英字＋小さな和文） */
.ttl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-weight: 500; }
.ttl .script { display: block; transform: rotate(-4deg); transform-origin: left bottom; }
.ttl small { display: inline-flex; align-items: center; gap: 12px; font-size: 1.2rem; letter-spacing: .24em; line-height: 1; }
.ttl small::before { content: ""; width: 34px; height: 1px; background: var(--accent); }

/* スクロールで出る動き */
.anim { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.anim.is-act { opacity: 1; transform: none; }
.reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.65, 0, .2, 1); }
.reveal img { transform: scale(1.12); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-act { clip-path: inset(0); }
.reveal.is-act img { transform: none; }

@media (max-width: 767px) {
  body { font-size: 1.3rem; }
  .container { padding: 0 10px; }
  .obj--n1 { width: 62vw; height: 78vh; }
  .obj--n2 { width: 38vw; left: -14vw; top: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, .reveal, .reveal img, .obj { transition: none; }
}
