/* クラフトニンジャ LP — ゲームと同じ「和紙・墨・朱・五色の絵の具」 */
:root {
  --washi: #f6efe1; --washi-2: #efe5d0; --paper: #fffaf0;
  --ink: #1b1612; --ink-2: #3d342b; --ink-3: #6b5f52;
  --shu: #cf3b26; --shu-2: #a82c1b;
  --c1: #e8423f; --c2: #f5b921; --c3: #3cc46e; --c4: #2f8de4; --c5: #9b59d0;
  --brush: 'Yuji Boku', serif; --pop: 'Dela Gothic One', sans-serif; --goth: 'Zen Kaku Gothic New', system-ui, sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--washi); color: var(--ink); font: 500 16px/1.9 var(--goth); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } }
.muted { color: var(--ink-3); font-size: .9em; }
b { font-weight: 900; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 48px; padding: 10px 26px;
  border-radius: 999px; font: 900 16px/1.3 var(--goth); text-decoration: none; cursor: pointer; border: 3px solid var(--ink); transition: transform .15s, box-shadow .15s; }
.btn small { font-weight: 700; font-size: 12px; opacity: .9; }
.btn--shu { background: var(--shu); color: #fff; box-shadow: 0 5px 0 var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn--lg { min-height: 64px; padding: 12px 34px; font-size: 19px; }
.btn--sm { min-height: 38px; padding: 6px 18px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); border-width: 2px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--c4); outline-offset: 3px; }

/* ---------- 上のバー ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 8px 16px;
  background: rgba(246, 239, 225, .92); backdrop-filter: blur(6px); border-bottom: 2px solid var(--ink);
  transform: translateY(-110%); transition: transform .3s; }
.bar.show { transform: none; }
.bar__logo img { height: 40px; width: auto; }
.bar__nav { display: flex; gap: 16px; margin-left: auto; font-weight: 700; font-size: 14px; }
.bar__nav a { text-decoration: none; }
.bar__nav a:hover { color: var(--shu); }
@media (max-width: 900px) { .bar__nav { display: none; } .bar .btn { margin-left: auto; } }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: #8d877f; touch-action: pan-y; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.hero__shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 48%, rgba(246,239,225,.82) 0%, rgba(246,239,225,.55) 45%, rgba(246,239,225,0) 75%); }
.hero__inner { position: relative; z-index: 2; text-align: center; padding: 90px 20px 120px; pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__logo { width: min(640px, 88vw); height: auto; margin: 0 auto -6px; filter: drop-shadow(0 6px 0 rgba(27,22,18,.15)); }
.hero__title { margin: 10px 0 6px; font: 400 clamp(34px, 6vw, 68px)/1.25 var(--brush); letter-spacing: .04em; }
.hero__title span { display: inline-block; opacity: 0; transform: translateY(12px); animation: rise .7s forwards; }
.hero__title span:nth-child(2) { animation-delay: .25s; }
.hero__title span:nth-child(3) { animation-delay: .5s; color: var(--shu); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__lead { margin: 0 auto 22px; max-width: 34em; font-weight: 700; font-size: clamp(15px, 2vw, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.hero__facts li { padding: 2px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 700; }
.hero__hint { position: absolute; z-index: 3; bottom: 22px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; white-space: nowrap; transition: opacity .5s; pointer-events: none; }
.hero__hint.gone { opacity: 0; }
.hero__hintIcon { display: inline-block; margin-right: 6px; animation: wiggle 1.4s infinite ease-in-out; }
@keyframes wiggle { 50% { transform: translateX(8px) rotate(12deg); } }

/* 朱の判 */
.seal { width: 108px; height: 108px; display: grid; place-items: center; border: 6px solid var(--shu); border-radius: 14px; color: var(--shu);
  font: 400 40px/1 var(--brush); transform: rotate(-10deg); background: rgba(255,250,240,.55); }
