/* 体育会の面接30問（/mensetsu-taiikukai/）だけが読む CSS（追補23-59 §1）。全ページが読む tokens.css・style.css には足さない
   （全ページの版の印 ?v= を変えないため。追補23-55 の shared/top.css と同じ方針）。色は tokens.css の色だけを使う（使い方は tokens.css の冒頭の決まり。追補23-62）。動きは付けていない */
.mt { max-width: 860px; margin: 0 auto; padding: 8px 0 48px; }
.mt-head { margin-bottom: 22px; }
.mt-label { margin: 0 0 6px; color: var(--orange-ink); font-size: 14px; font-weight: 800; }
.mt-title { margin: 0 0 14px; color: var(--navy); font-size: clamp(23px, 4vw, 32px); font-weight: 900; line-height: 1.45; }
.mt-lead { margin: 0; font-size: 16px; line-height: 1.9; color: var(--text-body); }

/* 目次（追補23-65 §3-1）。6カテゴリへのページ内リンク。文字は紺・地は空色（tokens.css の冒頭の決まり） */
.mt-toc { margin: 16px 0 0; padding: 14px 16px; border: 2px solid var(--sky-line); border-radius: var(--radius-lg); background: var(--sky); }
.mt-toc__title { margin: 0 0 8px; color: var(--navy); font-size: 15px; font-weight: 800; }
.mt-toc__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.mt-toc__list a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-size: 15px; font-weight: 700; line-height: 1.5; }
.mt-toc__list .mt-cat__id { width: 24px; height: 24px; font-size: 13px; line-height: 24px; }
.mt-toc__n { margin-left: 6px; color: var(--text-body); font-size: 13px; font-weight: 700; }
@media (max-width: 600px) { .mt-toc__list { grid-template-columns: 1fr; } }

.mt-cat__id {
  flex: 0 0 auto; display: inline-block; width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: #fff;
  font-family: Roboto, var(--font-base); font-size: 15px; font-weight: 700; line-height: 28px; text-align: center;
}

.mt-cat { margin: 0 0 12px; border: 2px solid var(--navy); border-radius: var(--radius-lg); background: var(--bg-white); scroll-margin-top: 12px; }
.mt-cat__head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none;
}
.mt-cat__head::-webkit-details-marker { display: none; }
.mt-cat__head::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-left: 4px; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy);
  transform: rotate(45deg) translateY(-3px);
}
.mt-cat[open] > .mt-cat__head::after { transform: rotate(-135deg) translateY(-3px); }
.mt-cat[open] > .mt-cat__head { box-shadow: inset 0 -2px 0 var(--teal-line); }   /* 開いたカテゴリの見出しの下に青緑の線（追補23-62 §3） */
.mt-cat__head:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 12px; }
.mt-cat__title { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; margin: 0; padding: 0; border: 0; background: none; color: var(--navy); font-size: 18px; font-weight: 800; line-height: 1.45; }
.mt-cat__title::before { content: none; }
.mt-cat__count { flex: 0 0 auto; color: var(--text-body); font-size: 13px; font-weight: 700; }
.mt-cat__body { padding: 0 18px 8px; }

.mt-premise { margin: 0 0 16px; padding: 14px 16px; border-left: 4px solid var(--orange); background: var(--cream-bg); }
.mt-premise__label { margin: 0 0 4px; color: var(--navy); font-size: 14px; font-weight: 800; }
.mt-premise p:last-child { margin: 0; line-height: 1.9; }

.mt-q { margin: 0 0 14px; padding: 18px 0 6px; border-top: 1px solid var(--sky-line); scroll-margin-top: 12px; }
.mt-q__title { display: flex; gap: 10px; margin: 0 0 12px; padding: 0; border: 0; background: none; color: var(--navy); font-size: 18px; font-weight: 800; line-height: 1.55; }
.mt-q__title::before { content: none; }
.mt-q__no { flex: 0 0 auto; color: var(--orange-ink); font-family: Roboto, var(--font-base); font-weight: 700; }
.mt-q__h { margin: 16px 0 6px; padding: 0; border: 0; background: none; color: var(--navy); font-size: 15px; font-weight: 800; }
.mt-q__h::before { content: none; }
.mt-q p { margin: 0; font-size: 15.5px; line-height: 1.9; }
.mt-steps, .mt-deep { margin: 0; padding-left: 1.5em; }
.mt-steps li, .mt-deep li { margin: 0 0 6px; font-size: 15.5px; line-height: 1.85; }
.mt-steps li::marker, .mt-deep li::marker { color: var(--orange-ink); font-weight: 700; }
.mt-steps strong { color: var(--navy); }
.mt-q__h--mine { color: var(--orange-ink); }
.mt-mine { padding: 10px 14px; border-left: 4px solid var(--orange); background: var(--bg-light); }
.mt-tocta { margin: 0 0 18px; font-size: 15px; font-weight: 700; }
.mt-tocta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .mt-cat__head { padding: 14px; }
  .mt-cat__body { padding: 0 14px 6px; }
  .mt-cat__title { font-size: 16.5px; }
  .mt-q__title { font-size: 17px; }
}

