/* aws-course.lx-ope.link 共通スタイル
   研修生向けの案内ページ。読みやすさ優先で、影・グラデーションは使わない。
   アクセント色はオレンジ1色（--accent）。文字は黒。 */

:root {
  --ink: #111;
  --paper: #fff;
  --line: #d6d6d6;
  --soft: #f4f4f2;
  --accent: #ec7211;
  --accent-soft: #fff1e4;
  --navy: #232f3e;
  --radius: 10px;
  --font: "Meiryo UI", "Meiryo", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* ---- ヘッダー・フッター ---- */
.site-header {
  background: var(--navy);
  color: #fff;
}
.site-header .inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header a { color: #fff; text-decoration: none; font-weight: bold; letter-spacing: .02em; }
.site-header .mark {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
}
.site-footer .inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  font-size: 13px;
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- パンくず ---- */
.crumbs {
  font-size: 13px;
  padding: 16px 0 0;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }

/* ---- ページ見出し ---- */
.page-head { padding: 28px 0 8px; }
.page-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0 12px;
  margin-bottom: 12px;
}
.page-head h1 {
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.35;
  margin: 0 0 12px;
}
.page-head p { margin: 0; }

h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
h3 { font-size: 17px; margin: 24px 0 8px; }

/* ---- カード一覧 ---- */
.cards {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  display: block;
  height: 100%;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  text-decoration: none;
  background: var(--paper);
}
a.card:hover { background: var(--accent-soft); color: var(--ink); }
.card .num { font-size: 13px; font-weight: bold; color: var(--accent); }
.card .title { display: block; font-size: 18px; font-weight: bold; margin: 2px 0 6px; }
.card .desc { display: block; font-size: 14px; line-height: 1.7; }
.card.is-soon { border-style: dashed; border-color: #999; }
.card.is-soon .num { color: var(--ink); }
.card .soon {
  display: inline-block;
  font-size: 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0 6px;
  margin-top: 8px;
}

/* ---- 囲み ---- */
.note {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
}
.note.is-key {
  border-color: var(--accent);
  border-width: 2px;
  background: var(--accent-soft);
}
.note .note-title { font-weight: bold; margin: 0 0 4px; }
.note p { margin: 0; }
.note p + p { margin-top: 6px; }

/* ---- 進行のタイムライン ---- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  margin: 8px 0 20px;
}
.who {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.6;
  padding: 1px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.who.you { background: var(--ink); color: #fff; }
.who.staff { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); padding: 0 9px; }

.flow {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.flow > li {
  position: relative;
  padding: 0 0 26px 58px;
  counter-increment: step;
}
/* 縦線 */
.flow > li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--ink);
}
.flow > li:last-child::after { display: none; }
.flow > li:last-child { padding-bottom: 0; }
/* 番号の丸 */
.flow > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-weight: bold;
  font-size: 17px;
}
.flow > li.by-you::before { background: var(--ink); color: #fff; }
.flow .step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 40px;
}
.flow .step-title { font-size: 18px; font-weight: bold; }
.flow .step-body { margin-top: 4px; }
.flow .step-body > p { margin: 0 0 8px; }
.flow .step-body ul { margin: 4px 0 8px; padding-left: 1.3em; }

/* ここから本番の境目 */
.flow > li.live-line {
  padding: 4px 0 30px 0;
  counter-increment: none;
}
.flow > li.live-line::before { display: none; }
.flow > li.live-line::after { top: 0; }
.live-line .bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: var(--accent);
  font-size: 15px;
}
.live-line .bar::before,
.live-line .bar::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--accent);
}
.live-line .bar span {
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 2px 14px;
}

