/* 沖縄修学旅行ナビ — style.css */
:root {
  --ink: #17213a;
  --ink2: #44506b;
  --paper: #fffaf0;
  --sand: #fff1d6;
  --sea: #0b6fa4;
  --sea2: #13b5c8;
  --sea3: #c9f1f4;
  --coral: #ff5d5d;
  --hibiscus: #e3336e;
  --sun: #ffc433;
  --leaf: #23a26b;
  --leaf2: #d6f5e3;
  --purple: #7b4fd0;
  --peace: #5b6b8a;
  --peace2: #e8ecf4;
  --history: #b8452f;
  --history2: #fbe4dc;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-s: 3px 3px 0 var(--ink);
  --r: 16px;
  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
  --head: 'Dela Gothic One', 'Zen Maru Gothic', sans-serif;
  --en: 'Fredoka', 'Zen Maru Gothic', sans-serif;
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.8; font-weight: 500;
  background-image: radial-gradient(circle at 1px 1px, rgba(23,33,58,.07) 1px, transparent 0); background-size: 22px 22px;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.35; margin: 0 0 .5em; letter-spacing: .02em; }
h1 { font-size: clamp(1.6rem, 5.2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .9em; }
.en, [lang="en"] { font-family: var(--en); font-weight: 500; letter-spacing: .01em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ミンサー柄（五つと四つ）の帯 */
.minsa { height: 14px; background:
  repeating-linear-gradient(90deg, var(--sea) 0 10px, transparent 10px 14px, var(--sea) 14px 24px, transparent 24px 28px, var(--sea) 28px 38px, transparent 38px 60px),
  var(--sun); border-top: var(--line); border-bottom: var(--line); }

/* ---------- ヘッダー ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 58px; max-width: 1400px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo b { font-family: var(--head); font-weight: 400; font-size: 1.02rem; line-height: 1.15; white-space: nowrap; }
.logo small { display: block; font-family: var(--en); font-size: .68rem; color: var(--sea); letter-spacing: .08em; font-weight: 600; }
.top nav { margin-left: auto; display: flex; gap: 2px; flex: none; }
.top nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 6px 8px; border-radius: 99px; font-size: .9rem; white-space: nowrap; }.top nav a:hover, .top nav a[aria-current] { background: var(--sun); }
.langsw { margin-left: 6px; display: flex; border: var(--line); border-radius: 99px; overflow: hidden; flex: none; background: #fff; }
.langsw button { border: 0; background: transparent; font: 700 .78rem var(--font); padding: 5px 9px; cursor: pointer; color: var(--ink); }
.langsw button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 1239px) { .top nav { display: none; } .langsw { margin-left: auto; } }
@media (max-width: 380px) { .logo b { font-size: .9rem; } .logo svg { width: 34px; height: 34px; } .langsw button { padding: 5px 7px; font-size: .72rem; } }

/* 下のタブバー（アプリ風） */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: var(--line);
  display: grid; grid-template-columns: repeat(6, 1fr); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; color: var(--ink2); font-size: .7rem; font-weight: 700; }
.tabbar a span { font-size: 1.35rem; line-height: 1; transition: transform .2s; }
.tabbar a[aria-current] { color: var(--hibiscus); }
.tabbar a[aria-current] span { transform: translateY(-3px) scale(1.15); }
@media (min-width: 901px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ---------- 共通パーツ ---------- */
.card { background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 1rem var(--font); color: var(--ink); background: var(--sun);
  border: var(--line); border-radius: 99px; padding: 9px 18px; box-shadow: var(--shadow-s); cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.sea { background: var(--sea2); color: #fff; } .btn.coral { background: var(--coral); color: #fff; } .btn.white { background: #fff; } .btn.ink { background: var(--ink); color: #fff; }
.btn.sm { font-size: .85rem; padding: 5px 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; border: 2px solid var(--ink); border-radius: 99px; padding: 1px 10px; background: #fff; white-space: nowrap; }
.chip.course { background: var(--hibiscus); color: #fff; } .chip.free { background: var(--sea2); color: #fff; }
.chip.d1 { background: var(--peace2); } .chip.d2 { background: var(--sea3); } .chip.d3 { background: var(--history2); }
.sec { margin: 44px 0; }
.sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-h h2 { margin: 0; }
.sec-h .en { color: var(--sea); font-size: .95rem; font-weight: 600; }
.sec-h .more { margin-left: auto; font-weight: 700; font-size: .9rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ai-note { font-size: .72rem; color: var(--ink2); }
.crumbs { font-size: .82rem; margin: 14px 0 6px; color: var(--ink2); }
.crumbs a { color: var(--ink2); }
.lead { font-size: 1.05rem; }
.muted { color: var(--ink2); }
.center { text-align: center; }

/* 言語モード：ja だけ・en だけ */
html[data-lang="ja"] .x-en { display: none !important; }
html[data-lang="en"] .x-ja { display: none !important; }
.x-en { font-family: var(--en); color: #0a5a86; }
.pair .x-en { display: block; margin-top: 4px; font-size: .95em; line-height: 1.65; }
html[data-lang="en"] .pair .x-en { margin-top: 0; color: var(--ink); font-size: 1em; }

/* ---------- ヒーロー（トップ） ---------- */
.hero { position: relative; border-bottom: var(--line); overflow: hidden; background: var(--sea); color: #fff; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,40,70,.15) 0%, rgba(7,40,70,.55) 70%, rgba(7,40,70,.8) 100%); }
.hero .wrap { position: relative; padding-top: 56px; padding-bottom: 40px; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.hero h1 { font-size: clamp(1.9rem, 7vw, 3.6rem); text-shadow: 3px 3px 0 var(--ink); margin-bottom: .2em; }
.hero h1 .ln { display: block; }
.hero .hello { font-family: var(--head); font-size: clamp(1rem, 3.5vw, 1.4rem); color: var(--sun); text-shadow: 2px 2px 0 var(--ink); }
.hero p { max-width: 640px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero .en-sub { font-family: var(--en); font-size: clamp(.95rem, 2.6vw, 1.2rem); font-weight: 600; }
.countdown { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; color: var(--ink); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 16px; margin-top: 14px; max-width: 100%; }
.countdown .big { font-family: var(--head); font-size: clamp(2rem, 8vw, 3rem); line-height: 1; color: var(--hibiscus); }
.countdown .lbl { font-weight: 700; line-height: 1.4; }
.countdown .lbl small { display: block; font-family: var(--en); color: var(--sea); font-weight: 600; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.wave { display: block; width: 100%; height: 34px; }

/* 波の飾り */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 84px; overflow: hidden; pointer-events: none; }
.waves .wl { position: absolute; left: 0; bottom: 0; width: max(200%, 1600px); height: 100%; display: block; will-change: transform; }
.waves .w2 { height: 90%; } .waves .w1 { height: 80%; }
.hero:has(.waves) { border-bottom: 0; }
.hero:has(.waves) .wrap { padding-bottom: 96px; }
@media (max-width: 600px) { .waves { height: 58px; } .hero:has(.waves) .wrap { padding-bottom: 76px; } }
/* 水面のキラキラと、跳ねる魚（Motion で動かす） */
.glint { position: absolute; width: 14px; height: 14px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%), linear-gradient(#fff, #fff) center/2px 100% no-repeat, linear-gradient(#fff, #fff) center/100% 2px no-repeat;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.9)); }
.jumper { position: absolute; bottom: 30px; font-size: 1.9rem; line-height: 1; pointer-events: none; filter: drop-shadow(2px 2px 0 rgba(23,33,58,.6)); }
@media (max-width: 600px) { .glint { width: 11px; height: 11px; } .jumper { font-size: 1.5rem; bottom: 22px; } }

/* ---------- 日程カード ---------- */
.days { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.day-card { position: relative; display: block; text-decoration: none; color: var(--ink); overflow: hidden; padding: 0; }
.day-card .ph { aspect-ratio: 16/9; background: var(--sea3) center/cover; border-bottom: var(--line); }
.day-card .bd { padding: 14px 16px 16px; }
.day-card .num { position: absolute; top: 10px; left: 10px; background: var(--sun); border: var(--line); border-radius: 12px; font-family: var(--head); padding: 2px 12px; box-shadow: var(--shadow-s); }
.day-card h3 { margin: 4px 0; }
.day-card.today { outline: 5px solid var(--hibiscus); outline-offset: 3px; }
.day-card .todaybadge { position: absolute; top: 10px; right: 10px; background: var(--hibiscus); color: #fff; border: var(--line); border-radius: 99px; padding: 1px 12px; font-weight: 700; font-size: .85rem; }

/* 今日のバナー */
.todaybar { display: none; background: var(--hibiscus); color: #fff; border-bottom: var(--line); }
.todaybar.on { display: block; }
.todaybar .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; font-weight: 700; }
.todaybar a { color: #fff; }

/* タイムライン */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 31px; top: 8px; bottom: 8px; width: 4px; background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 14px); }
.tl li { position: relative; display: grid; grid-template-columns: 66px 1fr; gap: 12px; margin-bottom: 14px; }
.tl .ic { width: 66px; height: 66px; border: var(--line); border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 1; box-shadow: var(--shadow-s); }
.tl .ic span { font-size: 1.5rem; line-height: 1; }
.tl .ic b { font-size: .64rem; font-family: var(--en); line-height: 1.1; margin-top: 2px; text-align: center; }
.tl .it { background: #fff; border: var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-s); min-width: 0; }
.tl .it h3 { font-family: var(--font); font-weight: 900; font-size: 1.05rem; margin: 0; }
.tl .it .x-en { font-size: .88rem; }
.tl .it p { margin: 6px 0 0; font-size: .92rem; color: var(--ink2); }
.tl .it .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tl li.now .it { background: #fff4c2; }
.tl li.now .ic { background: var(--sun); animation: pulse 1.6s infinite; }
.tl li.past { opacity: .55; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(227,51,110,.6), var(--shadow-s); } 50% { box-shadow: 0 0 0 10px rgba(227,51,110,0), var(--shadow-s); } }
.daytabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 18px; }
.daytabs a { flex: 1 1 0; min-width: 90px; text-align: center; text-decoration: none; color: var(--ink); background: #fff; border: var(--line); border-radius: 14px; padding: 6px 4px; font-weight: 700; box-shadow: var(--shadow-s); line-height: 1.3; }
.daytabs a small { display: block; font-size: .72rem; font-family: var(--en); }
.daytabs a[aria-current] { background: var(--sun); }
.check { list-style: none; padding: 0; margin: 0; }
.check li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 2px dashed #e4dccb; cursor: pointer; }
.check li::before { content: ''; flex: none; width: 24px; height: 24px; border: var(--line); border-radius: 7px; margin-top: 2px; background: #fff; }
.check li.done { color: var(--ink2); text-decoration: line-through; }
.check li.done::before { background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* ---------- 地図 ---------- */
.map { height: 460px; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; background: var(--sea3); z-index: 1; }
.map.tall { height: min(70vh, 640px); }
.map.small { height: 260px; }
.mapfilter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mapfilter button { font: 700 .85rem var(--font); border: var(--line); border-radius: 99px; padding: 4px 12px; background: #fff; cursor: pointer; color: var(--ink); }
.mapfilter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 0 var(--ink); }
.pin i { transform: rotate(45deg); font-style: normal; font-size: 15px; line-height: 1; font-family: var(--en); font-weight: 700; }
.pin.course { background: var(--hibiscus); color: #fff; } .pin.free { background: #fff; } .pin.d1 { background: #8494b5; } .pin.d3 { background: var(--history); }
.leaflet-popup-content { font-family: var(--font); margin: 10px 12px !important; }
.leaflet-popup-content-wrapper { border: var(--line); border-radius: 14px !important; box-shadow: var(--shadow-s) !important; }
.pop { width: 210px; }
.pop img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); margin-bottom: 6px; background: var(--sea3); }
.pop b { display: block; font-size: .98rem; line-height: 1.35; }
.pop .x-en { font-size: .8rem; display: block; }
.pop a.btn { margin-top: 8px; color: var(--ink); font-size: .8rem; padding: 3px 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; margin-top: 10px; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }

/* ---------- スポットカード ---------- */
.spot-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; padding: 0; transition: transform .15s; }
.spot-card:hover { transform: translate(-2px, -2px) rotate(-.4deg); }
.spot-card .ph { aspect-ratio: 3/2; background: var(--sea3) center/cover; border-bottom: var(--line); position: relative; }
.spot-card .ph .emo { position: absolute; bottom: -18px; right: 12px; width: 44px; height: 44px; border: var(--line); border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.spot-card .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.spot-card h3 { font-size: 1.05rem; margin: 0; }
.spot-card .x-en { font-size: .82rem; }
.spot-card .chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.spot-card p { font-size: .9rem; margin: 0; color: var(--ink2); line-height: 1.6; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.filters button { font: 700 .85rem var(--font); border: var(--line); border-radius: 99px; padding: 4px 12px; background: #fff; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--sun); }
.search { width: 100%; font: 600 1rem var(--font); border: var(--line); border-radius: 99px; padding: 9px 16px; margin-bottom: 12px; background: #fff; }

/* ---------- スポットページ ---------- */
.sp-hero { position: relative; border: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--sea3); }
.sp-hero img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; max-height: 520px; }
.sp-hero .cap { position: absolute; right: 8px; bottom: 6px; font-size: .68rem; color: #fff; background: rgba(0,0,0,.45); padding: 0 8px; border-radius: 99px; }
.sp-title { margin: 18px 0 8px; }
.sp-title h1 { margin: 0; }
.sp-title .kana { font-size: .8rem; color: var(--ink2); display: block; }
.sp-title .x-en { font-size: 1.1rem; display: block; font-weight: 600; }
.sp-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.catch { font-family: var(--head); font-size: clamp(1.05rem, 3.4vw, 1.35rem); background: var(--sun); display: inline; padding: 0 .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.8; }
.respect .catch { background: var(--peace2); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 0; position: sticky; top: 58px; z-index: 20; background: var(--paper); padding: 8px 0; }
.tabs button { flex: 1 1 auto; font: 700 .9rem var(--font); border: var(--line); border-radius: 12px; padding: 6px 10px; background: #fff; cursor: pointer; color: var(--ink); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.respect .tabs button[aria-selected="true"] { background: var(--peace); }
.panel { display: none; padding-top: 14px; } .panel.on { display: block; }
.facts { display: grid; gap: 14px; }
.fact { position: relative; background: #fff; border: var(--line); border-radius: 14px; padding: 14px 16px 14px 58px; box-shadow: var(--shadow-s); }
.fact .n { position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border: var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--head); background: var(--sun); font-size: .9rem; }
.fact h3 { font-family: var(--font); font-weight: 900; font-size: 1.02rem; margin: 0 0 4px; }
.fact p { margin: 0; }
.fact.secret { background: #fff0f4; } .fact.secret .n { background: var(--hibiscus); color: #fff; }
.respect .fact.secret { background: var(--peace2); } .respect .fact.secret .n { background: var(--peace); }
.fact.tip { background: var(--leaf2); } .fact.tip .n { background: var(--leaf); color: #fff; }
.info { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 760px) { .info { grid-template-columns: 1.2fr 1fr; } }
.info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .92rem; }
.info dt { font-weight: 900; }
.info dd { margin: 0; overflow-wrap: anywhere; }
.sources { font-size: .8rem; color: var(--ink2); }
.sources ol { padding-left: 1.4em; margin: 6px 0 0; }
.sources a { color: var(--ink2); overflow-wrap: anywhere; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin: 30px 0; flex-wrap: wrap; }
.pager a { flex: 1 1 200px; }

/* ---------- 英語ブロック ---------- */
.eng { background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.eng + .eng { margin-top: 18px; }
.eng h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lvl { font: 700 .72rem var(--en); background: var(--sea2); color: #fff; border-radius: 99px; padding: 1px 10px; }
.reading p { font-family: var(--en); font-size: 1.08rem; line-height: 1.9; }
.reading .s { cursor: pointer; border-radius: 4px; transition: background .2s; }
.reading .s:hover { background: var(--sea3); }
.reading .s.on { background: var(--sun); }
.reading .ja { display: none; font-family: var(--font); font-size: .9rem; color: var(--ink2); line-height: 1.7; margin: -6px 0 12px; padding: 6px 10px; border-left: 4px solid var(--sea2); background: #f2fbfc; }
.show-ja .reading .ja { display: block; }
.jabtn { font: 700 .8rem var(--font); border: 2px solid var(--ink); border-radius: 99px; background: #fff; padding: 2px 12px; cursor: pointer; color: var(--ink); }
.jabtn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.player { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.player .play { width: 48px; height: 48px; border-radius: 50%; border: var(--line); background: var(--coral); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-s); display: flex; align-items: center; justify-content: center; }
.player .bar { flex: 1 1 140px; height: 10px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: #fff; min-width: 120px; cursor: pointer; }
.player .bar i { display: block; height: 100%; width: 0; background: var(--sea2); }
.player select { font: 700 .8rem var(--font); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 6px; background: #fff; }
.say { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); cursor: pointer; font-size: .95rem; padding: 0; vertical-align: middle; }
.say.playing { background: var(--coral); color: #fff; }
.vocab { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.vc { border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; background: #fffdf6; }
.vc .w { display: flex; align-items: center; gap: 8px; font-family: var(--en); font-weight: 700; font-size: 1.15rem; }
.vc .m { font-weight: 700; font-size: .92rem; }
.vc .ex { font-size: .85rem; color: var(--ink2); font-family: var(--en); margin-top: 4px; line-height: 1.5; }
.vc .exj { font-size: .78rem; color: var(--ink2); }
.phr { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.phr li { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; background: #fff; }
.phr .t { min-width: 0; }
.phr .e { font-family: var(--en); font-weight: 700; font-size: 1.05rem; line-height: 1.45; }
.phr .j { font-size: .88rem; }
.phr .sc { font-size: .75rem; color: var(--ink2); }
.quiz .q { font-family: var(--en); font-weight: 700; font-size: 1.05rem; margin: 14px 0 8px; }
.quiz .opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.quiz .opts button { text-align: left; font: 600 1rem var(--en); border: var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; cursor: pointer; color: var(--ink); }
.quiz .opts button.ok { background: var(--leaf); color: #fff; }
.quiz .opts button.ng { background: var(--coral); color: #fff; }
.quiz .exp { display: none; margin-top: 8px; font-size: .9rem; background: var(--leaf2); border-radius: 10px; padding: 8px 12px; }
.quiz .exp.on { display: block; }
.dialog { display: grid; gap: 8px; }
.dl { display: flex; gap: 8px; align-items: flex-start; max-width: 92%; }
.dl.b { margin-left: auto; flex-direction: row-reverse; }
.dl .who { flex: none; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sea3); font-size: 1.1rem; }
.dl.b .who { background: var(--sun); }
.dl .bub { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 6px 12px; min-width: 0; }
.dl.b .bub { background: #fff8de; }
.dl .bub .e { font-family: var(--en); font-weight: 600; }
.dl .bub .j { display: none; font-size: .82rem; color: var(--ink2); }
.show-ja .dl .bub .j { display: block; }
.dl .nm { font-size: .7rem; color: var(--ink2); }

/* ---------- テーマページ ---------- */
.era { display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; padding: 0; }
@media (min-width: 760px) { .era { grid-template-columns: 300px 1fr; } }
.era .ph { background: var(--sand) center/cover; min-height: 180px; border-bottom: var(--line); }
@media (min-width: 760px) { .era .ph { border-bottom: 0; border-right: var(--line); } }
.era .bd { padding: 16px 18px; min-width: 0; }
.era .yr { font-family: var(--en); font-weight: 700; color: var(--history); }
.era.respect .yr { color: var(--peace); }
.era.respect { background: var(--peace2); }
.era details { margin-top: 8px; }
.era summary { cursor: pointer; font-weight: 700; color: var(--sea); }
.surp { background: #fff6d6; border: 2px dashed var(--ink); border-radius: 12px; padding: 8px 12px; margin-top: 10px; font-size: .92rem; }
.timeline-h { display: grid; gap: 18px; }
.slang { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sl { padding: 14px 16px; }
.sl .w { font-family: var(--head); font-size: 1.4rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sl .ro { font-family: var(--en); font-size: .85rem; color: var(--sea); }
.sl .mean { font-weight: 900; margin: 4px 0; }
.sl .exs { background: var(--sand); border-radius: 10px; padding: 6px 10px; font-size: .92rem; margin: 6px 0; }
.sl details summary { cursor: pointer; color: var(--hibiscus); font-weight: 700; font-size: .9rem; }
.lvlb { font-size: .7rem; font-weight: 700; border-radius: 99px; padding: 0 8px; border: 2px solid var(--ink); }
.lvlb.kankou { background: var(--leaf2); } .lvlb.listen { background: var(--sea3); } .lvlb.local { background: #fde0e7; }
.item { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.item .ph { aspect-ratio: 1/1; background: var(--sand) center/cover; border-bottom: var(--line); }
.item .bd { padding: 12px 14px; }
.item .price { font-weight: 900; color: var(--hibiscus); font-size: .9rem; }
.item .rank { position: absolute; }
.news { display: grid; gap: 14px; }
.nw { display: grid; gap: 4px 14px; grid-template-columns: 54px 1fr; align-items: start; }
.nw .emo { font-size: 2rem; text-align: center; }
.nw .tag { font-size: .75rem; font-weight: 700; background: var(--sea3); border-radius: 99px; padding: 0 8px; border: 2px solid var(--ink); }
.nw .dt { font-size: .8rem; color: var(--ink2); }
.nw .trip { background: #fff6d6; border-radius: 10px; padding: 6px 10px; font-size: .9rem; margin-top: 6px; }
.nums { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.numc { text-align: center; padding: 14px; }
.numc .v { font-family: var(--head); font-size: 2.2rem; color: var(--sea); line-height: 1.1; }
.numc .u { font-weight: 900; }
.numc p { font-size: .85rem; margin: 6px 0 0; }

/* ---------- 入口タイル ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }
.tile { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; min-height: 120px; position: relative; overflow: hidden; }
.tile .em { font-size: 2rem; line-height: 1; }
.tile b { font-family: var(--head); font-weight: 400; font-size: 1.05rem; line-height: 1.3; margin-top: 6px; }
.tile small { font-family: var(--en); color: var(--sea); font-weight: 600; font-size: .78rem; }
.tile:nth-child(6n+1) { background: #fff4c7; } .tile:nth-child(6n+2) { background: #d9f4f7; } .tile:nth-child(6n+3) { background: #ffe1e6; }
.tile:nth-child(6n+4) { background: #def5e6; } .tile:nth-child(6n+5) { background: #ece3ff; } .tile:nth-child(6n) { background: #ffe9d4; }

/* ---------- ゲーム ---------- */
.games { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gcard { text-decoration: none; color: var(--ink); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.gcard .ph { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; border-bottom: var(--line); }
.gcard .bd { padding: 12px 14px; }
.stage { position: relative; max-width: 720px; margin: 0 auto; background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stage .hud { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; font-weight: 900; margin-bottom: 10px; }
.stage .hud .score { font-family: var(--head); font-size: 1.3rem; color: var(--hibiscus); }
.stage .msg { text-align: center; padding: 20px 6px; }
.stage .msg h2 { margin-bottom: 6px; }
.stage .opts { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .stage .opts { grid-template-columns: 1fr; } }
.stage .opts button { font: 700 1rem var(--font); border: var(--line); border-radius: 14px; padding: 12px; background: #fff; cursor: pointer; color: var(--ink); box-shadow: var(--shadow-s); min-height: 54px; }
.stage .opts button.ok { background: var(--leaf); color: #fff; } .stage .opts button.ng { background: var(--coral); color: #fff; }
.stage .qbox { font-weight: 900; font-size: 1.15rem; text-align: center; margin: 8px 0 14px; line-height: 1.5; }
.stage .qbox .x-en { font-weight: 600; font-size: 1rem; }
.timer { height: 10px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.timer i { display: block; height: 100%; background: var(--sun); width: 100%; transition: width .1s linear; }
.mem { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); }
.mem button { aspect-ratio: 3/4; border: var(--line); border-radius: 12px; background: var(--sea) ; cursor: pointer; padding: 4px; font: 700 .85rem var(--font); color: var(--ink); perspective: 600px; position: relative; overflow: hidden; }
.mem button .f { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; line-height: 1.25; backface-visibility: hidden; transition: transform .35s; border-radius: 9px; }
.mem button .f.back { background: var(--sea) repeating-linear-gradient(45deg, rgba(255,255,255,.15) 0 6px, transparent 6px 12px); font-size: 1.8rem; }
.mem button .f.front { background: #fff; transform: rotateY(180deg); overflow-wrap: anywhere; }
.mem button.open .f.back, .mem button.got .f.back { transform: rotateY(180deg); }
.mem button.open .f.front, .mem button.got .f.front { transform: rotateY(0); }
.mem button.got .f.front { background: var(--leaf2); }
.mem button .f.front.en { font-family: var(--en); font-size: .9rem; }
@media (max-width: 420px) { .mem { gap: 6px; } .mem button { font-size: .72rem; } .mem button .f.front.en { font-size: .76rem; } }
.eisa-lanes { position: relative; height: 380px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: linear-gradient(180deg, #1a2a5a, #0b6fa4); border-radius: 12px; border: var(--line); overflow: hidden; }
.eisa-lanes .lane { position: relative; border-right: 2px dashed rgba(255,255,255,.25); }
.eisa-lanes .lane:last-child { border-right: 0; }
.eisa-lanes .hit { position: absolute; left: 8%; right: 8%; bottom: 14px; height: 64px; border: 4px solid #fff; border-radius: 50%; opacity: .8; }
.eisa-lanes .note { position: absolute; left: 14%; right: 14%; height: 52px; border-radius: 50%; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.eisa-lanes .judge { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font-family: var(--head); font-size: 1.8rem; color: var(--sun); text-shadow: 2px 2px 0 var(--ink); pointer-events: none; }
.eisa-pads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.eisa-pads button { height: 76px; border: var(--line); border-radius: 50%; font-size: 1.8rem; cursor: pointer; box-shadow: var(--shadow-s); }
.eisa-pads button:active, .eisa-pads button.hitfx { transform: translate(2px, 2px) scale(.96); box-shadow: 1px 1px 0 var(--ink); }
.catchfield { position: relative; height: 420px; background: linear-gradient(180deg, #8fe3ef 0%, #13b5c8 55%, #0b6fa4 100%); border: var(--line); border-radius: 12px; overflow: hidden; touch-action: none; }
.catchfield .fall { position: absolute; top: 0; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; font: 700 .9rem var(--en); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.catchfield .net { position: absolute; bottom: 8px; width: 92px; height: 40px; font-size: 2rem; display: flex; align-items: center; justify-content: center; background: var(--sun); border: var(--line); border-radius: 0 0 40px 40px; }
.target { text-align: center; font-weight: 900; margin-bottom: 8px; }
.target b { font-family: var(--en); font-size: 1.3rem; color: var(--hibiscus); }
.scr-slots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-height: 54px; margin: 10px 0; }
.scr-slots span, .scr-pool button { min-width: 42px; height: 48px; border: var(--line); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font: 700 1.3rem var(--en); background: #fff; padding: 0 6px; }
.scr-slots span { background: var(--sun); }
.scr-slots span.empty { background: #f2efe6; border-style: dashed; }
.scr-pool { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.scr-pool button { cursor: pointer; box-shadow: var(--shadow-s); }
.scr-pool button:disabled { opacity: .25; box-shadow: none; }
.result-stars { font-size: 2.4rem; letter-spacing: 4px; }
.confetti { position: fixed; top: -20px; width: 10px; height: 14px; z-index: 999; pointer-events: none; border-radius: 2px; }

/* ---------- 英語コーナー ---------- */
.scene-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); }
.flash { max-width: 460px; margin: 0 auto; perspective: 900px; }
.flash .cardf { position: relative; height: 230px; cursor: pointer; transform-style: preserve-3d; transition: transform .5s; }
.flash .cardf.flip { transform: rotateY(180deg); }
.flash .side { position: absolute; inset: 0; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.flash .side.b { transform: rotateY(180deg); background: var(--sea3); }
.flash .side .w { font: 700 2rem var(--en); }
.flash .ctrl { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }

/* ---------- フッター ---------- */
footer { margin-top: 60px; background: var(--ink); color: #fff; border-top: var(--line); }
footer .wrap { padding-top: 30px; padding-bottom: 30px; }
footer a { color: #fff; }
footer .fl { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: .9rem; margin: 10px 0; }
footer small { color: #c6cde0; display: block; line-height: 1.6; }

/* reveal 初期状態（Motion があるときだけ隠す） */
html.motion .rv { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) { html.motion .rv { opacity: 1; transform: none; } }

/* スマホ */
@media (max-width: 600px) {
  .sec { margin: 32px 0; }
  .card { padding: 14px; }
  .hero .wrap { min-height: 420px; padding-top: 40px; padding-bottom: 28px; }
  .map { height: 380px; }
  .tl::before { left: 25px; }
  .tl li { grid-template-columns: 54px 1fr; gap: 10px; }
  .tl .ic { width: 54px; height: 54px; }
  .tl .ic span { font-size: 1.2rem; }
  .tabs { top: 58px; }
  .tabs button { font-size: .8rem; padding: 5px 6px; }
  .fact { padding: 12px 12px 12px 50px; }
  .fact .n { left: 9px; width: 30px; height: 30px; }
  .eng { padding: 14px; }
  .eisa-lanes { height: 340px; }
  .catchfield { height: 380px; }
}

/* ハンバーガーメニュー */
.menubtn { flex: none; position: relative; width: 44px; height: 44px; border: var(--line); border-radius: 12px; background: var(--sun); cursor: pointer; box-shadow: var(--shadow-s); padding: 0; }
.menubtn span { position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .25s, opacity .2s, top .25s; }
.menubtn span:nth-child(1) { top: 12px; } .menubtn span:nth-child(2) { top: 18.5px; } .menubtn span:nth-child(3) { top: 25px; }
.menubtn[aria-expanded="true"] span:nth-child(1) { top: 18.5px; transform: rotate(45deg); }
.menubtn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menubtn[aria-expanded="true"] span:nth-child(3) { top: 18.5px; transform: rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 300; }
.drawer[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: rgba(23,33,58,.55); opacity: 0; transition: opacity .25s; }
.dpanel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: var(--paper); border-left: var(--line); overflow-y: auto; overscroll-behavior: contain; padding: 0 14px calc(24px + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.drawer.open .scrim { opacity: 1; } .drawer.open .dpanel { transform: none; }
.dtop { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 12px 0 10px; background: var(--paper); border-bottom: 3px dashed #e4dccb; }
.dtop b { font-family: var(--head); font-weight: 400; font-size: 1.2rem; }
.dtop span { font: 700 .75rem var(--en); color: var(--sea); letter-spacing: .1em; }
.dclose { margin-left: auto; width: 44px; height: 44px; border: var(--line); border-radius: 12px; background: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-s); color: var(--ink); }
.dlang { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; font-weight: 700; font-size: .85rem; }
.dlang .langsw { display: flex !important; margin: 0; }
.dlang .langsw button { padding: 6px 9px; font-size: .78rem; }
.dgroup { margin-top: 14px; }
.dh { font-weight: 900; font-size: .85rem; color: var(--ink2); margin: 0 0 6px; }
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dgrid a { display: flex; align-items: center; gap: 8px; min-height: 52px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; line-height: 1.25; border: 2px solid var(--ink); border-radius: 12px; padding: 6px 8px; background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.dgrid a:active { transform: translate(2px, 2px); box-shadow: none; }
.dgrid a .de { font-size: 1.3rem; flex: none; }
.dgrid a .dt { min-width: 0; overflow-wrap: anywhere; }
.dgrid a small { display: block; font: 600 .66rem var(--en); color: var(--sea); }
.dgrid a[aria-current] { background: var(--sun); }
body.lock { overflow: hidden; }
@media (min-width: 1240px) { .menubtn { display: none; } }

/* 上にもどるボタン */
.totop { position: fixed; right: 14px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); z-index: 70; width: 54px; height: 54px; border-radius: 50%; border: var(--line); background: var(--sea2); color: #fff; box-shadow: var(--shadow-s); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; padding: 0; opacity: 0; pointer-events: none; transform: translateY(20px) scale(.8); transition: opacity .25s, transform .25s; }
.totop[hidden] { display: none; }
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop span { font-size: 1.05rem; } .totop small { font: 700 .6rem var(--en); margin-top: 2px; }
@media (min-width: 901px) { .totop { bottom: 24px; right: 24px; } }

@media (max-width: 480px) { .top .langsw { display: none; } .menubtn { margin-left: auto; } }
@media (max-width: 600px) { .daytabs { gap: 5px; } .daytabs a { min-width: 0; font-size: .74rem; padding: 5px 2px; border-radius: 10px; } .daytabs a small { font-size: .62rem; } }

/* スポットのタブ：スマホは短い名前で1行 */
.tabs .tl-s { display: none; }
@media (max-width: 600px) {
  .tabs { display: grid; grid-template-columns: repeat(var(--tabs, 5), 1fr); gap: 4px; }
  .tabs button { padding: 7px 2px; font-size: .78rem; border-width: 2px; border-radius: 10px; }
  .tabs .tl-l { display: none; } .tabs .tl-s { display: inline; }
}
.stage { scroll-margin-top: 66px; }
.catf { width: 100%; } .catf summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--sea); }
footer .sister { align-items: center; }
footer .sister a.home { font-family: var(--head); font-weight: 400; text-decoration: none; color: var(--ink); background: var(--sun); border: 3px solid #fff; border-radius: 12px; padding: 4px 14px; box-shadow: 3px 3px 0 var(--sea2); }
footer .sister a.home:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--sea2); }

/* ================= 本気のゲーム（og-*） ================= */
.og-stage { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; height: min(82vh, 760px); min-height: 520px; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; background: #0b1230; color: #fff; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.og-wrap { position: absolute; inset: 0; }
.og-cvhost { position: absolute; inset: 0; }
.og-cv { display: block; touch-action: none; }
.og-ui { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.og-ui > * { pointer-events: auto; }
.og-full { position: fixed !important; inset: 0; z-index: 1000; width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; background: #0b1230; }
body.og-lock { overflow: hidden; }
body.og-lock .tabbar, body.og-lock .totop { display: none; }
.og-x { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 10px; z-index: 30; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.45); color: #fff; font-size: 1rem; cursor: pointer; display: none; }
.og-full .og-x { display: block; }
.og-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; background: radial-gradient(circle at 50% 40%, #1b3a7a, #0b1230); font-weight: 700; }
.og-spin { width: 54px; height: 54px; border-radius: 50%; border: 6px solid rgba(255,255,255,.2); border-top-color: var(--sun); animation: ogspin 0.9s linear infinite; }
@keyframes ogspin { to { transform: rotate(360deg); } }
.og-load2 { font: 400 1.4rem var(--head); text-shadow: 2px 2px 0 var(--ink); }
.og-panel { background: rgba(255,250,240,.97); color: var(--ink); border: var(--line); border-radius: 20px; box-shadow: 6px 6px 0 rgba(0,0,0,.45); padding: 18px; width: min(94%, 560px); max-height: calc(100% - 24px); overflow-y: auto; text-align: center; }
.og-title span { font-size: 2.6rem; display: block; line-height: 1; }
.og-title h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); margin: 6px 0 0; }
.og-title p { font: 700 .85rem var(--en); letter-spacing: .3em; color: var(--sea); margin: 0 0 10px; }
.og-songs { display: grid; gap: 10px; }
.og-song { text-align: left; border: var(--line); border-radius: 16px; padding: 10px 14px; background: linear-gradient(110deg, #fff 55%, color-mix(in srgb, var(--c) 35%, #fff)); cursor: pointer; box-shadow: 4px 4px 0 var(--ink); display: grid; gap: 1px; color: var(--ink); font-family: var(--font); transition: transform .12s; position: relative; overflow: hidden; }
.og-song::after { content: '▶'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.og-song:hover { transform: translate(-2px, -2px); }
.og-song b { font: 400 1.2rem var(--head); padding-right: 46px; }
.og-song small { font-family: var(--en); color: var(--ink2); font-weight: 600; }
.og-lv { font-weight: 900; font-size: .85rem; color: #b8452f; }
.og-desc { font-size: .82rem; color: var(--ink2); padding-right: 46px; }
.og-best { font: 700 .78rem var(--en); color: var(--sea); }
.og-opt { text-align: left; margin-top: 12px; font-size: .88rem; }
.og-opt summary { cursor: pointer; font-weight: 900; }
.og-opt label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; font-weight: 700; }
.og-opt input[type=range] { flex: 1; min-width: 120px; accent-color: var(--hibiscus); }
.og-small { font-size: .75rem; color: var(--ink2); margin: 0; }
.og-hud { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 12px 58px 0 12px; pointer-events: none; }
.og-hud > * { pointer-events: auto; }
.og-pause { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.4); color: #fff; cursor: pointer; font-size: .8rem; flex: none; }
.og-songname { font: 400 .95rem var(--head); text-shadow: 2px 2px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-score { margin-left: auto; font: 700 1.3rem var(--en); text-shadow: 2px 2px 0 #000; font-variant-numeric: tabular-nums; }
.og-count { position: absolute; top: 40%; left: 0; right: 0; text-align: center; font: 400 clamp(3rem, 16vw, 6rem) var(--head); color: var(--sun); text-shadow: 4px 4px 0 var(--ink); opacity: 0; pointer-events: none; }
.og-count.on { animation: ogcount .7s ease-out; }
@keyframes ogcount { 0% { opacity: 0; transform: scale(2.2); } 25% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(.9); } }
.og-btn { font: 700 1rem var(--font); border: var(--line); border-radius: 99px; padding: 10px 20px; background: var(--sun); color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); margin: 4px; }
.og-btn.ghost { background: #fff; }
.og-btn.pink { background: var(--hibiscus); color: #fff; }
.og-btn.sea { background: var(--sea2); color: #fff; }
.og-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.og-btn:disabled { opacity: .45; cursor: default; }
.og-result .og-rlabel { font-weight: 900; margin: 0; }
.og-rank { font: 400 clamp(4rem, 22vw, 7rem) var(--head); line-height: 1; display: inline-block; transform: rotate(-8deg); -webkit-text-stroke: 4px var(--ink); color: #ffc433; text-shadow: 6px 6px 0 var(--ink); margin: 6px 0; }
.og-rank.r-SS, .og-rank.r-S { background: linear-gradient(90deg, #ff7ad1, #ffe066, #7cf3ff, #b18cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.og-rank.r-D, .og-rank.r-C { color: #9db0d6; }
.og-fc { font: 400 1.1rem var(--head); color: var(--hibiscus); }
.og-rscore { font: 700 1.8rem var(--en); }
.og-new { font-size: .8rem; background: var(--hibiscus); color: #fff; border-radius: 99px; padding: 1px 8px; vertical-align: middle; }
.og-rtab { margin: 8px auto; border-collapse: collapse; font-weight: 700; }
.og-rtab th, .og-rtab td { padding: 3px 10px; font-family: var(--en); }
.og-rtab td { text-align: right; min-width: 50px; }
.og-tip { font-size: .85rem; background: var(--sand); border-radius: 12px; padding: 8px 12px; text-align: left; }
.og-toast { position: absolute; left: 50%; top: 16px; transform: translate(-50%, -30px); opacity: 0; transition: .35s; z-index: 2000; background: var(--sun); color: var(--ink); border: var(--line); border-radius: 99px; padding: 8px 18px; font-weight: 900; box-shadow: var(--shadow-s); white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
body > .og-toast { position: fixed; }
.og-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) { .og-stage { height: min(78vh, 700px); min-height: 480px; border-radius: 14px; } .og-panel { padding: 14px; } }

/* ゲームセンター */
.gk-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.gk { position: relative; display: block; min-height: 300px; border: var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: #fff; background: #0b1230; isolation: isolate; transition: transform .2s; }
.gk:hover { transform: translate(-3px, -3px) rotate(-.4deg); }
.gk-bg { position: absolute; inset: 0; background: #1b2b5a center/cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); z-index: -2; }
.gk:hover .gk-bg { transform: scale(1.08); }
.gk::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,12,40,0) 25%, rgba(8,12,40,.55) 55%, rgba(8,12,40,.92) 100%); }
.gk-fg { position: absolute; right: -4%; bottom: 34%; height: 62%; max-width: 60%; object-fit: contain; z-index: -1; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.gk:hover .gk-fg { transform: translateY(-8px) scale(1.06) rotate(-3deg); }
.gk-bd { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 14px; }
.gk-tag { display: inline-block; font-size: .75rem; font-weight: 900; background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 0 10px; }
.gk h2 { margin: 6px 0 0; font-size: 1.5rem; text-shadow: 3px 3px 0 var(--ink); }
.gk-en { font: 700 .8rem var(--en); letter-spacing: .12em; color: #9ff1ff; }
.gk p { font-size: .86rem; margin: 6px 0 10px; line-height: 1.6; text-shadow: 0 1px 4px #000; }
.gk-play { display: inline-block; font-weight: 900; background: var(--hibiscus); border: 3px solid var(--ink); border-radius: 99px; padding: 4px 16px; box-shadow: 3px 3px 0 var(--ink); }
.g-h1 { text-align: center; font-size: clamp(1.3rem, 5vw, 2rem); margin-bottom: 12px; }
.g-h1 small { display: block; font: 700 .9rem var(--en); color: var(--sea); letter-spacing: .15em; }
.g-desc { text-align: center; margin: 14px auto 8px; max-width: 640px; font-size: .92rem; color: var(--ink2); }
.g-more { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.stamps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.stp { aspect-ratio: 1; border: 3px dashed #d8cdb5; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: .72rem; font-weight: 700; color: #b9ae96; padding: 8px; line-height: 1.3; }
.stp b { font-size: 2rem; line-height: 1; filter: grayscale(1); opacity: .35; }
.stp.got { border: 3px solid var(--hibiscus); color: var(--hibiscus); background: #fff0f4; transform: rotate(-6deg); }
.stp.got b { filter: none; opacity: 1; }

/* 国際通り おみやげ大作戦（sh-*） */
.sh { overflow: hidden; }
.sh-bg { position: absolute; inset: 0; background: #234 center/cover; transition: filter .6s; }
.sh-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(10,14,40,.55)); }
.sh-chars { position: absolute; inset: 0; pointer-events: none; }
.sh-char { position: absolute; bottom: 0; height: 84%; max-width: 70%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.sh-char.right { right: 4%; }
@media (max-width: 700px) { .sh-char { height: 58%; left: 0; right: 0 !important; margin: 0 auto; bottom: 30%; } }
.sh-hud { position: absolute; top: 10px; left: 10px; right: 58px; z-index: 5; display: flex; gap: 6px; flex-wrap: wrap; }
.sh-hud > * { font: 900 .9rem var(--font); background: rgba(255,250,240,.95); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 3px 10px; box-shadow: 2px 2px 0 var(--ink); }
.sh-hud .late { background: var(--coral); color: #fff; }
.sh-memo-btn { cursor: pointer; }
.sh-ui { align-items: stretch; padding: 56px 10px 12px; flex-direction: column; justify-content: flex-end; }
.sh-ui .og-panel { align-self: center; margin: auto; }
.sh-title h2 { line-height: 1.15; }
.sh-box { width: min(100%, 760px); align-self: center; background: rgba(255,250,240,.97); color: var(--ink); border: var(--line); border-radius: 18px; box-shadow: 5px 5px 0 rgba(0,0,0,.4); padding: 12px 14px 8px; cursor: pointer; position: relative; margin-top: 16px; }
.sh-name { position: absolute; top: -14px; left: 14px; background: var(--hibiscus); color: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 0 12px; font-weight: 900; font-size: .8rem; }
.sh-text { font: 600 1.12rem/1.5 var(--en); min-height: 3em; margin-top: 4px; }
.sh-ja { font-size: .8rem; color: var(--ink2); }
.sh-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.sh-replay { border: 2px solid var(--ink); border-radius: 50%; width: 38px; height: 38px; background: var(--sun); cursor: pointer; }
.sh-next { font-size: .72rem; color: var(--ink2); opacity: 0; }
.sh-box.done .sh-next { opacity: 1; }
.sh-choices { width: min(100%, 760px); align-self: center; display: grid; gap: 8px; margin-top: 8px; }
.sh-hint, .sh-why { margin: 0; font-size: .82rem; font-weight: 700; background: rgba(255,244,199,.96); color: var(--ink); border-radius: 10px; padding: 4px 10px; border: 2px solid var(--ink); }
.sh-why { background: #ffe1e6; }
.sh-ch { text-align: left; font: 700 1.02rem var(--en); border: var(--line); border-radius: 14px; padding: 10px 14px; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); min-height: 48px; }
.sh-ch.ok { background: var(--leaf); color: #fff; }
.sh-ch.ng { background: #ffd6d6; text-decoration: line-through; opacity: .7; }
.sh-reqs { text-align: left; }
.sh-reqs h3, .sh-memo h3, .sh-pay h3 { text-align: center; margin-bottom: 8px; }
.sh-msg { display: grid; grid-template-columns: 42px 1fr 64px; gap: 10px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 8px; margin-bottom: 8px; }
.sh-msg .sh-av { font-size: 1.8rem; text-align: center; }
.sh-msg p { margin: 0; font-size: .88rem; line-height: 1.5; }
.sh-msg img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); }
.sh-memo { text-align: left; } .sh-memo p.done { color: var(--leaf); }
.sh-street { width: min(100%, 860px); align-self: center; display: grid; gap: 10px; }
.sh-sign { justify-self: center; font: 400 1.05rem var(--head); background: var(--sun); color: var(--ink); border: var(--line); border-radius: 99px; padding: 4px 18px; box-shadow: 3px 3px 0 var(--ink); text-align: center; }
.sh-shops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sh-shop { position: relative; display: flex; flex-direction: column; align-items: center; background: rgba(255,250,240,.96); color: var(--ink); border: var(--line); border-radius: 16px; padding: 8px 4px; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); font-family: var(--font); overflow: hidden; }
.sh-shop img { height: 90px; object-fit: contain; object-position: top; margin-bottom: 4px; }
.sh-shop b { font-size: .88rem; line-height: 1.25; } .sh-shop small { font: 600 .7rem var(--en); color: var(--sea); }
.sh-need { position: absolute; top: 6px; right: 6px; background: var(--hibiscus); color: #fff; font-size: .62rem; font-weight: 900; border-radius: 99px; padding: 0 6px; }
.sh-go { justify-self: center; }
.sh-shelf { width: min(100%, 860px); align-self: center; display: grid; gap: 8px; background: rgba(255,250,240,.9); border: var(--line); border-radius: 18px; padding: 10px; }
.sh-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; }
.sh-item { display: grid; gap: 1px; text-align: center; background: #fff; color: var(--ink); border: var(--line); border-radius: 14px; padding: 6px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); font-family: var(--font); }
.sh-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.sh-item b { font-size: .82rem; } .sh-item small { font: 600 .68rem var(--en); color: var(--sea); } .sh-item span { font-weight: 900; color: var(--hibiscus); font-size: .85rem; }
.sh-leave { justify-self: center; }
.sh-pay { max-width: 520px; }
.sh-tray { min-height: 64px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; background: #6b4a2b; border: 3px solid var(--ink); border-radius: 14px; padding: 8px; color: #fff; }
.sh-wallet { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sh-money-b { border: 2px solid var(--ink); cursor: pointer; font: 900 .85rem var(--font); color: var(--ink); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.sh-money-b small { font-size: .7rem; }
.sh-money-b.v1000 { width: 92px; height: 48px; border-radius: 6px; background: linear-gradient(135deg, #cfe3c8, #9fc59a); }
.sh-money-b.v500 { width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff1b8, #d6b44f); }
.sh-money-b.v100 { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffffff, #b9bec7); }
.sh-wallet .sh-money-b:disabled { opacity: .3; }
.sh-sum { font-weight: 700; margin: 8px 0; }
.sh-event { align-self: center; margin-bottom: auto; font: 400 1.05rem var(--head); background: var(--coral); color: #fff; border: var(--line); border-radius: 99px; padding: 4px 16px; box-shadow: 3px 3px 0 var(--ink); }
.sh-resreq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.sh-resreq div { border: 2px solid var(--ink); border-radius: 12px; padding: 4px; font-size: .72rem; font-weight: 700; background: #fff; }
.sh-resreq div.ok { background: var(--leaf2); } .sh-resreq div.ng { background: #ffe1e6; }
.sh-resreq img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
@media (max-width: 600px) { .sh-text { font-size: 1rem; } .sh-shop img { height: 64px; } .sh-ch { font-size: .95rem; padding: 9px 12px; } }

/* ---------- サイト内検索（ヘッダーの 🔍） ---------- */
.searchbtn { flex: none; width: 44px; height: 44px; border: var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-s); padding: 0; display: flex; align-items: center; justify-content: center; }
.searchbtn svg { width: 24px; height: 24px; }
@media (max-width: 480px) { .searchbtn { margin-left: auto; } .searchbtn + .menubtn { margin-left: 0; } }
.searchbox { position: fixed; inset: 0; z-index: 320; }
.searchbox[hidden] { display: none; }
.searchbox .scrim { position: absolute; inset: 0; }
.searchbox.open .scrim { opacity: 1; }
.sbpanel { position: relative; max-width: 640px; margin: 0 auto; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; background: var(--paper); border: var(--line); border-top: 0; border-radius: 0 0 20px 20px; box-shadow: var(--shadow-s); transform: translateY(-110%); transition: transform .25s cubic-bezier(.22,1,.36,1); padding-top: env(safe-area-inset-top); }
.searchbox.open .sbpanel { transform: none; }
.sbform { display: flex; gap: 8px; padding: 12px 12px 10px; border-bottom: 3px dashed #e4dccb; }
.sbform input { flex: 1; min-width: 0; font: 600 1rem var(--font); border: var(--line); border-radius: 99px; padding: 10px 16px; background: #fff; color: var(--ink); }
.sbclose { flex: none; width: 44px; height: 44px; border: var(--line); border-radius: 12px; background: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-s); color: var(--ink); }
.sbres { overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px calc(14px + env(safe-area-inset-bottom)); min-height: 90px; }
.sbg { font-weight: 900; font-size: .8rem; color: var(--sea); margin: 12px 0 4px; }
.sbitem { display: flex; align-items: center; gap: 10px; padding: 9px 4px; text-decoration: none; color: var(--ink); border-bottom: 1px solid #e4dccb; }
.sbitem:active, .sbitem:hover { background: var(--sun); }
.sbe { flex: none; width: 32px; text-align: center; font-size: 1.4rem; }
.sbt { display: flex; flex-direction: column; min-width: 0; font-weight: 700; }
.sbt small { font-weight: 500; color: var(--ink2); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbmsg { color: var(--ink2); font-size: .9rem; padding: 14px 4px; margin: 0; }

/* ==========================================================
   アニメ調のヒーロー・カード（英語コーナー・エンタメ図鑑）
   ========================================================== */
.ehero { position: relative; margin: 8px 0 26px; }
.ehero .aban { margin: 0; }
.aban { margin: 0 0 18px; border: var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--sea3); aspect-ratio: 3 / 2; }
.aban img { width: 100%; height: 100%; object-fit: cover; }
.aban.mid { aspect-ratio: 21 / 9; }
.ehero-t { position: relative; margin: -42px 12px 0; background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 16px 18px 18px; z-index: 1; }
.ehero:not(:has(.aban)) .ehero-t { margin: 0; }
.ehero-t h1 { margin: 4px 0 8px; line-height: 1.3; }
.ehero-t h1 small { display: inline-block; font-family: var(--en); font-size: .5em; color: var(--sea); }
.ehero-t .lead { margin: 0 0 6px; font-size: 1rem; }
.ehero.sm .ehero-t h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.kicker { display: inline-block; font-family: var(--en); font-weight: 700; font-size: .72rem; letter-spacing: .12em; background: var(--ink); color: var(--sun); border-radius: 99px; padding: 2px 12px; transform: rotate(-2deg); }
mark { background: linear-gradient(transparent 55%, rgba(255,196,51,.85) 55%); color: inherit; padding: 0 2px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stats span { border: 2px solid var(--ink); border-radius: 99px; padding: 2px 12px; font-weight: 700; font-size: .82rem; background: var(--sand); }
.stats span:nth-child(3n+2) { background: var(--sea3); } .stats span:nth-child(3n) { background: #ffe1e6; }
.stats b { font-family: var(--en); font-size: 1.15rem; color: var(--hibiscus); margin-right: 2px; }
@media (min-width: 820px) {
  .ehero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; }
  .ehero-t { margin: 0 0 0 -48px; }
  .ehero.sm { grid-template-columns: 1fr; } .ehero.sm .ehero-t { margin: -42px 16px 0; }
}

.agrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.agrid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.agrid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.acard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.acard:hover { transform: translate(-2px, -3px) rotate(-.5deg); box-shadow: 7px 8px 0 var(--ink); }
.acard:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.acard[hidden] { display: none; }
.aimg { position: relative; aspect-ratio: 3 / 2; background: var(--sea3) center / cover; border-bottom: var(--line); display: flex; align-items: center; justify-content: center; }
.aimg .aem { font-size: 3.2rem; }
.atag { position: absolute; top: 10px; left: 10px; background: var(--hibiscus); color: #fff; font-weight: 900; font-size: .75rem; border: 2px solid var(--ink); border-radius: 99px; padding: 1px 10px; transform: rotate(-4deg); box-shadow: 2px 2px 0 var(--ink); }
.abd { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.abd b { font-family: var(--head); font-weight: 400; font-size: 1.05rem; line-height: 1.35; }
.abd small { font-family: var(--en); color: var(--sea); font-weight: 600; font-size: .8rem; }
.acnt { font-size: .82rem; color: var(--ink2); line-height: 1.5; margin-top: 2px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0 0 18px; }
.steps div { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: .92rem; }
.steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--en); }

.eng { position: relative; }
.ribbon { display: inline-block; margin: -4px 0 8px; background: var(--sun); border: 2px solid var(--ink); border-radius: 10px; padding: 2px 12px; font-weight: 900; font-size: .85rem; box-shadow: 2px 2px 0 var(--ink); }
.ribbon.blue { background: var(--sea2); color: #fff; }
.pattern .pt, .gl .pt { background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; margin: 4px 0 10px; }
.pt .e { font-family: var(--en); font-weight: 700; font-size: 1.25rem; color: var(--sun); line-height: 1.4; }
.pt .j { font-size: .9rem; }
.trivia { background: #fff8dc; }

/* 瞬間英作文 */
.shunkan { text-align: center; padding: 16px; background: linear-gradient(160deg, #fff 0%, #fff4c7 100%); }
.sk-lv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 12px; }
@media (min-width: 560px) { .sk-lv { grid-template-columns: repeat(4, 1fr); } }
.sk-lv button { font: 700 .82rem var(--font); border: 2px solid var(--ink); border-radius: 12px; padding: 6px 4px; background: #fff; cursor: pointer; color: var(--ink); }
.sk-lv button[aria-pressed="true"] { background: var(--ink); color: var(--sun); }
.sk-top { display: flex; justify-content: space-between; font-weight: 900; font-family: var(--en); }
.sk-score b { color: var(--hibiscus); }
.sk-timer { height: 10px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: #fff; margin: 6px 0 14px; }
.sk-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--hibiscus), var(--sun)); }
.sk-ja { font-family: var(--head); font-size: clamp(1.25rem, 5vw, 1.7rem); line-height: 1.5; min-height: 3.2em; display: flex; align-items: center; justify-content: center; }
.sk-en { font-family: var(--en); font-weight: 700; font-size: clamp(1.2rem, 4.6vw, 1.55rem); color: var(--sea); background: #fff; border: 2px dashed var(--sea2); border-radius: 14px; padding: 10px; margin: 8px 0 4px; }
.sk-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.sk-btns .btn { min-width: 140px; }
.sk-btns [hidden] { display: none; }
.sk-list { margin-top: 14px; }
.sk-list summary { cursor: pointer; }
.sk-list[open] summary { margin-bottom: 10px; }

/* これ英語でなんて言う？ */
.ntgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.nt { background: #fff; border: var(--line); border-radius: 16px; box-shadow: var(--shadow-s); cursor: pointer; overflow: hidden; transition: transform .15s; }
.nt[hidden] { display: none; }
.nt:active { transform: scale(.98); }
.nt-q { position: relative; padding: 14px 14px 12px; font-family: var(--head); font-size: 1.15rem; line-height: 1.4; }
.nt-q small { display: block; font-family: var(--font); font-size: .72rem; color: var(--ink2); margin-top: 4px; }
.nt-c { margin-right: 6px; }
.nt-a { display: none; border-top: 2px dashed var(--ink); background: var(--sea3); padding: 10px 14px 12px; }
.nt-a .e { font-family: var(--en); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.nt-a p { margin: 4px 0 0; font-size: .85rem; }
.nt.open .nt-a { display: block; }
.nt.open .nt-q small { display: none; }
.nt:nth-child(4n+1) .nt-q { background: #fff4c7; } .nt:nth-child(4n+2) .nt-q { background: #ffe1e6; } .nt:nth-child(4n+3) .nt-q { background: #def5e6; } .nt:nth-child(4n) .nt-q { background: #ece3ff; }

/* 文法 */
.gnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 6px; margin-bottom: 18px; }
.gnav a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 6px 10px; font-weight: 700; font-size: .88rem; }
.gnav b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); display: flex; align-items: center; justify-content: center; font-family: var(--en); font-size: .8rem; }
.gl { scroll-margin-top: 70px; }
.gl h2 { font-size: 1.35rem; margin-top: 4px; }
.ngok { margin-top: 12px; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; background: #fffaf0; }
.ngok .ng, .ngok .ok { display: flex; gap: 8px; align-items: baseline; font-family: var(--en); font-weight: 700; }
.ngok .ng b { color: var(--coral); } .ngok .ok b { color: var(--leaf); }
.ngok .ng span { text-decoration: line-through; text-decoration-color: var(--coral); color: var(--ink2); }
.ngok p { margin: 4px 0 0; font-size: .85rem; }

/* エンタメ図鑑 */
.jump { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 4px; scrollbar-width: none; }
.jump a { flex: none; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 4px 14px; font-weight: 700; font-size: .88rem; box-shadow: 2px 2px 0 var(--ink); }
#songs, #stars, #works, #talk { scroll-margin-top: 70px; }
.songs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.song { position: relative; background: #fff; border: var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 70px; }
.song-n { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--sun); border: 2px solid var(--ink); border-radius: 10px; font-family: var(--en); font-weight: 700; padding: 0 8px; }
.yt { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-bottom: var(--line); background: #222 center / cover; cursor: pointer; position: relative; padding: 0; }
.ytp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 14px; background: #ff0033; color: #fff; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.yt:hover .ytp { transform: translate(-50%, -50%) scale(1.08); }
.yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-bottom: var(--line); }
.ytc { font-size: .72rem; color: var(--ink2); margin: 4px 14px 0; }
.ytlink { margin: 46px 14px 0; }
.song-bd { padding: 8px 14px 14px; }
.song-bd h3 { margin: 4px 0 0; }
.song-a { font-weight: 700; color: var(--hibiscus); margin: 0 0 6px; }
.song-a span { color: var(--ink2); font-weight: 500; font-size: .85rem; margin-left: 8px; }
.song-bd p { font-size: .92rem; line-height: 1.7; margin: 6px 0 0; }
.song-bd .tv { background: #fff8dc; border-radius: 10px; padding: 6px 10px; }
.song .chips, .star .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.en-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; background: var(--sea3); border-radius: 12px; padding: 8px 10px; font-size: .92rem; line-height: 1.5; }
.stars { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.star { display: flex; gap: 12px; background: #fff; border: var(--line); border-radius: 18px; box-shadow: var(--shadow-s); padding: 14px; }
.star-av { flex: none; width: 58px; height: 58px; border-radius: 50%; border: var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: linear-gradient(135deg, var(--sun), var(--hibiscus)); }
.star:nth-child(3n+2) .star-av { background: linear-gradient(135deg, var(--sea3), var(--sea2)); } .star:nth-child(3n) .star-av { background: linear-gradient(135deg, #d6f5e3, #b8a3f0); }
.star-bd { min-width: 0; }
.star-bd h3 { margin: 4px 0 0; font-size: 1.1rem; }
.star-bd h3 small { font-family: var(--en); color: var(--sea); font-size: .75rem; }
.star-bd p { font-size: .9rem; line-height: 1.7; margin: 4px 0 0; }
.star-h { font-weight: 700; color: var(--ink2); font-size: .82rem !important; }
.chip.k { background: var(--sand); }
.works { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.work { background: #fff; border: var(--line); border-radius: 18px; box-shadow: var(--shadow-s); padding: 14px; }
.work-t { display: flex; gap: 10px; align-items: center; }
.work-em { flex: none; width: 50px; height: 50px; border-radius: 14px; border: var(--line); background: var(--sun); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.work h3 { margin: 4px 0 0; font-size: 1.05rem; }
.work p { font-size: .9rem; line-height: 1.7; margin: 8px 0 0; }

/* 本当はゾクッとする話（特集） */
.feat { position: relative; background: radial-gradient(circle at 80% 0%, #2b3a63 0%, #121a2e 60%); color: #f3f0e6; border: var(--line); border-radius: 22px; box-shadow: 6px 6px 0 var(--hibiscus); padding: 20px 18px; overflow: hidden; scroll-margin-top: 70px; }
.feat::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0); background-size: 18px 18px; pointer-events: none; }
.feat > * { position: relative; }
.feat .kicker { background: var(--hibiscus); color: #fff; }
.feat h2 { color: #fff; margin: 10px 0 8px; text-shadow: 2px 2px 0 #000; }
.feat-hook { font-size: 1.02rem; }
.feat-more summary { cursor: pointer; display: inline-block; font-weight: 900; background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 6px 16px; box-shadow: 3px 3px 0 #000; list-style: none; }
.feat-more summary::-webkit-details-marker { display: none; }
.feat-more[open] summary { display: none; }
.feat-ch { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.feat-ch li { border-left: 4px solid var(--hibiscus); padding: 2px 0 2px 14px; }
.feat-ch h3 { color: var(--sun); font-size: 1.05rem; margin: 0 0 4px; }
.feat-ch p { margin: 0; line-height: 1.85; }
.feat-en { margin-top: 16px; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px; }
.feat-en h3 { margin: 0 0 8px; }
.feat-note { font-size: .8rem; opacity: .8; margin: 12px 0 4px; }
.feat .sources { color: #f3f0e6; } .feat .sources a { color: var(--sea3); }

/* ==========================================================
   英語日記 × AI ちばりよ〜はらだくん
   ========================================================== */
.hk { display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 16px; background: linear-gradient(135deg, #d9f4f7, #fff); }
.hk-av { flex: none; width: 96px; height: 96px; border-radius: 50%; border: var(--line); object-fit: cover; object-position: 50% 30%; background: var(--sea2); }
.hk-bub { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 8px 12px; min-width: 0; }
.hk-bub b { font-family: var(--head); font-weight: 400; color: var(--sea); font-size: .9rem; }
.hk-bub p { margin: 2px 0 0; font-size: .92rem; line-height: 1.7; }
.dy { padding: 14px; }
.dy-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.dy-mode button, .dy-days button { font: 700 .85rem var(--font); border: 2px solid var(--ink); border-radius: 12px; padding: 7px 4px; background: #fff; cursor: pointer; color: var(--ink); }
.dy-mode button[aria-pressed="true"] { background: var(--ink); color: var(--sun); }
.dy-days { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.dy-days button { padding: 4px 12px; border-radius: 99px; }
.dy-days button[aria-pressed="true"] { background: var(--sun); }
.dy-days[hidden], .dy-topic[hidden], .dy-guide[hidden], [data-for][hidden], .dh-day[hidden] { display: none; }
.dy-topic { margin-bottom: 10px; font-weight: 700; font-size: .9rem; }
.dy-topic select { font: 600 .95rem var(--font); border: 2px solid var(--ink); border-radius: 10px; padding: 4px 8px; background: #fff; max-width: 100%; }
.dy-guide { font-size: .9rem; }
.dy code, .dh-q code, .dh-steps code { font-family: var(--en); font-weight: 600; background: var(--sand); border-radius: 6px; padding: 0 6px; color: var(--ink); }
.dy-hint { border: 2px dashed var(--sea2); border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; background: #f6fdfe; }
.dy-hint summary { cursor: pointer; font-weight: 900; }
.dh-t { font-weight: 900; margin: 8px 0 4px; font-size: .92rem; color: var(--sea); }
.dh-q, .dh-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: .88rem; }
.dh-q li span, .dh-steps li small { display: block; color: var(--ink2); font-size: .82rem; }
.dh-q li code, .dh-steps li code { display: inline-block; margin-top: 2px; }
.dh-feel { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; font-size: .82rem; align-items: center; }
.dh-feel > span { font-weight: 700; }
.dh-feel .chip { cursor: pointer; font-size: .76rem; }
.dh-feel .chip [lang="en"] { color: var(--hibiscus); font-weight: 700; }
#dytext { width: 100%; font: 500 1.05rem/1.7 var(--en); border: var(--line); border-radius: 14px; padding: 12px; background: #fffef8; color: var(--ink); resize: vertical; min-height: 180px; }
#dytext:focus { outline: 3px solid var(--sun); outline-offset: 2px; }
.dy-meta { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; margin: 4px 2px 10px; }
.dy-btns { display: grid; gap: 8px; }
.btn.big { font-size: 1.1rem; padding: 12px 18px; }
.btn:disabled { opacity: .7; cursor: wait; }
.dy-note { font-size: .78rem; color: var(--ink2); margin: 10px 0 0; line-height: 1.6; }
.dy-res { margin-top: 16px; border-top: 3px dashed var(--ink); padding-top: 14px; scroll-margin-top: 70px; }
.hk-say { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.hk-say img { flex: none; width: 64px; height: 64px; border-radius: 50%; border: var(--line); object-fit: cover; object-position: 50% 30%; background: var(--sea2); }
.hk-say .hk-bub { background: #fff8dc; }
.dots { display: inline-flex; gap: 4px; margin-left: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hibiscus); animation: dotb 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotb { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-5px); opacity: 1; } }
.dy-score { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ring { --p: 0; flex: none; width: 92px; height: 92px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: conic-gradient(var(--hibiscus) calc(var(--p) * 1%), #eee 0); border: var(--line); position: relative; }
.ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.ring b, .ring small { position: relative; line-height: 1; }
.ring b { font-family: var(--en); font-size: 1.9rem; color: var(--hibiscus); }
.ring small { font-size: .7rem; font-weight: 700; }
.rank { flex: none; width: 58px; height: 58px; border-radius: 14px; border: var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 2rem; transform: rotate(-8deg); box-shadow: var(--shadow-s); background: #fff; }
.rank.rS { background: linear-gradient(135deg, #ffe14d, #ff8a3d); } .rank.rA { background: var(--sea3); } .rank.rB { background: var(--leaf2); } .rank.rC { background: #ece3ff; }
.dy-gt { flex: 1 1 200px; font-size: .9rem; }
.dy-gt p { margin: 0 0 4px; line-height: 1.6; }
.dy-blk { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.dy-blk h3 { font-size: 1rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.dy-blk h3 .btn { margin-left: auto; }
.say-tts { border: 2px solid var(--ink); background: var(--sun); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: .9rem; padding: 0; }
.dy-corr { font-size: 1.05rem; line-height: 1.75; margin: 0; }
.dy-fix { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.dy-fix .b { text-decoration: line-through; text-decoration-color: var(--coral); color: var(--ink2); }
.dy-fix .a { font-weight: 700; color: var(--leaf); }
.dy-fix p { margin: 2px 0 0; font-size: .85rem; }
.dy-up { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dy-up li { background: var(--sand); border-radius: 10px; padding: 6px 10px; }
.dy-up b { display: block; font-size: 1rem; }
.dy-up span { font-size: .82rem; }
.dy-reply { background: #f0fbfc; }
.dy-reply p[lang="en"] { font-size: 1.02rem; line-height: 1.7; margin: 0; }
.dy-reply summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--sea); }

/* ==========================================================
   ワークシート（画面と印刷）
   ========================================================== */
.ws-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.ws-others { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.sheet { background: #fff; border: var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 18px 18px 10px; color: #111; font-size: .92rem; line-height: 1.6; }
.ws-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #111; padding-bottom: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ws-head h1 { font-size: 1.35rem; margin: 2px 0 0; }
.ws-k { font-family: var(--en); font-weight: 700; font-size: .7rem; letter-spacing: .12em; color: var(--sea); }
.ws-en { font-family: var(--en); font-size: .85rem; color: #555; }
.ws-name { display: flex; gap: 6px; font-size: .8rem; }
.ws-name span { border-bottom: 1.5px solid #111; min-width: 46px; padding: 0 4px; text-align: right; }
.ws-name .nm { min-width: 120px; }
.ws-box { border: 1.5px solid #111; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; break-inside: avoid; }
.ws-box > b, .ws-bank > b, .ws-check > b, .ws-teacher > b { display: block; font-weight: 900; margin-bottom: 4px; }
.ws-q { margin: 6px 0 2px; }
.ws-q p { margin: 0; }
.ws-q p span { font-family: var(--en); color: #555; font-size: .82rem; margin-left: 4px; }
.ws-start { font-family: var(--en); color: #888; font-size: .82rem; }
.ws-small { font-size: .8rem; color: #444; margin: 2px 0; }
.ws-lines i { display: block; height: 30px; border-bottom: 1.5px dotted #777; }
.ws-fill { font-family: var(--en); font-size: 1rem; margin: 10px 0; }
.ws-fill u { display: inline-block; min-width: 46%; border-bottom: 1.5px solid #111; text-decoration: none; }
.ws-bank { display: flex; flex-wrap: wrap; gap: 4px 10px; border: 1.5px dashed #777; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: .78rem; }
.ws-bank > b { width: 100%; margin: 0; }
.ws-bank [lang="en"] { font-weight: 700; }
.ws-check { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; margin-bottom: 10px; }
.ws-check > b { width: 100%; margin: 0; }
.ws-teacher { border: 1.5px solid #111; border-radius: 10px; min-height: 70px; padding: 6px 12px; font-size: .8rem; margin-bottom: 8px; }
.ws-rule { background: #fff4c7; border: 1.5px solid #111; border-radius: 10px; padding: 8px 12px; font-size: .82rem; margin-bottom: 10px; }
.ws-rule b { display: block; }
.ws-script { font-family: var(--en); font-size: .98rem; margin: 2px 0; }
.ws-post { display: grid; grid-template-columns: 1.6fr 1fr; border: 2px solid #111; border-radius: 8px; padding: 12px; gap: 12px; margin-bottom: 10px; min-height: 300px; }
.ws-post-l p { font-family: var(--en); margin: 4px 0; }
.ws-post-l u { display: inline-block; min-width: 60%; border-bottom: 1.5px solid #111; text-decoration: none; }
.ws-post-r { border-left: 1.5px dashed #777; padding-left: 12px; display: flex; flex-direction: column; align-items: flex-end; }
.ws-stamp { width: 70px; height: 84px; border: 1.5px dashed #777; display: flex; align-items: center; justify-content: center; font-family: var(--en); font-size: .7rem; color: #888; }
.ws-bingo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 12px; }
.ws-bingo button { min-height: 84px; border: 2px solid #111; border-radius: 10px; background: #fff; font: 700 .68rem/1.25 var(--en); padding: 4px 3px; overflow-wrap: anywhere; cursor: pointer; color: #111; position: relative; overflow: hidden; }
.ws-bingo button.on { background: #ffe1e6; }
.ws-bingo button.on::after { content: ''; position: absolute; inset: 10%; border: 4px solid var(--hibiscus); border-radius: 50%; opacity: .85; }
.ws-bingo:not([data-bingo="0"])::before { content: '🎉 BINGO! × ' attr(data-bingo); grid-column: 1 / -1; text-align: center; font-family: var(--head); color: var(--hibiscus); font-size: 1.2rem; }
.ws-test { padding-left: 1.6em; display: grid; grid-template-columns: 1fr; gap: 0 18px; }
.ws-test li p { margin: 6px 0 0; }
.ws-test .ws-lines i { height: 26px; }
.ws-ans { border-top: 2px dashed #777; margin-top: 14px; padding-top: 8px; font-size: .78rem; }
.ws-ans ol { columns: 2; margin: 4px 0 0; padding-left: 1.6em; }
.ws-foot { text-align: right; font-size: .68rem; color: #777; margin: 6px 0 0; }
@media (min-width: 700px) { .ws-test { grid-template-columns: 1fr 1fr; } }

@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff !important; padding: 0 !important; font-size: 11pt; }
  header.top, .tabbar, footer, .totop, .todaybar, .drawer, .searchbox, .noprint, .sr { display: none !important; }
  main .wrap { max-width: none; padding: 0; }
  .sheet { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  .ws-ans { break-before: page; border-top: 0; }
  .ws-bingo button { font-size: 9pt; }
  .ws-bingo::before { display: none !important; }
  a { color: #111; text-decoration: none; }
}
.dy-until { text-align: center; font-weight: 700; font-size: .9rem; background: #fff4c7; border: 2px solid var(--ink); border-radius: 99px; padding: 4px 14px; margin: 0 0 12px; }

/* ---------- トップのマスコット：AIチバリヨーはらだくん ---------- */
.hk-hero { position: absolute; right: max(16px, calc((100% - 1080px) / 2 + 8px)); bottom: 78px; z-index: 3; width: 270px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.hk-float { pointer-events: auto; }
.hk-hero-btn { display: block; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hk-hero-btn img { width: 250px; height: auto; filter: drop-shadow(4px 6px 0 rgba(23,33,58,.55)); transform-origin: 50% 90%; }
.hk-hero-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 20px; }
.hk-hero-bub { position: absolute; bottom: calc(100% - 26px); right: 40%; width: 250px; background: #fff; color: var(--ink); border: var(--line); border-radius: 18px; box-shadow: var(--shadow-s); padding: 10px 14px; font-size: .9rem; font-weight: 700; line-height: 1.6; text-shadow: none; pointer-events: auto; transform-origin: 80% 100%; z-index: 2; }
.hk-hero-bub::after { content: ''; position: absolute; right: 26px; bottom: -14px; width: 20px; height: 20px; background: #fff; border-right: var(--line); border-bottom: var(--line); transform: rotate(45deg); }
.hk-hero-bub [lang="en"] { color: var(--sea); }
.hk-hero-bub a { color: var(--hibiscus); }
.hk-hero-tag { pointer-events: auto; margin-top: 6px; background: var(--sun); color: var(--ink); text-decoration: none; font-weight: 900; font-size: .82rem; border: 2px solid var(--ink); border-radius: 99px; padding: 3px 12px; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; text-shadow: none; }
.hk-spark { position: absolute; left: 50%; top: 45%; color: var(--sun); font-style: normal; font-size: 1.4rem; text-shadow: 1px 1px 0 var(--ink); pointer-events: none; }
@media (max-width: 1100px) { .hk-hero { width: 210px; } .hk-hero-btn img { width: 190px; } }
@media (max-width: 760px) {
  .hk-hero { top: 150px; bottom: auto; right: 2px; width: 104px; }
  .hk-hero-btn img { width: 94px; }
  .hero:has(.hk-hero) .en-sub, .hero:has(.hk-hero) .wrap > p:not(.en-sub) { padding-right: 92px; }
  .hk-hero-tag { display: none; }
  .hk-hero-bub { top: calc(100% + 6px); bottom: auto; right: 6px; width: min(240px, 72vw); font-size: .82rem; }
  .hk-hero-bub::after { top: -12px; bottom: auto; transform: rotate(225deg); }
}
@media (max-width: 340px) { .hk-hero { top: 184px; } }