/* 回答の例（追補23-66 §B。文は仮・オーナー確認待ち）。組み立ての段の順に1段落ずつ。
   青緑の淡い地と線（tokens.css の冒頭の決まり：青緑は面・線・飾り。見出しの文字は白地で読める --teal-ink） */
.mt-q__h--ex { color: var(--teal-ink); }
.mt-ex { padding: 12px 14px; border-left: 4px solid var(--teal-line); background: var(--teal-soft); }
.mt-ex p { margin: 0 0 .5em; }
.mt-ex p:last-child { margin-bottom: 0; }

/* ---- 追補23-122 段1：練習の道具。面接対策150問（interview/index.html）と同じ見た目の部品を、このページのクラス名で書いた。
   金・影・ゆれ・紙吹雪は150問（＝map の山道）と同じ値。部品は mensetsu-taiikukai.js が差し込む（JS が無ければ出ない） ---- */
.mt { --ol-gold: #f5b81c; --ol-gold-hi: #ffe28a; --ol-gold-ink: #142f5c; --ol-glow: rgba(255, 214, 74, .35); }
.mt-tools { margin: 16px 0 0; }
.mt-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.mt-progress__track { flex: 1; height: 10px; background: var(--bg-soft); border-radius: var(--radius-pill); overflow: hidden; border: 1px solid var(--border-color); }
.mt-progress__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ol-gold), var(--ol-gold-hi)); transition: width .3s ease; }
.mt-progress__label { font-family: var(--font-num); font-size: 13px; color: var(--text-body); white-space: nowrap; }
.mt-progress__label strong { font-size: 16px; color: var(--ol-gold-ink); }
.mt-tools__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.mt-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--bg-white); font-size: 13px; color: var(--text-body); cursor: pointer;
}
.mt-toggle input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }
.mt-toggle--accent[data-on="true"] { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.mt-toggle--gold[data-on="true"] { background: #fffaeb; border-color: var(--ol-gold); color: var(--ol-gold-ink); font-weight: 700; }
.mt-toggle--gold input { accent-color: var(--ol-gold); }
.mt-btn-text { min-height: 44px; border: none; background: none; color: var(--primary); font-size: 13px; padding: 6px 4px; text-decoration: underline; cursor: pointer; }
.mt-tools__note { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }
/* 追補23-128 §2 b：「準備OKのチェックを全部消す」の確かめを、ブラウザの窓ではなく、ボタンの行のすぐ下に出す */
.mt-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-soft); }
.mt-confirm[hidden] { display: none; }
.mt-confirm__q { flex: 1 1 100%; margin: 0; font-size: 14px; font-weight: 700; color: var(--text-main); }
.mt-confirm__btn { min-height: 44px; padding: 8px 16px; border: 1px solid var(--primary); border-radius: var(--radius-pill); background: var(--bg-white); color: var(--primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mt-confirm__btn--go { background: var(--primary); color: var(--text-invert); }

/* 目次の各行：そのカテゴリの数と金のバー */
.mt-toc__link { position: relative; padding-bottom: 9px; }
.mt-toc__done { margin-left: auto; padding-left: 8px; font-family: var(--font-num); font-size: 12px; font-weight: 700; color: var(--text-body); white-space: nowrap; }
.mt-toc__done--complete { color: var(--ol-gold-ink); }
.mt-toc__bar { position: absolute; left: 32px; right: 0; bottom: 2px; display: block; height: 4px; border-radius: 2px; background: var(--bg-white); overflow: hidden; }
.mt-toc__bar i { display: block; height: 100%; width: 0; background: var(--ol-gold); box-shadow: 0 0 5px var(--ol-glow); transition: width .3s ease; }

/* 各問の「準備OK」（済み＝金のメダル ✓） */
.mt-q__top { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.mt-q__check {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 12.5px; color: var(--text-muted);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 4px 12px; cursor: pointer; background: var(--bg-white);
}
.mt .mt-q__check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 22px; height: 22px; margin: 0; border-radius: 50%;
  border: 2px solid var(--border-strong); background: var(--bg-white); cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease;
}
.mt .mt-q__check input[type="checkbox"]:checked {
  border-color: #fff;
  background: var(--ol-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.2 10.4l3.1 3.1 6.5-7' fill='none' stroke='%23142f5c' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow: 0 0 0 2px var(--ol-gold), 0 2px 3px rgba(10, 19, 36, .3);
}
.mt .mt-q__check input[type="checkbox"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.mt-q[data-done="true"] { margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; background: #fffaeb; border-top-color: var(--ol-gold); border-radius: var(--radius); }
.mt-q[data-done="true"] .mt-q__check { color: var(--ol-gold-ink); border-color: var(--ol-gold); font-weight: 700; }

/* 見本を隠して自分で答える：開くボタン（150問の answer__toggle と同じ形） */
.mt-ex__toggle {
  display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 10px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-white); color: var(--primary); font-size: 14px; text-align: center; cursor: pointer;
}
.mt-ex__toggle:hover { background: var(--bg-soft); }
.mt-ex__toggle[hidden], .mt-ex[hidden], .mt-fete[hidden] { display: none; }
.mt-ex:focus { outline: none; }

/* まだのところだけ見る：準備OK のカードは、チェックの行と質問だけを残して畳む */
.mt--undone-only .mt-q[data-done="true"] { padding-top: 12px; padding-bottom: 12px; }
.mt--undone-only .mt-q[data-done="true"] > :not(.mt-q__top):not(.mt-q__title) { display: none; }
.mt--undone-only .mt-q[data-done="true"] .mt-q__title { margin: 0; font-size: 15px; color: var(--text-muted); }

/* 全問制覇の祝い（150問の olly-fete と同じ）：olly-guts＋金の札＋小さな紙吹雪。reduce では動きを止める */
.mt-fete {
  position: relative; display: flex; align-items: center; gap: 16px; margin: 0 0 16px; padding: 14px 20px; overflow: hidden;
  background: var(--bg-white); border: 2px solid var(--ol-gold); border-radius: var(--radius); box-shadow: 0 0 0 4px var(--ol-glow);
}
.mt-fete__img { flex: 0 0 auto; width: auto; height: 96px; filter: drop-shadow(0 3px 4px rgba(10, 19, 36, .45)); animation: mt-bob 2.2s ease-in-out infinite; }
.mt-fete__tag { display: inline-block; margin: 0 0 6px; padding: 4px 16px; border-radius: 999px; background: var(--ol-gold); color: var(--ol-gold-ink); font-size: 19px; font-weight: 900; filter: drop-shadow(0 2px 3px rgba(10, 19, 36, .4)); }
.mt-fete__text { margin: 0; font-weight: 700; color: var(--text-main); line-height: 1.6; }
.mt-fete__bit { position: absolute; top: 0; width: 5px; height: 8px; border-radius: 1.5px; animation: mt-fall 2.4s linear infinite; pointer-events: none; }
@keyframes mt-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes mt-fall { 0% { transform: translateY(-26px); opacity: 0; } 14% { opacity: .95; } 100% { transform: translateY(42px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mt-fete__img { animation: none; }
  .mt-fete__bit { animation: none; opacity: .8; transform: translateY(8px); }
  .mt-progress__fill, .mt-toc__bar i, .mt-q__check input { transition: none; }
}

/* 印刷：隠した見本・畳んだカードを全部開く。操作の部品は印刷しない */
@media print {
  .mt-tools, .mt-q__top, .mt-ex__toggle, .mt-toc__done, .mt-toc__bar { display: none !important; }
  .mt-ex[hidden] { display: block !important; }
  .mt--undone-only .mt-q[data-done="true"] > :not(.mt-q__top):not(.mt-q__title) { display: revert !important; }
  .mt-q[data-done="true"] { background: none; }
}

/* 追補23-132 §4-2：「準備OK」を付けたときに、印が1回だけ小さく弾む（0.25秒。transform だけ。動きを減らす設定では付けない） */
@keyframes mt-okpop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) { .mt .mt-q__check input.is-pop { animation: mt-okpop .25s ease-out 1; } }

/* ---- 追補23-133 §5 D-1：カードでめくる（flip.js が差し込む。JS が無ければ出ない）。色は tokens.css と、このページの金（--ol-gold）だけ。
   動き（裏返す・指についてくる）は、動きを減らす設定では付けない ---- */
.mf-entry { margin: 0 0 12px; }
.mf-open { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 22px; border: 2px solid var(--navy); border-radius: var(--radius-pill); background: var(--navy); color: #fff; font: 800 15px/1.4 var(--font-base); cursor: pointer; }
.mf-open:focus-visible, .mf button:focus-visible, .mf__back:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
html.mf-on { overflow: hidden; }
.mf { position: fixed; inset: 0; z-index: 200; background: var(--bg-soft, #f4f7fb); --ol-gold: #f5b81c; --ol-gold-hi: #ffe28a; }
.mf[hidden] { display: none; }
.mf__in { display: flex; flex-direction: column; box-sizing: border-box; width: 100%; max-width: 560px; height: 100%; margin: 0 auto; padding: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.mf__top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.mf__count { margin: 0; color: var(--text-body); font-family: var(--font-num); font-size: 14px; }
.mf__count strong { color: var(--navy); font-size: 18px; }
.mf__close { min-width: 64px; min-height: 44px; margin: 0 -8px 0 0; padding: 0 12px; border: 0; background: none; color: var(--navy); font: 800 14px/1 var(--font-base); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mf__stage { flex: 1 1 auto; min-height: 0; display: flex; touch-action: pan-y; }
.mf__stage[hidden], .mf__acts[hidden], .mf__end[hidden] { display: none; }
.mf__card { position: relative; flex: 1 1 auto; min-width: 0; display: flex; border-radius: 18px; }
.mf__card:not(.is-drag) { transition: transform .18s ease-out, opacity .18s ease-out; }
.mf__card[data-way="ok"] .mf__face { border-color: var(--ol-gold); box-shadow: 0 0 0 4px var(--ol-gold-hi); }
.mf__card[data-way="no"] .mf__face { border-color: var(--border-strong); }
.mf__face { flex: 1 1 auto; box-sizing: border-box; width: 100%; min-width: 0; border: 2px solid var(--navy); border-radius: 18px; background: var(--bg-white); box-shadow: 0 6px 18px rgba(20, 47, 92, .12); }
.mf__face[hidden] { display: none; }
.mf__front { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; margin: 0; padding: 24px 22px; color: var(--navy); font-family: var(--font-base); text-align: left; cursor: pointer; }
.mf__cat { color: var(--orange-ink); font-size: 14px; font-weight: 800; line-height: 1.5; }
.mf__no { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--navy); color: #fff; font-family: Roboto, var(--font-base); font-size: 15px; font-weight: 700; line-height: 1.6; }
.mf__q { font-size: clamp(20px, 5.4vw, 26px); font-weight: 900; line-height: 1.6; }
.mf__hint { margin-top: 8px; color: var(--text-body); font-size: 14px; font-weight: 700; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
.mf__back { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 18px 18px 20px; color: var(--text-body); font-size: 15.5px; line-height: 1.85; }
.mf__back > :first-child { margin-top: 0; }
.mf__backq { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); color: var(--navy); font-size: 17px; font-weight: 900; line-height: 1.6; }
.mf__backq .mt-q__no { margin-right: 8px; }
.mf__memo { margin: 0; padding: 10px 12px; border-left: 4px solid var(--ol-gold); background: #fff9e6; white-space: pre-wrap; overflow-wrap: anywhere; }
.mf__acts { flex: 0 0 auto; display: flex; gap: 12px; padding-top: 12px; }
.mf__btn { flex: 1 1 0; min-height: 52px; padding: 8px 12px; border: 2px solid var(--navy); border-radius: 14px; background: var(--bg-white); color: var(--navy); font: 800 16px/1.4 var(--font-base); cursor: pointer; }
.mf__btn--ok { background: var(--navy); color: #fff; }
.mf__end { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.mf__end .mf__btn { flex: 0 0 auto; }
.mf__result { margin: 0 0 8px; color: var(--navy); font-size: 24px; font-weight: 900; line-height: 1.6; text-align: center; }
.mf__btn--again { background: var(--navy); color: #fff; }
.mf__btn--again[hidden] { display: none; }
@keyframes mf-turn { 0% { transform: perspective(900px) rotateY(80deg); opacity: .4; } 100% { transform: perspective(900px) rotateY(0); opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { .mf__face.is-turn { animation: mf-turn .22s ease-out 1; } }
@media (prefers-reduced-motion: reduce) { .mf__card { transition: none !important; } }
@media print { .mf, .mf-entry { display: none !important; } }
