/* ============================================================
   パーソナルメンター ポップ版「メンター通信」(2026-10-15)
   コンセプト: 朝に届く漫画の1ページ。
     - 白い紙 × 墨の太い枠線 × 網点(スクリーントーン) × 集中線
     - アクセントは「日の出オレンジ」と「深い紺」の2色。声色ごとに差し色が変わる
     - メンターはコマの中から吹き出しで語りかける
   旧デザイン(漆黒×明朝)は /classic/ に残してある
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=Yusei+Magic&family=Zen+Maru+Gothic:wght@500;700;900&display=swap');

:root {
  --paper:     #FFFDF8;  /* 紙 */
  --paper-2:   #FFF4E6;  /* 少し焼けた紙 */
  --ink:       #16181D;  /* 墨 */
  --ink-soft:  #4A4F5C;
  --muted:     #8A8F9C;
  --sun:       #FF7A2F;  /* 日の出オレンジ */
  --sun-soft:  #FFE3CF;
  --navy:      #1E2B4F;  /* 深い紺 */
  --sky:       #DCEBFF;
  --sky-top:   #DCEBFF;  /* 時間帯で JS が上書き */
  --stamp:     #E5383B;  /* はんこの朱 */
  --accent:    #FF7A2F;  /* 声色の差し色(body[data-tone] で上書き) */
  --shadow-filter: grayscale(1) brightness(0.3) contrast(1.8) blur(1.5px);  /* 登場前の影絵 */

  --font-title: 'Mochiy Pop One', 'Zen Maru Gothic', sans-serif;
  --font-body:  'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-hand:  'Yusei Magic', 'Zen Maru Gothic', sans-serif;

  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --r-lg: 26px;
  --r-md: 16px;
  --max: 560px;
}

