/* 部首あわせのウェブの見た目。アプリと同じ作り：
   和紙の地（原稿用紙の薄います目）・墨の字・主の色は朱 1 色・升は無地に細い線と柔らかい影・桜は差し色だけ。
   書体は 2 つ（見出しと升の外＝M PLUS Rounded 1c、升の字＝Klee One）。どちらも同梱（fonts/）。本文は端末の字。
   ダークモードは作らない。 */

@font-face { font-family: "BA Round"; src: url("fonts/ba-round.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "BA Klee"; src: url("fonts/ba-klee.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fbf4e3; --grid: #f0dcc0; --card: #fffbf2; --tray: #ecdcc2;
  --ink: #2b2320; --muted: #6f6258; --rule: rgba(43,35,32,.16);
  --shu: #dc4a2c; --shu-d: #a8331d; --sakura: #f6a9b9; --sakura-p: #fde4ea; --yamabuki-p: #fff0c6;
  --round: "BA Round", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --klee: "BA Klee", "Hiragino Mincho ProN", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --r: 16px;
  --sh: 0 1px 2px rgba(77,41,10,.06), 0 10px 26px rgba(77,41,10,.10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  background-color: var(--paper); overflow-x: clip;
}
p { text-wrap: pretty; margin: 0 0 1em; word-break: auto-phrase; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--shu-d); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--round); font-weight: 700; line-height: 1.45; letter-spacing: .04em; margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.nb { display: inline-block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* 升（アプリの升と同じ：生成りの面・細い墨の線・柔らかい影） */
.t, .release-tiles span, .folio .no {
  display: inline-grid; place-items: center; background: var(--card); color: var(--ink);
  border: 1.5px solid rgba(43,35,32,.22); border-radius: 12px; box-shadow: 0 2px 0 rgba(77,41,10,.06), 0 6px 14px rgba(77,41,10,.08);
  font-family: var(--klee); font-weight: 600; line-height: 1;
}
.t.made, .release-tiles .made { background: var(--sakura-p); border: 3px solid var(--shu); }

/* 頭 */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(251,244,227,.94); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(6px)) { .site-head { background: rgba(251,244,227,.82); backdrop-filter: blur(8px); } }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 48px; }
.mark-icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 6px rgba(77,41,10,.18); flex: none; }
.brand b { font-family: var(--round); font-size: 19px; letter-spacing: .08em; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font-family: var(--round); font-size: 11px; letter-spacing: .2em; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover { color: var(--shu-d); }
@media (max-width: 760px) { .site-nav a:nth-child(n+3) { display: none; } .site-nav a { padding: 0 8px; } }

/* 最初の画面 */
.hero { padding: 24px 0 8px; }
.hero-art { position: relative; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--sh); background: var(--card); }
.hero-art > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-art figcaption { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: var(--muted); background: rgba(255,251,242,.75); padding: 0 8px; border-radius: 99px; }
.logo { position: absolute; left: 16%; top: 30%; width: 45%; filter: drop-shadow(0 2px 8px rgba(255,251,242,.9)); }
.hero-text { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: end; margin-top: 28px; }
.kick { grid-column: 1 / -1; margin: 0; font-family: var(--round); font-size: 14px; letter-spacing: .14em; color: var(--shu-d); display: flex; gap: 12px; align-items: center; }
.kick .latin { color: var(--muted); letter-spacing: .22em; font-size: 12px; }
.tagline { font-family: var(--round); font-weight: 700; font-size: clamp(24px, 4vw, 36px); line-height: 1.45; margin: 0; word-break: keep-all; }
.hero-text .lead { margin: 6px 0 0; max-width: 34em; color: var(--ink); }
.hero-meta { grid-column: 2; grid-row: 2 / span 2; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.status { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 99px; font: 700 14px/1 var(--round); letter-spacing: .12em; color: var(--shu-d); background: var(--card); box-shadow: inset 0 0 0 1.5px rgba(220,74,44,.45); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--shu); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 99px; font: 700 15px/1.2 var(--round); text-decoration: none; letter-spacing: .06em; }
.btn-shu { background: var(--shu); color: #fff; box-shadow: 0 3px 0 var(--shu-d); }
.btn-shu:hover { background: #e2593c; color: #fff; }
@media (max-width: 760px) {
  .hero { padding-top: 16px; }
  .hero-art { border-radius: 16px; }
  .hero-art > img { aspect-ratio: 4 / 3; object-position: 40% 50%; }
  .logo { left: 6%; top: 6%; width: 64%; }
  .hero-text { grid-template-columns: 1fr; margin-top: 20px; }
  .hero-meta { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; margin-top: 10px; }
}

/* 段 */
.sec { padding: 56px 0 28px; }
@media (min-width: 960px) { .sec { padding: 80px 0 24px; } }
.band-sakura { background: linear-gradient(180deg, rgba(253,228,234,.0), rgba(253,228,234,.65) 18%, rgba(253,228,234,.65) 82%, rgba(253,228,234,0)); }
.band-grid {
  background-color: #f8eed8;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: center top;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.folio { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--muted); font-family: var(--round); font-size: 14px; letter-spacing: .14em; }
.folio .no { width: 34px; height: 34px; font-size: 19px; border-radius: 9px; }
.folio::after { content: ""; flex: 1; max-width: 200px; height: 1px; background: var(--rule); }
.sec h2 { font-size: clamp(26px, 5.2vw, 40px); margin-bottom: 28px; }
.h-small { font-size: 22px !important; margin-bottom: 14px !important; }
.shot-cap { font-size: 13px; color: var(--muted); margin: 18px 0 0; }

/* 写真の枠（アプリの画面） */
.phone { margin: 0; border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1.5px rgba(43,35,32,.14), var(--sh); }
.phone img { width: 100%; aspect-ratio: 720 / 1600; object-fit: cover; }

/* 遊び方 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 18px; }
.step .no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--shu); color: #fff; font: 700 17px/1 var(--klee); margin-bottom: 8px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { font-size: 15px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step .phone { width: 64%; max-width: 240px; margin: 0 auto; }
}

/* 章 */
.ch-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.seasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.seasons li { text-align: center; font-family: var(--round); font-size: 15px; }
.seasons img { width: 100%; border-radius: 50%; border: 4px solid var(--card); box-shadow: var(--sh); margin-bottom: 8px; }
.ch-text { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
@media (max-width: 860px) { .ch-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ch-text { grid-template-columns: 1fr; gap: 20px; } .ch-text .phone { width: 64%; max-width: 240px; margin: 0 auto; } }

/* 墨の子 */
.sumi { display: grid; grid-template-columns: 1fr 1.2fr 220px; gap: 36px; align-items: center; }
.sumi-big { margin: 0; position: relative; }
.sumi-big::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -6px; height: 22px; border-radius: 50%; background: rgba(90,50,15,.14); filter: blur(8px); z-index: -1; }
.sumi-text h3 { font-size: 26px; margin-bottom: 10px; }
.sumi-text h3 small { display: block; font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.faces { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 14px; }
.faces li { flex: 1; max-width: 120px; background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); padding: 10px 8px 4px; text-align: center; font-size: 13px; color: var(--muted); }
.faces img { height: 96px; width: auto; margin: 0 auto 4px; }
.sumi .phone figcaption { text-align: center; font-size: 13px; color: var(--muted); padding: 6px 0; }
@media (max-width: 960px) { .sumi { grid-template-columns: 1fr 1fr; } .sumi .phone { display: none; } }
@media (max-width: 640px) { .sumi { grid-template-columns: 1fr; gap: 20px; } .sumi-big { max-width: 300px; margin: 0 auto; } }

/* 特長 */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: 0 0 0 1px var(--rule), var(--sh); border-top: 4px solid var(--shu); }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { font-size: 15px; margin: 0; max-width: 32em; }
.phone.tiny { border-radius: 16px; }
.tiles { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tiles .t { width: 58px; height: 58px; font-size: 34px; }
.tiles i { font-style: normal; color: var(--shu-d); font-weight: 700; line-height: 1; }
@media (max-width: 1099px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .feature { grid-template-columns: 1fr; gap: 18px; padding: 20px 18px; } .feature .phone, .feature .tiles { width: 64%; max-width: 240px; margin: 0 auto; } .tiles { flex-direction: row; justify-content: center; width: auto !important; max-width: none !important; } }

/* 質問 */
.faq details { background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); margin-bottom: 12px; }
.faq summary { word-break: keep-all; overflow-wrap: anywhere; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 18px; font: 700 16px/1.5 var(--round); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "問"; flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--sakura-p); border: 2px solid var(--shu); font: 600 16px/1 var(--klee); }
.faq summary::after { content: "＋"; margin-left: auto; color: var(--shu-d); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0; padding: 0 18px 16px 60px; font-size: 15px; }

/* 遊ぶ形 */
.spec { margin: 0; background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); }
.spec div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--rule); }
.spec div:first-child { border-top: 0; }
.spec dt { font-family: var(--round); font-weight: 700; color: var(--muted); }
.spec dd { margin: 0; }

