@charset "UTF-8";
/* ============================================================
   採点フォーム（M13。旧単語クイズ・作文チャレンジを2026-09-06に統合）専用スタイル
   old（yuya-thaigo）のapp/work/モジュール（work_index.css・dezpt_parts.css）踏襲。
   src/Views/public/scoring_form/*.php のみで使用。
   （site.cssはページ非依存の共通コンポーネント集なので、このモジュール専用の
   意匠はあえて分離している）
   ============================================================ */

:root {
  --exam-pass: #2279dc; /* old: --app-PassIcoDet-txt（正解の〇） */
  --exam-fail: #f04b8d; /* old: --app-failureIcoDet-txt（不正解の×） */
}

/* .site-mainの背景差し替え（公開サイト修正点_0905.md）。採点フォーム画面
   （<body class="work-page">。renderPublic()がビューパスから自動付与）だけに絞る。
   .site-mainはlayout.php側の全ページ共通クラスなので、body側にクラスを付けて絞り込む。 */
body.work-page .site-main {
  background: url(/images/main/work-bg.png) repeat;
}

/* ── サブヘッダー「← ホームに戻る」（old: headerSub_layout_work_free.php）─
   .site-contentの内側パディング分を打ち消して端まで塗る（.cate-banner踏襲のネガティブマージン）。
   単語クイズ・作文チャレンジの全画面（表紙・設問・結果）で共通して使う。 */

.exam-subheader {
  background: var(--main);
  text-align: center;
  padding: 20px;
  margin: -36px -24px 28px;
  font-family: var(--font-sub);
  font-size: 22px;
}
.exam-subheader a {
  display: inline-block;
  position: relative;
  padding-left: 26px;
  color: #000;
}
.exam-subheader a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 12px;
  background: url(/images/main/backbt-icon.png) no-repeat center / contain;
  transform: translateY(-50%);
}
@media (max-width: 540px) {
  .exam-subheader { margin: -24px -16px 24px; padding: 16px; font-size: 18px; }
}

/* ── 表紙（old: work_index.php／work_det_title.php）───────────────
   ページ全体の背景に旧サイトのダマスク柄（work-bg.png）を敷き、その上に
   白い表紙カードを乗せる。カード内は羽根の装飾グラフィック（work-title.png）を
   タイトルの後ろに配置し、左寄せで「毎週更新!」→タイトル→リード文→(任意)注記→Startボタン、の構成。 */
.exam-start-wrap {
  /* background: url(/images/main/work-bg.png) repeat; */
  border-radius: var(--box-rod);
  padding: 40px 20px;
}
.exam-start-card {
  background: #fff;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: var(--box-rod);
}
.exam-start-eyebrow {color: var(--main);font-size: 17px;font-weight: 700;margin: 0 0 20px;position: relative;z-index: 1;}
.exam-start-title-wrap {position: relative;z-index: 0;}
.exam-start-title {
  font-family: var(--font-sub);
  font-weight: 900;
  font-size: 38px;
  line-height: 1.3;
  margin: 0 0 50px;
  position: relative;
  z-index: 1;
}
.exam-start-title::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0%;
  width: 110px;
  height: 150px;
  background: url(/images/main/work-title.png) no-repeat center / contain;
  transform: translateY(-50%);
  z-index: -6;
}
.exam-start-lead { margin: 0 0 16px; line-height: 1.8; }
.exam-start-notes { margin: 0 0 24px; line-height: 2; color: var(--basic-txt); }
.exam-start-btn {
  display: inline-block;
  padding: 15px 46px;
  border: 2px solid var(--main);
  border-radius: 50px;
  background: #fff;
  color: var(--main);
  font-weight: 700;
  font-size: 15px;
}
.exam-start-btn:hover { opacity: .8; }
@media (max-width: 540px) {
  .exam-start-card { padding: 40px 24px; }
  .exam-start-title { font-size: 28px; }
  .exam-start-title::before { width: 90px; height: 120px; left: -8px; }
  .exam-start-btn { display: block; width: 100%; text-align: center; }
}

/* ── カード全体・見出し ──────────────────────────────────────── */
.exam-card { max-width: 640px; margin: 0 auto; }
.exam-card-title {
  font-family: var(--font-sub);
  font-weight: 900;
  font-size: 20px;
  text-align: center;
  margin: 0 0 4px;
}
.exam-meta { text-align: center; }

