/* KOKOROドラ — editorial stories, one coherent responsive system. */
:root {
  --ink: #202839;
  --muted: #697180;
  --night: #142033;
  --paper: #ffffff;
  --canvas: #f7f8fa;
  --pink: #d92350;
  --pink-hover: #c31d46;
  --pink-soft: #fff1f5;
  --line: #e9eaf0;
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #547dd6; outline-offset: 4px; }
[hidden] { display: none !important; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 200; padding: 12px 16px; background: white; border: 2px solid var(--pink); }
.skip-link:focus { top: 12px; }
.app-shell { max-width: var(--max); margin: 0 auto; background: var(--paper); overflow: clip; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 10px 18px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 850; letter-spacing: -.05em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px 8px 8px 3px; background: var(--pink); color: #fff; font-size: 15px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.brand-kana { margin-left: 2px; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.browse-link { display: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.top-download { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid #f0c8d3; border-radius: 8px; padding: 8px 12px; background: var(--pink-soft); color: #b62046; font-size: 12px; font-weight: 750; }
.primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 13px 20px; border: 1px solid var(--pink); border-radius: 10px; background: var(--pink); color: #fff; font-size: 14px; font-weight: 750; line-height: 1.5; text-align: center; box-shadow: 0 5px 15px rgba(217,35,80,.14); transition: background .18s, transform .18s, box-shadow .18s; }
.primary-btn span { font-size: 20px; line-height: 1; }
.primary-btn:active { transform: translateY(1px); box-shadow: none; }
.secondary-btn, .small-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #e4cbd2; border-radius: 8px; background: #fff; color: #ad2043; min-height: 44px; padding: 10px 14px; font-size: 12px; font-weight: 700; }
.video-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 18px 24px; background: radial-gradient(ellipse at 87% 18%, rgba(186,50,91,.13), transparent 48%), var(--night); color: #fff; }
.hero-visual { width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero-player { position: relative; width: min(100%, 360px); min-width: 0; max-width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid rgba(255,255,255,.20); border-radius: 12px; background: #07101c; box-shadow: 0 16px 35px rgba(0,0,0,.20); }
.hero-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.32), transparent 28%, transparent 58%, rgba(0,0,0,.72)); pointer-events: none; }
.hero-episode, .hero-sound { position: absolute; top: 10px; z-index: 3; border: 1px solid rgba(255,255,255,.23); border-radius: 7px; background: rgba(12,20,32,.63); color: white; padding: 7px 8px; font-size: 10px; line-height: 1.4; }
.hero-episode { left: 10px; }
.hero-sound { right: 10px; min-height: 36px; }
.hero-sound[aria-pressed="true"] { background: rgba(217,35,80,.84); }
.hero-subtitle { position: absolute; bottom: 46px; left: 13px; right: 13px; z-index: 2; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.65; text-align: center; text-shadow: 0 2px 8px #000; }
.hero-toggle-play { position: absolute; z-index: 3; bottom: 9px; right: 10px; min-height: 32px; border: 1px solid rgba(255,255,255,.28); border-radius: 7px; padding: 5px 9px; color: #fff; background: rgba(12,20,32,.65); font-size: 10px; }
.visual-caption { display: none; margin-top: 14px; color: #a5afbf; font-size: 10px; letter-spacing: .15em; }
.video-loading { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; background: var(--night); transition: opacity .2s; pointer-events: none; }
.video-loading small { font-size: 11px; }
.loading-ring { width: 25px; height: 25px; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
.is-ready .video-loading { opacity: 0; }
.hero-play-fallback { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 5; padding: 11px 15px; border: 1px solid #fff; border-radius: 9px; color: #fff; background: rgba(20,32,51,.85); white-space: nowrap; }
.autoplay-blocked .hero-play-fallback { display: block; }
.hero-info { width: 100%; max-width: 440px; }
.hero-kicker { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #f4b8c9; }
.kicker-dot { width: 5px; height: 5px; border-radius: 50%; background: #f4b8c9; }
.hero-info h1 { margin-top: 9px; font-size: 29px; font-weight: 750; letter-spacing: -.05em; line-height: 1.2; }
.hero-info h1 br { display: none; }
.hero-description { margin-top: 9px; font-size: 13px; line-height: 1.75; color: #c9d1df; }
.hero-benefits { display: none; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-benefits span { padding: 6px 10px; border: 1px solid #435065; border-radius: 6px; color: #d5dbe5; font-size: 11px; }
.hero-info .primary-btn { width: 100%; margin-top: 17px; }
.hero-small { margin-top: 8px; font-size: 11px; line-height: 1.65; text-align: center; color: #b5c0d1; }
.hero-small > span { margin: 0 4px; }
.install-guide-link { border: 0; padding: 4px 0; background: transparent; color: #b82045; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; cursor: pointer; }
.hero-small .install-guide-link { color: #e2c3cb; font-size: inherit; }
.hero-editorial { display: none; margin-top: 36px; padding-top: 18px; border-top: 1px solid #364154; color: #a5b1c3; font-size: 12px; }
.continue-card { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 12px; margin: 22px 18px 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.continue-card > img { width: 52px; height: 64px; border-radius: 6px; object-fit: cover; }
.continue-copy { min-width: 0; }
.continue-label { color: #b72347; font-size: 10px; line-height: 1.6; font-weight: 650; }
.continue-copy b { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-copy > span { display: -webkit-box; line-clamp: 1; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.continue-card .small-btn { border: 0; background: var(--pink-soft); padding: 8px 10px; min-height: 42px; white-space: nowrap; font-size: 11px; }
.queue { padding: 36px 18px; scroll-margin-top: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-kicker { color: #b92347; font-size: 10px; font-weight: 700; line-height: 1.6; letter-spacing: .12em; }
h2 { margin-top: 9px; font-size: 25px; line-height: 1.35; letter-spacing: -.035em; font-weight: 750; }
.story-count { color: var(--muted); font-size: 12px; padding-bottom: 3px; white-space: nowrap; }
.genre-list { display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; margin-top: 23px; padding: 2px 2px 5px; }
.genre-list::-webkit-scrollbar { display: none; }
.genre-list button { flex: 0 0 auto; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 12px; color: #626a79; font-size: 12px; font-weight: 650; }
.genre-list button.active { background: var(--night); color: #fff; border-color: var(--night); }
.queue-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 22px 14px; margin-top: 20px; }
.story-grid-card { display: flex; flex-direction: column; width: 100%; border: 0; border-radius: 10px; padding: 0; background: transparent; color: var(--ink); text-align: left; transition: transform .16s; }
.story-grid-card > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 9px; background: #edf0f5; }
.card-copy { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 11px 1px 0; }
.card-title { display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; font-size: 13px; font-weight: 750; line-height: 1.5; letter-spacing: -.025em; }
.card-genre { margin-top: 3px; color: #a92344; font-size: 10px; font-weight: 650; line-height: 1.6; }
.card-hook { display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.card-action { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: #354153; font-size: 11px; font-weight: 650; line-height: 1.6; }
.card-action > span { color: #b72347; font-size: 15px; }
.more-app-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 32px; padding: 23px; border-radius: 12px; background: #f8f5f7; border: 1px solid #f0e7eb; }
.more-app-card h3 { margin-top: 5px; font-size: 19px; line-height: 1.5; }
.more-app-card p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.features { padding: 32px 18px; background: var(--night); color: #fff; }
.features .section-kicker { color: #edafc1; }
.features h2 { font-size: 23px; }
.feature-grid { display: flex; flex-direction: column; gap: 0; margin-top: 23px; }
.feature { display: grid; grid-template-columns: 35px 1fr; padding: 18px 0; border-top: 1px solid #364154; }
.feature-number { grid-row: 1/3; color: #a7b4c8; font-size: 11px; padding-top: 3px; }
.feature b { font-size: 15px; line-height: 1.5; font-weight: 650; }
.feature p { margin-top: 5px; color: #bac4d3; font-size: 12px; line-height: 1.7; }
.final-download { padding: 40px 24px; text-align: center; background: var(--pink-soft); }
.final-download h2 { font-size: 28px; }
.final-download > p:not(.section-kicker) { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.final-download .primary-btn { display: flex; width: fit-content; max-width: 360px; margin: 23px auto 0; }
.final-download .install-guide-link { margin-top: 10px; min-height: 40px; }
.trust { padding: 36px 18px; }
.trust h2 { font-size: 21px; }
.trust > div > p:not(.section-kicker) { margin-top: 10px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.trust-links { display: flex; flex-direction: column; margin-top: 22px; border-top: 1px solid var(--line); }
.trust-links button { display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line); color: #455064; background: #fff; font-size: 13px; text-align: left; }
.trust-links button > span { color: #b92347; font-size: 17px; }
.footer { padding: 28px 18px calc(110px + env(safe-area-inset-bottom)); border-top: 1px solid #e7eaf1; background: #f7f8fa; }
.footer .brand { font-size: 15px; }
.footer .brand-mark { width: 25px; height: 25px; font-size: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 18px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.footer small { display: block; margin-top: 18px; color: #787f8c; font-size: 10px; }
.sticky-download { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; gap: 36px; padding: 12px 18px max(12px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -5px 25px rgba(20,32,51,.05); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.sticky-download.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-download .primary-btn { width: 100%; max-width: 430px; min-height: 48px; }
.sticky-copy { display: none; }
body.modal-open { overflow: hidden; }
body.modal-open .sticky-download { opacity: 0; pointer-events: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; padding-top: 30px; background: rgba(9,17,29,.64); }
.modal.show { display: flex; }
.sheet { position: relative; width: 100%; max-width: 540px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 52px 22px max(24px,env(safe-area-inset-bottom)); background: #fff; color: var(--ink); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 40px rgba(9,17,29,.15); }
.sheet-close { position: absolute; top: 8px; right: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; min-width: 76px; padding: 8px; border: 0; border-radius: 8px; background: transparent; font-size: 12px; color: #586172; }
.sheet-close span { font-size: 22px; font-weight: 400; }
.sheet-kicker { color: #b92347; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.sheet h2 { margin-top: 9px; font-size: 23px; line-height: 1.45; letter-spacing: -.04em; overflow-wrap: anywhere; }
.sheet p { font-size: 13px; line-height: 1.8; }
.sheet .primary-btn { width: 100%; margin-top: 23px; font-size: 14px; }
.sheet-top { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 18px; align-items: start; margin-top: 19px; }
.sheet-top > img { width: 94px; height: 118px; object-fit: contain; background: #f2f3f6; border-radius: 8px; }
.drama-meta { color: var(--muted); font-size: 11px !important; }
.sheet .hook { color: #a92344; font-weight: 600; font-size: 12px; }
.sheet-top h2 { margin: 6px 0 8px; font-size: 21px; }
.drama-description { margin-top: 20px; color: #626b7b; }
.install-work { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 14px; margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafafb; }
.install-work img { width: 72px; height: 82px; object-fit: contain; border-radius: 6px; background: #eeeef3; }
.install-work-label { color: var(--muted); font-size: 10px !important; }
.install-work b { display: block; margin-top: 3px; font-size: 15px; line-height: 1.5; }
.install-work .hook { margin-top: 5px; font-size: 11px; color: var(--muted); font-weight: 400; }
#install-modal-copy { margin-top: 17px; color: #626b7b; }
.install-device-note { margin-top: 12px; padding: 13px; border-radius: 8px; background: var(--pink-soft); color: #a92344; }
.android-note { display: block; margin-top: 10px; color: var(--muted); font-size: 11px !important; line-height: 1.7; text-align: center; }
.install-steps { margin-top: 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fafafb; }
summary { min-height: 24px; font-size: 12px; font-weight: 650; cursor: pointer; }
.install-steps ol { padding-left: 20px; margin: 13px 0 0; font-size: 12px; color: #626b7b; line-height: 1.85; }
.install-steps li + li { margin-top: 5px; }
.install-meta { margin-top: 20px; color: #79818e; font-size: 11px !important; line-height: 1.8; }
.legal-sheet > p:not(.sheet-kicker) { margin-top: 14px; color: #626b7b; }
.legal-sheet section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.legal-sheet h3 { font-size: 15px; line-height: 1.7; }
.legal-sheet section p { margin-top: 8px; color: #626b7b; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover:hover) and (pointer:fine) {
  .primary-btn:hover { background: var(--pink-hover); border-color: var(--pink-hover); transform: translateY(-1px); }
  .story-grid-card:hover { transform: translateY(-3px); }
  .story-grid-card:hover .card-title { color: #ad2043; }
  .secondary-btn:hover, .small-btn:hover, .top-download:hover { background: #ffe8ef; }
  .browse-link:hover { color: #ad2043; }
  .sheet-close:hover { background: #f3f4f7; }
}
@media (max-width:359px) {
  .topbar { padding-right: 14px; padding-left: 14px; }
  .brand { font-size: 15px; gap: 7px; }
  .top-download { padding: 8px 10px; font-size: 11px; }
  .video-hero { padding: 14px 16px 22px; gap: 13px; }
  .hero-info h1 { font-size: 25px; }
  .hero-description { font-size: 12px; }
  .hero-player { width: 100%; }
  .hero-info .primary-btn { min-height: 48px; margin-top: 13px; font-size: 13px; }
  .queue { padding-left: 14px; padding-right: 14px; }
  .queue-grid { gap: 22px 12px; }
  .continue-card { margin: 20px 14px 0; gap: 10px; grid-template-columns: 46px minmax(0,1fr); }
  .continue-card > img { width: 46px; height: 60px; }
  .continue-card .small-btn { grid-column: 1/-1; }
  .card-title { font-size: 12px; }
  .sheet { padding-left: 18px; padding-right: 18px; }
  .sheet h2 { font-size: 21px; }
}
@media (min-width:700px) {
  body { padding: 24px; }
  .app-shell { border: 1px solid var(--line); border-radius: 18px; }
  .topbar { padding: 15px 36px; min-height: 76px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 33px; height: 33px; font-size: 17px; }
  .browse-link { display: inline; }
  .top-download { min-height: 44px; padding: 10px 16px; font-size: 13px; }
  .video-hero { flex-direction: row; gap: 42px; padding: 42px; min-height: 560px; }
  .hero-visual { width: 45%; flex-shrink: 0; }
  .hero-player { width: 260px; min-width: 0; }
  .hero-info { flex: 1; }
  .hero-info h1 { font-size: 38px; line-height: 1.25; margin-top: 18px; }
  .hero-info h1 br { display: block; }
  .hero-description { font-size: 14px; margin-top: 20px; }
  .hero-benefits { display: flex; }
  .hero-info .primary-btn { margin-top: 28px; }
  .hero-small { text-align: left; font-size: 11px; }
  .visual-caption, .hero-editorial { display: block; }
  .continue-card { max-width: 670px; margin: 28px auto 0; padding: 16px 20px; }
  .continue-card .small-btn { padding: 10px 16px; }
  .continue-copy b { font-size: 15px; }
  .queue { padding: 48px 42px; }
  .mobile-break { display: none; }
  h2 { font-size: 30px; }
  .genre-list { margin-top: 27px; gap: 10px; }
  .genre-list button { font-size: 13px; padding: 10px 18px; }
  .queue-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 22px; margin-top: 25px; }
  .card-title { font-size: 15px; min-height: 44px; }
  .card-genre { font-size: 11px; }
  .card-hook { font-size: 12px; min-height: 40px; }
  .card-action { font-size: 12px; }
  .more-app-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px 30px; }
  .features { padding: 40px 42px; }
  .feature-grid { flex-direction: row; gap: 30px; }
  .feature { flex: 1; padding-top: 22px; }
  .feature b { font-size: 16px; }
  .final-download { padding: 50px 42px; }
  .final-download h2 { font-size: 34px; }
  .trust { display: flex; justify-content: space-between; gap: 36px; padding: 45px 42px; }
  .trust-links { flex: 0 0 42%; margin-top: 0; }
  .footer { padding: 32px 42px 130px; }
  .sticky-copy { display: block; }
  .sticky-copy b { font-size: 13px; font-weight: 600; }
  .sticky-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
  .sticky-download .primary-btn { max-width: 300px; }
  .modal { align-items: center; padding: 24px; }
  .sheet { border-radius: 18px; max-height: calc(100dvh - 48px); padding: 52px 30px 30px; }
}
@media (min-width:1050px) {
  .video-hero { gap: 72px; padding: 44px 80px; }
  .hero-visual { width: 42%; }
  .hero-player { width: 290px; }
  .hero-info h1 { font-size: 48px; }
  .hero-description { font-size: 15px; }
  .hero-kicker { font-size: 12px; }
  .hero-info .primary-btn { max-width: 360px; min-height: 56px; }
  .queue, .features, .trust { padding-left: 60px; padding-right: 60px; }
  .queue-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .hero-small { max-width: 360px; }
}
@media (max-width:699px) and (orientation:landscape) {
  .video-hero { flex-direction: row; padding: 20px; gap: 24px; }
  .hero-visual { width: 35%; flex-shrink: 0; }
  .hero-player { width: 150px; min-width: 0; }
  .hero-info h1 { font-size: 26px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