/* 声色ごとの差し色(白文字が読める濃さにそろえる) */
body[data-tone="senior"]    { --accent: #1E9E61; }
body[data-tone="coach"]     { --accent: #D62839; }
body[data-tone="executive"] { --accent: #1E2B4F; }
body[data-tone="zen"]       { --accent: #4F7A5A; }
body[data-tone="gyaru"]     { --accent: #E0408A; }
body[data-tone="princess"]  { --accent: #8E5CC4; }
body[data-tone="edo"]       { --accent: #1D5FC2; }
body[data-tone="samurai"]   { --accent: #3A3F58; }
body[data-tone="okinawa"]   { --accent: #00838A; }
body[data-tone="kansai"]    { --accent: #D97706; }
body[data-tone="mom"]       { --accent: #D9534F; }
body[data-tone="cheer"]     { --accent: #FF6A1A; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.75;
  background:
    radial-gradient(rgba(30, 43, 79, 0.10) 1.1px, transparent 1.4px) 0 0 / 9px 9px,
    linear-gradient(180deg, var(--sky-top) 0%, #FFF6EC 340px, var(--paper) 620px);
  background-color: var(--paper);
  background-attachment: scroll;
  padding:
    calc(env(safe-area-inset-top) + 20px)
    16px
    calc(env(safe-area-inset-bottom) + 104px);
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
}
/* 網点は上の方だけ。下に行くほど消える */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0, transparent 280px, var(--paper) 520px);
  z-index: -1;
}

main { max-width: var(--max); margin: 0 auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.nb { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── 題字(マストヘッド) ─────────────────── */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 12px;
  margin-bottom: 18px;
}
.masthead .title {
  font-family: var(--font-title);
  font-size: clamp(30px, 9vw, 40px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  text-shadow: 2px 2px 0 var(--sun-soft);
}
.masthead .title small {
  display: block;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--sun);
  text-shadow: none;
  margin-bottom: 4px;
}
.masthead .issue {
  font-family: var(--font-hand);
  font-size: 15px;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 12px 3px;
  border-radius: 999px;
  transform: rotate(4deg);
  white-space: nowrap;
}
.masthead .meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  line-height: 1.5;
}
.tag.sun { background: var(--sun); color: #fff; border-color: var(--ink); }

/* ─── メンターのコマ ───────────────────── */
.koma {
  position: relative;
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 50% 46%, #fff 0 30%, transparent 62%),
    radial-gradient(rgba(30, 43, 79, 0.16) 1.3px, transparent 1.6px) 0 0 / 7px 7px,
    var(--sky);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  max-height: 380px;
  width: 100%;
  margin: 0 auto 22px;
  rotate: -0.8deg;
}
/* 集中線 */
.koma::before {
  content: '';
  position: absolute; inset: -20%;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(22, 24, 29, 0.16) 0deg 0.9deg, transparent 0.9deg 5deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 34%, #000 62%);
          mask: radial-gradient(circle at 50% 50%, transparent 34%, #000 62%);
  pointer-events: none;
}
.koma .portrait {
  position: absolute;
  left: 50%; top: 48%;
  height: 76%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: var(--line);
  background: var(--paper-2);
  overflow: hidden;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 9px var(--ink);
}
.koma .portrait img,
.koma .portrait svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.koma .caption {
  position: absolute;
  left: 12px; bottom: 12px;
  max-width: calc(100% - 24px);
  background: var(--ink);
  color: var(--paper);
  padding: 6px 12px 7px;
  border-radius: 4px;
  transform: rotate(-1.5deg);
}
.koma .caption .who {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(18px, 5.6vw, 24px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.koma .caption .tone {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
  background: var(--accent);
  color: #fff;
  padding: 0 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--paper);
}

/* 呼び出し中: 音の波 */
.koma .waves {
  position: absolute; left: 50%; top: 48%;
  height: 76%; aspect-ratio: 1; translate: -50% -50%;
  pointer-events: none;
}
.koma .waves span {
  position: absolute; inset: 0;
  border: 3px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
}
.koma.summoning .waves span { animation: wave 1.6s ease-out infinite; }
.koma.summoning .waves span:nth-child(2) { animation-delay: 0.53s; }
.koma.summoning .waves span:nth-child(3) { animation-delay: 1.06s; }
@keyframes wave { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.45); opacity: 0; } }

/* ─── 登場演出 ─────────────────────────
   summoning: 書いている間。影絵のまま小刻みに震え、集中線がゆっくり回る
   arrive   : 新しい言葉が届いた時。集中線が飛び込み → 白く光って → 色がついて「ドンッ!」
   enter    : いつもの表示。ふわっと浮かぶ                                  */
.koma .flash {
  position: absolute; inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.koma.summoning::before { animation: lines-spin 8s linear infinite; }
.koma.summoning .portrait { animation: shiver 0.16s steps(2) infinite; }
.koma.summoning .portrait > * { filter: var(--shadow-filter); transition: filter 0.4s; }
.koma.summoning .caption .tone { visibility: hidden; }
.koma.summoning .onoma { opacity: 0; }

.koma.arrive::before   { animation: lines-burst 1s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.koma.arrive .portrait     { animation: reveal 1.25s cubic-bezier(0.25, 1.3, 0.45, 1) both; }
.koma.arrive .portrait > * { animation: unveil 1.25s linear both; }
.koma.arrive .flash    { animation: flash 1.1s ease-out both; }
.koma.arrive .onoma    { animation: stamp-in 0.5s 0.75s cubic-bezier(0.3, 1.8, 0.5, 1) both; }
.koma.arrive .caption  { animation: slide-in 0.5s 0.85s cubic-bezier(0.3, 1.4, 0.5, 1) both; }

.koma.enter .portrait  { animation: rise 0.7s cubic-bezier(0.25, 1.2, 0.45, 1) both; }
.koma.enter .caption   { animation: slide-in 0.45s 0.2s cubic-bezier(0.3, 1.4, 0.5, 1) both; }

/* 新しく届いた時は、コマの登場が終わってから吹き出しが出る */
#content.after-arrive .pop { animation-delay: calc(1100ms + var(--d, 0) * 130ms); }

@keyframes lines-spin { to { transform: rotate(360deg); } }
@keyframes shiver { 0% { transform: translate(-1px, 0); } 100% { transform: translate(1px, -1px); } }
@keyframes lines-burst {
  0%   { transform: scale(2.2) rotate(10deg); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes reveal {
  0%   { transform: scale(0.35); opacity: 0; }
  30%  { transform: scale(0.9);  opacity: 1; }
  48%  { transform: scale(0.9); }
  56%  { transform: scale(1.12); }
  72%  { transform: scale(0.97); }
  100% { transform: none; }
}
/* 影絵 → 白く光る → 色がつく(絵そのものだけにかける。丸枠は暗くしない) */
@keyframes unveil {
  0%, 48% { filter: var(--shadow-filter); }
  56%     { filter: brightness(1.9) saturate(0.4); }
  72%     { filter: none; }
  100%    { filter: none; }
}
@keyframes flash { 0%, 46% { opacity: 0; } 54% { opacity: 0.95; } 100% { opacity: 0; } }
@keyframes stamp-in {
  0%   { transform: rotate(12deg) scale(2.6); opacity: 0; }
  100% { transform: rotate(12deg) scale(1);   opacity: 1; }
}
@keyframes slide-in {
  0%   { transform: translateX(-130%) rotate(-1.5deg); }
  100% { transform: rotate(-1.5deg); }
}
@keyframes rise {
  0%   { transform: translateY(14px) scale(0.92); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* 擬音(ぽん!) */
.koma .onoma {
  position: absolute;
  right: 14px; top: 12px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--sun);
  -webkit-text-stroke: 1px var(--ink);
  transform: rotate(12deg);
}

/* ─── 吹き出し ───────────────────────── */
.bubble {
  position: relative;
  background: #fff;
  border: var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 20px 20px 18px;
  margin: 0 0 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.bubble .label {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}
/* しっぽ(上向き、コマを指す) */
.bubble.tail::before,
.bubble.tail::after {
  content: '';
  position: absolute;
  left: 34%;
  border-style: solid;
}
.bubble.tail::before {
  top: -24px;
  border-width: 0 10px 24px 16px;
  border-color: transparent transparent var(--ink) transparent;
  transform: skewX(-18deg);
}
.bubble.tail::after {
  top: -17px;
  margin-left: 4px;
  border-width: 0 7px 19px 11px;
  border-color: transparent transparent #fff transparent;
  transform: skewX(-18deg);
}
.learning {
  font-size: clamp(19px, 5.4vw, 22px);
  font-weight: 700;
  line-height: 1.85;
}
.learning .caret {
  display: inline-block;
  width: 0.5em; height: 1.1em;
  vertical-align: -0.15em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 0.8s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── 3つのアクション ───────────────────── */
.section-head {
  display: flex; align-items: center; gap: 10px;
  margin: 34px 0 14px;
  font-family: var(--font-title);
  font-size: 20px;
}
.section-head::after {
  content: '';
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 13px);
}
.section-head .hint {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.actions { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.action {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border: var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px 14px 12px;
  min-height: 64px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
}
.action:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.action .no {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 1;
}
.action .txt { font-size: 17px; font-weight: 700; line-height: 1.7; padding-top: 6px; }
.action .stamp {
  position: absolute;
  right: 10px; top: 50%;
  translate: 0 -50%;
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--stamp);
  border: 3px solid var(--stamp);
  border-radius: 10px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.85);
  transform: rotate(-12deg) scale(0);
  opacity: 0;
  pointer-events: none;
}
.action.done { background: var(--paper-2); }
.action.done .txt { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(229, 56, 59, 0.55); }
.action.done .no { background: var(--ink); }
.action.done .stamp { opacity: 1; transform: rotate(-12deg) scale(1); transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.1s; }

/* ─── 問い(考え中の雲吹き出し) ───────────── */
.thought {
  position: relative;
  background: var(--sky);
  border: var(--line);
  border-radius: 40px;
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  margin: 46px 0 34px;
  color: var(--navy);
}
.thought::before,
.thought::after {
  content: '';
  position: absolute;
  background: var(--sky);
  border: var(--line);
  border-radius: 50%;
}
.thought::before { width: 22px; height: 22px; left: 28px; top: -30px; }
.thought::after  { width: 12px; height: 12px; left: 16px; top: -46px; }
.thought .label { color: var(--navy); }
.thought .q { font-size: 18px; font-weight: 900; line-height: 1.8; }

/* ─── 一言(署名) ───────────────────────── */
.sign {
  text-align: center;
  margin: 10px 0 28px;
  padding: 18px 8px 0;
}
.sign .quote {
  font-family: var(--font-hand);
  font-size: clamp(19px, 5.4vw, 23px);
  line-height: 1.7;
  display: inline;
  background: linear-gradient(transparent 62%, var(--sun-soft) 62%);
}
.sign .by {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

/* ─── ボタン ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: var(--line);
  border-radius: 999px;
  background: var(--sun);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 2px dashed var(--ink-soft);
  box-shadow: none;
  font-size: 14px;
  min-height: 44px;
}
.btn.white { background: #fff; color: var(--ink); }
.btn.block { width: 100%; }
.center { text-align: center; }

/* ─── 空・読み込み ───────────────────── */
.empty .bubble { text-align: center; }
.empty .lead { font-size: 19px; font-weight: 900; line-height: 1.8; margin-bottom: 6px; }
.empty .sub  { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.dots { display: inline-flex; gap: 6px; margin: 4px 0 8px; }
.dots i {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
  animation: hop 1s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-8px); } }

/* ─── 登場アニメーション(ぽん!) ─────────── */
.pop { animation: pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes pop {
  0%   { opacity: 0; transform: scale(0.7) rotate(-2deg); }
  100% { opacity: 1; transform: none; }
}

/* ─── 下のタブ ───────────────────────── */
nav.tabs {
  position: fixed;
  left: 50%; bottom: calc(env(safe-area-inset-bottom) + 12px);
  translate: -50% 0;
  z-index: 50;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: #fff;
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
nav.tabs a {
  min-width: 112px;
  min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-soft);
  -webkit-tap-highlight-color: transparent;
}
nav.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* ─── トースト ───────────────────────── */
.toast {
  position: fixed;
  left: 50%; top: calc(env(safe-area-inset-top) + 14px);
  translate: -50% calc(-100% - 40px);
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 14px;
  visibility: hidden;
  opacity: 0;
  transition: translate 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.2s, visibility 0s 0.3s;
}
.toast.show { translate: -50% 0; visibility: visible; opacity: 1; transition: translate 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.2s; }
.toast.error { background: var(--stamp); }

/* ─── 設定画面 ───────────────────────── */
.card {
  background: #fff;
  border: var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px 20px;
  margin-bottom: 22px;
}
.card h2 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 6px;
}
.card h2 .no {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  color: #fff;
  font-size: 15px;
}
.card .hint { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.input, textarea.input {
  width: 100%;
  font: inherit;
  font-size: 16px;  /* iPhone で勝手に拡大しない */
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.7;
}
textarea.input { resize: vertical; min-height: 96px; }
.input:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.row { display: flex; gap: 10px; align-items: stretch; }
.row .input { flex: 1; min-width: 0; }
.row .btn { box-shadow: var(--shadow-sm); padding: 0 18px; flex-shrink: 0; }

/* プルダウン(メンター・声色) */
.select-wrap { position: relative; flex: 1; min-width: 0; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px; top: 50%;
  width: 10px; height: 10px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 54px;
  padding: 0 46px 0 16px;
  font: inherit;
  font-size: 17px;  /* iPhone で勝手に拡大しない(16px 以上) */
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}
.select:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.select:disabled { color: var(--muted); box-shadow: none; cursor: default; }

/* メンター: 選んだ人の絵 + プルダウン */
.picker { display: flex; align-items: center; gap: 12px; }
.picker-av {
  flex: 0 0 58px;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--paper-2);
}
.picker-av:empty { display: none; }
.picker-av img, .picker-av svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.sub-actions { display: flex; justify-content: flex-end; margin: 6px 0 4px; }
.link-btn {
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:disabled { visibility: hidden; }

/* 新しいメンターを迎える(ふだんはたたむ) */
.add-mentor {
  border-top: 2px dashed var(--edge, #E6DCCB);
  padding-top: 6px;
}
.add-mentor summary {
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.add-mentor summary::-webkit-details-marker { display: none; }
.add-mentor summary::before {
  content: '+';
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
}
.add-mentor[open] summary::before { transform: rotate(45deg); }
.add-mentor .row { margin: 6px 0 2px; }
.status { font-size: 14px; font-weight: 700; margin-top: 10px; }
.status.ok { color: #1E9E61; }
.status.ng { color: var(--stamp); }

/* 声色の1行説明 */
.tone-desc {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  min-height: 1.7em;
}

.foot-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 28px 0 8px;
}

/* ─── 動きを減らす設定の端末 ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── PC 幅 ─────────────────────────── */
@media (min-width: 720px) {
  body { padding-top: 40px; }
  .learning { font-size: 23px; }
}
