/* ばば日和 LP（/ と /en/）。2026-10-22 に、ストアの画像と同じ見た目へ作り直し：
   ばあばが主役、白い吹き出しに本当のせりふ、紫と生成り、M PLUS Rounded 1c。
   アプリの画面は脇役で、会話・気分・へやの 3 台と、小さな「アプリの画面」だけ。 */

:root {
  --paper: #faf6ef;
  --paper-2: #f3ece1;
  --plum: #76506f;
  --ink: #55324f;
  --text: #4a3e46;
  --muted: #76696f;
  --lav: #f2e8f1;
  --lav-2: #e7daea;
  --sky: #dcebf7;
  --garden: #e7f1e4;
  --peach: #fbeade;
  --pink: #f8eaec;
  --night: #121633;
  --line: #e6dbe1;
  --bubble-ink: #4a2d45;
  --wrap: 1120px;
  --gut: 24px;
  --f: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  line-break: strict;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--plum); }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.nb { display: inline-block; }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: 0.01em; word-break: auto-phrase; text-wrap: balance; }
h2 { font-size: clamp(28px, 1.6vw + 21px, 40px); line-height: 1.38; }
h3 { font-size: clamp(19px, 0.4vw + 17px, 22px); line-height: 1.5; }
p { margin: 0; }
.copy > * + * { margin-top: 20px; }
.copy > .kicker + h2, .head > .kicker + h2 { margin-top: 14px; }
.small, .note { font-size: 14px; line-height: 1.75; color: var(--muted); }
.note { padding-left: 14px; border-left: 3px solid var(--lav-2); }
html:lang(en) h1, html:lang(en) h2, html:lang(en) h3 { letter-spacing: 0; }
html:lang(en) h2 { line-height: 1.25; }

.kicker {
  display: inline-block;
  margin: 0;
  padding: 5px 14px 6px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
}
.kicker.cream { background: var(--paper); color: var(--plum); }
.kicker.soft { background: var(--lav); color: var(--plum); box-shadow: none; }
html:lang(en) .kicker { letter-spacing: 0.04em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 34px;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 800; letter-spacing: 0.06em;
  text-decoration: none;
}
.btn-main { background: var(--plum); color: #fff; box-shadow: 0 12px 26px rgba(118, 80, 111, 0.32); }
.btn-main[href]:hover { background: var(--ink); }
/* まだストアに出ていないあいだ：押せそうに見せない。 */
.btn-main[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.86); color: var(--plum);
  border: 2px dashed rgba(118, 80, 111, 0.45); box-shadow: none; cursor: default;
}
/* App Store・Google Play。公開前は「近日公開」で押せない形、公開したら紫のボタン。 */
.stores { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 520px; }
.store {
  display: inline-flex; flex: 1 1 auto; align-items: center; gap: 8px;
  min-height: 60px; padding: 8px 12px; border-radius: 18px;
  background: var(--plum); color: #fff; text-decoration: none;
  box-shadow: 0 10px 22px rgba(118, 80, 111, 0.28);
  transition: background-color 0.2s, transform 0.2s;
}
.store[href]:hover { background: var(--ink); transform: translateY(-1px); }
.store-ico { width: 24px; height: 24px; flex: none; }
.store-text { display: grid; line-height: 1.2; text-align: left; }
.store-text small { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.85; }
.store-text b { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; }
.store .soon {
  margin-left: auto; padding: 2px 8px; border-radius: 999px;
  background: var(--lav); color: var(--plum); font-size: 11px; font-weight: 700; white-space: nowrap;
}
.store[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.88); color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(118, 80, 111, 0.3); cursor: default;
}
.store[aria-disabled="true"] .store-ico { color: var(--plum); }
html:lang(en) .store-text small { letter-spacing: 0.02em; }
.free { font-size: 14px; line-height: 1.7; color: var(--muted); }
.free b { color: var(--ink); font-weight: 700; }

