/* ===========================================================
   アソビコ！ ランディングページ
   明るい太陽キャラクター主役・軽くゆるく・イラストをまぶして
   下部の「安心」だけはしっかり。ブランド「太陽とスタンプ」準拠。
   =========================================================== */

:root {
  --sun: #ffcf3f;
  --sun-deep: #f2a900;
  --sun-hi: #ffe888;
  --leaf: #3d9b57;
  --leaf-deep: #2c7a44;
  --grass: #8ccf9b;
  --grass-deep: #6bbd82;
  --pop: #ff7a45;
  --sky: #e9f5ff;
  --ink: #443c2c;
  --ink-soft: #6e6552;
  --cream: #fff9e8;
  --paper: #ffffff;
  --line: #f0e6c8;

  --r-card: 22px;
  --pill: 999px;
  --shadow-card: 0 4px 18px rgba(90, 70, 20, 0.1);
  --shadow-soft: 0 12px 34px rgba(90, 70, 20, 0.14);
  --wrap: 1000px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-weight: 700;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
b { font-weight: 800; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 720px; }
.section { padding: 76px 0; position: relative; }
.center { text-align: center; }
.sp { display: none; }
.sec-title { font-size: clamp(1.6rem, 5vw, 2.5rem); }
.micro { color: var(--ink-soft); font-weight: 700; margin-top: 24px; }
.hl { color: var(--sun-deep); }

/* ── ボタン・チップ（全丸＋べた影） ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 800; color: var(--ink);
  border: none; border-radius: var(--pill); cursor: pointer;
  padding: 14px 26px; background: var(--sun); box-shadow: 0 5px 0 var(--sun-deep);
  transition: transform 0.08s var(--ease), box-shadow 0.08s var(--ease), filter 0.15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sun-deep); }
.btn--lg { padding: 18px 36px; font-size: 1.18rem; }
.btn--sm { padding: 9px 18px; font-size: 0.92rem; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; list-style: none; padding: 0; margin: 26px 0 0; }
.chip { background: var(--paper); border: 2px solid var(--line); color: var(--ink-soft); font-weight: 800; font-size: 0.9rem; padding: 8px 15px; border-radius: var(--pill); box-shadow: var(--shadow-card); }

/* ── ナビ ── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 249, 232, 0.8); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow 0.2s; }
.nav.scrolled { box-shadow: var(--shadow-card); }
.nav__inner { display: flex; align-items: center; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.3rem; }
.brand__sun { width: 32px; height: 32px; flex: none; }
.brand__excl { color: var(--sun-deep); }
.nav__cta { margin-left: auto; }

/* ── ヒーロー ── */
.hero { position: relative; overflow: hidden; text-align: center; padding: 26px 0 0; background: linear-gradient(180deg, var(--sky) 0%, #fff4d4 52%, var(--cream) 100%); }
.hero__inner { position: relative; z-index: 3; padding-bottom: 168px; }
.hero__sun { width: clamp(132px, 33vw, 188px); height: clamp(132px, 33vw, 188px); display: block; margin: 4px auto 6px; filter: drop-shadow(0 10px 18px rgba(242, 169, 0, 0.35)); animation: bob 3.4s ease-in-out infinite; }
.hero__title { font-size: clamp(2.1rem, 7.2vw, 3.5rem); letter-spacing: 0.01em; }
.hero__lead { font-size: clamp(1.05rem, 3.6vw, 1.4rem); font-weight: 800; margin-top: 16px; }
.hero__sub { color: var(--ink-soft); font-weight: 700; margin-top: 8px; }
.hero__cta { margin-top: 26px; }

/* 空とデコ */
.sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cloud { position: absolute; fill: #fff; opacity: 0.95; filter: drop-shadow(0 6px 10px rgba(90, 70, 20, 0.06)); }
.cloud--1 { width: 130px; height: 70px; top: 40px; left: 6%; animation: drift 22s linear infinite; }
.cloud--2 { width: 90px; height: 48px; top: 96px; right: 10%; animation: drift 28s linear infinite reverse; }
.cloud--3 { width: 110px; height: 58px; top: 20px; right: 26%; opacity: 0.8; animation: drift 34s linear infinite; }
.deco { position: absolute; }
.heart--1 { width: 30px; height: 30px; top: 120px; left: 16%; animation: floaty 5s var(--ease) infinite; }
.heart--2 { width: 22px; height: 22px; top: 60px; right: 20%; animation: floaty 7s var(--ease) infinite; }
.ball--1 { width: 34px; height: 34px; top: 150px; right: 12%; animation: floaty 6s var(--ease) infinite; }

/* 地面（公園） */
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 2; pointer-events: none; }
.ground::before { content: ""; position: absolute; bottom: 0; left: -6%; right: -6%; height: 128px; background: linear-gradient(180deg, var(--grass), var(--grass-deep)); border-radius: 52% 48% 0 0 / 100% 100% 0 0; }
.scene { position: absolute; bottom: 14px; z-index: 1; }
.scene--tree { width: 96px; height: 116px; left: 4%; bottom: 30px; }
.scene--slide { width: 96px; height: 80px; right: 6%; bottom: 26px; }
.scene--family { width: 108px; height: 100px; left: 50%; transform: translateX(-60%); bottom: 22px; animation: bob 4s ease-in-out infinite; }
.scene--ball { width: 38px; height: 38px; left: 32%; bottom: 20px; animation: floaty 4.5s var(--ease) infinite; }

/* ── 3ステップ ── */
.steps-sec { background: var(--paper); }
.hops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.hop { background: var(--cream); border: 2px solid var(--line); border-radius: var(--r-card); padding: 26px 18px 24px; text-align: center; position: relative; box-shadow: var(--shadow-card); transition: transform 0.2s var(--ease); }
.hop:hover { transform: translateY(-5px); }
.hop__ico { width: 92px; height: 92px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.hop__ico--sun { background: transparent; }
.hop__ico--sun svg { width: 92px; height: 92px; animation: breathe 4s var(--ease) infinite; }
.hop__ico--go { background: radial-gradient(circle at 40% 35%, #d9f2df, #bfe8c9); }
.hop__ico--park svg { width: 78px; height: 92px; }
.hop__n { width: 30px; height: 30px; line-height: 30px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; margin: 0 auto 6px; box-shadow: 0 3px 0 var(--sun-deep); }
.hop__t { font-weight: 800; font-size: 1.12rem; }

/* ── 遊びの輪 ── */
.ring-sec { padding: 78px 0; background: linear-gradient(180deg, var(--cream), #fff3c9); text-align: center; overflow: hidden; }
.ring-art { position: relative; width: 260px; height: 260px; margin: 0 auto 26px; }
.ring-art__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.ring-art__center { position: absolute; width: 104px; height: 104px; left: 50%; top: 50%; transform: translate(-50%, -50%); animation: breathe 4s var(--ease) infinite; z-index: 2; }
.ring-art__node { position: absolute; width: 74px; height: 68px; }
.ring-art__node.n1 { top: -6px; left: 50%; transform: translateX(-50%); }
.ring-art__node.n2 { bottom: 2px; left: 6px; }
.ring-art__node.n3 { bottom: 2px; right: 6px; }
.ring-art__heart { position: absolute; width: 28px; height: 28px; animation: floaty 5s var(--ease) infinite; }
.ring-art__heart.h1 { top: 34px; right: 24px; }
.ring-art__heart.h2 { bottom: 40px; left: 26px; animation-duration: 6.5s; }
.ring-sec__title { font-size: clamp(1.5rem, 5vw, 2.4rem); color: var(--ink); }
.ring-sec__lead { color: var(--ink-soft); font-weight: 700; margin-top: 16px; }

/* ── 安心（しっかり） ── */
.trust-sec { background: var(--paper); }
.trust__head { text-align: center; margin-bottom: 32px; }
.trust__sun { width: 66px; height: 66px; margin-bottom: 8px; }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trust__list li { display: flex; gap: 14px; align-items: flex-start; background: var(--cream); border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-card); }
.trust__list .tk { font-size: 1.5rem; flex: none; line-height: 1.4; }
.trust__list p { font-weight: 700; color: var(--ink-soft); }
.trust__list b { color: var(--ink); }
.trust__by { text-align: center; color: var(--ink-soft); font-weight: 700; margin-top: 22px; font-size: 0.9rem; }

/* ── 最終CTA ── */
.cta { position: relative; overflow: hidden; text-align: center; padding: 84px 0 92px; background: linear-gradient(180deg, var(--sky), #fff4d4 60%, var(--cream)); }
.cta .wrap { position: relative; z-index: 2; }
.sky--cta .cloud--1 { top: 30px; left: 8%; }
.sky--cta .cloud--3 { top: 60px; right: 10%; }
.cta__sun { width: 120px; height: 120px; animation: bob 3.4s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(242,169,0,0.35)); }
.cta__title { font-size: clamp(2rem, 6vw, 3rem); margin: 8px 0 12px; }
.cta__lead { color: var(--ink-soft); font-weight: 700; margin: 0 auto 28px; }
.store { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store__btn { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 16px; box-shadow: 0 5px 0 #2b2519; transition: transform 0.08s; }
.store__btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #2b2519; }
.store__ico { width: 26px; height: 26px; flex: none; border-radius: 6px; background: #fff; position: relative; }
.store__ico::before { content: "🍎"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.store__ico--play::before { content: "▶"; color: var(--leaf); }
.store__txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store__txt small { font-size: 0.66rem; opacity: 0.82; font-weight: 700; }
.store__txt b { font-size: 1.05rem; }
.cta__note { margin-top: 18px; color: var(--ink-soft); font-weight: 700; font-size: 0.85rem; }

/* ── フッター ── */
.footer { background: var(--ink); color: #fff; padding: 46px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer .brand { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 800; color: rgba(255, 255, 255, 0.82); }
.footer__links a:hover { color: var(--sun); }
.footer__legal { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.6); font-size: 0.82rem; font-weight: 700; }

/* ── 規約・ポリシーのドキュメントページ ── */
.doc { max-width: 800px; margin: 0 auto; padding: 40px 22px 96px; }
.doc__back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--sun-deep); margin-bottom: 18px; }
.doc h1 { font-size: clamp(1.6rem, 4.4vw, 2.2rem); }
.doc__meta { color: var(--ink-soft); font-weight: 700; margin: 8px 0 26px; font-size: 0.9rem; }
.doc__body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 26px; box-shadow: var(--shadow-card); }
.doc__body h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body p { color: var(--ink); font-weight: 500; margin: 0 0 10px; }
.doc__body p.lead { color: var(--ink-soft); font-weight: 700; }
.doc__body ol, .doc__body ul { margin: 0 0 12px; padding-left: 1.4em; }
.doc__body li { margin: 4px 0; font-weight: 500; }
.doc__contact { margin-top: 20px; padding: 16px 18px; background: var(--cream); border-radius: 16px; font-weight: 700; }

/* ── スクロール表示 ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── キーフレーム ── */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes drift { from { transform: translateX(-16px); } to { transform: translateX(16px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* scene--family は translateX を使うので bob と競合させない */
.scene--family { animation: bobx 4s ease-in-out infinite; }
@keyframes bobx { 0%, 100% { transform: translateX(-60%) translateY(0); } 50% { transform: translateX(-60%) translateY(-8px); } }

/* ── レスポンシブ ── */
@media (max-width: 760px) {
  .hops { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .scene--slide, .scene--ball { display: none; }
  .hero__inner { padding-bottom: 150px; }
  .sp { display: inline; }
}
@media (max-width: 640px) {
  .section { padding: 58px 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ── アニメを減らす設定を尊重（docs/10 §5） ── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