.seal--hero { position: absolute; z-index: 4; right: 8%; top: 22%; opacity: 0; transform: rotate(-10deg) scale(2.2); pointer-events: none; }
.seal--hero.on, .done .seal { animation: stamp .35s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes stamp { from { opacity: 0; transform: rotate(-10deg) scale(2.2); } to { opacity: 1; transform: rotate(-10deg) scale(1); } }

/* ---------- 共通の段 ---------- */
.sec { padding: 96px 0; position: relative; }
.sec--washi { background: var(--washi-2); }
.sec--ink { background: var(--ink); color: var(--paper); }
.eyebrow { margin: 0; font: 400 14px var(--pop); letter-spacing: .22em; color: var(--shu); }
.h2 { margin: 6px 0 18px; font: 400 clamp(28px, 4.4vw, 48px)/1.35 var(--brush); letter-spacing: .03em; }
.h2--light { color: var(--paper); }
.h3 { margin: 56px 0 16px; font: 400 clamp(22px, 3vw, 32px)/1.4 var(--brush); }
.lead { max-width: 46em; margin: 0 0 28px; font-size: 17px; color: var(--ink-2); }
.lead--light { color: #e9dfcc; }
.note { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.note--light { color: #b9ad99; }
@media (max-width: 640px) { .sec { padding: 68px 0; } }

/* 出てくる演出 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- トレーラー ---------- */
.video { border: 4px solid var(--paper); border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 0 0 4px var(--ink), 10px 12px 0 var(--shu); }
.video video { width: 100%; height: 100%; }

/* ---------- さわってみる ---------- */
.mini { position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 24px; padding: 22px; box-shadow: 8px 10px 0 var(--ink);
  background-image: radial-gradient(rgba(138, 90, 59, .06) 1px, transparent 1px); background-size: 7px 7px; }
.mini__steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.mini__steps li { display: flex; align-items: center; gap: 8px; padding: 4px 16px 4px 6px; border-radius: 999px; border: 2px solid var(--ink-3); color: var(--ink-3); font-weight: 900; }
.mini__steps li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-3); color: #fff; font-size: 14px; }
.mini__steps li.on { border-color: var(--shu); color: var(--shu); }
.mini__steps li.on span { background: var(--shu); }
.mini__steps li.ok { border-color: var(--c3); color: #237a45; }
.mini__steps li.ok span { background: var(--c3); }
.mini__say { margin: 0 0 14px; padding: 10px 16px; border-radius: 14px; background: var(--washi); font-weight: 700; }
.mini__say b { margin-right: 10px; color: var(--c5); }
.mini__say .muted { display: block; font-weight: 500; }
.mini__stage { min-height: 330px; }

.crates { display: flex; justify-content: center; gap: 22px; padding: 30px 0 10px; }
.crate { width: 110px; height: 110px; border: 4px solid var(--ink); border-radius: 10px; cursor: pointer; position: relative;
  background: linear-gradient(90deg, transparent 46%, rgba(0,0,0,.18) 46% 54%, transparent 54%), linear-gradient(#c58b52, #a8703c);
  box-shadow: inset 0 0 0 8px #8b5a2b, 0 6px 0 var(--ink); transition: transform .1s; }
.crate:hover { transform: translateY(-3px) rotate(-2deg); }
.crate.hit { animation: shake .25s; }
.crate.broken { pointer-events: none; animation: crush .45s forwards; }
@keyframes shake { 25% { transform: translateX(-6px) rotate(-4deg); } 75% { transform: translateX(6px) rotate(4deg); } }
@keyframes crush { 40% { transform: scale(1.1, .7); } to { transform: scale(.2, .1) translateY(80px); opacity: 0; } }
.inspire { position: relative; display: grid; justify-items: center; gap: 10px; padding: 6px 0 4px; }
.inspire__word { margin: 0; font: 400 46px/1.2 var(--brush); color: var(--shu); animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.inspire__burst { position: absolute; inset: -20px 0 auto; height: 160px; pointer-events: none;
  background: radial-gradient(circle at 30% 50%, var(--c1) 0 6px, transparent 7px), radial-gradient(circle at 70% 40%, var(--c2) 0 7px, transparent 8px),
  radial-gradient(circle at 45% 20%, var(--c3) 0 5px, transparent 6px), radial-gradient(circle at 60% 75%, var(--c4) 0 6px, transparent 7px), radial-gradient(circle at 20% 30%, var(--c5) 0 5px, transparent 6px);
  animation: burst .8s ease-out forwards; }
@keyframes burst { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@keyframes pop { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
.sketchCard { margin: 0; width: 180px; padding: 10px 10px 4px; background: #fff; border: 3px solid var(--ink); border-radius: 10px; transform: rotate(-3deg); box-shadow: 4px 6px 0 rgba(27,22,18,.3); text-align: center; font-weight: 900; animation: pop .5s .1s both; }
.easel { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; padding: 10px 0; }
.easel__paper { position: relative; width: 260px; height: 260px; background: #fffdf6; border: 4px solid #8b5a2b; border-radius: 6px; box-shadow: 0 10px 0 #5e3a1a; overflow: hidden; }
.easel__paper img { width: 100%; height: 100%; object-fit: contain; clip-path: inset(0 100% 0 0); }
.easel__brush { position: absolute; top: 40%; left: -10%; font-size: 44px; opacity: 0; }
.easel__side { display: grid; gap: 6px; justify-items: start; }
.easel__name { margin: 0; font: 400 28px var(--brush); }
.easel__cost { margin: 0; color: var(--ink-3); font-size: 14px; }

.stream { position: relative; display: grid; grid-template-columns: 1fr 2.4fr 1fr; height: 260px; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; }
.stream__bank { background: linear-gradient(#7ccf5e, #57a940); display: grid; place-items: center; position: relative; }
.stream__bank::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px); background-size: 26px 26px; }
.stream__water { background: repeating-linear-gradient(100deg, #4aa3e0 0 22px, #5fb4ea 22px 40px); background-size: 200% 100%; animation: flow 3s linear infinite; }
@keyframes flow { to { background-position: -160px 0; } }
.stream__slots { position: absolute; left: calc(100% / 4.4); width: calc(100% * 2.4 / 4.4); top: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 4px; }
.slot { justify-self: center; width: min(70px, 90%); aspect-ratio: 1; border-radius: 50%; border: 3px dashed rgba(255,255,255,.9); background: rgba(255,255,255,.18); cursor: pointer; animation: glow 1.2s infinite alternate; }
.slot:nth-child(odd) { transform: translateY(-26px); }
.slot:nth-child(even) { transform: translateY(26px); }
@keyframes glow { to { background: rgba(255,255,255,.42); } }
.slot.placed { border: 3px solid var(--ink); background: radial-gradient(circle at 35% 30%, #c9c3b8, #8f877b 70%); animation: plop .35s cubic-bezier(.2,1.6,.4,1); cursor: default; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
@keyframes plop { from { scale: .2; } }
.nemu { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); background: #fff center/cover url('img/nemu-face.webp'); box-shadow: 0 5px 0 rgba(0,0,0,.25); position: relative; z-index: 3; transition: transform .3s; }
.goal { position: relative; z-index: 1; padding: 6px 12px; background: var(--paper); border: 3px solid var(--ink); border-radius: 8px; font: 400 18px var(--brush); }
.done { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; margin-top: 18px; }
.done__text { margin: 0; font-weight: 700; }
.done__btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .crate { width: 78px; height: 78px; }
  .stream { height: 220px; }
  .done { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .done__btns { justify-content: center; }
}

/* ---------- 見どころ ---------- */
.tagkey { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 0 0 28px; font-size: 13px; color: var(--ink-3); }
.tagkey li { display: flex; align-items: center; gap: 8px; }
.tag { display: inline-block; padding: 1px 12px; border-radius: 999px; font: 900 12px/1.8 var(--goth); letter-spacing: .05em; border: 2px solid currentColor; }
.tag--now { color: #1f7a45; background: #e4f6ea; }
.tag--wip { color: #a8661a; background: #fdf1d8; }
.tag--idea { color: #6a4a98; background: #f0e8fb; }
.sec--ink .tag--now { background: #1f7a45; color: #fff; border-color: #1f7a45; }
.sec--ink .tag--wip { background: #c98a27; color: #fff; border-color: #c98a27; }
.sec--ink .tag--idea { background: #7b5bb0; color: #fff; border-color: #7b5bb0; }
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feat { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 6px 8px 0 var(--ink); display: flex; flex-direction: column; }
.feat--wide { grid-column: 1 / -1; flex-direction: row; }
.feat__media { aspect-ratio: 16 / 9; background: #222; border-bottom: 3px solid var(--ink); }
.feat__media video { width: 100%; height: 100%; object-fit: cover; }
.feat__body { padding: 18px 22px 22px; }
.feat h3 { margin: 10px 0 6px; font-size: 20px; line-height: 1.5; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }
.verb { display: block; font: 400 34px/1.2 var(--brush); color: var(--ink); text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 8px; text-underline-offset: -2px; text-decoration-skip-ink: none; margin-bottom: 4px; }
.feat__media--emaki { flex: 1.2; aspect-ratio: auto; display: grid; place-items: center; background: #efe3c8; border-bottom: 0; border-right: 3px solid var(--ink); padding: 26px;
  background-image: linear-gradient(90deg, #c9a46a 0 14px, transparent 14px calc(100% - 14px), #c9a46a calc(100% - 14px)); }
.feat--wide .feat__body { flex: 1; }
.emakiDemo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.emakiDemo i { font-style: normal; font: 400 28px var(--brush); color: var(--shu); }
.ek { width: 150px; padding: 12px; background: #fffdf6; border: 3px solid var(--ink); border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.6; box-shadow: 0 4px 0 rgba(27,22,18,.3); }
.ek b { display: block; font: 400 20px var(--brush); }
.ek--when b { color: var(--c4); } .ek--if b { color: #b8860b; } .ek--then b { color: var(--shu); }
.ek { animation: card 6s infinite; }
.ek--if { animation-delay: .4s; } .ek--then { animation-delay: .8s; }
@keyframes card { 0%, 8% { transform: translateY(14px) rotate(-3deg); opacity: 0; } 16%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ek { animation: none; } }
@media (max-width: 760px) {
  .feats { grid-template-columns: 1fr; }
  .feat--wide { flex-direction: column; }
  .feat__media--emaki { border-right: 0; border-bottom: 3px solid var(--ink); }
}

/* ---------- 里と森 ---------- */
.daybox { border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: 8px 10px 0 var(--ink); }
.daybox__view { position: relative; aspect-ratio: 16 / 9; background: #222; }
.daybox__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.daybox__view img.on { opacity: 1; }
.daybox__label { position: absolute; left: 18px; top: 14px; margin: 0; padding: 2px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 400 24px var(--brush); }
.daybox__ctl { display: grid; gap: 6px; padding: 14px 22px 18px; font-weight: 700; }
.daybox__ctl input { width: 100%; accent-color: var(--shu); height: 28px; }
.daybox__ticks { display: flex; justify-content: space-between; font: 400 18px var(--brush); color: var(--ink-3); }
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.places figure { margin: 0; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; }
.places img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.places figcaption { padding: 8px 12px 10px; font-size: 13px; font-weight: 700; line-height: 1.6; }
@media (max-width: 900px) { .places { grid-template-columns: repeat(2, 1fr); } }
.compare { position: relative; border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 8px 10px 0 var(--ink); --p: 55%; user-select: none; }
.compare > img, .compare__gray img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__gray { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 4px; margin-left: -2px; background: var(--paper); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--shu); color: #fff; border: 3px solid var(--paper); font-weight: 900; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__tag { position: absolute; bottom: 12px; margin: 0; padding: 2px 14px; border-radius: 999px; background: rgba(27,22,18,.8); color: var(--paper); font-size: 13px; font-weight: 700; pointer-events: none; }
.compare__tag--l { left: 12px; } .compare__tag--r { right: 12px; }

/* ---------- 人物 ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fffdf6; border-bottom: 3px solid var(--ink); }
.person > div { padding: 12px 16px 16px; }
.person h3 { margin: 0 0 4px; font: 400 26px var(--brush); }
.person p { margin: 0 0 6px; font-size: 14px; line-height: 1.7; }
.person__off { color: var(--ink-3); background: var(--washi); padding: 4px 8px; border-radius: 6px; }
.person--main { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 360px) 1fr; align-items: center; }
.person--main img { border-bottom: 0; border-right: 3px solid var(--ink); }
.person--main h3 { font-size: 40px; }
.person--main p { font-size: 16px; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .person--main { grid-template-columns: 1fr; } .person--main img { border-right: 0; border-bottom: 3px solid var(--ink); } }

/* ---------- これから ---------- */
.quote { margin: 0 0 22px; padding: 18px 24px; border-left: 8px solid var(--shu); background: rgba(255,250,240,.07); border-radius: 0 14px 14px 0; }
.quote p { margin: 0; font: 400 clamp(20px, 2.6vw, 28px)/1.6 var(--brush); color: var(--paper); }
.quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: #b9ad99; }
.scroll { overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 4px 24px; margin: 0 -4px; scrollbar-color: var(--shu) transparent; }
.road { display: flex; gap: 0; list-style: none; padding: 0; margin: 0; width: max-content; position: relative;
  background: linear-gradient(#efe3c8, #e6d6b4); border-top: 14px solid #8b5a2b; border-bottom: 14px solid #8b5a2b; border-radius: 6px; color: var(--ink); }
.road__item { scroll-snap-align: start; width: 250px; padding: 22px 20px 26px; border-right: 2px dashed rgba(139, 90, 59, .45); position: relative; }
.road__item h3 { margin: 10px 0 6px; font: 400 22px/1.4 var(--brush); }
.road__item p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.road__item--now { background: rgba(60, 196, 110, .12); }
.road__item--wip { background: rgba(245, 185, 33, .14); }
.road__item .tag--now { background: #e4f6ea; color: #1f7a45; border-color: #1f7a45; }
.road__item .tag--wip { background: #fdf1d8; color: #a8661a; border-color: #a8661a; }
.road__item .tag--idea { background: #f0e8fb; color: #6a4a98; border-color: #6a4a98; }

/* ---------- 遊び方 ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 30px; }
.mode { display: block; text-decoration: none; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 6px 8px 0 var(--ink); transition: transform .15s; }
.mode:hover { transform: translateY(-3px); }
.mode img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 3px solid var(--ink); }
.mode__body { display: grid; gap: 8px; justify-items: start; padding: 16px 20px 20px; }
.mode__body b { font: 400 24px var(--brush); }
.mode__body > span:not(.btn) { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }
.howto { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .howto { grid-template-columns: 1fr; } }
.keys { width: 100%; border-collapse: collapse; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; font-size: 14px; }
.keys caption { text-align: left; font: 400 22px var(--brush); padding-bottom: 6px; }
.keys th, .keys td { padding: 8px 12px; border-bottom: 1px solid #e3d6bd; text-align: left; }
.keys th { background: var(--ink); color: var(--paper); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.7; }
.facts b { display: block; font: 400 19px var(--brush); }

/* ---------- 最後 ---------- */
.end { position: relative; padding: 110px 0 120px; text-align: center; overflow: hidden; background: var(--paper); }
.end__splash { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.end__inner { position: relative; }
.end__logo { width: min(460px, 80vw); height: auto; margin: 0 auto; }
.end__title { margin: 14px 0 26px; font: 400 clamp(28px, 4.6vw, 48px)/1.4 var(--brush); }
.foot { background: var(--ink); color: #cfc3ad; padding: 34px 0 44px; font-size: 13px; line-height: 1.9; }
.foot a { color: var(--paper); }
.foot__rights { margin: 0 0 12px; }
.foot__links { margin: 0; }
@media (max-width: 640px) { .seal--hero { top: auto; bottom: 70px; right: 6%; width: 84px; height: 84px; font-size: 30px; } }

/* ===== 11-14 版：遊び方のタブ・色を集める旅 ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 -3px; position: relative; z-index: 1; }
.tabs button { font: 900 16px var(--goth); padding: 10px 20px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--washi-2); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 6px 0 var(--c); }
.panel { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--paper); border: 3px solid var(--ink); border-radius: 0 var(--r) var(--r) var(--r); overflow: hidden; box-shadow: 8px 10px 0 var(--ink); }
.panel > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; border-right: 3px solid var(--ink); }
.panel__body { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.panel__body h3 { margin: 0; font: 400 30px/1.35 var(--brush); }
.panel__body p { margin: 0; color: var(--ink-2); }
.dots { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dots li { font-size: 13px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: var(--washi); border: 2px solid var(--washi-2); }
.btns-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } .panel > img { border-right: 0; border-bottom: 3px solid var(--ink); } .tabs button { padding: 8px 12px; font-size: 14px; } }

.colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 18px; }
.color { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 10px 16px; border: 3px solid var(--paper); border-radius: 18px; background: rgba(255,250,240,.06); color: var(--paper); font: 700 14px var(--goth); cursor: pointer; transition: transform .15s, background .3s; }
.color:hover { transform: translateY(-3px); }
.color b { font: 400 40px/1.1 var(--brush); }
.color small { font-size: 12px; opacity: .8; }
.color__dot { width: 46px; height: 46px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(255,250,240,.25); }
.color.got { background: var(--c); border-color: var(--c); }
.color.got .color__dot { background: var(--paper); box-shadow: 0 0 0 4px var(--c), 0 0 0 7px var(--paper); }
.color--more { cursor: default; border-style: dashed; opacity: .7; }
.color--more .color__dot { background: transparent; border: 3px dashed var(--paper); }
.brushbar { position: relative; height: 22px; border-radius: 999px; background: rgba(255,250,240,.12); border: 2px solid var(--paper); overflow: hidden; }
.brushbar__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--g1, transparent), var(--g2, transparent), var(--g3, transparent)); transition: width .5s; }
.brushmsg { margin: 8px 0 26px; font: 400 22px var(--brush); }
.journey__fig { margin: 0; border: 4px solid var(--paper); border-radius: var(--r); overflow: hidden; }
.journey__fig figcaption { padding: 8px 14px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; }
@media (max-width: 760px) { .colors { grid-template-columns: repeat(2, 1fr); } }

.quote--paper { background: var(--paper); border-left-color: var(--shu); }
.quote--paper p { color: var(--ink); }
.quote--paper cite { color: var(--ink-3); }
.facts--grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; }
@media (max-width: 860px) { .facts--grid { grid-template-columns: 1fr; } }
.hero__cta--left { justify-content: flex-start; }
