/* 手話らぼ：配色はピンク・水色・ラベンダー。文字は Zen Maru Gothic。 */
:root {
  --ink: #3A2E4A;
  --muted: #6B5C7B;
  --bg: #FFFBFD;
  --stage: #F4F0F9;
  --pink: #C2407C;
  --pink-ink: #A8326A;
  --pink-dark: #7E2450;
  --pink-tint: #FFF1F6;
  --pink-line: #F6E3EE;
  --pink-border: #F3D3E2;
  --sky-ink: #1F6E9C;
  --sky-tint: #E2F1FB;
  --lav-tint: #F1EBFA;
  --radius: 28px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif; line-height: 1.75; }
img, video { max-width: 100%; display: block; }
a { color: var(--pink-ink); }
a:hover { color: var(--pink-dark); }
h1, h2, h3 { line-height: 1.35; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 17px; }
.deco { flex: none; }
:focus-visible { outline: 3px solid #9CCDEB; outline-offset: 2px; }

/* ヘッダー */
.site-header { background: #fff; border-bottom: 2px solid var(--pink-line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 10px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-right: auto; color: var(--ink); text-decoration: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 999px; background: var(--pink); display: flex; align-items: center; justify-content: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 700; font-size: 21px; letter-spacing: 0.04em; }
.logo-tag { font-size: 11px; font-weight: 500; color: var(--muted); }
.header-search { position: relative; flex: 1 1 140px; max-width: 280px; min-width: 0; }
.header-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; font-size: 15px; color: var(--ink); background: #FFF4F8; border: 2px solid var(--pink-border); border-radius: 999px; }
.search-icon { position: absolute; left: 14px; top: 13px; color: var(--pink-ink); line-height: 0; }
.header-nav { flex: 1 1 100%; display: flex; gap: 6px; overflow-x: auto; font-size: 14px; font-weight: 700; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 700; }
.chip-pink { background: var(--pink-tint); }
.chip-sky { background: #EEF7FD; }
.chip-lav { background: #F6F1FC; }
.chip-white { background: #fff; font-size: 14px; }

/* フッター */
.site-footer { background: var(--ink); color: #EFE7F4; margin-top: 72px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.footer-about { max-width: 30em; }
.footer-about strong { font-size: 20px; color: #fff; }
.footer-about p { margin: 6px 0 0; font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; align-content: flex-start; max-width: 520px; }
.site-footer nav a { color: #fff; }

/* トップ */
.hero { position: relative; overflow: hidden; background: var(--pink-tint); }
.hero-bubble { position: absolute; border-radius: 999px; }
.hero-bubble-a { width: 420px; height: 420px; background: var(--lav-tint); right: -80px; top: -120px; }
.hero-bubble-b { width: 220px; height: 220px; background: var(--sky-tint); left: -60px; bottom: -90px; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
.hero-text { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); letter-spacing: 0.02em; }
.hero .lead { margin: 0; color: var(--muted); max-width: 32em; }
.pill-label { margin: 0; align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 6px 16px; background: #fff; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--pink-ink); }
.hero-search { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.hero-search input { flex: 1 1 240px; min-width: 0; height: 58px; padding: 0 24px; font-size: 17px; color: var(--ink); background: #fff; border: 2px solid #F3C6DA; border-radius: 999px; }
.hero-search button { height: 58px; padding: 0 30px; font-size: 17px; font-weight: 700; color: #fff; background: var(--pink); border: 0; border-radius: 999px; cursor: pointer; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-visual { flex: 1 1 300px; max-width: 400px; position: relative; display: block; color: var(--ink); text-decoration: none; margin: 0 auto 22px; }
.hero-frame { display: block; background: var(--stage); border: 6px solid #fff; border-radius: 40px; overflow: hidden; aspect-ratio: 27 / 32; box-shadow: 0 12px 32px rgba(194, 64, 124, 0.14); }
.hero-frame video { width: 100%; height: 100%; object-fit: cover; }
.hero-star-a { position: absolute; left: -14px; top: 28px; z-index: 1; }
.hero-star-b { position: absolute; right: -6px; top: 90px; z-index: 1; }
.hero-name { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 22px 10px 12px; background: #fff; border-radius: 999px; box-shadow: 0 6px 18px rgba(58, 46, 74, 0.12); white-space: nowrap; font-weight: 700; font-size: 18px; }
.play-dot { width: 34px; height: 34px; border-radius: 999px; background: var(--pink); display: flex; align-items: center; justify-content: center; }

.block { padding-top: 64px; }
.block-sm { margin-top: 48px; }
.section-title { margin: 0 0 20px; display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.section-head .section-title { margin-bottom: 12px; }
.more { font-weight: 700; font-size: 15px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cat-card { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.cat-thumb { flex: none; width: 64px; height: 64px; border-radius: 999px; overflow: hidden; background: #fff; }
.cat-thumb img { width: 100%; height: 130%; object-fit: cover; object-position: center top; }
.cat-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.cat-name { font-size: 20px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.cat-count { font-size: 14px; }
.cat-words { font-size: 13px; color: var(--muted); }
.tone-pink { background: #FFF1F6; } .tone-pink .cat-count, .tag.tone-pink { color: #A8326A; }
.tone-sky { background: #EEF7FD; } .tone-sky .cat-count, .tag.tone-sky { color: #1F6E9C; }
.tone-lav { background: #F6F1FC; } .tone-lav .cat-count, .tag.tone-lav { color: #6A4A9C; }
.tone-peach { background: #FFF4EA; } .tone-peach .cat-count, .tag.tone-peach { color: #96490F; }
.tone-mint { background: #EEF8F3; } .tone-mint .cat-count, .tag.tone-mint { color: #1E6E50; }
.tone-lemon { background: #FDF9E7; } .tone-lemon .cat-count, .tag.tone-lemon { color: #7A5E0A; }

.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 16px; }
.word-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.thumb { display: block; background: var(--stage); border-radius: var(--radius); overflow: hidden; aspect-ratio: 27 / 32; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.word-card-text { display: flex; flex-direction: column; line-height: 1.4; padding: 0 6px; }
.word-card-name { font-size: 18px; font-weight: 700; }
.word-card-sub { font-size: 13px; color: var(--muted); }
.word-card:hover .word-card-name { color: var(--pink-ink); }

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 28px; border-radius: 32px; }
.band h2 { margin: 0 0 4px; font-size: 24px; }
.band p { margin: 0; }
.band-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.band-talk { margin-top: 56px; }

.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 15px; }
.btn-white { background: #fff; color: var(--sky-ink); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { color: #fff; background: var(--pink-ink); }
.btn-sky { background: var(--sky-tint); color: var(--sky-ink); }
.btn-outline { background: #fff; border: 2px solid #F3C6DA; color: var(--pink-ink); min-height: 44px; }

.talk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.talk-card { padding: 22px; background: #fff; border: 2px solid var(--pink-line); border-radius: var(--radius); }
.talk-card h3 { margin: 0; font-size: 19px; }
.talk-card p { margin: 2px 0 12px; font-size: 14px; }
.talk-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.talk-line { display: flex; align-items: center; gap: 10px; }
.talk-who { flex: none; font-size: 13px; color: var(--muted); width: 3em; }
.talk-words { display: flex; flex-wrap: wrap; gap: 6px; }
.talk-word { padding: 4px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; }
.talk-a .talk-word { background: #FFE6F0; color: var(--pink-ink); }
.talk-b .talk-word { background: var(--sky-tint); color: var(--sky-ink); }

/* 語のページ */
.page, .word-page { padding-top: 16px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.word-top { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-start; }
.player { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.view-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; width: 100%; max-width: 480px; background: var(--lav-tint); border-radius: 999px; }
.view-tabs button { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 44px; padding: 0 6px; font-size: 15px; font-weight: 700; white-space: nowrap; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: #4F4260; }
.view-tabs button[aria-pressed="true"] { background: #fff; color: var(--pink-ink); box-shadow: 0 2px 8px rgba(106, 74, 156, 0.15); }
.view-labels { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: -6px; }
.view-labels[hidden] { display: none; }
.stage { position: relative; background: var(--stage); border-radius: 36px; overflow: hidden; display: flex; justify-content: center; }
.stage video { width: 100%; aspect-ratio: 27 / 16; object-fit: cover; }
.stage[data-stage="front"] video, .stage[data-stage="side"] video, .stage[data-stage="spin"] video { max-width: 440px; aspect-ratio: 27 / 32; }
.stage.is-mirror video { transform: scaleX(-1); }
.spin-note { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 18px; background: #fff; border-radius: 20px; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.spin-note[hidden] { display: none; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 10px 14px; background: #fff; border: 2px solid var(--pink-line); border-radius: 32px; }
.play { flex: none; width: 52px; height: 52px; border: 0; border-radius: 999px; background: var(--pink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.play .icon-play { display: none; }
.play.is-paused .icon-play { display: block; }
.play.is-paused .icon-pause { display: none; }
.speed { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 6px; }
.speed-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.speed-btn.slow { background: #EEF8F3; }
.speed-btn.fast { background: var(--pink-tint); }
.speed-track { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.speed-track input { width: 100%; height: 28px; margin: 0; accent-color: var(--pink); cursor: pointer; }
.speed-ticks { display: flex; justify-content: space-between; padding: 0 4px; font-size: 12px; color: var(--muted); line-height: 1.2; }
.speed-name { flex: none; min-width: 96px; text-align: center; padding: 6px 14px; background: var(--pink-tint); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--pink-ink); }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 700; border-radius: 999px; cursor: pointer; border: 2px solid var(--pink-border); background: #fff; color: var(--ink); }
.toggle[aria-pressed="true"] { border-color: var(--pink); background: var(--pink); color: #fff; }
.player > p { margin: 0; }

.word-info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tag { align-self: flex-start; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; }
.word-info h1 { margin: 0; font-size: 44px; }
.word-info > p { margin: 0; }
.points { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.point { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 14px 18px; background: #fff; border: 2px solid var(--pink-line); border-radius: 22px; }
.point dt { flex: 0 0 64px; font-weight: 700; color: var(--pink-ink); }
.point dd { margin: 0; flex: 1 1 180px; }
.tip { padding: 14px 18px; background: #FFF4D9; border-radius: 22px; display: flex; gap: 12px; align-items: flex-start; }
.tip p { margin: 0; font-size: 15px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; max-width: 760px; }
.step { position: relative; padding: 6px; background: #fff; border: 2px solid var(--pink-line); border-radius: var(--radius); }
.step .thumb { border-radius: 20px; }
.step-n { position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.prev-next { margin-top: 48px; display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 2px dashed var(--pink-border); }
.prev-next a { display: flex; flex-direction: column; padding: 6px 0; color: var(--ink); text-decoration: none; }
.prev-next .next { align-items: flex-end; text-align: right; }
.report-line { margin-top: 24px; }

/* 一覧・場面 */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 20px; }
.page-title { margin: 0; display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 4vw, 38px); }
.page-head .lead, .page > .lead { margin: 6px 0 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 32px; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; border: 2px solid var(--pink-border); background: #fff; color: var(--ink); }
.tab.is-on { border-color: var(--pink); background: var(--pink); color: #fff; }
.tab.is-off { color: #B9AEC4; }
.row-title { font-size: 22px; margin: 0 0 14px; }
.search-page-form { margin: 20px 0 8px; }

.sheet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.sheet-item { background: #fff; border: 2px solid var(--pink-line); border-radius: 22px; padding: 14px 16px; break-inside: avoid; }
.sheet-item h2 { margin: 0 0 8px; font-size: 20px; }
.sheet-item h2 a { color: var(--ink); text-decoration: none; }
.sheet-item img { width: 100%; border-radius: 12px; background: var(--stage); }
.sheet-item p { margin: 8px 0 0; font-size: 14px; }
.print-only { display: none; }

.prose { max-width: 760px; }
.prose-section h2 { font-size: 22px; margin: 32px 0 8px; }
.prose-section p { margin: 0 0 12px; }

@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding-top: 32px; }
  .word-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .word-info h1 { font-size: 36px; }
  .section-title { font-size: 22px; }
  .controls { border-radius: 24px; }
}

@media print {
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .print-only { display: block; font-size: 20px; margin: 0 0 12px; }
  .sheet { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sheet-item { border: 1px solid #ccc; }
  @page { size: A4; margin: 12mm; }
}

/* トップの動画の一時停止 */
.hero-visual { color: var(--ink); }
.hero-pause { position: absolute; right: 14px; top: 14px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--pink-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(58, 46, 74, 0.15); }
.hero-pause .icon-play { display: none; }
.hero-pause.is-paused .icon-play { display: block; }
.hero-pause.is-paused .icon-pause { display: none; }
.hero-name { color: var(--ink); text-decoration: none; }
.hero-name:hover { color: var(--pink-ink); }

/* わかりやすい／わかりにくい（動画のすぐ下） */
.feedback { padding: 14px 16px; background: #fff; border: 2px dashed var(--pink-border); border-radius: 24px; }
.feedback[hidden], .feedback-row[hidden], .feedback-form[hidden], .fb-chips[hidden], .fb-saved[hidden], .feedback-thanks[hidden] { display: none; }
.feedback-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.feedback-q { margin: 0; font-weight: 700; font-size: 15px; }
.feedback-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; border: 2px solid; background: #fff; }
.fb-up { border-color: #BFE3F6; color: var(--sky-ink); }
.fb-down { border-color: #F3C6DA; color: var(--pink-ink); }
.fb-up[aria-pressed="true"] { background: var(--sky-tint); }
.fb-down[aria-pressed="true"] { background: #FFE6F0; }
.fb-btn:disabled { cursor: default; }
.fb-btn:disabled[aria-pressed="false"] { opacity: 0.45; }
.feedback-form { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.fb-chips p { margin: 0 0 6px; }
.fb-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--pink-border); background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; }
.fb-chip[aria-pressed="true"] { border-color: var(--pink); background: #FFE6F0; color: var(--pink-ink); font-weight: 700; }
.fb-saved { margin: 2px 0 0; color: #1E6E50; font-weight: 700; }
.fb-label { font-weight: 700; font-size: 15px; margin-top: 4px; }
.fb-note { margin: 0; }
.feedback-form textarea { width: 100%; padding: 10px 14px; font-size: 16px; color: var(--ink); border: 2px solid var(--pink-border); border-radius: 16px; resize: vertical; background: #FFFCFE; }
.fb-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fb-form-buttons { display: flex; gap: 8px; }
.fb-close { background: #fff; border: 2px solid var(--pink-border); color: var(--ink); min-height: 44px; }
.feedback-thanks { margin: 0; font-weight: 700; color: var(--pink-ink); }