/* ---------- ばあばの吹き出し ---------- */
.bubble {
  position: relative; z-index: 2;
  display: inline-block;
  margin: 0;
  padding: 13px 20px 14px;
  border: 0; border-radius: 18px;
  background: #fff; color: var(--bubble-ink);
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.55;
  letter-spacing: 0.02em; text-align: left;
  box-shadow: 0 8px 20px rgba(70, 30, 60, 0.12);
  width: max-content; max-width: 100%;
}
html:lang(en) .bubble { letter-spacing: 0; }
.bubble::after {
  content: ""; position: absolute;
  width: 18px; height: 18px; border-radius: 4px;
  background: #fff; transform: rotate(45deg);
}
.bubble.tail-l::after { left: -7px; top: var(--ty, calc(50% - 9px)); }
.bubble.tail-b::after { left: var(--tx, 34px); bottom: -7px; }
.bubble.tail-t::after { left: var(--tx, 34px); top: -7px; }
.bubble .who { display: block; margin-bottom: 1px; color: var(--plum); font-size: 11px; letter-spacing: 0.14em; }
.bubble .line { display: block; }
html:lang(ja) .bubble .line { word-break: keep-all; }
.bubble .line.big { font-size: 1.3em; line-height: 1.45; }
/* 声つきの吹き出しは、そのまま押せる。 */
.say { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.say:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(70, 30, 60, 0.16); }
@media (min-width: 1024px) { .bubble { font-size: 20px; } }
.say .hear {
  display: flex; align-items: center; gap: 7px;
  margin-top: 8px; color: var(--plum);
  font-size: 12px; letter-spacing: 0.08em; line-height: 1;
}
.play { width: 20px; height: 20px; flex: none; padding: 5px 4px 5px 6px; border-radius: 50%; background: var(--plum); fill: #fff; }
[data-voice].on .play { display: none; }
.waves { display: none; gap: 3px; align-items: center; height: 20px; color: var(--plum); }
.waves i { width: 3px; height: 40%; border-radius: 3px; background: currentColor; animation: wave 0.9s ease-in-out infinite; }
.waves i:nth-child(2) { animation-delay: 0.15s; }
.waves i:nth-child(3) { animation-delay: 0.3s; }
.waves i:nth-child(4) { animation-delay: 0.45s; }
[data-voice].on .waves { display: inline-flex; }
@keyframes wave { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .waves i { animation: none; height: 70%; } }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }

/* ---------- ばあばの顔（丸い窓から、頭だけ上にはみ出す） ---------- */
.medal { --s: 180px; position: relative; width: var(--s); flex: none; }
.medal::before {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: calc(var(--s) * 0.98); aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff9f1, var(--medal, #efe2ee) 70%);
  box-shadow: inset 0 0 0 calc(var(--s) * 0.03) rgba(255, 252, 246, 0.95), 0 10px 24px rgba(70, 30, 60, 0.12);
}
.medal img {
  position: relative; display: block; width: 100%; height: auto;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--s) * 0.49) no-repeat,
    radial-gradient(circle calc(var(--s) * 0.49) at 50% calc(100% - var(--s) * 0.49), #000 99%, transparent 100%);
  mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--s) * 0.49) no-repeat,
    radial-gradient(circle calc(var(--s) * 0.49) at 50% calc(100% - var(--s) * 0.49), #000 99%, transparent 100%);
}
.m-peach, .m-lav, .m-plum { --medal: #e6d5e6; }
.m-sky { --medal: #cfe2f3; }
.m-night { --medal: #3a4074; }

/* ---------- 端末の枠と、小さな「アプリの画面」 ---------- */
.phone {
  --w: 230px; --r: 0deg;
  position: relative; margin: 0; width: var(--w);
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.15);
  background: linear-gradient(150deg, #4a3546, #21171f 60%);
  box-shadow: 0 30px 60px rgba(40, 15, 40, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  rotate: var(--r);
}
.phone img { display: block; width: 100%; border-radius: calc(var(--w) * 0.12); }
.capture {
  position: relative; margin: 0;
  padding: 6px 6px 0; border-radius: 16px;
  background: #fff; box-shadow: 0 16px 34px rgba(70, 30, 60, 0.16);
}
.capture img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 11px; }
.capture figcaption { padding: 8px 6px 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.capture figcaption b { display: block; color: var(--ink); font-size: 15px; }
.tilt-l { rotate: -3deg; }
.tilt-r { rotate: 3deg; }
.tag-app { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- 上の帯 ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.3s, box-shadow 0.3s; }
.top .bar { display: flex; align-items: center; gap: 16px; height: 60px; }
.top .brand { display: block; line-height: 0; }
.top .brand img { width: 96px; transition: opacity 0.3s; }
.top:not(.quiet) { background: rgba(250, 246, 239, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.top.quiet .brand { opacity: 0; pointer-events: none; }
.top nav { display: none; }
.top .lang {
  margin-left: auto; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); color: var(--ink);
  font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 0 0 1px var(--line);
}
@media (min-width: 900px) {
  .top .bar { height: 68px; gap: 24px; }
  .top .brand img { width: 108px; }
  .top nav {
    display: flex; gap: 4px; margin-left: auto; padding: 4px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line);
  }
  .top nav a { padding: 6px 14px; border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
  .top nav a:hover { background: var(--lav); }
  .top .lang { margin-left: 0; }
}

/* ---------- 1. 最初の画面 ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding: 84px 0 40px; }
.hero-bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 42% 62%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(250, 246, 239, 0.96) 0%, rgba(250, 246, 239, 0.86) 30%, rgba(250, 246, 239, 0) 46%),
    linear-gradient(0deg, var(--garden) 0, var(--garden) 150px, rgba(231, 241, 228, 0) 240px);
}
.hero-grid { display: grid; justify-items: center; text-align: center; }
.hero h1 { display: grid; justify-items: center; gap: 14px; }
.hero-logo { width: 230px; filter: drop-shadow(0 6px 16px rgba(250, 246, 239, 0.9)); }
.h1-line { font-size: clamp(30px, 2.9vw + 19px, 56px); line-height: 1.32; letter-spacing: 0.02em; text-shadow: 0 0 24px rgba(250, 246, 239, 0.9); }
html:lang(en) .h1-line { letter-spacing: 0; line-height: 1.15; font-size: clamp(28px, 2.2vw + 18px, 46px); }
@media (min-width: 900px) { html:lang(en) .hero-copy { max-width: 560px; } }
@media (min-width: 1024px) { html:lang(en) .hero-cta { max-width: 520px; } }
.tagline {
  display: inline-block; margin-top: 16px; padding: 7px 18px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: var(--plum);
  font-size: clamp(15px, 0.3vw + 14px, 18px); font-weight: 700; letter-spacing: 0.1em;
  box-shadow: 0 8px 22px rgba(80, 40, 70, 0.14);
}
html:lang(en) .tagline { letter-spacing: 0.02em; text-wrap: balance; }
.lede { max-width: 26em; margin: 14px auto 0; color: var(--ink); font-size: clamp(15px, 0.3vw + 14px, 18px); line-height: 1.75; text-shadow: 0 0 18px rgba(250, 246, 239, 0.95); text-wrap: pretty; }
@media (min-width: 900px) { .lede { margin-inline: 0; } }
.hero-art { position: relative; width: min(100%, 360px); height: min(430px, 118vw); margin-top: 12px; }
.hero-art .baba { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; filter: drop-shadow(0 14px 18px rgba(60, 25, 55, 0.22)); }
.hero-art .pochi { position: absolute; right: -6px; bottom: -6px; width: 138px; filter: drop-shadow(0 12px 14px rgba(60, 30, 50, 0.25)); }
.hero-bubble { position: absolute; right: -4px; top: 34px; --ty: 34%; }
.hero-cta { display: grid; justify-items: center; gap: 14px; margin-top: 18px; }
.hero-cta .stores, .last .stores { justify-content: center; }
@media (min-width: 900px) {
  .hero { min-height: clamp(660px, 54vw, 820px); padding: 120px 0 72px; display: flex; align-items: center; }
  .hero-bg img { object-position: 58% 60%; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(250, 246, 239, 0.95) 0%, rgba(250, 246, 239, 0.8) 30%, rgba(250, 246, 239, 0) 50%),
      linear-gradient(0deg, var(--garden) 0, rgba(231, 241, 228, 0) 90px);
  }
  .hero-grid { justify-items: start; text-align: left; align-content: center; }
  .hero h1 { justify-items: start; gap: 22px; }
  .hero-logo { width: clamp(280px, 24vw, 360px); }
  .hero-copy, .hero-cta { max-width: 480px; }
  .hero-cta { justify-items: start; margin-top: 34px; }
  .hero-cta .stores { justify-content: flex-start; }
  .hero-cta .store { flex: 0 0 auto; }
  .hero-art { position: absolute; left: 54%; bottom: 7%; width: clamp(230px, 20vw, 300px); height: auto; aspect-ratio: 369 / 663; margin: 0; }
  .hero-art .pochi { right: auto; left: 86%; bottom: -1%; width: 52%; }
  .hero-bubble { left: 88%; right: auto; top: 6%; --ty: 40%; }
}

/* ---------- 節のつくり ---------- */
.sec { position: relative; padding-block: clamp(56px, 3vw + 42px, 84px); overflow-x: clip; }
.split { display: grid; gap: 32px; align-items: center; }
.split > .copy { order: -1; }
.head { max-width: 680px; }
.head > * + * { margin-top: 20px; }
.head.center { margin-inline: auto; text-align: center; }
.art { position: relative; width: 100%; max-width: 560px; margin-inline: auto; container-type: inline-size; }
.art > img { position: absolute; display: block; height: auto; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .split > .copy { order: 0; }
}

/* ---------- 2. ばあばの一日 ---------- */
.day { background: linear-gradient(180deg, var(--garden) 0%, var(--paper) 72%); }
.day-art { aspect-ratio: 1 / 1.2; }
.day-art::before { content: ""; position: absolute; inset: 10% 6% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)); }
.day-art .p-laundry { right: -2%; top: 22%; width: 38cqw; rotate: 3deg; }
.day-art .baba { left: 19%; bottom: 0; width: 44cqw; filter: drop-shadow(0 14px 16px rgba(60, 25, 55, 0.18)); }
.day-art .p-basket { left: -1%; bottom: 0; width: 27cqw; filter: drop-shadow(0 8px 10px rgba(60, 30, 50, 0.14)); }
.day-art .p-can { right: 4%; bottom: 2%; width: 23cqw; filter: drop-shadow(0 8px 10px rgba(60, 30, 50, 0.14)); }
.day-bubble { position: absolute; left: 4%; top: 0; --tx: 34%; }
.now {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px;
  padding: 14px 18px; border-radius: 18px; background: #fff;
  box-shadow: 0 8px 24px rgba(70, 40, 60, 0.08); line-height: 1.6;
}
.now-label { font-size: 13px; font-weight: 700; color: var(--plum); letter-spacing: 0.1em; }
.now .clock { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.times { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.times li {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center;
  padding: 10px 14px; border-radius: 16px; line-height: 1.55;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.times .when { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--ink); }
.times li[data-slot="morning"] .when { background: #f9e2b8; }
.times li[data-slot="noon"] .when { background: #cfe6f4; }
.times li[data-slot="evening"] .when { background: #f6c6b0; }
.times li[data-slot="night"] .when { background: #3b3f72; color: #fff; }
.times b { color: var(--ink); font-weight: 700; }
.times li > span:last-child { font-size: 14px; color: var(--muted); }
.times li.is-now { background: #fff; box-shadow: 0 8px 22px rgba(70, 40, 60, 0.1), inset 3px 0 0 var(--plum); }
html:lang(en) .times .when { font-size: 11px; }

.seasons { margin-top: clamp(56px, 6vw, 96px); display: grid; gap: 24px; }
.seasons-head { max-width: 560px; }
.seasons-head p { margin-top: 10px; }
.season-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.season-row .capture figcaption { font-size: 12px; }
@media (max-width: 599px) {
  .season-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 220px; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 18px; scroll-padding-inline: var(--gut);
  }
  .season-row::-webkit-scrollbar { display: none; }
  .season-row li { scroll-snap-align: start; }
  .season-row .capture figcaption { font-size: 13px; }
}
@media (min-width: 1024px) {
  .seasons { grid-template-columns: 340px 1fr; align-items: center; column-gap: 56px; }
  .season-row { gap: 22px; }
  .tag-app { grid-column: 2; margin-top: -10px; }
}

/* ---------- 3. 小さな笑い ---------- */
.laugh { background: linear-gradient(180deg, var(--paper) 0%, var(--peach) 50%, var(--paper) 100%); }
.laugh .copy p:not(.kicker) { font-size: 17px; }
.laugh-art { aspect-ratio: 1 / 0.92; }
.laugh-art .capture { position: absolute; left: 0; top: 2%; width: 50cqw; }
.laugh-medal { position: absolute; right: 4%; bottom: 0; --s: 40cqw; }
.laugh-bubble { position: absolute; right: 0; top: 4%; --tx: 62%; }

/* ---------- 4. おしゃべり ---------- */
.talk .split { grid-template-areas: "copy" "art" "more"; }
.talk .split > .copy { grid-area: copy; order: 0; }
.talk .split > .more { grid-area: more; }
.talk .split > .art { grid-area: art; }
@media (min-width: 1024px) {
  .talk .split { grid-template-areas: "art copy" "art more"; row-gap: 20px; align-content: center; }
  .talk .split > .copy { align-self: end; }
  .talk .split > .more { align-self: start; }
}
.talk-art { aspect-ratio: 1 / 1.05; }
.talk-art .panel { position: absolute; left: 0; top: 7%; width: 78cqw; height: 88%; overflow: hidden; border-radius: 30px; box-shadow: 0 24px 50px rgba(70, 40, 60, 0.18); }
.talk-art .panel-bg { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; display: block; }
.talk-art .panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250, 246, 239, 0.35), rgba(250, 246, 239, 0) 40%); }
.talk-face { position: absolute; left: 2%; bottom: 0; width: 66cqw; z-index: 1; filter: drop-shadow(0 10px 22px rgba(60, 25, 55, 0.25)); }
.talk-phone { position: absolute; right: 0; top: 0; --w: 40cqw; --r: 5deg; z-index: 2; }
.talk-bubble { position: absolute; left: 3%; top: 0; --tx: 30%; z-index: 3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .quote {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  border: 0; background: #fff; color: var(--bubble-ink);
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.4; cursor: pointer;
  box-shadow: 0 0 0 1.5px var(--lav-2), 0 6px 16px rgba(70, 40, 60, 0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.chip:hover, .quote:hover { box-shadow: 0 0 0 1.5px var(--plum), 0 8px 18px rgba(70, 40, 60, 0.1); transform: translateY(-1px); }
.chip small { font-size: 12px; color: var(--muted); font-weight: 500; }
.sayings { padding: 18px 20px; border-radius: 20px; background: var(--lav); }
.sayings p { font-size: 15px; }
.sayings ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sayings li { padding: 6px 12px; border-radius: 8px; background: #fffaf2; color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 3px 0 rgba(118, 80, 111, 0.12); }
.sayings li:nth-child(odd) { rotate: -1.5deg; }
.sayings li:nth-child(even) { rotate: 1.5deg; }

/* ---------- 5. おぼえがき ---------- */
.notes { background: radial-gradient(120% 70% at 70% 40%, #fff9ef 0%, var(--lav) 58%, var(--lav-2) 100%); }
.said { display: flex; align-items: center; gap: 14px; }
.notes-medal, .sky-medal { --s: 112px; }
@media (min-width: 1024px) { .notes-medal, .sky-medal { --s: 144px; } }
.said .bubble, .sky-say .bubble { width: auto; }
.notes-bubble { --ty: 30%; }
.notes-art { aspect-ratio: 1 / 0.8; }
.book { position: absolute; left: 0; top: 4%; width: 92cqw; rotate: -4deg; filter: drop-shadow(0 24px 30px rgba(70, 40, 60, 0.22)); }
.book img { display: block; width: 100%; }
.book .page { position: absolute; top: 24%; width: 30%; color: #5b4636; font-size: clamp(11px, 3cqw, 17px); line-height: 1.5; font-weight: 500; }
.book .page b { display: block; margin-top: 0.7em; color: var(--plum); font-weight: 700; font-size: 0.92em; }
.book .page b:first-child { margin-top: 0; }
.book .pg-l { left: 17%; }
.book .pg-r { left: 57%; top: 21%; }
.notes-art .p-yunomi { right: 2%; bottom: 0; width: 22cqw; filter: drop-shadow(0 14px 16px rgba(60, 30, 50, 0.24)); }

/* ---------- 6. きょうの空 ---------- */
.sky { background: linear-gradient(180deg, var(--sky) 0%, #e9e2f3 55%, var(--paper) 100%); }
.weathers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 440px; }
.weather {
  display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.weather img { width: 100%; max-width: 92px; aspect-ratio: 1; border-radius: 50%; transition: transform 0.25s, box-shadow 0.25s; filter: drop-shadow(0 8px 12px rgba(60, 60, 110, 0.18)); }
.weather:hover img { transform: translateY(-3px); }
.weather[aria-pressed="true"] img { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--plum); }
.sky-scene { display: flex; align-items: center; gap: 14px; }
.sky-medal::before { transition: background 0.4s; }
.sky-scene[data-sky="sun"] .sky-medal { --medal: #9fd0f2; }
.sky-scene[data-sky="cloudy"] .sky-medal { --medal: #c9d0da; }
.sky-scene[data-sky="rain"] .sky-medal { --medal: #8fa6c2; }
.sky-scene[data-sky="storm"] .sky-medal { --medal: #4b5577; }
.sky-medal .rainfall {
  position: absolute; left: 50%; bottom: 0; width: calc(var(--s) * 0.98); aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background-image: linear-gradient(105deg, transparent 47%, rgba(255, 255, 255, 0.75) 48%, transparent 52%), linear-gradient(105deg, transparent 47%, rgba(255, 255, 255, 0.5) 48%, transparent 52%);
  background-size: 22px 40px, 15px 28px; animation: rain 0.5s linear infinite;
}
.sky-scene[data-sky="rain"] .rainfall { opacity: 0.6; }
.sky-scene[data-sky="storm"] .rainfall { opacity: 0.8; animation-duration: 0.3s; }
@keyframes rain { from { background-position: 0 0, 7px 10px; } to { background-position: -10px 40px, -3px 38px; } }
@media (prefers-reduced-motion: reduce) { .sky-medal .rainfall { animation: none; } }
.sky-say { min-width: 0; }
.sky-text { font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.6; }
.sky-art { aspect-ratio: 1 / 1.02; }
.sky-phone { position: absolute; left: 6%; top: 0; --w: 44cqw; --r: -4deg; }
.cal {
  position: absolute; right: 0; bottom: 2%; width: 56cqw; z-index: 2;
  padding: 16px; border-radius: 22px; background: #fff;
  box-shadow: 0 22px 44px rgba(60, 50, 90, 0.18); line-height: 1.4;
}
.cal header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-weight: 800; color: var(--ink); font-size: clamp(12px, 3cqw, 15px); }
.cal header small { padding: 1px 8px; border-radius: 999px; background: var(--lav); color: var(--plum); font-size: 11px; font-weight: 700; }
.cal .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; font-variant-numeric: tabular-nums; }
.cal .grid span { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: clamp(9px, 2.2cqw, 12px); font-weight: 700; }
.cal .grid span.w { aspect-ratio: auto; background: none; font-size: clamp(9px, 2cqw, 11px); }
.cal .grid span i { position: absolute; inset: 14%; border-radius: 50%; }
.cal .grid span i.sun { background: radial-gradient(circle, #f5c75a 0 45%, transparent 47%); }
.cal .grid span i.cloud { background: radial-gradient(circle at 40% 55%, #c9cfd6 0 38%, transparent 40%), radial-gradient(circle at 62% 45%, #d8dde2 0 34%, transparent 36%); }
.cal .grid span i.rain { background: radial-gradient(circle at 50% 40%, #9bb3c9 0 34%, transparent 36%); }
.cal .grid span.has b { position: relative; z-index: 1; color: var(--ink); }

/* ---------- 5. 預かる（2026-10-23 のコンセプト：聞いてもらう → 望めば預ける） ---------- */
.keep { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 50%, var(--paper) 100%); }
.keep-said { justify-content: center; margin-top: 30px; }
.keep-medal { --s: 112px; }
@media (min-width: 1024px) { .keep-medal { --s: 144px; } }
.ways { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ways li { display: grid; gap: 10px; align-content: start; padding: 22px 20px; border-radius: 22px; background: #fff; box-shadow: 0 10px 26px rgba(70, 40, 60, 0.09); }
.ways .mk { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.ways .mk svg { width: 28px; height: 28px; }
.mk-fire { background: #fde6dc; fill: #e2663a; }
.mk-charm { background: var(--lav); fill: var(--plum); }
.mk-hold { background: var(--pink); fill: #d97a95; }
.ways b { color: var(--ink); font-size: 19px; line-height: 1.4; }
.ways p { font-size: 15px; line-height: 1.75; }
.ways .chip { justify-self: start; text-align: left; }
.keep-note { max-width: 680px; margin: 28px auto 0; }
.answers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.answers li { padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--plum); font-size: 14px; font-weight: 700; line-height: 1.5; box-shadow: 0 0 0 1.5px var(--lav-2); }
.answers li:first-child { background: var(--plum); color: #fff; box-shadow: none; }
.cal .grid span i.mark { inset: 18%; border-radius: 0; display: grid; place-items: center; }
.cal .grid span i.mark svg { width: 100%; height: 100%; }
.cal .grid span.has.marked b { position: absolute; left: 3px; top: 1px; font-size: 0.8em; }

/* ---------- 7. ばあばのへや ---------- */
.rooms-grid { display: grid; gap: 36px; margin-top: 40px; align-items: center; justify-items: center; }
.rooms-phone { --w: 190px; --r: -3deg; }
.room-list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.room-list li { display: grid; gap: 2px; padding: 8px 8px 12px; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(70, 40, 60, 0.09); line-height: 1.45; }
.room-list img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.room-list b { padding-inline: 4px; color: var(--ink); font-size: 15px; }
.room-list span { padding-inline: 4px; color: var(--muted); font-size: 13px; }
@media (max-width: 599px) { .rooms-phone { display: none; } .rooms-grid { margin-top: 28px; } }
@media (min-width: 720px) { .room-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .rooms-grid { grid-template-columns: 250px 1fr; gap: 64px; }
  .rooms-phone { --w: 240px; }
}

/* ---------- 8. 夜 ---------- */
.night { position: relative; isolation: isolate; overflow: clip; padding-block: 56px; color: #e9e4f2; }
.night-bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.night::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 16, 48, 0.92) 0%, rgba(14, 16, 48, 0.55) 40%, rgba(14, 16, 48, 0.25) 70%, rgba(14, 16, 48, 0.6) 100%); }
.night h2 { color: #fff; text-shadow: 0 6px 30px rgba(10, 10, 40, 0.55); }
.night .copy p:not(.kicker) { color: #ddd7ea; }
.night-grid { display: grid; gap: 40px; }
.night-say { display: grid; justify-items: center; gap: 16px; }
.night-medal { --s: 220px; }
.night-bubble { --tx: 50%; }
@media (min-width: 1024px) {
  .night::before { background: linear-gradient(90deg, rgba(14, 16, 48, 0.92) 0%, rgba(14, 16, 48, 0.7) 34%, rgba(14, 16, 48, 0.1) 62%, rgba(14, 16, 48, 0.25) 100%); }
  .night { padding-block: 80px; min-height: 560px; display: flex; align-items: center; }
  .night-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .night-medal { --s: 280px; }
}

/* ---------- 9. この家の顔ぶれ ---------- */
.cast-row { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
.cast-row li { display: grid; justify-items: center; align-content: start; text-align: center; gap: 8px; }
.cast-row .fig { position: relative; width: 100%; height: 220px; display: flex; align-items: flex-end; justify-content: center; }
.cast-row .fig::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: -6px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 40, 60, 0.22), rgba(70, 40, 60, 0)); }
.cast-row .fig img { position: relative; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
.cast-row .who-tama .fig img { height: 36%; }
.cast-row .who-pochi .fig img { height: 44%; }
.cast-row h3 { margin-top: 10px; }
.cast-row p { font-size: 14px; line-height: 1.75; max-width: 30ch; }
.quote { padding: 7px 14px 7px 7px; font-size: 13px; text-align: left; border-radius: 18px; max-width: 100%; }
.quote > span { display: block; }
.quote small { display: block; font-size: 11px; color: var(--plum); }
@media (max-width: 599px) {
  .cast-row { grid-template-columns: 1fr; gap: 28px; }
  .cast-row li { grid-template-columns: 112px 1fr; column-gap: 16px; justify-items: start; text-align: left; align-items: center; }
  .cast-row .fig { grid-row: span 2; height: 180px; }
  .cast-row .who-tama .fig img { height: 46%; }
  .cast-row .who-pochi .fig img { height: 54%; }
  .cast-row h3 { margin-top: 0; align-self: end; }
  .cast-row p { max-width: none; align-self: start; }
  .cast-row .quote { grid-column: 1 / -1; justify-self: stretch; }
}
@media (min-width: 900px) {
  .cast-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .cast-row .fig { height: 260px; }
  .cast-row p { font-size: 15px; min-height: 108px; }
}

/* ---------- 10. またおいで・贈り物 ---------- */
.again h2 { font-size: clamp(28px, 1.2vw + 22px, 36px); }
.again { background: linear-gradient(180deg, var(--paper) 0%, var(--pink) 45%, var(--paper) 100%); }
.again-grid { display: grid; gap: 48px; }
.welcome { display: grid; gap: 32px; align-items: center; }
.welcome .copy { order: -1; }
.again-art { aspect-ratio: 1 / 1.1; max-width: 340px; }
.again-art .baba { left: 10%; bottom: 2%; height: 96%; width: auto; filter: drop-shadow(0 14px 16px rgba(60, 25, 55, 0.18)); }
.again-art .p-teapot { right: 0; bottom: 0; width: 42cqw; filter: drop-shadow(0 12px 14px rgba(60, 30, 50, 0.22)); }
.again-art::before { content: ""; position: absolute; inset: 8% 0 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)); }
.again-bubble { --tx: 40%; }
@media (min-width: 720px) { .bubble.again-bubble::after { left: -7px; top: calc(50% - 9px); bottom: auto; } }
.gifts { align-self: start; display: grid; gap: 12px; padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.62); box-shadow: inset 0 0 0 1px rgba(118, 80, 111, 0.12); }
.gifts h3 { margin-top: 2px; }
.gifts-pic { width: 100%; max-width: 280px; justify-self: center; margin-block: 4px; }
.gifts p:not(.kicker):not(.cue) { font-size: 15px; }
.gifts .cue { font-size: 13px; color: var(--muted); margin-top: 6px; }
.gift-bubble { justify-self: start; font-size: 16px; --tx: 30px; }
.gifts .kicker { justify-self: start; }
@media (min-width: 720px) {
  .welcome { grid-template-columns: 300px 1fr; }
  .welcome .copy { order: 0; }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .gifts { grid-template-columns: 300px 1fr; column-gap: 32px; align-items: center; }
  .gifts > * { grid-column: 2; }
  .gifts .gifts-pic { grid-column: 1; grid-row: 1 / span 6; }
}
@media (min-width: 1100px) {
  .again-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: center; }
  .welcome { grid-template-columns: 260px 1fr; gap: 36px; }
}

/* ---------- 11. よくある質問 ---------- */
.narrow { width: min(780px, 100% - 2 * var(--gut)); }
.qa { margin-top: 40px; display: grid; gap: 10px; }
.qa details { border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(70, 40, 60, 0.06); }
.qa summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 56px 18px 22px; color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.6;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--plum); border-bottom: 2.5px solid var(--plum); rotate: 45deg; transition: rotate 0.2s, margin 0.2s;
}
.qa details[open] summary::after { rotate: 225deg; margin-top: -2px; }
.qa .a { padding: 0 22px 20px; font-size: 15px; line-height: 1.85; }
.qa .a p + p { margin-top: 10px; }

/* ---------- 12. 最後の案内 ---------- */
.last { padding-block: clamp(72px, 6vw + 40px, 128px); background: radial-gradient(90% 80% at 50% 100%, #e9d8e8 0%, var(--lav) 45%, var(--paper) 100%); text-align: center; }
.last-grid { display: grid; justify-items: center; gap: 28px; }
.last-medal { --s: 170px; }
.last h2 { font-size: clamp(26px, 2.6vw + 20px, 48px); }
.last .copy > * + * { margin-top: 22px; }
.last .copy p:not(.free) { font-size: 17px; }
@media (min-width: 900px) {
  .last-grid { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 56px; text-align: left; }
  .last .stores { justify-content: flex-start; }
  .last-medal { --s: 230px; }
}

/* ---------- footer ---------- */
footer { padding: 48px 0 40px; background: var(--paper-2); font-size: 14px; }
footer .wrap { display: grid; gap: 20px; justify-items: start; }
.foot-logo { width: 120px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--ink); text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer small { color: var(--muted); }

/* ---------- とても狭い画面（320px ほど） ---------- */
@media (max-width: 359px) {
  .bubble { font-size: 15px; padding: 11px 16px 12px; }
  .tagline { font-size: 14px; letter-spacing: 0.04em; padding-inline: 14px; }
  .said, .sky-scene { flex-direction: column; align-items: flex-start; }
  .said .bubble::after, .sky-say .bubble::after { left: 34px; top: -7px; }
}
