/* まよ窓 紹介HP：お話の側＝和紙／しくみの側＝夜のスマホアプリ（ゲームと同じ決まり） */
@font-face { font-family: "Kiwi Maru"; src: url("font/kiwimaru.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kiwi Maru"; src: url("font/kiwimaru500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mayomado Logo"; src: url("font/MayomadoLogo_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --yoru: #140f24;
  --yoru2: #1f1736;
  --washi: #f4ecdc;
  --washi2: #e9dcc2;
  --sumi: #2f2433;
  --shu: #c41e24;
  --ai: #2f4f9e;
  --kin: #d9b86a;
  --usui: #b9aecf;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  margin: 0; background: var(--yoru); color: var(--washi);
  font-family: "Kiwi Maru", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.9; letter-spacing: .04em; -webkit-text-size-adjust: 100%;
}
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ── 上の帯 ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10; height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px; background: rgba(20, 15, 36, .86); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 184, 106, .25);
}
.nav-logo { white-space: nowrap; flex-shrink: 0; font-weight: 500; font-size: 20px; text-decoration: none; color: var(--kin); }
.nav nav { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.nav nav a { font-size: 12px; letter-spacing: .12em; text-decoration: none; color: var(--usui); white-space: nowrap; }
.nav nav a:hover { color: var(--kin); }

/* ── はじめの画面 ── */
.hero {
  min-height: 100vh; padding: 72px 24px 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  max-width: 1120px; margin: 0 auto;
}
.hero-e img { border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); max-height: 86vh; width: auto; margin: 0 auto; }
.hero h1 { margin: 0 0 8px; }
.hero h1 img { width: min(440px, 100%); }
.catch { font-family: "Mayomado Logo", serif; font-weight: 800; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.4; margin: 8px 0 16px; color: var(--washi); }
.lead { color: var(--usui); margin: 0 0 28px; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.store { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 120px; padding: 6px 14px;
  border: 1px solid rgba(185, 174, 207, .4); border-radius: 8px; font-size: 13px; line-height: 1.4; color: var(--usui);
}
.store-badge small { font-size: 11px; opacity: .8; }

.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; text-decoration: none; font-size: 16px;
  border: 2px solid transparent; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-shu { background: var(--shu); color: #fff; box-shadow: 0 6px 20px rgba(196, 30, 36, .4); }
.btn-waku { background: transparent; border-color: var(--sumi); color: var(--sumi); }
.btn-koe {
  background: none; border: 1px solid rgba(217, 184, 106, .6); color: var(--kin);
  padding: 6px 16px; border-radius: 999px; font-size: 13px;
}
.btn-koe.naru { background: var(--kin); color: var(--yoru); }

/* ── 見出し ── */
section { padding: 80px 24px; }
.midashi { text-align: center; font-weight: 400; font-size: clamp(20px, 3vw, 26px); margin: 0 0 36px; line-height: 1.5; }
.midashi span { display: block; font-size: 12px; letter-spacing: .3em; color: var(--shu); margin-bottom: 4px; }
.setsumei { text-align: center; font-size: 14px; margin: 0 auto 28px; max-width: 640px; }

/* 和紙の 帯 */
.washi-sec { background: var(--washi); color: var(--sumi); background-image: radial-gradient(rgba(140, 110, 70, .07) 1px, transparent 1px); background-size: 7px 7px; }
.washi-sec .setsumei { color: #6b5c55; }
/* 夜の 帯 */
.yoru-sec { background: linear-gradient(180deg, var(--yoru) 0%, var(--yoru2) 100%); }
.yoru-sec .midashi span { color: var(--kin); }
.yoru-sec .setsumei { color: var(--usui); }

/* ── お話 ── */
.story { max-width: 640px; margin: 0 auto; text-align: center; }
.story p { margin: 0 0 1.6em; }
.story-kime { font-size: 1.2em; color: var(--shu); }

/* ── 体験 ── */
.taiken { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: end; }
.taiken-hito img { filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); transition: opacity .2s; }
.fukidashi {
  background: rgba(244, 236, 220, .96); color: var(--sumi); border-radius: 10px; padding: 14px 18px; margin-bottom: 16px;
  min-height: 92px;
}
.fukidashi b { display: block; font-weight: 400; font-size: 13px; color: #7b4f9e; }
.shorui {
  position: relative; background: var(--washi); color: var(--sumi); padding: 22px 24px 18px; border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4); background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(140, 110, 70, .12) 31px 32px);
}
.shorui-dai { text-align: center; font-size: 17px; margin: 0 0 12px; border-bottom: 1px solid rgba(47, 36, 51, .4); padding-bottom: 8px; }
.shorui dl { display: grid; grid-template-columns: 6.5em 1fr; margin: 0 0 10px; font-size: 14px; }
.shorui dt { color: #6b5c55; }
.shorui dd { margin: 0; }
.tokuyaku { font-size: 12px; margin: 0; color: #6b5c55; }
.komaji { font-size: 6px; letter-spacing: 0; transition: font-size .4s, background .4s; }
.komaji.yometa { font-size: 14px; background: rgba(217, 184, 106, .35); color: var(--sumi); }
.in { position: absolute; right: 18px; bottom: 10px; width: 96px; height: 96px; opacity: .9; animation: osu .35s ease-out; mix-blend-mode: multiply; }
@keyframes osu { from { transform: scale(1.8) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(-6deg); opacity: .9; } }
.erabu { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.maru {
  width: 86px; height: 86px; border-radius: 50%; border: 4px solid; background: var(--washi); font-size: 20px;
  transition: transform .12s;
}
.maru:hover { transform: scale(1.06); }
.maru.shu { border-color: var(--shu); color: var(--shu); }
.maru.ai { border-color: var(--ai); color: var(--ai); font-size: 17px; }
.mushi { background: none; border: 1px dashed var(--usui); color: var(--washi); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.mushi:disabled { opacity: .4; cursor: default; }
.kekka { margin-top: 18px; text-align: center; color: var(--usui); font-size: 14px; }
.kekka-suji { color: var(--kin); font-size: 15px; }
.kekka-botan { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.kekka .btn-waku { border-color: var(--usui); color: var(--usui); }

/* ── 人物 ── */
.chara-list { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.chara {
  display: grid; grid-template-columns: 42% 1fr; gap: 12px; align-items: end;
  background: #fff8ea; border-radius: 12px; padding: 18px 18px 0; overflow: hidden;
  border-top: 5px solid var(--iro);
}
.chara img { max-height: 340px; width: auto; margin: 0 auto; }
.chara-moji { padding-bottom: 18px; font-size: 14px; }
.chara .shu { color: var(--iro); font-size: 12px; margin: 0; }
.chara h3 { font-weight: 500; font-size: 28px; margin: 0 0 6px; color: var(--iro); line-height: 1.3; }
.chara h3 small { font-weight: 400; font-size: 12px; margin-left: 8px; color: #8a7a74; }
.chara .serifu { color: var(--sumi); margin: 0 0 8px; }
.chara p { margin: 0 0 10px; }
.chara .btn-koe { border-color: var(--iro); color: var(--iro); }
.chara .btn-koe.naru { background: var(--iro); color: #fff; }

.ko-midashi { text-align: center; font-weight: 400; font-size: 18px; margin: 56px 0 24px; }
.hoka { max-width: 900px; margin: 0 auto 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hoka-hito { text-align: center; font-size: 12px; }
.hoka-hito img { height: 220px; width: auto; margin: 0 auto 8px; }
.hoka-hito b { display: block; font-weight: 400; font-size: 16px; }
.hoka-hito.kage img { filter: brightness(0) opacity(.75); }

/* ── しくみ ── */
.system { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sys { background: rgba(255, 255, 255, .05); border: 1px solid rgba(185, 174, 207, .2); border-radius: 14px; padding: 22px 18px; text-align: center; }
.sys img { width: 72px; height: 72px; margin: 0 auto 6px; }
.sys .sys-suji { text-align: center; font-weight: 500; font-size: 44px; line-height: 72px; height: 72px; margin: 0 0 6px; color: var(--kin); }
.sys .sys-suji small { font-size: 16px; }
.sys .sys-suji.sumaho { font-size: 22px; }
.sys h3 { font-weight: 400; font-size: 16px; margin: 0 0 8px; color: var(--washi); }
.sys p { font-size: 13px; color: var(--usui); margin: 0; text-align: left; }
.cg-list { max-width: 1040px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cg-list img { border-radius: 6px; }

/* ── 動画 ── */
.movie { max-width: 360px; margin: 0 auto; }
.movie video { border-radius: 10px; box-shadow: 0 12px 40px rgba(47, 36, 51, .35); background: #000; width: 100%; }

/* ── こんな人に ── */
.osusume { max-width: 560px; margin: 0 auto; padding: 0; list-style: none; }
.osusume li { padding: 12px 0 12px 40px; border-bottom: 1px dashed rgba(185, 174, 207, .3); position: relative; }
.osusume li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 22px; height: 22px; border: 2px solid var(--shu); border-radius: 50%; }
.osusume li::after { content: "承"; position: absolute; left: 4px; top: 16px; width: 26px; text-align: center; line-height: 26px; font-size: 12px; color: var(--shu); }

/* ── ごあんない ── */
.info { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 8em 1fr; border-top: 1px solid rgba(47, 36, 51, .25); }
.info dt, .info dd { padding: 12px 0; border-bottom: 1px solid rgba(47, 36, 51, .25); margin: 0; }
.info dt { color: #6b5c55; font-size: 14px; }
.saigo { text-align: center; margin-top: 56px; }
.catch-chiisai { font-size: 18px; margin: 0 0 18px; }

.footer { text-align: center; padding: 32px 20px 40px; font-size: 12px; color: var(--usui); }
.footer p { margin: 0 0 8px; }
.credit { max-width: 720px; margin: 0 auto 12px !important; line-height: 1.7; opacity: .8; }

/* ── スマホ ── */
@media (max-width: 760px) {
  .nav nav { gap: 14px; }
  .nav nav a { font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; gap: 24px; text-align: center; }
  .hero-e img { max-height: 62vh; }
  .hero-moji { order: -1; }
  .hero h1 img { margin: 0 auto; width: min(320px, 90%); }
  .cta { align-items: center; }
  section { padding: 64px 18px; }
  .taiken { grid-template-columns: 1fr; }
  .taiken-hito img { max-height: 280px; width: auto; margin: 0 auto -40px; position: relative; z-index: 0; }
  .taiken-te { position: relative; z-index: 1; }
  .chara-list { grid-template-columns: 1fr; }
  .hoka { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system { grid-template-columns: 1fr; }
  .cg-list { grid-template-columns: 1fr 1fr; }
  .info { grid-template-columns: 7em 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