/* ── 設問ブロック（old: .examBoxInn） ───────────────────────────── */
.exam-question { padding: 20px 0; }
.exam-question:not(:first-child) { border-top: 1px dotted #cdcdcd; } /* old: --app-examBoxInn-brd */
.exam-question-head { text-align: center; margin: 0 0 12px; }
.exam-pill { /* old: .examSubTiArea/.examSubTi */
  display: inline-block;
  padding: 6px 20px;
  margin: 0 0 10px;
  border-radius: 4px;
  background: #eee;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.exam-question-text { text-align: left; font-weight: 600; margin: 0 0 8px; }

/* ── 選択肢ボタン（old: .work_detail .examBox label.radio_text） ─────
   行全体をタップ可能な角丸ボーダーのボタンとして描画する。
   site.cssのグローバルlabelスタイル（display:block;font-size:12.5px;color:#8a7a68;）は
   クラスの詳細度で上書きされる。 */
.exam-choices { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.choice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--box-rod);
  background: #fff;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--basic-txt);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.choice-option:hover { background: var(--bg); }
.choice-option:has(input:checked) { background: var(--bg); border-color: var(--main); }
.choice-option input[type=radio] { width: 16px; height: 16px; accent-color: var(--main); margin: 0; flex-shrink: 0; }

/* ── 並び替えウィジェット（新規機能。選択肢ボタンと同じ視覚言語に統一）─────
   クラス名は writing_challenge/question.php 末尾のJSが直接セレクトしているため変更不可 */
.reorder-widget { margin-top: 10px; }
.answer-slots, .word-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.word-pool { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.reorder-slot, .reorder-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--box-rod);
  background: #fff;
  font-size: 14.5px;
  user-select: none;
  transition: background .15s ease, border-color .15s ease;
}
.reorder-tile, .reorder-slot:not(.is-empty) { cursor: grab; touch-action: none; }
.reorder-tile:hover, .reorder-slot:not(.is-empty):hover { border-color: var(--main); background: var(--bg); }
.reorder-slot.is-empty { color: #b7bbc4; background: #fafbfc; }

/* ── ドラッグ&ドロップ中の見た目 ───────────────────────────── */
.reorder-tile.is-dragging, .reorder-slot.is-dragging { opacity: .35; }
.reorder-slot.is-drag-over,
.word-pool.is-drag-over { border-color: var(--main); background: var(--bg); }
.reorder-ghost {
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transform: scale(1.05);
  z-index: 1000;
}

/* ── 回答直後のフィードバック（old: work_detail_check.php／examSubTiK・examAnc・examCorrectTi）── */
.exam-feedback { text-align: center; margin: 16px 0; }
.exam-result-icon { font-size: 56px; font-weight: 700; line-height: 1; margin: 8px 0 16px; }
.exam-result-icon.is-correct { color: var(--exam-pass); }
.exam-result-icon.is-incorrect { color: var(--exam-fail); }
.exam-answer-area { text-align: left; }
.exam-pill--answer, .exam-pill--correct {
  display: block;
  text-align: left;
  border-radius: 4px;
  padding: 8px 16px;
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 700;
}
.exam-pill--answer { background: #171717; color: #fff; }  /* old: --app-examSubTiK-bg */
.exam-pill--correct { background: #4877ac; color: #fff; } /* old: --app-examCorrectTi-bg */
.exam-answer-box { /* old: .examAnc */
  background: #fffef5;
  border: 1px solid #f0ecad;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.6;
}
.exam-answer-summary { color: #8a7a68; font-size: 13px; margin: 0 0 4px; }
.exam-result-marker { font-size: 16px; font-weight: 700; margin-left: 6px; }
.exam-result-marker.is-correct { color: var(--exam-pass); }
.exam-result-marker.is-incorrect { color: var(--exam-fail); }
.exam-explanation {
  background: #fafbfc;
  border: 1px solid #e2e4e9;
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
}

/* ── 結果ページのスコアバッジ（old: .ScoreIco系を単一色バッジに簡略化）─────
   新システムには合格/不合格の概念が無いため、ブランドオレンジ単色で統一する */
.exam-score-card { text-align: center; padding: 20px 0; }
.exam-score-label { font-size: 13px; color: #8a7a68; font-weight: 700; margin: 0 0 12px; }
.exam-score-badge {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.exam-score-num { font-size: 44px; line-height: 1; }
.exam-score-sep { font-size: 16px; opacity: .85; margin: 2px 0; }
.exam-score-total { font-size: 18px; opacity: .9; }

.exam-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
