/* スパイダーマップ v0.1 */
:root {
  --red: #E53935; --red-deep: #C62828;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  --top-h: 48px;
  --kb-h: 100px;
}
/* デザイン3つ（見本その3の配色） */
body[data-theme="night"] { --bg: #0B0D12; --ui-bg: #171A21; --ui-text: #FFFFFF; --ui-line: #4A4F5A; --ui-hover: rgba(255,255,255,.12); }
body[data-theme="snow"]  { --bg: #FAFDFF; --ui-bg: #FFFFFF; --ui-text: #12324A; --ui-line: #B9D9EC; --ui-hover: rgba(18,50,74,.08); }
body[data-theme="color"] { --bg: #FFFFFF; --ui-bg: #FFFFFF; --ui-text: #222222; --ui-line: #D0D0D0; --ui-hover: rgba(0,0,0,.07); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: var(--font); color: #222; background: #f3f4f6; }
body.screen-map { overflow: hidden; overscroll-behavior: none; background: var(--bg); }
button { font-family: inherit; }
[data-ico] { display: inline-flex; line-height: 0; }
[data-ico] svg { width: 26px; height: 26px; }
.sp { flex: 1; }
[hidden] { display: none !important; }

/* ---------- 共通ボタン ---------- */
.primary, .ghost, .danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer;
}
.primary { background: var(--red); color: #fff; border: 2px solid var(--red); }
.primary.big { min-height: 52px; font-size: 19px; padding: 0 22px; }
.primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.ghost { background: #fff; color: #222; border: 1.5px solid #c4c8cf; }
.ghost:hover { background: #f1f2f4; }
.danger { background: var(--red-deep); color: #fff; border: 2px solid var(--red-deep); }
.danger:disabled { opacity: .4; cursor: default; }
.ghost [data-ico] svg, .primary [data-ico] svg { width: 22px; height: 22px; }
.link-btn { background: none; border: none; color: #355; text-decoration: underline; font-size: 14px; cursor: pointer; padding: 8px; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* ---------- ホーム（見本その6・ゆきやま基調。色は #home の変数で決め、body[data-theme] には頼らない） ----------
   書体：決まった文字（見出し・図・上の帯のボタン・「つくった マップ」）だけ --display。
   マップ名・日付など利用者が入れた文字は端末の書体（切り出したフォントに無い文字が混ざるため）。
   フォントファイルが無いときは --font（端末の書体）で出る */
@font-face { font-family: "Zen Maru Gothic"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ZenMaruGothic-500.ttf") format("truetype"); }
@font-face { font-family: "Zen Maru Gothic"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ZenMaruGothic-700.ttf") format("truetype"); }
html { background: #FAFDFF; }
body.screen-home { height: auto; min-height: 100%; background: #FAFDFF; }
#home {
  --ink: #12324A; --sub: #48647a; --paper: #FAFDFF; --line: #CFE3F0;
  --ice: #2B95D0; --ice-d: #1B6FA3; --ice-t: #EAF5FC;
  --display: "Zen Maru Gothic", var(--font); --w-h: 500; --w-b: 700; --w-l: 500;
  min-height: 100%; color: var(--ink); background: var(--paper); line-height: 1.7; -webkit-text-size-adjust: 100%;
}
body.screen-map #home { display: none; }
#home a { color: var(--ice-d); text-underline-offset: 3px; }
#home:not(.selecting) .select-only, #home.selecting .normal-only { display: none; }

/* 上の帯 */
.home-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: var(--w-b); font-size: 21px; letter-spacing: .04em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.home-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hbtn {
  font: inherit; font-family: var(--display); font-weight: var(--w-l); font-size: 14.5px; line-height: 1.2; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.hbtn [data-ico] { color: var(--ice-d); }
.hbtn [data-ico] svg { width: 19px; height: 19px; }
.hbtn:hover { background: var(--ice-t); border-color: #9cc9e6; }
.hbtn.primary-h { background: var(--red-deep); border-color: var(--red-deep); color: #fff; font-weight: var(--w-b); font-size: 16px; padding: 0 20px 0 16px; min-height: 48px;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -6px rgba(198,40,40,.7); }
.hbtn.primary-h [data-ico] { color: #fff; }
.hbtn.primary-h [data-ico] svg { width: 22px; height: 22px; stroke-width: 2.6; }
.hbtn.primary-h:hover { background: #b32222; transform: translateY(-1px); }
.hbtn.small { font-size: 13px; }
.hbtn.danger-h { background: var(--red-deep); border-color: var(--red-deep); color: #fff; font-weight: var(--w-b); }
.hbtn.danger-h:hover { background: #b32222; }
.hbtn:disabled { opacity: .4; cursor: default; }

/* ヒーロー：使い方そのものがマインドマップ */
.hero { position: relative; overflow: hidden; margin-top: -68px; padding-top: 68px;
  background: linear-gradient(180deg, #FAFDFF 0%, #F1F9FE 60%, #E8F4FB 100%); border-bottom: 1px solid var(--line); }
.hero-sky, .hero-hill { position: absolute; left: 0; width: 100%; pointer-events: none; }
.hero-sky { top: 0; height: 100%; }
.hero-hill { bottom: 0; height: min(150px, 30%); }
#home.has-maps .hero-hill { height: 64px; }
.hero-web { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(380px, 0.85fr) minmax(0, 1.5fr); align-items: center; gap: 16px;
  max-width: 1320px; margin: 0 auto; padding: 8px 28px 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 13.5px; font-weight: var(--w-b); color: var(--ice-d); letter-spacing: .1em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { margin: 12px 0 0; font-size: clamp(30px, 3.9vw, 54px); line-height: 1.28; font-family: var(--display); font-weight: var(--w-h); letter-spacing: .02em; font-feature-settings: "palt"; isolation: isolate; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--ice-d); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .16em; border-radius: 99px; background: #BFE0F4; z-index: -1; }
.hero-map { display: block; width: 100%; max-width: 640px; height: auto; max-height: 360px; overflow: visible; justify-self: center; }
.hero-map text { font-family: var(--display); font-weight: var(--w-b); }
.hero-map .hm-node { filter: drop-shadow(0 4px 6px rgba(18,50,74,.12)); }
/* 開いたとき一度だけ：枝がのびて言葉があらわれる（枝は根元が太く先が細い形。のびる動きはマスクの線で見せる） */
@media (prefers-reduced-motion: no-preference) {
  #homeMap:not(.played) .hm-br0 { mask: url(#hmM0); }   /* のびおわったあと・うごきを止めたときはマスクを使わない */
  #homeMap:not(.played) .hm-br1 { mask: url(#hmM1); }
  #homeMap:not(.played) .hm-br2 { mask: url(#hmM2); }
  #homeMap:not(.played) .hm-grow { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hmDraw .7s cubic-bezier(.6,.05,.3,1) forwards; animation-delay: calc(var(--d) * 1s); }
  #homeMap:not(.played) .hm-pop { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hmPop .45s cubic-bezier(.2,1.3,.4,1) forwards; animation-delay: calc(var(--d) * 1s); }
  @keyframes hmDraw { to { stroke-dashoffset: 0; } }
  @keyframes hmPop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
}
/* マップがあるとき：ヒーローを低くして、一覧をすぐ見せる */
#home.has-maps .hero-in { grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr); padding-bottom: 26px; }
#home.has-maps .hero h1 { font-size: clamp(26px, 2.9vw, 38px); margin: 6px 0 0; }
#home.has-maps .hero-map { max-height: 232px; justify-self: end; }

/* つくった マップ（0このときは出さない） */
.home-maps { max-width: 1320px; margin: 0 auto; padding: 20px 28px 30px; }
#home:not(.has-maps) .home-maps { display: none; }
.maps-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.maps-head h2 { font-family: var(--display); font-size: 19px; margin: 0; font-weight: var(--w-b); }
.maps-n { font-size: 13px; color: var(--sub); font-weight: 700; }
.maps-sel { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sel-count { font-weight: 700; font-size: 15px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.map-card {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; font: inherit; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.map-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(18,50,74,.45); border-color: #9cc9e6; }
.map-card .thumb { display: block; width: 100%; aspect-ratio: 16 / 10; border-bottom: 1px solid #e3eef6; }
.map-card .meta { padding: 9px 14px 11px; line-height: 1.6; }
.map-card .name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-card .date { font-size: 12.5px; color: var(--sub); }
.map-card .check {
  position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%; display: none;
  align-items: center; justify-content: center; background: rgba(255,255,255,.9); border: 2px solid #888; color: #fff;
}
.map-card .check svg { width: 20px; height: 20px; }
#home.selecting .map-card .check { display: flex; }
#home.selecting .map-card.selected { border-color: var(--red-deep); box-shadow: 0 0 0 2px var(--red-deep); }
#home.selecting .map-card.selected .check { background: var(--red-deep); border-color: var(--red-deep); }

/* フッター（このアプリについて）。データの扱い・バージョンは #aboutDlg へ */
.home-foot { background: #fff; border-top: 1px solid var(--line); }
#home:not(.has-maps) .home-foot { border-top: 0; }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 22px 28px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px 48px; }
.foot-in h2 { grid-column: 1 / -1; margin: 0; font-size: 13px; letter-spacing: .1em; color: var(--ice-d); font-weight: 800; }
.foot-in .intro { margin: 0; font-size: 15px; line-height: 1.85; color: #223f55; }
.foot-in dl { margin: 0; display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 6px 14px; font-size: 14px; }
.foot-in dt { font-weight: 800; color: var(--ink); }
.foot-in dd { margin: 0; color: #223f55; overflow-wrap: anywhere; }
.foot-in .more { margin: 12px 0 0; font-size: 13px; color: var(--sub); }
#home .link-btn { font: inherit; color: var(--ice-d); padding: 0; min-height: 0; text-underline-offset: 3px; }
#home .link-btn:hover { color: var(--ink); }

@media (max-width: 520px) {
  .home-bar { flex-wrap: wrap; }
  .home-acts { flex-wrap: nowrap; margin-left: auto; gap: 6px; }
  .hbtn.primary-h { font-size: 14px; padding: 0 12px 0 8px; min-height: 44px; gap: 4px; }
  .brand img { width: 32px; height: 32px; }
}
@media (max-width: 860px) {
  .home-bar { padding: 10px 16px; } .brand { font-size: 17px; white-space: nowrap; }
  /* せまい画面：ファイル・テキストはアイコンだけ（名前は読み上げ用に残す・title でも出る） */
  .hbtn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .home-acts .hbtn:not(.primary-h) { padding: 0 11px; }
  .hero { margin-top: 0; padding-top: 0; }
  .hero h1 span { white-space: normal; }
  .hero-in, #home.has-maps .hero-in { grid-template-columns: 1fr; padding: 4px 16px 18px; }
  .home-maps { padding: 16px; } .foot-in { grid-template-columns: 1fr; padding: 18px 16px 36px; }
  .map-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- マップ画面 ---------- */
#mapScreen { display: none; }
body.screen-map #mapScreen { display: block; }
#topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top-h); z-index: 8;
  display: flex; align-items: center; gap: 4px; padding: 0 8px;
  background: var(--ui-bg); color: var(--ui-text); border-bottom: 1px solid var(--ui-line);
}
.ib {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border: none; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; padding: 0;
}
.ib:hover { background: var(--ui-hover); }
.ib:disabled { opacity: .3; cursor: default; background: transparent; }

#canvasWrap {
  position: fixed; top: var(--top-h); left: 0; right: 0; bottom: var(--kb-h);
  background: var(--bg); overflow: hidden; transition: bottom .2s ease;
}
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
#canvas.panning { cursor: grabbing; }
#world.anim { transition: transform .2s ease; }
.deco { position: absolute; left: 0; width: 100%; pointer-events: none; display: none; }
#snowSky { top: 0; height: 100%; }
#snowHill { bottom: 0; height: min(195px, 32%); }
body[data-theme="snow"] .deco { display: block; }

.node { cursor: pointer; }
.node text { font-weight: 700; dominant-baseline: central; text-anchor: middle; pointer-events: none; white-space: pre; }
.node tspan { dominant-baseline: central; }   /* 言葉の中の改行＝1行ずつ tspan */
.node .ring { fill: none; stroke: var(--red); stroke-width: 4; display: none; }
.node.sel .ring { display: inline; }
/* 選んでいる言葉の中のキャレット（下の入力欄と同じ位置）。動きを減らす設定では点滅させない */
.node .caret { pointer-events: none; animation: caretBlink 1.06s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .node .caret { animation: none; } }
.node.empty .card { stroke-dasharray: 6 4; }
/* 長押しでまとめて選んだ言葉（子孫ごと） */
.node.grp .card { stroke: #FF8A00 !important; stroke-width: 4 !important; filter: drop-shadow(0 0 6px rgba(255,138,0,.8)); }
/* つなぎ直しの落とし先 */
.node.drop .card { stroke: #12A150 !important; stroke-width: 5 !important; filter: drop-shadow(0 0 8px rgba(18,161,80,.85)); }

/* 言葉のメニュー：こい色・四角い角・しっぽ付きのふきだし（3つのデザインで共通） */
#menu {
  position: fixed; z-index: 15; display: flex; align-items: center; height: 56px; padding: 0 8px;
  background: #2B3038; border: 1.25px solid #8A9099; border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,.4); color: #fff;
}
#menu[hidden], #menu button[hidden] { display: none; }
#menu button {
  position: relative; width: 52px; height: 52px; border: none; border-radius: 8px; background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
#menu button:hover { background: rgba(255,255,255,.12); }
#menu button:active { background: rgba(255,255,255,.22); }
#menu button [data-ico] svg { width: 28px; height: 28px; }
#menu .sep { width: 1.5px; height: 28px; background: #6B7280; margin: 0 7px; }
#menu .rec-ic { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--red); position: relative; }
#menu .rec-ic::after { content: ""; position: absolute; left: 13px; top: 13px; width: 14px; height: 14px; border-radius: 2.5px; background: #fff; }
#mVoice.rec .ic-mic { display: none; }
#mVoice.rec .rec-ic { display: block; animation: recPulse 1.2s ease-in-out infinite; }
@keyframes recPulse { 50% { transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { #mVoice.rec .rec-ic { animation: none; } }
#menuTail {
  position: absolute; width: 14px; height: 14px; background: #2B3038; transform: rotate(45deg);
  bottom: -8px; border-right: 1.25px solid #8A9099; border-bottom: 1.25px solid #8A9099;
}
#menu.below #menuTail { bottom: auto; top: -8px; border: none; border-left: 1.25px solid #8A9099; border-top: 1.25px solid #8A9099; }
/* メニューが言葉の右／左にあるとき：しっぽは横向き */
#menu.side-r #menuTail { bottom: auto; left: -8px; border: none; border-left: 1.25px solid #8A9099; border-bottom: 1.25px solid #8A9099; }
#menu.side-l #menuTail { bottom: auto; left: auto; right: -8px; border: none; border-right: 1.25px solid #8A9099; border-top: 1.25px solid #8A9099; }

/* キーボード（ふだんは音声バー） */
#kbPanel {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--kb-h); z-index: 10;
  background: var(--ui-bg); box-shadow: 0 -2px 10px rgba(0,0,0,.2); transition: height .2s ease;
}
#kbFrame { width: 100%; height: 100%; border: 0; display: block; }
body.native-kb #kbPanel { visibility: hidden; }
#nativeBar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 64px; z-index: 10; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--ui-bg); color: var(--ui-text); border-top: 1px solid var(--ui-line);
}
#nativeBar[hidden] { display: none; }
/* iPad・スマホが横向きのとき：縦向きをすすめる全画面の案内（かみなりノートと同じ型。絵＋ひとこと、下に小さく「よこのまま つかう」） */
#orientGate { position: fixed; inset: 0; z-index: 300; background: #FAFDFF; color: #12324A; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 20px; text-align: center; }
#orientGate .og-ill { width: 120px; height: 120px; color: #1B6FA3; flex: none; }
#orientGate .og-ill svg { width: 100%; height: 100%; display: block; }
#orientGate .og-msg { margin: 0; font-size: 22px; font-weight: 700; }
#orientGate .og-keep { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); min-height: 44px; padding: 0 18px; font: inherit; font-size: 14px; color: #1B6FA3; background: #fff; border: 1.5px solid #B9D9EC; border-radius: 999px; cursor: pointer; }
/* iPad・スマホ：OSのキーボードが出ているあいだ、見えている範囲（--vv-top／--vv-bottom＝app.js の applyVisualViewport）に合わせて置き直す */
body.native-kb #topbar { top: var(--vv-top, 0px); }
body.native-kb #canvasWrap { top: calc(var(--top-h) + var(--vv-top, 0px)); bottom: calc(var(--kb-h) + var(--vv-bottom, 0px)); }
body.native-kb #nativeBar { bottom: var(--vv-bottom, 0px); }
#nativeInput { flex: 1; min-width: 0; height: 46px; font: 600 20px/1.3 var(--font); padding: 10px 12px; border: 1.5px solid var(--ui-line); border-radius: 12px; resize: none; overflow-y: auto; }

/* お知らせ */
#toast {
  position: fixed; left: 50%; top: 58px; transform: translateX(-50%); z-index: 40; max-width: calc(100% - 32px);
  background: #2B3038; color: #fff; font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
#toast[hidden] { display: none; }

/* ---------- ダイアログ ---------- */
.dlg { border: none; border-radius: 16px; padding: 16px 20px 20px; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; overscroll-behavior: contain; box-shadow: 0 10px 40px rgba(0,0,0,.35); color: #222; }
.dlg.wide-dlg { width: min(640px, calc(100% - 32px)); }
.dlg::backdrop { background: rgba(0,0,0,.45); }
.dlg h2 { font-size: 20px; margin: 0; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dlg-head .close { color: #333; }
.dlg-head .close:hover { background: #eee; }
.dlg-note { color: #444; font-size: 14px; margin: 6px 0 10px; }
.dlg-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.share-rows { display: flex; flex-direction: column; gap: 10px; }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-row .row-name { width: 5.5em; font-weight: 700; font-size: 16px; }
.row-note { font-size: 13px; color: #555; }
#qrBox { display: flex; justify-content: center; }
#qrBox svg { width: min(320px, 70vw); height: auto; }
.opt-group { border: 1.5px solid #ddd; border-radius: 12px; margin: 0 0 12px; padding: 8px 14px 12px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.opt-group legend { font-weight: 700; padding: 0 4px; }
.opt-group label { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; min-height: 40px; cursor: pointer; }
.opt-group input { width: 22px; height: 22px; accent-color: var(--red-deep); }
.wide { width: 100%; }
.about p { font-size: 15px; line-height: 1.7; margin: 8px 0; }
/* このアプリについて（大人向け）：項目名＋中身。利用条件もほかの行と同じ文字の大きさ */
.about-dl { margin: 8px 0; font-size: 15px; line-height: 1.7; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; }
.about-dl dt { font-weight: 700; }
.about-dl dd { margin: 0; overflow-wrap: anywhere; }
.about-list { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.7; }
.about-list li + li { margin-top: 2px; }
.about .small { font-size: 12px; color: #555; overflow-wrap: anywhere; }
@media (max-width: 480px) {   /* せまい画面：項目名の下に中身 */
  .about-dl { display: block; }
  .about-dl dt { margin-top: 10px; }
  .about-dl dt:first-child { margin-top: 0; }
}
/* せってい：よみあげ（声・速さ）。速さは とんとんリーダーと同じ かめ／うさぎ＋倍率 */
.tts-group { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.tts-row { display: flex; align-items: center; gap: 8px; min-height: 44px; width: 100%; font-size: 17px; }
.tts-name { flex: none; min-width: 3.2em; }
.tts-row select { flex: 1 1 auto; min-width: 0; max-width: 100%; font: inherit; font-size: 16px; min-height: 40px; padding: 0 8px; border: 1.5px solid #c4c8cf; border-radius: 10px; background: #fff; }
.tts-row input[type="range"] { flex: 1 1 80px; min-width: 60px; width: auto; height: auto; accent-color: var(--red-deep); }
.rate-btn { flex: none; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 10px; color: #333; cursor: pointer; }
.rate-btn:hover { background: #f1f2f4; }
.rate-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.rate-btn [data-ico] svg { width: 26px; height: 26px; }
.rate-val { flex: none; min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.about-app { display: flex; align-items: center; gap: 12px; }
.about-app img { border-radius: 11px; }
#textIn { width: 100%; font: 17px/1.6 var(--font); padding: 10px; border: 1.5px solid #c4c8cf; border-radius: 10px; resize: vertical; tab-size: 2; }
.conf-list { max-height: 180px; overflow: auto; margin: 10px 0; padding-left: 1.3em; }
.warn { color: var(--red-deep); font-weight: 700; margin: 6px 0 0; }

