/* トップのページ専用の見た目。アプリの下のページ（サポート・プライバシー）は /style.css のまま。
   2026-11-06 に「アプリの色の見開き」（3 案の C・だいきさんが選択）に作り直した：生成りの紙の上で、アプリごとに自分の色の大きな面を
   雑誌の見開きのように見せる。選ばなかった案は A「絵本の箱庭」・B「ミントの朝」。それまでの生成り×セージのカード型は git の履歴にある。
   暗い表示でも同じ色に固定（color-scheme: light）。直したら index.html の top.css の読み込みの版の印（?v=）を上げる。 */
:root {
  color-scheme: light;
  --paper: #fbf8f2; --ink: #1d2621; --muted: #66706a; --line: #e6dfd1; --sage: #2f4a3f; --sage-soft: #dfe9e1;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); line-height: 1.8; font-weight: 500;
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.num { font-family: "Outfit", sans-serif; }

/* ---- ふわっと出る動き（JS が動くときだけ隠す） ---- */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---- 上の帯：名前と目次（すりガラス・上に貼りつく） ---- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 242, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(230, 223, 209, 0.7); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: 0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; background: #e3d8c6; }
.topbar nav { display: flex; gap: 26px; font-size: 0.9rem; font-weight: 700; }
.topbar nav a { text-decoration: none; opacity: 0.75; transition: opacity 0.2s ease; }
.topbar nav a:hover { opacity: 1; }

/* ---- ヒーロー：大きな文字と、マスコットのまわりにアプリのアイコンのシール ---- */
.hero { position: relative; overflow: hidden; background-image: radial-gradient(rgba(47, 74, 63, 0.12) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; min-height: calc(88vh - 64px); padding-top: 64px; padding-bottom: 72px; }
.kicker { margin: 0 0 18px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.24em; color: var(--muted); }
.kicker b { color: var(--ink); }
h1 { margin: 0; font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: 1.2; font-weight: 900; letter-spacing: -0.01em; }
h1 .nb { display: inline-block; } /* 「アプリ」の途中で折れないように */
h1 em { font-style: normal; background: linear-gradient(transparent 62%, #ffe27a 62%, #ffe27a 92%, transparent 92%); }
.hero .en { margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; letter-spacing: 0.04em; }
.hero-links { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.96rem; transition: transform 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { border: 1.5px solid var(--ink); }
.stage { position: relative; aspect-ratio: 1 / 1; max-width: 420px; justify-self: center; width: 100%; }
.stage .mascot { position: absolute; inset: 12%; width: 76%; height: 76%; border-radius: 50%; object-fit: cover; background: #e3d8c6; border: 8px solid #fff; box-shadow: 0 24px 50px rgba(29, 38, 33, 0.18); }
.sticker { position: absolute; width: 30%; height: auto; aspect-ratio: 1 / 1; border-radius: 24%; border: 6px solid #fff; box-shadow: 0 14px 30px rgba(29, 38, 33, 0.2); animation: bob 6s ease-in-out infinite; } /* 縦は横に合わせる（img の height="126" のままだと、狭い画面で縦に伸びる） */
.sticker-meme { left: -2%; bottom: 4%; transform: rotate(-12deg); }
.sticker-dragon { right: -2%; top: 2%; transform: rotate(10deg); animation-delay: -3s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---- 流れる帯 ---- */
.marquee { overflow: hidden; background: var(--sage); color: #f3ecdc; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee span { white-space: nowrap; font-weight: 700; letter-spacing: 0.12em; font-size: 0.95rem; padding-right: 48px; }
.marquee i { font-style: normal; opacity: 0.5; margin: 0 22px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- アプリ：自分の色の大きな面に、文と傾けた 2 枚の画面 ---- */
.spread { position: relative; overflow: hidden; padding: 120px 0; background: var(--spread-bg); color: var(--spread-ink); }
.spread::before { content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%; background: var(--spread-glow); top: 50%; transform: translateY(-50%); right: -220px; pointer-events: none; }
.spread.flip::before { right: auto; left: -220px; }
.spread-meme { --spread-bg: #ffd52e; --spread-glow: #ffe169; --spread-ink: #1d1d1b; --chip-bg: rgba(29, 29, 27, 0.1); }
.spread-dragon { --spread-bg: #f1e4cf; --spread-glow: #e6ecd0; --spread-ink: #3a2a1e; --chip-bg: #dfe9cf; }
.spread .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spread.flip .copy { order: 2; }
.label { display: flex; align-items: baseline; gap: 14px; margin: 0 0 26px; font-weight: 700; letter-spacing: 0.18em; font-size: 0.8rem; }
.label .num { font-size: 4.2rem; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 2px var(--spread-ink); }
.app-icon { width: 92px; height: 92px; border-radius: 24%; display: block; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18); }
h2 { margin: 22px 0 0; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.2; font-weight: 900; letter-spacing: -0.01em; }
.status { display: inline-block; margin-top: 14px; padding: 5px 14px; border-radius: 999px; background: var(--chip-bg); font-size: 0.82rem; font-weight: 700; }
.status .en { margin-left: 6px; opacity: 0.7; font-weight: 500; }
.tagline { margin: 16px 0 0; font-size: 1.15rem; font-weight: 700; }
.tagline span { display: inline-block; } /* 言葉の途中で改行しない */
/* ストアのバッジ：まだ出していないもの（aria-disabled="true"・href なし）は薄く・押せない */
.stores { margin: 30px 0 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge { display: block; transition: transform 0.2s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 50px; width: auto; display: block; }
/* Google Play のバッジは上下に透明な余白があるので、見える部分を App Store と同じ高さにそろえる */
.badge-play img { height: 65.1px; margin-top: -7.55px; margin-bottom: -7.55px; }
.badge[aria-disabled="true"] { pointer-events: none; }
.badge[aria-disabled="true"] img { filter: grayscale(1); opacity: 0.45; }
.links { margin: 20px 0 0; font-size: 0.86rem; line-height: 2; opacity: 0.85; }
.links span { white-space: nowrap; }
/* 傾けた 2 枚の画面（画面に入ると順に起き上がる） */
.duo { position: relative; aspect-ratio: 1 / 1.05; }
.duo img { position: absolute; width: 46%; height: auto; border-radius: 24px; border: 6px solid #fff; box-shadow: 0 26px 50px rgba(0, 0, 0, 0.22); transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 1s ease; }
.duo img:nth-child(1) { left: 6%; top: 4%; transform: rotate(-8deg); }
.duo img:nth-child(2) { right: 6%; top: 4%; transform: rotate(6deg); } /* 2 枚の高さはそろえる（2026-11-06 だいきさん） */
html.js .duo:not(.is-in) img:nth-child(1) { transform: translateY(60px) rotate(-2deg); opacity: 0; }
html.js .duo:not(.is-in) img:nth-child(2) { transform: translateY(90px) rotate(2deg); opacity: 0; }
.duo.is-in img:nth-child(2) { transition-delay: 0.15s; }
/* ---- お知らせ・お問い合わせ ---- */
.contact { padding: 110px 0 40px; }
.contact h2 { margin: 0 0 40px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact h2 .num { display: block; font-size: 0.8rem; letter-spacing: 0.24em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 0.3s ease, background 0.3s ease; }
.row:hover { padding-left: 14px; padding-right: 14px; background: #f4efe4; }
.row h3 { margin: 0; font-size: 1.1rem; font-weight: 900; }
.row p { margin: 0; color: var(--muted); }
.row strong { display: block; color: var(--ink); font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; word-break: break-all; }
.row .arrow { font-size: 1.4rem; transition: transform 0.3s ease; }
.row:hover .arrow { transform: translateX(6px); }

footer { padding: 72px 0 56px; color: var(--muted); font-size: 0.85rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .brand { color: var(--ink); }

@media (max-width: 820px) {
  .topbar nav { gap: 16px; font-size: 0.84rem; }
  .topbar nav a:not(:first-child) { display: none; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 44px; padding-bottom: 56px; gap: 36px; }
  .stage { max-width: 300px; order: -1; }
  .spread { padding: 80px 0; }
  .spread .wrap { grid-template-columns: 1fr; gap: 40px; }
  .spread.flip .copy { order: 0; }
  .spread::before { width: 480px; height: 480px; top: auto; bottom: -160px; transform: none; right: -160px; }
  .spread.flip::before { left: -160px; }
  .label .num { font-size: 3.2rem; }
  .app-icon { width: 80px; height: 80px; }
  .row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .row h3 { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
