/* リゼットの声の工房 ─ アニメ公式サイト風の明るいテーマ */
:root {
  --cream: #fbf6ec; --paper: #fffdf8; --sky: #bfe3f5; --sky-2: #e3f3fb; --turq: #3cc7c9; --turq-d: #1f9fa3;
  --navy: #1f2e5a; --navy-2: #34467c; --gold: #c9a24b; --gold-l: #ecd9a6; --pink: #f3a6b8; --rust: #c86a45;
  --ink: #26304f; --muted: #6a7291; --line: #e6dcc6; --ok: #2f9e6a; --danger: #cf4a4a;
  --shadow: 0 10px 30px rgba(31, 46, 90, .10); --r: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); background: var(--cream);
  font: 16px/1.85 "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic UI", sans-serif;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(201,162,75,.12) 2px, transparent 2.5px),
    radial-gradient(circle at 60px 60px, rgba(60,199,201,.10) 2px, transparent 2.5px);
  background-size: 80px 80px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--turq-d); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- ナビ ---------- */
.gnav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 20px;
  padding: 10px 24px; background: rgba(255, 253, 248, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.gnav.scrolled { box-shadow: 0 4px 20px rgba(31,46,90,.08); border-color: var(--line); }
.logo { display: flex; white-space: nowrap; flex-direction: column; line-height: 1.1; text-decoration: none; color: var(--navy); }
.logo-en { font: 800 11px/1 "Cinzel", serif; letter-spacing: .22em; color: var(--gold); }
.logo-ja { font: 800 19px/1.3 "Shippori Mincho B1", serif; letter-spacing: .06em; }
.gnav nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.gnav nav a { font: 600 12px/1 "Cinzel", serif; letter-spacing: .14em; color: var(--navy); text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.gnav nav a:hover { background: var(--sky-2); }
.gnav nav .nav-cta { white-space: nowrap; font: 700 14px/1 "Zen Maru Gothic"; letter-spacing: .05em; background: var(--navy); color: #fff; padding: 11px 18px; }
.gnav nav .nav-cta:hover { background: var(--navy-2); }
.badge { font-size: 12px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, white); background: #f0faf4; }
.badge.ng { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, white); background: #fdf2f2; }
@media (max-width: 1180px) { .gnav nav a:not(.nav-cta) { display: none; } }
@media (max-width: 760px) { .badge { display: none; } }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: min(94vh, 760px); display: flex; align-items: center; overflow: hidden; padding-top: 64px; }
.hero-img { position: absolute; top: 0; bottom: 0; left: 16%; width: 84%; height: 100%; object-fit: cover; object-position: 55% 35%; animation: heroIn 1.6s ease-out both;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,246,236,.9) 0%, rgba(251,246,236,.55) 24%, rgba(251,246,236,0) 38%); }
.hero-copy { position: relative; z-index: 2; max-width: 1120px; width: 100%; margin: 0 auto; padding: 40px 24px 120px; }
.hero-kicker { display: inline-block; font: 700 13px/1 "Cinzel", serif; letter-spacing: .16em; color: var(--navy);
  background: #fff; border: 1.5px solid var(--gold); padding: 9px 16px; border-radius: 999px; margin: 0 0 22px; animation: rise .8s .2s both; }
.hero-kicker span { color: var(--turq-d); margin: 0 4px; }
.hero h1 { font: 800 clamp(40px, 5.6vw, 76px)/1.12 "Shippori Mincho B1", serif; color: var(--navy); margin: 0 0 22px; letter-spacing: .04em;
  text-shadow: 0 2px 0 #fff, 0 0 30px rgba(255,255,255,.9); animation: rise .9s .35s both; }
.h1-small { display: block; font-size: .42em; color: var(--turq-d); letter-spacing: .12em; margin-bottom: 6px; }
.hero-lead { font-size: clamp(15px, 1.5vw, 18px); font-weight: 500; color: var(--navy-2); margin: 0 0 30px; animation: rise .9s .5s both; text-shadow: 0 0 12px #fff; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; animation: rise .9s .65s both; }
.hero-remil { position: absolute; z-index: 3; width: clamp(70px, 8vw, 110px); left: 44%; top: 18%; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(60,199,201,.45)); }
.wave-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 80px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 90 480 0 720 34 S 1200 70 1440 30 L1440 80 L0 80Z' fill='%23fbf6ec'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
@media (max-width: 760px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-img { position: relative; left: 0; width: 100%; height: 56vw; object-position: 75% 30%; -webkit-mask-image: none; mask-image: none; }
  .hero-shade { display: none; }
  .hero-copy { padding: 28px 20px 80px; }
  .hero-remil { left: 6%; top: 76px; }
}

/* きらきら */
.sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sparkles i { position: absolute; width: 10px; height: 10px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 6px var(--turq)); animation: twinkle 3s ease-in-out infinite; opacity: 0; }
.sparkles i:nth-child(1) { left: 8%; top: 22%; animation-delay: .2s; }
.sparkles i:nth-child(2) { left: 30%; top: 14%; animation-delay: 1.1s; width: 14px; height: 14px; }
.sparkles i:nth-child(3) { left: 48%; top: 64%; animation-delay: 2s; }
.sparkles i:nth-child(4) { left: 62%; top: 12%; animation-delay: .7s; width: 16px; height: 16px; }
.sparkles i:nth-child(5) { left: 78%; top: 70%; animation-delay: 1.6s; }
.sparkles i:nth-child(6) { left: 90%; top: 28%; animation-delay: 2.4s; width: 12px; height: 12px; }
.sparkles i:nth-child(7) { left: 20%; top: 74%; animation-delay: 1.3s; }
.sparkles i:nth-child(8) { left: 40%; top: 36%; animation-delay: .4s; width: 8px; height: 8px; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 "Zen Maru Gothic"; text-decoration: none; cursor: pointer;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, #e0bf6c, var(--gold)); color: #fff; box-shadow: 0 6px 18px rgba(201,162,75,.45); text-shadow: 0 1px 2px rgba(120,80,0,.3); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; padding: 11px 20px; font-size: 14px; }
.btn-line { background: #fff; color: var(--navy); border-color: var(--line); padding: 11px 20px; font-size: 14px; }

/* ---------- 見出し ---------- */
.sec { padding: 90px 0; position: relative; }
.sec-title { text-align: center; margin: 0 0 18px; display: flex; flex-direction: column; align-items: center; }
.sec-title .en { font: 800 clamp(28px, 8vw, 78px)/1 "Cinzel", serif; letter-spacing: .06em; max-width: 100%; color: transparent;
  -webkit-text-stroke: 1.5px var(--turq); background: linear-gradient(180deg, rgba(191,227,245,.7), rgba(191,227,245,0)); -webkit-background-clip: text; background-clip: text; }
.sec-title .ja { font: 800 clamp(20px, 2.4vw, 28px)/1.4 "Shippori Mincho B1", serif; color: var(--navy); margin-top: -.4em; position: relative; padding: 0 44px; }
.sec-title .ja::before, .sec-title .ja::after { content: ""; position: absolute; top: 50%; width: 30px; height: 2px; background: var(--gold); }
.sec-title .ja::before { left: 0; } .sec-title .ja::after { right: 0; }
.sec-title.light .en { -webkit-text-stroke-color: var(--gold-l); background: linear-gradient(180deg, rgba(236,217,166,.35), rgba(236,217,166,0)); -webkit-background-clip: text; background-clip: text; }
.sec-title.light .ja { color: #fff; }
.sec-lead { text-align: center; color: var(--navy-2); max-width: 760px; margin: 0 auto 44px; }
.mini-title { font: 800 22px/1 "Cinzel", serif; letter-spacing: .12em; color: var(--navy); margin: 0 0 12px; }
.mini-title span { border-bottom: 3px solid var(--turq); padding-bottom: 4px; }

/* ---------- インフォ ---------- */
.info { margin-top: 20px; }
.info-list { list-style: none; margin: 0; padding: 18px 26px; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); }
.info-list li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; flex-wrap: wrap; }
.info-list li:last-child { border: 0; }
.info-list time { font: 700 14px/1 "Cinzel", serif; color: var(--muted); min-width: 92px; }
.tag { font: 700 11px/1 "Cinzel", serif; letter-spacing: .1em; color: #fff; background: var(--gold); padding: 5px 10px; border-radius: 4px; }
.tag-blue { background: var(--turq-d); } .tag-pink { background: #e0879d; }

/* ---------- 機能カード ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { position: relative; background: var(--paper); border-radius: var(--r); padding: 150px 22px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; transition: transform .25s; }
.feature:hover { transform: translateY(-6px) rotate(-.4deg); }
.feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 128px; }
.f1::before { background: linear-gradient(160deg, #ffe6c7, #fff3e0); }
.f2::before { background: linear-gradient(160deg, #cfe9fb, #eef8ff); }
.f3::before { background: linear-gradient(160deg, #f8dbe4, #fff1f5); }
.f4::before { background: linear-gradient(160deg, #cff3ef, #effdfa); }
.feature img { position: absolute; top: 14px; right: 12px; height: 128px; width: auto; filter: drop-shadow(0 6px 8px rgba(31,46,90,.18)); transition: transform .3s; }
.feature:hover img { transform: scale(1.08) rotate(3deg); }
.f-no { position: absolute; top: 16px; left: 20px; margin: 0; font: 800 44px/1 "Cinzel", serif; color: rgba(255,255,255,.9); -webkit-text-stroke: 1.5px var(--gold); }
.feature h3 { font: 800 20px/1.4 "Shippori Mincho B1", serif; color: var(--navy); margin: 0 0 8px; }
.feature p { margin: 0 0 12px; font-size: 14px; color: var(--navy-2); }
.f-link { font: 700 14px/1 "Zen Maru Gothic"; color: var(--turq-d); background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- キャラクター ---------- */
.sec-sky { background: linear-gradient(180deg, var(--sky-2), #d6eefa 60%, var(--sky-2)); overflow: hidden; }
.sec-sky::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 12% 20%, rgba(255,255,255,.8) 0 60px, transparent 61px),
  radial-gradient(circle at 88% 78%, rgba(255,255,255,.6) 0 90px, transparent 91px); }
.chara-tabs { position: relative; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 26px 0 30px; }
.chara-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 96px; padding: 8px 6px 10px; border: 2px solid transparent;
  background: rgba(255,255,255,.75); border-radius: 16px; cursor: pointer; font: 700 13px/1.2 "Zen Maru Gothic"; color: var(--navy); transition: all .2s; }
.chara-tabs button img { height: 64px; width: auto; transition: transform .2s; }
.chara-tabs button:hover img { transform: translateY(-4px); }
.chara-tabs button.on { background: #fff; border-color: var(--gold); box-shadow: 0 6px 16px rgba(201,162,75,.3); }
.chara-stage { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; background: rgba(255,255,255,.7);
  border-radius: 28px; padding: 30px 40px; box-shadow: var(--shadow); border: 2px solid #fff; }
@media (max-width: 760px) { .chara-stage { grid-template-columns: 1fr; padding: 24px; } }
.chara-art { display: flex; justify-content: center; align-items: flex-end; min-height: 380px; position: relative; }
.chara-art::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; bottom: 30px;
  background: radial-gradient(circle, #fff 0 40%, rgba(255,255,255,0) 70%), conic-gradient(from 0deg, rgba(60,199,201,.25), rgba(201,162,75,.25), rgba(243,166,184,.25), rgba(60,199,201,.25)); animation: spin 18s linear infinite; }
.chara-art img { position: relative; max-height: 400px; width: auto; filter: drop-shadow(0 12px 18px rgba(31,46,90,.2)); }
.chara-art img.pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
.chara-role { display: inline-block; margin: 0; font-size: 13px; font-weight: 700; color: #fff; background: var(--turq-d); padding: 3px 14px; border-radius: 999px; }
.chara-name { font: 800 44px/1.3 "Shippori Mincho B1", serif; color: var(--navy); margin: 6px 0 16px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.chara-name small { font: 700 18px/1 "Cinzel", serif; letter-spacing: .16em; color: var(--gold); }
.chara-dl { display: grid; grid-template-columns: 7em 1fr; margin: 0 0 16px; border-top: 1px solid var(--line); }
.chara-dl dt, .chara-dl dd { margin: 0; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.chara-dl dt { font-weight: 700; color: var(--turq-d); }
.chara-voice { font: 700 13px/1.6 "Zen Maru Gothic"; color: var(--muted); margin: 0; letter-spacing: .04em; }

/* ---------- 使い方 ---------- */
.guild-banner { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); margin: 30px 0 50px; border: 6px solid #fff; }
.guild-banner img { width: 100%; aspect-ratio: 16/7; object-fit: cover; object-position: 50% 30%; }
.bubble { position: absolute; background: #fff; border-radius: 22px; padding: 16px 22px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.7; }
.bubble b { display: block; color: var(--turq-d); font-size: 13px; }
.guild-banner { overflow: visible; margin-bottom: 70px; }
.guild-banner img { border-radius: 22px; }
.bubble-guild { left: 50%; bottom: -44px; transform: translateX(-50%); width: min(560px, 92%); text-align: center; border: 2px solid var(--gold-l); }
.bubble-guild::after { content: ""; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); border: 9px solid transparent; border-bottom: 10px solid #fff; }
@media (max-width: 700px) { .bubble-guild { position: relative; left: auto; bottom: auto; transform: none; width: auto; margin: -10px 10px 0; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; counter-reset: s; }
.step-card { position: relative; display: grid; grid-template-columns: 110px 150px 1fr; gap: 20px; align-items: center; background: var(--paper);
  border-radius: 24px; padding: 22px 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.step-card:nth-child(even) { background: #f5fbff; }
.step-no { width: 100px; height: 100px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 800 42px/1 "Cinzel", serif; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--gold); }
.step-no span { font-size: 12px; letter-spacing: .2em; color: var(--gold-l); margin-bottom: 4px; }
.step-chara { height: 170px; width: auto; justify-self: center; filter: drop-shadow(0 8px 10px rgba(31,46,90,.15)); }
.step-body h3 { font: 800 22px/1.4 "Shippori Mincho B1", serif; color: var(--navy); margin: 0 0 6px; }
.step-body p { margin: 0 0 10px; font-size: 15px; }
.step-body .btn { margin: 4px 8px 0 0; }
.tip { font-size: 13px !important; color: var(--muted); background: #fff7e0; border-radius: 10px; padding: 6px 12px; display: inline-block; }
.demo-line { background: #fff; border: 1.5px dashed var(--turq); border-radius: 12px; padding: 8px 14px; margin: 0 0 10px; font-size: 15px; }
.demo-label { font: 700 11px/1 "Zen Maru Gothic"; background: var(--turq-d); color: #fff; padding: 3px 8px; border-radius: 6px; margin-right: 10px; }
@media (max-width: 760px) { .step-card { grid-template-columns: 1fr; text-align: left; } .step-no { width: 76px; height: 76px; font-size: 32px; } .step-chara { position: absolute; right: 14px; top: 10px; height: 110px; } }

/* ---------- ボイスサンプル ---------- */
.sec-voice { background: linear-gradient(170deg, #22356a, #1f2e5a 50%, #19264b); color: #fff; overflow: hidden; }
.sec-voice::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image:
  radial-gradient(circle at 10% 20%, #fff 1px, transparent 1.5px), radial-gradient(circle at 70% 60%, #bfe3f5 1px, transparent 1.5px), radial-gradient(circle at 40% 80%, #ecd9a6 1px, transparent 1.5px);
  background-size: 120px 120px, 90px 90px, 150px 150px; }
.voice-hero { position: relative; border-radius: 28px; overflow: hidden; margin: 30px 0 34px; border: 4px solid rgba(236,217,166,.6); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.voice-hero img { width: 100%; aspect-ratio: 16/7; object-fit: cover; object-position: 50% 40%; }
.voice-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .voice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .voice-grid { grid-template-columns: 1fr; } }
.voice-card { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: center; background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: 20px; padding: 14px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s; }
.voice-card:hover { transform: translateY(-4px); }
.voice-card img { height: 96px; width: auto; justify-self: center; }
.vc-name { margin: 0; font: 800 19px/1.3 "Shippori Mincho B1", serif; color: var(--navy); }
.vc-name small { font: 700 11px/1 "Cinzel", serif; letter-spacing: .14em; color: var(--gold); margin-left: 8px; }
.vc-line { margin: 4px 0 8px; font-size: 14px; color: var(--navy-2); }
.voice-card audio { width: 100%; height: 34px; }
.soon { display: inline-block; font: 700 11px/1 "Cinzel", serif; letter-spacing: .16em; color: var(--gold); border: 1.5px solid var(--gold); padding: 6px 12px; border-radius: 999px; }
.remil-glow { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, #e8ffff, var(--turq) 60%, transparent 70%); animation: glow 2.4s ease-in-out infinite; }
.voice-note { position: relative; text-align: center; color: var(--sky); font-size: 14px; margin: 26px 0 0; }

/* ---------- 工房（ツール） ---------- */
.studio-sec { background: linear-gradient(180deg, var(--cream), #f3ead6); }
.studio { position: relative; margin-top: 40px; background: var(--paper); border-radius: 30px; box-shadow: 0 20px 50px rgba(31,46,90,.13); border: 2px solid var(--gold-l); }
.studio::before { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--gold-l); border-radius: 24px; pointer-events: none; }
.studio-peek { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(31,46,90,.18)); }
.peek-l { height: 130px; left: -36px; top: -92px; transform: rotate(-6deg); }
.peek-r { height: 84px; right: 26px; top: -64px; animation: bob 3s ease-in-out infinite; }
@media (max-width: 700px) { .peek-l { left: 4px; height: 100px; top: -72px; } }
.studio-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 24px 26px 0; border-bottom: 2px solid var(--gold-l); }
.studio-tabs button { font: 700 14px/1 "Zen Maru Gothic"; padding: 12px 18px; border-radius: 14px 14px 0 0; border: 2px solid transparent; border-bottom: 0;
  background: #f4efe2; color: var(--muted); cursor: pointer; margin-bottom: -2px; }
.studio-tabs button:hover { color: var(--navy); background: #efe6cf; }
.studio-tabs button.active { background: var(--paper); color: var(--navy); border-color: var(--gold-l); position: relative; }
.studio-tabs button.active::after { content: ""; position: absolute; left: 14px; right: 14px; top: 5px; height: 3px; border-radius: 3px; background: var(--turq); }
.studio-body { padding: 26px 34px 36px; }
@media (max-width: 700px) { .studio-body { padding: 20px 16px 26px; } .studio-tabs { padding: 16px 12px 0; } .studio-tabs button { padding: 10px 12px; font-size: 13px; } }

/* app.js が使う部品 */
.tab { display: none; } .tab.active { display: block; animation: fade .3s; }
.tab-title { font: 800 26px/1.4 "Shippori Mincho B1", serif; color: var(--navy); margin: 0 0 10px; }
.tab-title::before { content: "✦ "; color: var(--gold); }
h4 { font-size: 16px; color: var(--navy); margin: 20px 0 8px; }
.note { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.hint { color: var(--muted); font-size: 12px; margin-left: 8px; font-weight: 400; }
code { background: #f1ebdc; color: var(--navy); padding: 1px 6px; border-radius: 5px; font-size: 13px; word-break: break-all; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin: 10px 0; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
input, select, textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; margin-top: 4px; }
input[type=checkbox] { width: auto; margin: 0; accent-color: var(--turq-d); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(60,199,201,.25); border-color: var(--turq); }
button { font: inherit; font-size: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--turq); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff; border-color: var(--navy); font-weight: 700; padding: 11px 26px; box-shadow: 0 4px 12px rgba(31,46,90,.25); }
button.danger { color: var(--danger); }
button.ghost { background: transparent; }
button.small { padding: 4px 12px; font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.row input { flex: 1; min-width: 180px; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 12px; }
@media (max-width: 700px) { .grid2, .grid4 { grid-template-columns: 1fr; } }
.tags, .presets, .examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.tags button, .presets button, .examples button { padding: 3px 12px; font-size: 13px; border-radius: 999px; background: var(--sky-2); border-color: transparent; color: var(--navy); }
.tags button { background: #fff4d9; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.presets button:hover, .examples button:hover, .tags button:hover { border-color: var(--turq); }
.result { background: #f7f2e6; padding: 12px; border-radius: 12px; white-space: pre-wrap; font-size: 13px; }
.result:empty, .outbox:empty { display: none; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 12px 0; box-shadow: 0 4px 12px rgba(31,46,90,.05); }
.card .meta { color: var(--muted); font-size: 12px; word-break: break-all; }
.card .title { font-weight: 700; color: var(--navy); }
.card audio { width: 100%; margin-top: 6px; }
.card .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.err { background: #fdf3f3; border-color: var(--danger); }
.err pre { white-space: pre-wrap; font-size: 12px; margin: 6px 0 0; }
.callout { background: #eaf7fb; border-radius: 16px; padding: 12px 18px; margin: 0 0 16px; font-size: 14px; border-left: 5px solid var(--turq); }
.callout ul { margin: 6px 0 0; padding-left: 20px; }
.step { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 4px 18px 14px; margin: 12px 0; }
blockquote { margin: 8px 0; padding: 12px 16px; background: #fffaf0; border-left: 5px solid var(--gold); border-radius: 8px; font-size: 16px; line-height: 1.9; }
.recorder { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.recorder .time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 5em; }
.recorder .state { font-size: 13px; color: var(--muted); }
.recorder .state.ok { color: var(--ok); } .recorder .state.ng { color: var(--danger); }
.recorder audio { flex-basis: 100%; }
.recorder .meter { width: 120px; height: 8px; background: #f1ebdc; border-radius: 4px; overflow: hidden; }
.recorder .meter i { display: block; height: 100%; width: 0; background: var(--turq); transition: width .08s; }
.rec-on { background: var(--danger) !important; color: #fff !important; border-color: var(--danger) !important; }
.speaker-row, .line-row { display: grid; gap: 8px; align-items: start; margin: 6px 0; }
.speaker-row { grid-template-columns: 160px 1fr auto; }
.line-row { grid-template-columns: 130px 200px 1fr auto; }
.line-row input, .line-row select, .line-row textarea, .speaker-row input, .speaker-row select { margin: 0; }
@media (max-width: 700px) { .line-row, .speaker-row { grid-template-columns: 1fr; } }
details.paste { margin: 8px 0; } details.paste summary { cursor: pointer; color: var(--turq-d); font-size: 14px; font-weight: 700; }
.lib-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 22px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
#toast.show { opacity: .95; }

/* ---------- フッター ---------- */
.foot { position: relative; text-align: center; background: var(--navy); color: var(--sky); padding: 70px 20px 40px; font-size: 13px; }
.foot a { color: var(--gold-l); }
.foot-logo { font: 800 20px/1 "Cinzel", serif; letter-spacing: .24em; color: var(--gold); margin: 0 0 14px; }
.foot-remil { position: absolute; left: 50%; top: -46px; height: 80px; transform: translateX(-50%); animation: bob 3s ease-in-out infinite; }
.foot p { margin: 6px 0; }

/* ---------- 動き ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.85) translateY(10px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 6px 2px rgba(60,199,201,.4); } 50% { box-shadow: 0 0 20px 8px rgba(60,199,201,.8); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 投票キャンペーンへの入口 */
.vote-banner { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; text-decoration: none; margin: 0 0 30px;
  padding: 22px; border-radius: 22px; background: linear-gradient(135deg, #fff6e0, #ffffff 60%, #e3f3fb); color: var(--navy); border: 2px solid var(--gold-l); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s; }
.vote-banner:hover { transform: translateY(-3px); }
.vote-banner b { font: 800 clamp(22px, 3vw, 30px)/1.3 "Shippori Mincho B1", serif; }
.vote-banner span { font-size: 14px; color: var(--navy-2); }
.vote-banner .vb-kicker { font: 800 12px/1 "Cinzel", serif; letter-spacing: .22em; color: #fff; background: linear-gradient(135deg, #e0bf6c, var(--gold)); padding: 7px 14px; border-radius: 999px; }

/* .sec の padding が .wrap の左右余白を消していたので戻す */
.sec.wrap { padding-left: 20px; padding-right: 20px; }

.consent-tip { font-size: 13px; margin: 0 0 10px; color: #a0522d; }
.err details summary { cursor: pointer; font-size: 12px; margin-top: 6px; }

.dl { display: inline-block; font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid currentColor; text-decoration: none; }