/* ---- 定型フレーズ ---- */
.phrase {
  margin: 10px 0 4px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.phrase q {
  flex: 1;
  quotes: "「" "」";
  font-size: 16px;
  line-height: 1.8;
}
.phrase .fill {
  border-bottom: 2px solid var(--accent);
  padding: 0 2px;
}
.copy {
  flex: none;
  font: inherit;
  font-size: 12px;
  font-weight: bold;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 2px 10px;
  cursor: pointer;
  line-height: 1.8;
}
.copy:hover { background: var(--ink); color: #fff; }
.copy.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.phrase-caption { font-size: 13px; margin: 2px 0 0; }

.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.btn {
  display: inline-block;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 18px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.is-disabled { border-style: dashed; border-color: #999; pointer-events: none; font-weight: normal; }

@media (max-width: 520px) {
  body { font-size: 15px; }
  .flow > li { padding-left: 50px; }
  .flow > li::before { width: 36px; height: 36px; font-size: 16px; }
  .flow > li::after { left: 17px; top: 36px; }
  .flow .step-head { min-height: 36px; }
  .phrase { flex-direction: column; gap: 8px; }
  .copy { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .crumbs, .copy, .next-links { display: none; }
  .note.is-key, .card, .phrase { break-inside: avoid; }
}

/* =========================================================
   トップ・一覧（ヒーロー帯とアイコン付きカード）
   ========================================================= */
.hero {
  background: var(--navy);
  color: #fff;
  border-top: 1px solid #3a4655;
}
.hero .inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 16px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.hero h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.3; margin: 0 0 10px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 0; }
.hero .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  border: 1.5px solid #fff;
  border-radius: 999px;
  padding: 0 12px;
  margin-bottom: 12px;
}
.hero svg { width: 150px; height: auto; display: block; }
@media (max-width: 560px) {
  .hero .inner { grid-template-columns: 1fr; }
  .hero svg { display: none; }
}

.theme-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.theme-head h2 { margin: 0; padding: 0; border: none; }
.theme-head .theme-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center;
  flex: none;
}
.theme-head .theme-icon svg { width: 22px; height: 22px; }
.theme-lead { margin: 10px 0 0; }

.card.has-icon {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 14px;
  align-items: start;
}
.card.has-icon .desc { grid-column: 1 / -1; margin-top: 6px; }
.card.has-icon .title { margin: 0; }
.cards:has(.has-icon) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card .icon {
  grid-row: span 2;
  width: 48px; height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  display: grid; place-items: center;
}
.card .icon svg { width: 26px; height: 26px; }
.card .go { display: block; font-size: 13px; font-weight: bold; margin-top: 6px; }
a.card:hover .icon { background: var(--paper); }

/* =========================================================
   採点方法ページ
   ========================================================= */

/* 配点のしくみ */
.score-rule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 8px;
}
.score-rule .box {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.score-rule .box.full { border: 2px solid var(--accent); background: var(--accent-soft); }
.score-rule .pts { font-size: 40px; font-weight: bold; line-height: 1.1; }
.score-rule .pts small { font-size: 16px; margin-left: 2px; }
.score-rule .full .pts { color: var(--accent); }
.score-rule .cond { font-weight: bold; margin: 6px 0 2px; }
.score-rule .box p { margin: 0; font-size: 14px; line-height: 1.7; }
@media (max-width: 520px) { .score-rule { grid-template-columns: 1fr; } }

/* 満点の内訳バー */
.total-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 18px 0 6px;
}
.total-bar a {
  text-decoration: none;
  text-align: center;
  padding: 10px 4px 8px;
  font-size: 13px;
  line-height: 1.4;
  border-left: 1.5px solid var(--ink);
}
.total-bar a:first-child { border-left: none; }
.total-bar a:hover { background: var(--accent-soft); color: var(--ink); }
.total-bar b { display: block; font-size: 18px; }
.total-caption { display: flex; justify-content: space-between; font-size: 13px; margin: 0; }
.total-caption strong { font-size: 15px; }
@media (max-width: 520px) {
  .total-bar a { font-size: 11px; padding: 8px 2px; }
  .total-bar b { font-size: 16px; }
}

/* 評価項目 */
.web-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed var(--ink);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 16px 0 0;
  font-size: 14px;
  cursor: pointer;
}
.criteria { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.crit {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 16px;
}
.crit-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--soft);
}
.crit-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-weight: bold;
  font-size: 18px;
}
.crit-title { font-size: 18px; font-weight: bold; line-height: 1.45; margin: 0; }
.crit-sub { display: block; font-size: 13px; font-weight: normal; }
.crit-score {
  min-width: 70px;
  text-align: center;
  font-weight: bold;
  font-size: 22px;
  line-height: 1.1;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 6px 8px 4px;
  background: var(--paper);
}
.crit-score small { display: block; font-size: 11px; font-weight: normal; }
.crit.is-full .crit-score { border-color: var(--accent); background: var(--accent); color: #fff; }

.checks { list-style: none; margin: 0; padding: 6px 16px 10px; }
.checks li + li { border-top: 1px solid var(--line); }
.checks label {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  cursor: pointer;
  line-height: 1.7;
}
.checks input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin: 2px 0 0;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
  display: grid; place-items: center;
  cursor: pointer;
}
.checks input:checked { background: var(--accent); border-color: var(--accent); }
.checks input:checked::after {
  content: "";
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: translateY(-1px) rotate(45deg);
}
.checks input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.checks li.is-excluded label { text-decoration: line-through; cursor: default; }
.checks li.is-excluded .ex-tag { text-decoration: none; }
.ex-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 4px;
  vertical-align: 1px;
}

/* 画面下の合計 */
.score-dock {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 24px 0 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--navy);
  color: #fff;
}
.score-dock .inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  flex-wrap: wrap;
}
.score-dock .label { font-size: 13px; }
.score-dock .sum { font-size: 26px; font-weight: bold; line-height: 1; }
.score-dock .sum small { font-size: 14px; font-weight: normal; }
.score-dock .pips { display: flex; gap: 4px; flex: 1; min-width: 120px; }
.score-dock .pip {
  flex: 1;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid #fff;
}
.score-dock .pip.on { background: var(--accent); border-color: var(--accent); }
.score-dock button {
  font: inherit;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: transparent;
  border: 1.5px solid #fff;
  border-radius: 6px;
  padding: 2px 10px;
  cursor: pointer;
}
.score-dock button:hover { background: #fff; color: var(--navy); }

@media print {
  .score-dock, .web-toggle { display: none; }
  .crit { break-inside: avoid; }
}
