/* ダンゴムシの おさんぽ — nakawa.net/dangomushi/
   2026-11-25 かわいく作り直し（まるい文字・ふんわり色・草のふち・ころころ動き） */
:root {
  --cream: #fff8e1;
  --paper: #fffdf6;
  --leaf: #dcf2c2;
  --leaf-deep: #bfe39b;
  --sky: #d6effc;
  --pink: #ffd9e2;
  --pink-deep: #ff8fab;
  --sun: #ffe27a;
  --ink: #4a3828;
  --ink-soft: #7a6652;
  --green: #5aa83f;
  --green-dark: #3b7a2a;
  --orange: #f59a3c;
  --lilac: #efe6ff;
  --card: #ffffff;
  --soil: #8d6346;
  --radius: 26px;
  --shadow: 0 6px 0 rgba(140, 100, 50, .10), 0 14px 30px rgba(90, 60, 20, .10);
  --pop: "Mochiy Pop One", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 17px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(200, 160, 80, .13) 1.6px, transparent 1.7px);
  background-size: 22px 22px;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "BIZ UDPGothic", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
html:lang(en) { --pop: "Fredoka", "Zen Maru Gothic", sans-serif; }
html:lang(en) body { font-family: "Fredoka", "Zen Maru Gothic", system-ui, sans-serif; font-weight: 400; }
html:lang(en) .hero h1, html:lang(en) section h2 { font-weight: 600; }
a { color: var(--green-dark); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* ヘッダー */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 225, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px dashed rgba(140, 100, 50, .15);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-family: var(--pop); font-size: .98rem; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 3px 0 rgba(140, 100, 50, .15); transition: transform .3s; }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.top nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: .86rem; font-weight: 700; padding: 6px 12px; border-radius: 99px; transition: background .2s, transform .2s; }
.top nav a:hover, .top nav a:focus-visible { background: var(--leaf); color: var(--ink); transform: translateY(-2px); }
@media (max-width: 720px) { .top nav a.hide-sm { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ヒーロー */
.hero { position: relative; padding: 46px 0 76px; background: linear-gradient(180deg, var(--sky) 0%, #eaf7ff 45%, var(--cream) 100%); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.hero::before { width: 380px; height: 380px; left: -120px; top: -140px; background: radial-gradient(#fff6c4, transparent 70%); }
.hero::after { width: 300px; height: 300px; right: -90px; bottom: -60px; background: radial-gradient(var(--pink), transparent 70%); opacity: .7; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 26px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--green-dark); font-weight: 700; font-size: .84rem; border-radius: 99px; padding: 4px 14px; box-shadow: 0 3px 0 rgba(90, 150, 60, .18); margin: 0 0 14px; }
.hero h1 { font-family: var(--pop); font-weight: 400; font-size: clamp(2.3rem, 6.4vw, 3.9rem); line-height: 1.22; margin: 0 0 16px; letter-spacing: .02em; color: var(--ink); }
.hero h1 .l2 { display: block; color: var(--green-dark); }
.hero h1 .ch { display: inline-block; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.hero h1 .ch:hover { transform: translateY(-8px) rotate(-6deg); }
.hero h1 .ch.o { color: var(--orange); }
.lead { font-size: 1.06rem; color: var(--ink-soft); margin: 0 0 22px; }
.lead strong { color: var(--ink); background: linear-gradient(transparent 62%, var(--sun) 62%); }
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: #1c1c1e; color: #fff; border-radius: 16px; padding: 12px 22px; font-size: .98rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 5px 0 #000; transition: transform .15s, box-shadow .15s;
}
.soon:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #000; }
.soon:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.soon svg { width: 22px; height: 22px; fill: #fff; }
.price-note { font-size: .84rem; color: var(--ink-soft); }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: #fff; border-radius: 99px; padding: 4px 14px 4px 12px; font-size: .84rem; font-weight: 700; box-shadow: 0 3px 0 rgba(140, 100, 50, .1); }
.tags li::before { content: "●"; color: var(--leaf-deep); margin-right: 6px; font-size: .7em; vertical-align: 2px; }
.tags li:nth-child(2n)::before { color: var(--pink-deep); }
.tags li:nth-child(3n)::before { color: #f2c94c; }

/* ふわふわ飛ぶ はっぱ */
.float { position: absolute; z-index: 0; pointer-events: none; opacity: .8; animation: drift 9s ease-in-out infinite; }
.float.f1 { width: 64px; left: 44%; top: 6%; }
.float.f2 { width: 46px; left: 45%; bottom: 6%; animation-delay: -3s; }
.float.f3 { width: 52px; right: 3%; top: 4%; animation-delay: -6s; }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 10px -16px; rotate: 10deg; } }

/* さわってみて（丸まる体験） */
.play {
  position: relative; aspect-ratio: 16 / 11; border-radius: 34px; overflow: hidden;
  background: linear-gradient(#8fd0fb, #cdeeff 58%);
  box-shadow: 0 10px 0 rgba(140, 100, 50, .14), 0 24px 40px rgba(60, 100, 140, .18);
  border: 10px solid #fff; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  rotate: 1.5deg; transition: rotate .4s;
}
.play:hover { rotate: 0deg; }
.play .sun { position: absolute; right: 8%; top: 9%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 10px rgba(255, 226, 122, .35), 0 0 0 22px rgba(255, 226, 122, .15); animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 14px rgba(255, 226, 122, .35), 0 0 0 28px rgba(255, 226, 122, .12); } }
.play .cloud { position: absolute; top: 17%; left: 8%; width: 24%; height: 11%; background: #fff; border-radius: 99px; opacity: .95; animation: cloud 14s linear infinite alternate; }
.play .cloud::before { content: ""; position: absolute; left: 22%; top: -60%; width: 44%; height: 130%; background: #fff; border-radius: 50%; }
.play .cloud.b { left: 48%; top: 30%; width: 17%; height: 8%; animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes cloud { to { translate: 30px 0; } }
.play .hills { position: absolute; left: -5%; right: -5%; bottom: 27%; height: 30%; }
.play .hills i { position: absolute; bottom: 0; border-radius: 50% 50% 0 0; }
.play .hills i:nth-child(1) { left: 0; width: 60%; height: 80%; background: #a6dc84; }
.play .hills i:nth-child(2) { left: 42%; width: 66%; height: 100%; background: #93d270; }
.play .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: #9a6c4b; }
.play .ground::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 22px; background: #79c257; border-radius: 0 0 50% 50% / 0 0 60% 60%; }
.play .ground::after { content: ""; position: absolute; inset: 35% 0 0; background-image: radial-gradient(rgba(70, 40, 20, .25) 3px, transparent 3.5px); background-size: 46px 30px; }
.play .flower { position: absolute; bottom: 28%; width: 7%; transform-origin: 50% 100%; animation: sway 3s ease-in-out infinite; }
.play .flower.a { left: 4%; } .play .flower.b { left: 87%; width: 6%; animation-delay: -1s; } .play .flower.c { left: 56%; width: 5%; animation-delay: -2s; }
@keyframes sway { 50% { rotate: 6deg; } }
.play .leafdeco { position: absolute; left: 68%; width: 13%; bottom: 27%; }
.play .bug { position: absolute; left: 12%; bottom: 27%; width: 36%; transition: transform .9s cubic-bezier(.4, .1, .3, 1); }
.play .bug img { display: block; width: 100%; transition: transform .9s cubic-bezier(.4, .1, .3, 1); transform-origin: 50% 60%; }
.play .bug:not(.rolled) img.walk { animation: bob .7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -2.5%; rotate: -1deg; } }
.play .bug.rolled { transform: translateX(95%); }
.play .bug.rolled img.ball { transform: rotate(540deg); }
.play .hint {
  position: absolute; left: 50%; top: 6%; translate: -50% 0;
  background: #fff; border-radius: 99px; padding: 6px 18px; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .08); white-space: nowrap; animation: hop 1.4s ease-in-out infinite;
}
.play .hint::after { content: ""; position: absolute; left: 50%; bottom: -8px; translate: -50% 0; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
@keyframes hop { 50% { transform: translateY(-6px); } }
.play .count { position: absolute; right: 4%; bottom: 6%; background: rgba(255, 255, 255, .92); border-radius: 99px; padding: 2px 12px; font-size: .8rem; font-weight: 700; color: var(--ink); }
.play .count[hidden] { display: none; }
.play .spark { position: absolute; pointer-events: none; color: #ffd23f; font-size: 26px; line-height: 1; text-shadow: 0 2px 0 #e8a92a; animation: spark .9s ease-out forwards; }
.play .spark.h { color: var(--pink-deep); text-shadow: 0 2px 0 #e06a8a; }
@keyframes spark { from { opacity: 1; transform: translate(0, 0) scale(.4) rotate(0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(160deg); } }
.play:focus-visible { outline: 5px solid var(--orange); outline-offset: 5px; }

/* 草のふち（セクションの区切り） */
.edge { display: block; width: 100%; height: 30px; position: absolute; left: 0; top: -29px; z-index: 2; }
.edge { fill: var(--bg, var(--cream)); }

/* セクション */
section { position: relative; padding: 64px 0; background: var(--bg, transparent); }
section h2 { font-family: var(--pop); font-weight: 400; font-size: clamp(1.45rem, 3.6vw, 2.05rem); margin: 0 0 10px; line-height: 1.4; }
section .sub { color: var(--ink-soft); margin: 0 0 32px; }
.plain { --bg: var(--cream); }
.alt { --bg: var(--paper); }
.green { --bg: var(--leaf); }
.pinkbg { --bg: #fff1f4; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; max-width: 40em; }

/* ひとことで（要約） */
.summary { background: #fff; border-radius: var(--radius); padding: 26px clamp(20px, 4vw, 36px); box-shadow: var(--shadow); border: 3px dashed var(--leaf-deep); }
.summary h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.summary p.tl { font-size: 1.02rem; margin: 0 0 18px; }
.facts-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.facts-table div { background: var(--cream); border-radius: 16px; padding: 10px 14px; }
.facts-table dt { font-size: .78rem; color: var(--ink-soft); font-weight: 700; }
.facts-table dd { margin: 0; font-weight: 700; font-size: .93rem; }
.updated { font-size: .8rem; color: var(--ink-soft); margin: 14px 0 0; }

/* あそびかた */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border-radius: var(--radius); padding: 30px 22px 22px; box-shadow: var(--shadow); position: relative; text-align: center; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.step:nth-child(1) { rotate: -1.5deg; } .step:nth-child(2) { rotate: 1deg; } .step:nth-child(3) { rotate: -.6deg; }
.step:hover { transform: translateY(-6px) rotate(1deg); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 50%; translate: -50% 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; font-family: var(--pop); font-size: 1.2rem; display: grid; place-items: center;
  box-shadow: 0 4px 0 #d77816; border: 3px solid #fff;
}
.step .pic { height: 112px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 62%, var(--leaf) 0 44%, transparent 45%); margin-bottom: 6px; }
.step img { max-height: 90px; width: auto; display: block; }
.step:hover img { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
.step h3 { margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .94rem; text-align: left; }

/* ほんとうの くらし */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.fact { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 18px 22px 18px 16px; box-shadow: var(--shadow); }
.fact img { width: 96px; height: 80px; object-fit: contain; transition: transform .3s; }
.fact:hover img { transform: scale(1.1) rotate(-5deg); }
.fact h3 { margin: 0 0 4px; font-size: 1.08rem; }
.fact p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* まめちしき（Q&A） */
.qa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } }
.qa article { background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.qa h3 { margin: 0 0 8px; font-size: 1.04rem; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.qa h3::before { content: "Q"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--pink-deep); color: #fff; font-family: var(--pop); font-size: .9rem; display: grid; place-items: center; margin-top: -2px; }
.qa p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.qa p b { color: var(--ink); }
.note { font-size: .8rem; color: var(--ink-soft); margin: 22px 0 0; }

/* 画面（ポラロイド風） */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 540px); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 10px 26px; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: center; background: #fff; padding: 10px 10px 2px; border-radius: 18px; box-shadow: var(--shadow); position: relative; }
.gallery figure:nth-child(odd) { rotate: -1.2deg; } .gallery figure:nth-child(even) { rotate: 1.2deg; }
.gallery figure::before { content: ""; position: absolute; top: -10px; left: 50%; width: 84px; height: 22px; translate: -50% 0; rotate: -3deg; background: rgba(255, 210, 120, .75); border-radius: 3px; }
.gallery figure:nth-child(even)::before { background: rgba(255, 170, 190, .7); rotate: 4deg; }
.gallery img { border-radius: 12px; display: block; width: 100%; aspect-ratio: 1400 / 644; object-fit: cover; background: #cfe9f9; }
.gallery figcaption { font-size: .9rem; font-weight: 700; color: var(--ink-soft); padding: 8px 4px; text-align: center; }
.swipe { font-size: .82rem; color: var(--ink-soft); text-align: right; margin: -4px 0 0; }

/* ずかん */
.zukan { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.zukan li { background: #fff; border-radius: 20px; padding: 12px 14px; font-size: .92rem; box-shadow: 0 4px 0 rgba(140, 100, 50, .08); border: 2px solid #f3ead4; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.zukan li:hover { transform: translateY(-4px) rotate(-1.5deg); }
.zukan li .ic { display: grid; place-items: center start; height: 46px; margin-bottom: 4px; font-size: 32px; line-height: 1; }
.zukan li .ic img { max-height: 44px; width: auto; }
.zukan li b { display: block; }
.zukan li .d { color: var(--ink-soft); font-size: .8rem; display: block; line-height: 1.5; }
.zukan li.pack { background: var(--lilac); border-color: #e0d2ff; }
.zukan li.pack .d::before { content: "★ "; color: #9b7be0; }

/* 保護者の方へ */
.parents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) { .parents { grid-template-columns: 1fr; } }
.parents li { padding-left: 38px; position: relative; }
.parents li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 3px 0 var(--green-dark); }
.parents b { display: block; }

.price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }
.price > div { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-top: 8px solid var(--leaf-deep); }
.price > div.p { border-top-color: #ffc48a; }
.price h3 { margin: 0 0 4px; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.price h3 em { font-style: normal; font-family: var(--pop); font-size: 1.05rem; color: var(--orange); white-space: nowrap; }
.price p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.price .tag { display: inline-block; font-size: .76rem; border-radius: 99px; padding: 1px 10px; margin-bottom: 8px; background: var(--leaf); color: var(--green-dark); font-weight: 700; }
.price .tag.paid { background: #ffe7cf; color: #b25a00; }

/* よくある質問 */
details { background: #fff; border-radius: 20px; margin: 0 0 12px; box-shadow: 0 4px 0 rgba(140, 100, 50, .08); border: 2px solid #f3ead4; }
summary { cursor: pointer; font-weight: 700; padding: 14px 56px 14px 20px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: var(--leaf); color: var(--green-dark); display: grid; place-items: center; font-family: var(--pop); transition: rotate .3s; }
details[open] summary::after { rotate: 45deg; background: var(--pink); color: #c0466a; }
details p { margin: 0; padding: 0 20px 16px; color: var(--ink-soft); }

/* さいごの ダウンロード */
.cta { text-align: center; padding: 70px 0 130px; background: linear-gradient(var(--cream), var(--leaf)); --bg: var(--cream); overflow: hidden; }
.cta img.icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--shadow); animation: hop 2s ease-in-out infinite; }
.cta h2 { margin-top: 18px; }
.cta .badges { justify-content: center; }
.walker { position: absolute; bottom: 14px; left: 0; width: 120px; animation: walkacross 26s linear infinite; pointer-events: none; }
.walker img { display: block; width: 100%; animation: bob .7s ease-in-out infinite; }
.walker.ant { width: 58px; bottom: 16px; animation-delay: -10s; animation-duration: 19s; }
@keyframes walkacross { from { transform: translateX(-160px); } to { transform: translateX(calc(100vw + 40px)); } }

/* 文書ページ */
.doc { padding: 40px 0 60px; }
.doc article { background: #fff; border-radius: 26px; padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; }
.doc h1 { font-family: var(--pop); font-weight: 400; font-size: 1.6rem; margin: 0 0 4px; }
.doc h2 { font-size: 1.2rem; margin: 28px 0 6px; padding-left: 12px; border-left: 6px solid var(--green); }
.doc .date { color: var(--ink-soft); font-size: .9rem; margin: 0 0 18px; }
.doc li { margin: 4px 0; }

footer { background: var(--soil); color: #fbeedd; padding: 34px 0 40px; font-size: .9rem; position: relative; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 13px; background: radial-gradient(circle at 12px 13px, var(--soil) 12px, transparent 12.5px) 0 0 / 24px 13px repeat-x; }
footer a { color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
footer small { margin-left: auto; opacity: .85; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .walker { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 30px 0 52px; }
  section { padding: 50px 0; }
  .summary { padding: 22px 18px; }
}