/* 締め（朱の大きな段） */
.release { background: var(--shu); color: #fff; padding: 72px 0; margin-top: 24px; position: relative; overflow: hidden; }
.release::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 12% 20%, rgba(255,255,255,.07) 0 90px, transparent 91px), radial-gradient(circle at 88% 85%, rgba(0,0,0,.05) 0 140px, transparent 141px); }
.release-in { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; max-width: 860px; margin: 0 auto; }
.release-sumi { width: 100%; filter: drop-shadow(0 10px 16px rgba(60,10,0,.25)); }
.release-tiles { display: flex; gap: 10px; margin: 0 0 18px; }
.release-tiles span { width: 54px; height: 54px; font-size: 32px; box-shadow: 0 4px 10px rgba(60,10,0,.2); }
.release-tiles .made { border-color: #fff; }
.release h2 { font-size: clamp(26px, 5vw, 40px); margin-bottom: 10px; }
.release p { margin: 0 0 18px; }
.status-light { background: #fff; box-shadow: none; }
@media (max-width: 640px) { .release-in { grid-template-columns: 1fr; text-align: center; gap: 16px; } .release-sumi { width: 150px; margin: 0 auto; } .release-tiles { justify-content: center; } }

/* 足 */
.site-foot { padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.credits { font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.credits p { margin: 0 0 4px; }
.credits ul { margin: 0 0 6px; padding-left: 1.2em; }
.site-foot .credits a { display: inline; min-height: 0; }
.site-foot .links { display: flex; gap: 18px; margin-bottom: 6px; }
.site-foot a { color: var(--muted); display: inline-flex; min-height: 44px; align-items: center; }
