/* ===============================
   共通スタイル
   =============================== */
* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #222;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

/* ===============================
   左パネル
   =============================== */
.left-panel {
  flex: 1 1 260px;
  max-width: 300px;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e5e5e5;
}

.left-panel h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

/* カテゴリ選択 */
.category-select {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-row label {
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 15px;
}

/* ===============================
   級選択（3列固定・中央寄せ）
   =============================== */
.grade-select {
  margin-top: 10px;
  text-align: center;
}

.grade-label {
  font-weight: 700;
  font-size: 14px;
  margin: 6px 0 8px;
  color: #2b2b2b;
  display: block;
  text-align: left;
}

/* ★3列固定＋中央寄せ＋幅制御 */
.grade-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  gap: 10px 10px;
  max-width: 260px;   /* 左パネル幅に合わせる */
  margin: 0 auto;     /* 中央寄せ */
  line-height: 1.6;
  font-size: 14px;
}

.grade-list label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, outline .15s;
}

.grade-list label:hover {
  background: #f0f5ff;
}

.grade-list label:has(input:checked) {
  background: #e7efff;
  outline: 1px solid #c7d8ff;
  font-weight: 600;
}

/* スマホでは2列に変更 */
@media (max-width: 640px) {
  .grade-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 220px;
    gap: 8px 10px;
    font-size: 14px;
  }
}

/* ===============================
   テキストボタン
   =============================== */
.text-selection {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2列 */
  gap: 6px 8px;  /* 行間6px・列間8px くらい */
}

.text-button {
  padding: 6px 10px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  background: #f6f7fb !important;
  color: #000 !important;
  text-align: left;
  cursor: pointer;
}

.text-button:hover {
  background: #e1eaff !important;
  color: #000 !important;
}

/* ===============================
   右パネル
   =============================== */
.right-panel {
  flex: 1 1 640px;
  min-width: 520px;
}

.right-panel h1,
.right-panel h2 {
  margin: 0;
}

.practice-header {
  display: block;
  margin: 0 0 10px;
}

.practice-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
}

.section-title-block {
  display: block;
  min-width: 0;
  margin: 0;
}

.section-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.section-title-sub {
  margin: 2px 0 0;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 10px;
  margin: 8px 0 0 auto;
}

.instruction {
  margin: 6px 0 10px;
  font-size: 14px;
  color: #444;
}

.current-problem {
  margin: 2px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2b4a9e;
}

.reading-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.reading-options[hidden] {
  display: none;
}

..reading-options label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d5d9e2;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.score-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.score-options label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d5d9e2;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.text-box {
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  min-height: 160px;
  max-height: min(42vh, 360px);
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.85;
  font-size: 17px;
  scroll-behavior: smooth;
}

.text-box.has-ruby {
  padding-top: 14px;
  line-height: 2.05;
}

.text-box ruby {
  ruby-position: over;
}

.text-box rt {
  font-size: 0.62em;
  line-height: 1;
  color: #64748b;
  font-weight: 500;
}

.text-box.ruby-compact rt {
  font-size: 0.55em;
  color: #94a3b8;
}

.text-box.ruby-hidden rt,
.text-box.ruby-hidden rp {
  display: none;
}

.text-box.ruby-hidden.has-ruby {
  padding-top: 12px;
  line-height: 1.85;
}

.input-box {
  width: 100%;
  height: 260px;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #8a8a8a;
  font-size: 16px;
}

.controls {
  margin: 0;
  display: flex;
  gap: 8px;
}

button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #3c7cff;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}

button:disabled {
  background: #b6b6b6;
}

button:hover:not(:disabled) {
  background: #2b69e8;
}

/* ===============================
   成績表示
   =============================== */
.exam-time-options {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.exam-time-options[hidden] { display: none; }

.exam-time-options fieldset {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d5d9e2;
  border-radius: 8px;
  background: #fff;
}

.exam-time-options legend {
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.exam-time-options label {
  display: block;
  margin: 6px 0;
  font-size: 14px;
  cursor: pointer;
}

.exam-timer-row.typing-business-timer label { display: none; }

.typing-business-top-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.typing-business-top-options[hidden] {
  display: none;
}

.typing-business-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d5d9e2;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.typing-business-control > span {
  font-weight: 700;
  color: #374151;
}

.typing-business-control label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.typing-business-klc-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #dbe4f5;
  background: #f8fbff;
  color: #245bd6;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .typing-business-top-options {
    width: 100%;
    justify-content: flex-start;
  }

  .typing-business-control {
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* タイピング実務能力検定：タイトル行内の公式案内 v41 */
.typing-business-notice {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.typing-business-notice[hidden] {
  display: none;
}

.typing-business-notice-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f4fb2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.typing-business-notice-text::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: #2f6be6;
}

.typing-business-notice-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #245bd6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.typing-business-notice-link:hover {
  color: #123d9a;
}

@media (max-width: 900px) {
  .practice-title-line {
    flex-direction: column;
    gap: 6px;
  }

  .typing-business-notice {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .typing-business-notice-link {
    white-space: normal;
  }
}

.typing-business-line-guide { padding: 8px; }

.typing-business-line {
  padding: 6px 8px;
  border-radius: 6px;
}

.typing-business-line.current-line {
  background: #fff7d6;
  outline: 2px solid #f1c94b;
}

.typing-business-line-break-mark {
  display: inline-block;
  margin-left: 0.25em;
  padding: 0 0.25em;
  border-radius: 999px;
  background: #eef4ff;
  color: #245bd6;
  font-size: 0.82em;
  font-weight: 800;
  line-height: 1.35;
  vertical-align: 0.05em;
}

.typing-business-pass { color: #0f7a3a; }
.typing-business-fail { color: #b42318; }

#typingBusinessPassCell[hidden] {
  display: none;
}

.results {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #d9dce3;
  border-radius: 8px;
  overflow: hidden;
  line-height: 1.5;
  font-size: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.results[hidden] {
  display: none;
}

.result-cell {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid #e6e8ef;
  border-bottom: 1px solid #e6e8ef;
  display: grid;
  grid-template-columns: minmax(5.5em, auto) minmax(3.5em, 1fr);
  align-items: baseline;
  gap: 10px;
  background: #fff;
}

.result-cell:nth-child(4n),
.result-cell:last-child {
  border-right: 0;
}

.result-cell:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.result-cell-wide {
  grid-column: span 2;
}

.result-label {
  color: #4b5563;
  font-weight: 600;
  white-space: nowrap;
}

.result-value {
  justify-self: end;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.val-red { color: #d60000; }
.val-blue { color: #004fe3; }
.val-purple { color: #6a1b9a; }

/* ===============================
   差分表示
   =============================== */
.diff-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.diff-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.diff {
  min-height: 100px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.mistake  { background: #ffcdcd; }
.omission { background: #cfe0ff; }
.extra    { background: #e4ccff; }

/* ===============================
   検定タイマー
   =============================== */
.exam-timer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.exam-timer-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d5d9e2;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.timer-label { font-size: 13px; color: #444; }

.exam-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .02em;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f5f5f7;
  min-width: 6ch;
  text-align: center;
}

.exam-timer.warn { background: #fff4cc; }
.exam-timer.urgent { background: #ffe1e1; }
.exam-timer.finished { background: #e6e6e6; color: #666; }

.locked { opacity: .65; filter: grayscale(.2); }

/* ===============================
   フッターエリア
   =============================== */
.site-notes {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
}

.site-notes p {
  margin: 6px 0;
}

.site-notes small {
  color: #666;
}

.note-ai {
  font-size: 12px;
  color: #777;
}

/* 英単語版リンクボタン */
.site-notes .links { margin: 16px 0 12px; }

.site-notes .btn-en {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #0040c1;
  background: linear-gradient(180deg, #f7faff 0%, #e6efff 100%);
  border: 1px solid #cfdfff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.site-notes .btn-en:hover {
  background: linear-gradient(180deg, #eaf2ff 0%, #dbe7ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 5px rgba(0,0,0,0.12);
}

/* 日本タイピング協会 公認ブロック */
.site-notes .jta {
  margin: 18px auto 8px;
  max-width: 920px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;      /* 画面が狭いときは自動で折り返し */
}

/* 真ん中の協会ロゴ＋文章の塊 */
.site-notes .jta-center {
  text-align: center;
}

/* 左右のロゴ（KIDAI・はなまる） */
.site-notes .jta-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 左右ロゴの画像サイズ */
.side-banner {
  height: 70px;
  width: auto;     /* 横幅は自動で比率維持 */
  object-fit: contain;
}

/* スマホでは縦並びにする */
@media (max-width: 640px) {
  .side-banner {
    height: 50px;
  }
}

/* 協会ロゴも side-banner と合わせて高さ 70px に統一 */
.site-notes .jta-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.site-notes .jta-text {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 640px) {
  .site-notes .jta-text { font-size: 15px; }
}

/* ===============================
   スマホ対応
   =============================== */
@media (max-width: 880px) {
  .right-panel { min-width: 100%; }
  .diff-wrap { grid-template-columns: 1fr; }
}

/* ===============================
   利用規約ページ（terms.html）用スタイル
   =============================== */

.terms-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px 28px;
}

/* ヘッダー */
.terms-header {
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.terms-site-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.terms-site-title a {
  color: #222;
  text-decoration: none;
}

.terms-site-title a:hover {
  text-decoration: underline;
}

.terms-site-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666;
}

/* メインボックス */
.terms-main {
  background: #ffffff;
  border-radius: 10px;
  padding: 22px 18px 24px;
  border: 1px solid #e5e5e5;
}

/* タイトル・リード文 */
.terms-title {
  font-size: 24px;
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 4px solid #3c7cff;
}

.terms-lead {
  font-size: 15px;
  background: #f5f7ff;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0;
  line-height: 1.75;
}

/* 各セクション */
.terms-section {
  margin-bottom: 22px;
}

.terms-section h2 {
  font-size: 17px;
  margin: 0 0 6px;
  padding-left: 8px;
  border-left: 3px solid #3c7cff;
}

.terms-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

/* 制定日 */
.terms-date {
  margin-top: 26px;
  font-size: 14px;
  color: #666;
  text-align: right;
}

/* 戻るボタン */
.terms-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.terms-btn-main,
.terms-btn-sub {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

/* メインボタン（トップに戻る） */
.terms-btn-main {
  background: #3c7cff;
  color: #fff;
  border: 1px solid #2b69e8;
}

.terms-btn-main:hover {
  background: #2b69e8;
}

/* サブボタン（協賛ページなど用：今はコメントアウト中） */
.terms-btn-sub {
  background: #f0f4ff;
  color: #1f4fb6;
  border: 1px solid #c6d6ff;
}

.terms-btn-sub:hover {
  background: #e3ecff;
}

/* フッター */
.terms-footer {
  margin-top: 18px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.terms-footer p {
  margin: 4px 0;
}

.terms-note {
  font-size: 13px;
}

/* スマホ対応 */
@media (max-width: 640px) {
  .terms-wrap {
    padding: 16px 10px 24px;
  }

  .terms-main {
    padding: 18px 12px 20px;
  }

  .terms-title {
    font-size: 20px;
  }

  .terms-links {
    flex-direction: column;
  }

  .terms-btn-main,
  .terms-btn-sub {
    width: 100%;
    text-align: center;
  }
}
/* ============================
   協賛者一覧ページ
============================ */

/* バナー協賛：グリッド */
.kyosan-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.kyosan-banner {
  display: block;
  padding: 10px;
  text-align: center;
  background: transparent;   /* 白背景も外す */
  border: none;               /* 枠線なし */
  border-radius: 0;
  transition: transform 0.2s ease;
}

.kyosan-banner:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.kyosan-banner img {
  max-width: 100%;
  height: auto;
}

/* テキストリンク協賛 */
.kyosan-text-link {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.kyosan-text-link li {
  margin-bottom: 8px;
}

.kyosan-text-link a {
  text-decoration: none;
  color: #0066cc;
}

.kyosan-text-link a:hover {
  text-decoration: underline;
}

/* テキストのみ協賛 */
.kyosan-text-only {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.kyosan-text-only li {
  font-size: 0.95em;
  color: #333;
}

/* ===============================
   トップページ掲載協賛（サイズ調整）
=============================== */
.top-sponsors {
  margin: 24px auto 16px; 
  padding-top: 8px;
  /* border-top: 1px solid #e6e6e6; */
  text-align: center;
}

.top-sponsors-title {
  font-size: 13px;
  font-weight: 500; 
  color: #666;
  letter-spacing: 0.04em;
  margin-bottom: 10px; 
}

.top-sponsors-grid {
  display: flex;
  justify-content: center;
  gap: 48px;              /* ロゴ間の余白 */
  flex-wrap: wrap;
}

.top-sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-sponsor img {
  max-height: 48px;
  max-width: 200px;
  width: auto;
  height: auto;
}

/* ===============================
   協賛者一覧ページ：バナーサイズ調整
=============================== */

.kyosan-banner-grid {
  gap: 24px;              /* バナー間の余白を少し詰める */
}

.kyosan-banner {
  padding: 8px;           /* 枠の余白を小さく */
}

.kyosan-banner img {
  max-height: 60px;       /* ← 高さを抑える（重要） */
  max-width: 260px;       /* 横も上品サイズに */
  width: auto;
  height: auto;
}

/* =========================
   協賛ガイドページ用
   ========================= */

/* 協賛プラン表 */
.kyosan-plan-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 14px;
}

.kyosan-plan-table th,
.kyosan-plan-table td {
  border: 1px solid #dde3f5;
  padding: 12px 14px;
  vertical-align: top;
}

.kyosan-plan-table th {
  background: #f3f5ff;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.kyosan-plan-table td:nth-child(2) {
  white-space: nowrap;
}

/* 注記・補足文 */
.terms-note {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-top: 12px;
}

/* 手順リスト（申し込みの流れ） */
.terms-section ol {
  margin-left: 1.2em;
  padding-left: 0.5em;
}

.terms-section ol li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* リンクボタンエリア */
.terms-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.terms-btn-main,
.terms-btn-sub {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

/* メインボタン */
.terms-btn-main {
  background: #3f51b5;
  color: #fff;
}

.terms-btn-main:hover {
  opacity: 0.9;
}

/* サブボタン */
.terms-btn-sub {
  background: #eef1ff;
  color: #3f51b5;
}

.terms-btn-sub:hover {
  background: #e2e6ff;
}

/* スマホ表示調整 */
@media (max-width: 640px) {
  .kyosan-plan-table {
    font-size: 13px;
  }

  .kyosan-plan-table th,
  .kyosan-plan-table td {
    padding: 9px 8px;
  }

  .terms-links {
    flex-direction: column;
  }

  .terms-btn-main,
  .terms-btn-sub {
    text-align: center;
    width: 100%;
  }
}
/* 2ボタンを同じ見た目に揃える（色だけ違う） */
.site-notes .links-multi{
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* 共通ボタン */
.site-notes .btn-en,
.site-notes .btn-quest{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

/* 英単語（今の雰囲気を踏襲：淡い） */
.site-notes .btn-en{
  color: #0040c1;
  background: linear-gradient(180deg, #f7faff 0%, #e6efff 100%);
  border: 1px solid #cfdfff;
}

/* タイプクエスト（同じ“淡い系”に寄せる） */
.site-notes .btn-quest{
  color: #8a2a00;
  background: linear-gradient(180deg, #fff3ea 0%, #ffe1cf 100%);
  border: 1px solid #ffd0b6;
}

/* クリック後も色が変わらない */
.site-notes .btn-en:visited{ color: #0040c1; }
.site-notes .btn-quest:visited{ color: #8a2a00; }

/* hover */
.site-notes .btn-en:hover,
.site-notes .btn-quest:hover{
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* ===== Header Menu ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(250,250,250,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.site-header-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-brand{
  text-decoration: none;
  color: #222;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}

.site-nav{
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a{
  text-decoration: none;
  color: #222;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 9999px;
}

.site-nav a:hover{
  background: rgba(0,0,0,0.06);
}

/* hamburger */
.nav-toggle{
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span{
  display: block;
  width: 20px;
  height: 2px;
  background: #222;
  margin: 4px auto;
}

/* Mobile */
@media (max-width: 820px){
  .nav-toggle{ display: inline-block; }

  .site-nav{
    display: none;
    position: absolute;
    top: 58px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  }

  .site-nav.is-open{ display: flex; }
  .site-nav a{ text-align: center; }
}

/* 実績ブロック強調 */
.terms-section:first-of-type {
  background: #f0f6ff;
  border: 1px solid #d6e4ff;
  border-radius: 10px;
  padding: 16px;
}

.terms-section:first-of-type h2 {
  font-size: 18px;
  color: #2b69e8;
}

.terms-section:first-of-type li {
  font-weight: 600;
  font-size: 15px;
}
.terms-section:first-of-type li:first-child {
  font-size: 16px;
  color: #d60000;
}

.home-achievement {
  text-align: center;
  margin-bottom: 18px;
}

.home-achievement-number {
  font-size: 18px;
  font-weight: 700;
  color: #d60000;
  margin: 0 0 4px;
}

.home-achievement-sub {
  font-size: 13px;
  color: #666;
}


@media (max-width: 760px) {
  .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-cell:nth-child(4n) {
    border-right: 1px solid #e6e8ef;
  }

  .result-cell:nth-child(2n),
  .result-cell:last-child {
    border-right: 0;
  }

  .result-cell:nth-last-child(-n + 3) {
    border-bottom: 1px solid #e6e8ef;
  }

  .result-cell:nth-last-child(-n + 1) {
    border-bottom: 0;
  }

  .result-cell-wide {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .results {
    grid-template-columns: 1fr;
  }

  .result-cell,
  .result-cell:nth-child(2n),
  .result-cell:nth-child(4n) {
    border-right: 0;
  }

  .result-cell:nth-last-child(-n + 3) {
    border-bottom: 1px solid #e6e8ef;
  }

  .result-cell:last-child {
    border-bottom: 0;
  }

  .result-cell-wide {
    grid-column: span 1;
  }
}


/* Balanced organization logo area */
.site-notes .jta-balanced {
  display: grid;
  gap: 24px;
  justify-items: center;
  margin: 24px auto 18px;
}

.site-notes .jta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 70px);
  flex-wrap: wrap;
  width: 100%;
}

.site-notes .jta-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
}

.site-notes .jta-logo-kidai img {
  max-width: 260px;
  max-height: 70px;
}

.site-notes .jta-logo-jta img {
  max-width: 330px;
  max-height: 78px;
}

.site-notes .jta-logo-klc img {
  max-width: 150px;
  max-height: 66px;
}

.site-notes .jta-row-support {
  margin-top: 4px;
}

.site-notes .jta-logo-school img {
  max-width: 340px;
  max-height: 78px;
}

@media (max-width: 640px) {
  .site-notes .jta-row {
    gap: 18px;
  }

  .site-notes .jta-logo-kidai img,
  .site-notes .jta-logo-jta img,
  .site-notes .jta-logo-school img {
    max-width: min(82vw, 280px);
  }
}


/* Fixed end bar shown only while typing */
.practice-fixed-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(60, 124, 255, 0.22);
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
}

.practice-fixed-bar[hidden] {
  display: none;
}

.practice-fixed-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.practice-fixed-time {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f5f7fb;
  border: 1px solid #dce5f4;
  color: #374151;
  font-weight: 700;
}

.practice-fixed-time[hidden] {
  display: none;
}

.practice-fixed-time strong {
  color: #111827;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.practice-fixed-end {
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 8px;
  background: #d93025;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(217, 48, 37, 0.22);
}

.practice-fixed-end:hover:not(:disabled) {
  background: #b7271f;
}

body.practice-fixed-bar-active {
  padding-bottom: 76px;
}

.practice-setup-guide {
  margin: 0 0 14px;
  padding: 10px 12px 10px 28px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid #dbe4f5;
  color: #374151;
  font-size: 13px;
  line-height: 1.7;
}

.practice-step-label {
  margin: 0 0 8px;
  color: #245bd6;
  font-weight: 800;
  font-size: 14px;
}

.text-selection-step {
  margin-top: 14px;
}

@media (max-width: 640px) {
  .practice-fixed-inner {
    justify-content: stretch;
  }

  .practice-fixed-time {
    min-height: 42px;
    padding: 7px 10px;
  }

  .practice-fixed-end {
    flex: 1 1 auto;
    padding: 10px 12px;
    font-size: 15px;
  }
}


/* Shared exam time options */
.exam-timer-row label {
  display: none !important;
}

.exam-time-options {
  margin-top: 14px;
}


/* ===============================
   判定目安
   =============================== */
.level-guide {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #d7e2f5;
  border-radius: 12px;
  background: #f8fbff;
}

.level-guide[hidden] { display: none; }

.level-guide-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.level-guide h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #1f3763;
}

.level-guide-lead {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.level-guide-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.level-guide-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff;
}

.level-guide-card-title {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.level-guide-card-main {
  display: block;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  color: #1f2937;
}

.level-guide-card-sub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.level-guide-card.is-pass {
  border-color: #a7d7b8;
  background: #f3fff7;
}

.level-guide-card.is-pass .level-guide-card-main {
  color: #0f7a3a;
}

.level-guide-card.is-fail {
  border-color: #f4b5ad;
  background: #fff7f6;
}

.level-guide-card.is-fail .level-guide-card-main {
  color: #b42318;
}

.level-guide-card.is-neutral {
  border-color: #dbe4f0;
  background: #fff;
}

.level-guide-next {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  font-size: 13px;
  line-height: 1.7;
  color: #334155;
  white-space: pre-line;
}

.level-guide-next:empty { display: none; }

.level-guide-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #64748b;
}

@media (max-width: 900px) {
  .level-guide-cards {
    grid-template-columns: 1fr;
  }
}


/* ===============================
   通常練習：問題数が多いときの範囲切替
   =============================== */
.practice-range-select {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 8px;
  border: 1px solid #e1e6f2;
  border-radius: 8px;
  background: #fbfcff;
}

.practice-range-label {
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
}

.practice-range-button {
  padding: 5px 8px;
  border: 1px solid #cfd8ea;
  border-radius: 9999px;
  background: #fff;
  color: #2d4778;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.practice-range-button:hover {
  background: #eef4ff;
}

.practice-range-button.is-active {
  background: #3c7cff;
  border-color: #3c7cff;
  color: #fff;
}

.text-button.is-selected {
  background: #dbeafe !important;
  border-color: #3c7cff;
  font-weight: 700;
}

/* ===============================
   成績リアルタイム表示OFF時
   =============================== */
.results.score-summary-only {
  grid-template-columns: minmax(0, 320px);
  max-width: 340px;
}

.results.score-summary-only .result-cell:not(:first-child) {
  display: none;
}

.results.score-summary-only .result-cell:first-child {
  border-right: 0;
  border-bottom: 0;
}

.diff-details[hidden],
.diff-wrap[hidden],
.legend[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .practice-range-button {
    flex: 1 1 calc(50% - 6px);
  }

  .results.score-summary-only {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* ===============================
   通常練習：文字数別の練習文選択
   =============================== */
.practice-length-select {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: stretch;
  padding: 10px;
}

.practice-length-select .practice-range-label {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.practice-length-button {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(5.5em, auto) 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  line-height: 1.35;
  text-align: left;
}

.practice-length-button:disabled {
  opacity: .45;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #777;
}

.practice-length-button.is-active .practice-length-meta {
  color: rgba(255,255,255,.88);
}

.practice-length-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.practice-length-meta {
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.practice-length-heading {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 8px 2px 0;
  color: #334155;
}

.practice-length-heading strong {
  font-size: 15px;
}

.practice-length-heading span {
  font-size: 12px;
  color: #64748b;
}

.practice-text-button {
  display: grid;
  gap: 2px;
  line-height: 1.35;
}

.practice-text-main {
  font-size: 14px;
  font-weight: 700;
}

.practice-text-meta {
  font-size: 12px;
  color: #64748b;
}

.practice-empty-message {
  grid-column: 1 / -1;
  margin: 6px 0;
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 640px) {
  .practice-length-button {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .practice-length-meta {
    justify-self: start;
  }
}

/* ===============================
   通常練習：文字数別アコーディオン
   =============================== */
.practice-length-accordion {
  gap: 8px;
}

/* 左パネル内で＋ボタンが見切れないよう、
   名称・文字数を左側にまとめ、開閉ボタン用の幅を固定する */
.practice-length-accordion .practice-length-button {
  grid-template-columns: minmax(0, 1fr) 28px;
  row-gap: 2px;
  column-gap: 8px;
  padding: 9px 10px 9px 12px;
  overflow: visible;
}

.practice-length-accordion .practice-length-name {
  grid-column: 1;
  min-width: 0;
}

.practice-length-accordion .practice-length-meta {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}

.practice-length-toggle {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 9999px;
  background: rgba(60, 124, 255, .10);
  color: #2d4778;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.practice-length-button.is-active .practice-length-toggle {
  background: rgba(255,255,255,.22);
  color: #fff;
}

.practice-length-panel {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: -2px 0 4px;
  padding: 10px;
  border: 1px solid #dbe5f5;
  border-radius: 12px;
  background: #ffffff;
}

.practice-length-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 0 2px 2px;
}

.practice-length-panel-head strong {
  font-size: 14px;
  color: #1e3a5f;
}

.practice-length-panel-head span {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.practice-length-panel-pager {
  margin: 0;
  padding: 6px;
  border-radius: 10px;
  background: #f8fbff;
}

.practice-length-panel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
}

.practice-length-panel-list .practice-text-button {
  margin: 0;
}

@media (max-width: 640px) {
  .practice-length-accordion .practice-length-button {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .practice-length-panel-list {
    grid-template-columns: 1fr;
  }
}


/* ===============================
   結果表示の整理（v17）
   =============================== */
.level-guide {
  padding: 18px;
  border-color: #cfe0f7;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
}

.level-guide-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.level-guide h2 {
  font-size: 19px;
}

.level-guide-next {
  margin: 0 0 12px;
  padding: 12px 14px 12px 16px;
  border: 1px solid #b9d6ff;
  border-left: 5px solid #3c7cff;
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.75;
  color: #20304a;
}

.level-guide-next::before {
  content: "次の目標";
  display: block;
  margin-bottom: 4px;
  color: #245bd6;
  font-size: 13px;
  font-weight: 900;
}

.level-guide-cards {
  gap: 8px;
}

.level-guide-card {
  padding: 10px 11px;
}

.level-guide-card-main {
  font-size: 18px;
}

.level-guide-card-sub {
  font-size: 12px;
}

.diff-details {
  margin-top: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.diff-details summary {
  cursor: pointer;
  padding: 11px 13px;
  color: #29466f;
  font-size: 14px;
  font-weight: 800;
  list-style-position: inside;
  background: #f8fbff;
  user-select: none;
}

.diff-details[open] summary {
  border-bottom: 1px solid #e6eaf2;
}

.diff-details .diff-wrap {
  margin: 0;
  padding: 12px;
}

.diff-details .legend {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 13px;
  line-height: 1.6;
}

.diff-details .chip {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 6px;
  border: 1px solid #ddd;
}

.diff-details .chip-blue,
.diff-details .chip-purple {
  margin-left: 12px;
}

.diff-details .chip-red { background: #ffcdcd; }
.diff-details .chip-blue { background: #cfe0ff; }
.diff-details .chip-purple { background: #e4ccff; }

@media (max-width: 640px) {
  .level-guide {
    padding: 14px;
  }

  .level-guide-next {
    font-size: 13px;
  }

  .diff-details .diff-wrap {
    padding: 10px;
  }
}

/* ===============================
   Footer renewal v18
   =============================== */
.site-footer-renewal {
  max-width: 980px;
  margin: 34px auto 0;
  padding: 0 0 8px;
  text-align: left;
  color: #1f2937;
}

.site-footer-renewal section {
  margin: 16px 0;
}

.footer-section-heading {
  text-align: center;
  margin: 0 auto 14px;
}

.footer-section-heading h2 {
  margin: 2px 0 6px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
  color: #17335f;
}

.footer-section-heading p {
  margin: 4px auto;
  color: #52627a;
  line-height: 1.8;
}

.footer-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: #315ca8 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.footer-card-grid,
.footer-logo-grid,
.footer-sponsor-grid,
.footer-utility-links {
  display: grid;
  gap: 12px;
}

.footer-card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-action-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid #d8e3f4;
  background: #fff;
  color: #17335f;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(31, 62, 113, .07);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.footer-action-card::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.72);
  color: currentColor;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.footer-action-card:hover,
.footer-logo-card:hover,
.footer-sponsor-card:hover,
.footer-support-link:hover,
.footer-utility-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 62, 113, .12);
}

.footer-action-card strong {
  padding-right: 34px;
  font-size: 18px;
  line-height: 1.35;
}

.footer-action-card small {
  padding-right: 34px;
  color: #52627a;
  line-height: 1.65;
}

.footer-card-label {
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,.7);
}

.footer-action-card-blue {
  background: linear-gradient(135deg, #f6f9ff 0%, #e7f0ff 100%);
  border-color: #cfe0ff;
  color: #214fbe;
}

.footer-action-card-orange {
  background: linear-gradient(135deg, #fff9f3 0%, #ffe8d8 100%);
  border-color: #ffd4bd;
  color: #9a3a10;
}

.footer-trust-panel,
.footer-support-panel {
  padding: 20px;
  border: 1px solid #dfe7f4;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(31, 62, 113, .06);
}

.footer-logo-grid-main {
  grid-template-columns: 1.35fr 1fr .8fr 1.2fr;
  align-items: stretch;
}

.footer-logo-card,
.footer-sponsor-card {
  min-height: 104px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 8px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.footer-logo-card span {
  padding: 2px 10px;
  border-radius: 999px;
  background: #f1f5fb;
  color: #52627a;
  font-size: 11px;
  font-weight: 800;
}

.footer-logo-card img,
.footer-sponsor-card img {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-logo-card img {
  max-height: 54px;
}

.footer-logo-card-featured img {
  max-height: 64px;
}

.footer-logo-card-small img {
  max-height: 48px;
}

.footer-logo-card-wide img {
  max-height: 58px;
}

.footer-sponsor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  margin: 0 auto;
}

.footer-sponsor-card {
  min-height: 86px;
}

.footer-sponsor-card img {
  max-height: 48px;
}

.footer-support-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin: 16px auto 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #cbd9ee;
  background: #fff;
  color: #245bd6;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

.footer-utility-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px auto 12px;
}

.footer-utility-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #e0e7f2;
  border-radius: 12px;
  background: #fff;
  color: #31527f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease;
}

.footer-note-ai {
  margin: 18px auto 0 !important;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6f7f9;
  color: #6b7280 !important;
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .footer-logo-grid-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-footer-renewal {
    margin-top: 24px;
  }

  .footer-card-grid-two,
  .footer-logo-grid-main,
  .footer-sponsor-grid,
  .footer-utility-links {
    grid-template-columns: 1fr;
  }

  .footer-trust-panel,
  .footer-support-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .footer-action-card {
    min-height: 96px;
    padding: 16px 18px;
  }

  .footer-logo-card {
    min-height: 92px;
  }

  .footer-sponsor-card {
    min-height: 78px;
  }
}

/* ===============================
   フッター再整理 v19：カード感を抑えたミニマル表示
   =============================== */
.site-footer-minimal {
  max-width: 980px;
  margin: 34px auto 0;
  padding: 26px 0 10px;
  border-top: 1px solid #dfe6f0;
  text-align: center;
  color: #243247;
}

.site-footer-minimal .footer-mini-section {
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid #edf1f6;
}

.site-footer-minimal h2 {
  margin: 4px 0 8px;
  color: #17335f;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.site-footer-minimal p {
  margin: 4px 0;
  color: #56657a;
  line-height: 1.8;
}

.footer-mini-kicker {
  margin: 0 0 4px !important;
  color: #315ca8 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.footer-mini-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer-mini-action {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #d8e2f0;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.footer-mini-action span {
  font-size: 15px;
  font-weight: 800;
}

.footer-mini-action small {
  font-size: 12px;
  color: #66758a;
}

.footer-mini-action::after {
  content: "›";
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.footer-mini-action:hover,
.footer-mini-logo-row a:hover,
.footer-mini-sponsor-row a:hover,
.footer-mini-links a:hover {
  transform: translateY(-1px);
}

.footer-mini-action-blue {
  color: #245bd6;
  border-color: #cbdcf7;
  background: #f8fbff;
}

.footer-mini-action-blue:hover { background: #eef5ff; }

.footer-mini-action-orange {
  color: #9a3a10;
  border-color: #ffd9c4;
  background: #fff9f5;
}

.footer-mini-action-orange:hover { background: #fff1e8; }

.footer-mini-trust {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.6fr);
  gap: 20px;
  align-items: center;
  text-align: left;
}

.footer-mini-trust-text {
  min-width: 0;
}

.footer-mini-logo-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-mini-logo-row a {
  display: inline-grid;
  gap: 6px;
  justify-items: center;
  align-items: center;
  min-width: 96px;
  color: #56657a;
  text-decoration: none;
  transition: transform .16s ease, opacity .16s ease;
}

.footer-mini-logo-row a:hover {
  opacity: .86;
}

.footer-mini-logo-row span {
  font-size: 11px;
  font-weight: 800;
  color: #7a879a;
}

.footer-mini-logo-row img {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 48px;
  object-fit: contain;
}

.footer-mini-logo-row a:first-child img { max-height: 56px; }
.footer-mini-logo-row a:nth-child(3) img { max-height: 38px; }
.footer-mini-logo-row a:nth-child(4) img { max-height: 44px; }

.footer-mini-support {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.7fr);
  gap: 20px;
  align-items: center;
  text-align: left;
}

.footer-mini-support h2 {
  font-size: 17px;
}

.footer-mini-sponsor-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-mini-sponsor-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .16s ease, opacity .16s ease;
}

.footer-mini-sponsor-row a:hover {
  opacity: .9;
}

.footer-mini-sponsor-row img {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 44px;
  object-fit: contain;
}

.footer-mini-text-link {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #d8e2f0;
  color: #245bd6;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.footer-mini-links {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 18px 0 8px;
  font-size: 13px;
}

.footer-mini-links a {
  color: #31527f;
  text-decoration: none;
  font-weight: 700;
}

.footer-mini-links a + a::before {
  content: "｜";
  margin: 0 10px;
  color: #c3ccda;
  font-weight: 400;
}

.footer-mini-note-ai {
  max-width: 760px;
  margin: 10px auto 0 !important;
  color: #7a879a !important;
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 780px) {
  .site-footer-minimal {
    margin-top: 26px;
    padding-top: 20px;
  }

  .site-footer-minimal .footer-mini-section {
    padding: 20px 0;
  }

  .footer-mini-trust,
  .footer-mini-support {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-mini-logo-row,
  .footer-mini-sponsor-row {
    justify-content: center;
    gap: 18px;
  }

  .footer-mini-logo-row a {
    min-width: 118px;
  }
}

@media (max-width: 520px) {
  .footer-mini-actions {
    align-items: stretch;
  }

  .footer-mini-action {
    width: 100%;
    justify-content: center;
  }

  .footer-mini-logo-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-mini-logo-row img {
    max-width: 130px;
  }

  .footer-mini-sponsor-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-mini-sponsor-row img {
    max-width: 220px;
  }

  .footer-mini-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
  }

  .footer-mini-links a + a::before {
    content: none;
  }
}

/* ===============================
   フッター再整理 v20：余白を抑えた中央揃えのシンプル表示
   =============================== */
.site-footer-clean {
  max-width: 920px;
  margin: 30px auto 0;
  padding: 24px 12px 18px;
  border-top: 1px solid #e3e9f3;
  text-align: center;
  color: #22314a;
}

.site-footer-clean section {
  margin: 0;
}

.footer-clean-practice {
  padding: 0 0 20px;
}

.footer-clean-label {
  display: block;
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.footer-clean-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-clean-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #d5deeb;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.footer-clean-button::after {
  content: "›";
  margin-left: 8px;
  font-size: 17px;
  line-height: 1;
}

.footer-clean-button:hover,
.footer-clean-logos a:hover,
.footer-clean-sponsor-logos a:hover,
.footer-clean-links a:hover {
  transform: translateY(-1px);
}

.footer-clean-button-blue {
  color: #245bd6;
  background: #f8fbff;
  border-color: #cddcf5;
}
.footer-clean-button-blue:hover { background: #eef5ff; }

.footer-clean-button-orange {
  color: #9a3a10;
  background: #fff8f3;
  border-color: #ffd9c4;
}
.footer-clean-button-orange:hover { background: #fff1e8; }

.footer-clean-about {
  padding: 18px 0 20px;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
}

.footer-clean-main {
  margin: 0 0 4px !important;
  color: #17335f !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.7;
}

.footer-clean-sub {
  margin: 0 0 14px !important;
  color: #64748b !important;
  font-size: 13px;
}

.footer-clean-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-clean-logos a,
.footer-clean-sponsor-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}

.footer-clean-logos a:hover,
.footer-clean-sponsor-logos a:hover {
  opacity: .86;
}

.footer-clean-logos img {
  display: block;
  width: auto;
  object-fit: contain;
  filter: saturate(.95);
}

.footer-logo-jta { max-height: 48px; max-width: 170px; }
.footer-logo-kidai { max-height: 38px; max-width: 170px; }
.footer-logo-klc { max-height: 32px; max-width: 104px; }
.footer-logo-school { max-height: 40px; max-width: 190px; }

.footer-clean-sponsors {
  padding: 18px 0 16px;
  border-bottom: 1px solid #edf1f6;
}

.footer-clean-sponsor-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-clean-sponsor-logos img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 42px;
  object-fit: contain;
}

.footer-clean-list-link {
  min-height: 32px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #d8e2f0;
  color: #245bd6;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.footer-clean-links {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 16px 0 8px;
  font-size: 13px;
}

.footer-clean-links a {
  color: #31527f;
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease, color .15s ease;
}

.footer-clean-links a + a::before {
  content: "｜";
  margin: 0 10px;
  color: #c3ccda;
  font-weight: 400;
}

.footer-clean-note-ai {
  max-width: 760px;
  margin: 8px auto 0 !important;
  color: #7a879a !important;
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 720px) {
  .site-footer-clean {
    margin-top: 24px;
    padding-inline: 10px;
  }

  .footer-clean-logos {
    gap: 18px 20px;
  }

  .footer-logo-jta { max-height: 44px; max-width: 152px; }
  .footer-logo-kidai { max-height: 34px; max-width: 150px; }
  .footer-logo-klc { max-height: 30px; }
  .footer-logo-school { max-height: 36px; max-width: 172px; }

  .footer-clean-sponsor-logos img {
    max-width: 176px;
  }
}

@media (max-width: 520px) {
  .footer-clean-buttons,
  .footer-clean-sponsor-logos {
    align-items: stretch;
  }

  .footer-clean-button {
    width: 100%;
  }

  .footer-clean-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }

  .footer-clean-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
  }

  .footer-clean-links a + a::before {
    content: none;
  }
}

/* ===============================
   フッター調整 v21：横幅を広げてロゴを見やすく
   =============================== */
.site-footer-clean {
  width: min(100%, 1180px);
  max-width: none;
  padding: 26px clamp(16px, 3vw, 36px) 20px;
}

.footer-clean-about {
  padding: 20px 0 22px;
}

.footer-clean-logos {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 1.15fr .75fr 1.35fr;
  align-items: center;
  justify-items: center;
  gap: 22px clamp(26px, 4vw, 54px);
}

.footer-clean-logos a {
  width: 100%;
  min-height: 68px;
}

.footer-logo-jta { max-height: 62px; max-width: 245px; }
.footer-logo-kidai { max-height: 48px; max-width: 230px; }
.footer-logo-klc { max-height: 42px; max-width: 150px; }
.footer-logo-school { max-height: 52px; max-width: 250px; }

.footer-clean-sponsors {
  padding: 20px 0 18px;
}

.footer-clean-sponsor-logos {
  max-width: 780px;
  margin: 0 auto;
  gap: 26px clamp(30px, 5vw, 60px);
}

.footer-clean-sponsor-logos img {
  max-width: 250px;
  max-height: 54px;
}

.footer-clean-list-link {
  min-height: 36px;
  padding: 7px 17px;
}

@media (max-width: 920px) {
  .site-footer-clean {
    width: min(100%, 760px);
  }

  .footer-clean-logos {
    max-width: 660px;
    grid-template-columns: 1fr 1fr;
    gap: 18px 26px;
  }

  .footer-clean-logos a {
    min-height: 58px;
  }

  .footer-logo-jta { max-height: 54px; max-width: 210px; }
  .footer-logo-kidai { max-height: 42px; max-width: 200px; }
  .footer-logo-klc { max-height: 36px; max-width: 130px; }
  .footer-logo-school { max-height: 44px; max-width: 220px; }

  .footer-clean-sponsor-logos img {
    max-width: 220px;
    max-height: 48px;
  }
}

@media (max-width: 520px) {
  .footer-clean-logos {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-clean-logos a {
    min-height: 52px;
  }

  .footer-logo-jta { max-height: 48px; max-width: 200px; }
  .footer-logo-kidai { max-height: 38px; max-width: 190px; }
  .footer-logo-klc { max-height: 32px; max-width: 120px; }
  .footer-logo-school { max-height: 40px; max-width: 210px; }
}

/* ===============================
   フッター調整 v22：ロゴの高さを揃える
   =============================== */
.footer-clean-logos {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 22px clamp(30px, 4vw, 60px);
}

.footer-clean-logos a {
  min-height: 60px;
}

.footer-clean-logos img,
.footer-logo-jta,
.footer-logo-kidai,
.footer-logo-klc,
.footer-logo-school {
  height: 46px;
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

.footer-logo-jta { max-width: 260px; }
.footer-logo-kidai { max-width: 230px; }
.footer-logo-klc { max-width: 170px; }
.footer-logo-school { max-width: 260px; }

@media (max-width: 920px) {
  .footer-clean-logos img,
  .footer-logo-jta,
  .footer-logo-kidai,
  .footer-logo-klc,
  .footer-logo-school {
    height: 42px;
    max-height: 42px;
  }
}

@media (max-width: 520px) {
  .footer-clean-logos img,
  .footer-logo-jta,
  .footer-logo-kidai,
  .footer-logo-klc,
  .footer-logo-school {
    height: 38px;
    max-height: 38px;
  }
}


/* ===============================
   フッター調整 v23：practiceページのロゴを少し大きく表示
   =============================== */
.site-footer-clean .footer-clean-logos {
  max-width: 1100px;
  gap: 24px clamp(34px, 5vw, 72px);
}

.site-footer-clean .footer-clean-logos a {
  min-height: 78px;
}

.site-footer-clean .footer-clean-logos img,
.site-footer-clean .footer-logo-jta,
.site-footer-clean .footer-logo-kidai,
.site-footer-clean .footer-logo-klc,
.site-footer-clean .footer-logo-school {
  height: 60px;
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.site-footer-clean .footer-logo-jta { max-width: 330px; }
.site-footer-clean .footer-logo-kidai { max-width: 280px; }
.site-footer-clean .footer-logo-klc { max-width: 210px; }
.site-footer-clean .footer-logo-school { max-width: 320px; }

@media (max-width: 920px) {
  .site-footer-clean .footer-clean-logos a {
    min-height: 66px;
  }

  .site-footer-clean .footer-clean-logos img,
  .site-footer-clean .footer-logo-jta,
  .site-footer-clean .footer-logo-kidai,
  .site-footer-clean .footer-logo-klc,
  .site-footer-clean .footer-logo-school {
    height: 52px;
    max-height: 52px;
  }
}

@media (max-width: 520px) {
  .site-footer-clean .footer-clean-logos a {
    min-height: 58px;
  }

  .site-footer-clean .footer-clean-logos img,
  .site-footer-clean .footer-logo-jta,
  .site-footer-clean .footer-logo-kidai,
  .site-footer-clean .footer-logo-klc,
  .site-footer-clean .footer-logo-school {
    height: 44px;
    max-height: 44px;
  }
}


/* ===============================
   フッター調整 v24：協会ロゴは公認表示として最後に配置・リンクなし
   =============================== */
.site-footer-clean .footer-clean-logos {
  justify-content: center;
}

.site-footer-clean .footer-clean-logos a,
.site-footer-clean .footer-clean-logos .footer-logo-static {
  min-height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer-clean .footer-clean-logos .footer-logo-static {
  cursor: default;
}

.site-footer-clean .footer-logo-jta {
  max-width: 270px;
}

@media (max-width: 920px) {
  .site-footer-clean .footer-clean-logos a,
  .site-footer-clean .footer-clean-logos .footer-logo-static {
    min-height: 66px;
  }

  .site-footer-clean .footer-logo-jta {
    max-width: 230px;
  }
}

@media (max-width: 520px) {
  .site-footer-clean .footer-clean-logos a,
  .site-footer-clean .footer-clean-logos .footer-logo-static {
    min-height: 58px;
  }

  .site-footer-clean .footer-logo-jta {
    max-width: 210px;
  }
}


/* タイピング実務能力検定：公式練習対応表示 v36 */
.typing-business-official-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1d5fbf;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .typing-business-official-badge {
    width: 100%;
    white-space: normal;
  }
}


/* ===============================
   practiceページ調整 v42：公式案内とフッター文言の整理
   =============================== */
.practice-header {
  margin: 0 0 12px;
}

.practice-title-line {
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf1f6;
}

.section-title {
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: .01em;
}

.section-title-sub {
  display: none !important;
}

.typing-business-notice {
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}

.typing-business-notice-text {
  color: #17335f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}

.typing-business-notice-text::before {
  display: none;
}

.typing-business-notice-link {
  padding-left: 10px;
  border-left: 1px solid #dbe4f0;
  color: #245bd6;
  font-size: 13px;
  text-decoration: none;
}

.typing-business-notice-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.practice-actions {
  margin-top: 10px;
}

.footer-clean-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 0;
  line-height: 1.7;
}

.footer-clean-sub span {
  display: inline-flex;
  align-items: center;
}

.footer-clean-sub span + span::before {
  content: "／";
  margin: 0 10px;
  color: #c4cedd;
  font-weight: 400;
}

.footer-clean-sub .footer-clean-official {
  color: #245bd6;
  font-weight: 800;
}

@media (max-width: 900px) {
  .practice-title-line {
    align-items: flex-start;
  }

  .typing-business-notice {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .footer-clean-sub {
    display: grid;
    gap: 2px;
  }

  .footer-clean-sub span {
    justify-content: center;
  }

  .footer-clean-sub span + span::before {
    display: none;
  }
}

/* ===============================
   協賛ページ調整 v50：年額表示・リンク方針・紹介枠
   =============================== */
.kyosan-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 8px;
  -webkit-overflow-scrolling: touch;
}

.kyosan-plan-table-wide {
  min-width: 920px;
}

.kyosan-plan-table th,
.kyosan-plan-table td {
  line-height: 1.7;
}

.kyosan-plan-table th:nth-child(2),
.kyosan-plan-table th:nth-child(3),
.kyosan-plan-table th:nth-child(5),
.kyosan-plan-table th:nth-child(6),
.kyosan-plan-table td:nth-child(2),
.kyosan-plan-table td:nth-child(3),
.kyosan-plan-table td:nth-child(5),
.kyosan-plan-table td:nth-child(6) {
  white-space: nowrap;
}

.kyosan-price-main {
  font-size: 15px;
  font-weight: 800;
  color: #10233f;
}

.kyosan-empty-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #e4eaf3;
  border-radius: 10px;
  background: #f8fbff;
  color: #526a87;
  font-size: 14px;
  line-height: 1.8;
}

.kyosan-text-intro {
  list-style: none;
  padding-left: 0;
  margin: 15px 0 0;
  display: grid;
  gap: 10px;
}

.kyosan-text-intro li {
  padding: 12px 14px;
  border: 1px solid #e4eaf3;
  border-radius: 10px;
  background: #ffffff;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}

.kyosan-banner-static {
  cursor: default;
}

.kyosan-banner-static:hover {
  box-shadow: none;
  transform: none;
}

.terms-section code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #f3f5f7;
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

@media (max-width: 640px) {
  .kyosan-table-scroll {
    margin-right: -8px;
    padding-bottom: 6px;
  }

  .kyosan-plan-table-wide {
    min-width: 860px;
  }
}


/* ===============================
   タイピング速度チェック v1
   =============================== */
.practice-main-switch-help {
  margin: -2px 0 10px;
  color: #5b6472;
  font-size: 13px;
  line-height: 1.6;
}

.practice-main-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.practice-main-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  min-height: 112px;
  padding: 12px 10px 10px !important;
  border: 2px solid #c9d5e7 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #26364d !important;
  box-shadow: 0 4px 0 #d9e1ed, 0 8px 18px rgba(30, 64, 110, .08) !important;
  text-align: left;
  font-family: inherit;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.practice-main-choice:hover:not(:disabled) {
  border-color: #6c9cff !important;
  background: #f5f9ff !important;
  color: #183f8f !important;
  box-shadow: 0 3px 0 #b8cae7, 0 10px 22px rgba(47, 111, 237, .14) !important;
  transform: translateY(-2px);
}

.practice-main-choice:focus-visible {
  outline: 3px solid rgba(47, 111, 237, .28);
  outline-offset: 3px;
}

.practice-main-choice.is-active {
  border-color: #2462d4 !important;
  background: linear-gradient(180deg, #3679ef 0%, #245fd1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #153f92, 0 9px 20px rgba(36, 98, 212, .24) !important;
}

.practice-main-choice.is-active:hover:not(:disabled) {
  border-color: #1d56bd !important;
  background: linear-gradient(180deg, #3679ef 0%, #245fd1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 0 #153f92, 0 10px 22px rgba(36, 98, 212, .26) !important;
  transform: translateY(-1px);
}

.practice-main-choice-title {
  display: block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.practice-main-choice-desc {
  display: block;
  margin-top: 5px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: #66758b;
}

.practice-main-choice.is-active .practice-main-choice-desc {
  color: rgba(255, 255, 255, .86);
}

.practice-main-choice-state {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 9px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf3fb;
  color: #2455a5;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}

.practice-main-choice.is-active .practice-main-choice-state {
  background: rgba(255, 255, 255, .19);
  color: #ffffff;
}

.practice-setup-panel,
.speed-check-setup-panel {
  min-width: 0;
}

.practice-setup-panel[hidden],
.speed-check-setup-panel[hidden] {
  display: none !important;
}

.practice-panel-title {
  margin: 0 0 10px;
  color: #172033;
  font-size: 17px;
  line-height: 1.4;
}

.speed-check-lead {
  margin: 0 0 12px;
  color: #34445b;
  font-size: 14px;
  line-height: 1.75;
}

.speed-check-steps {
  margin: 0 0 14px;
  padding: 11px 12px 11px 32px;
  border: 1px solid #d6e2f4;
  border-radius: 10px;
  background: #f7faff;
  color: #334155;
  font-size: 13px;
  line-height: 1.8;
}

.speed-check-load-button {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px !important;
  border: 1px solid #1d57c4 !important;
  border-radius: 10px !important;
  background: #2f6fed !important;
  color: #ffffff !important;
  box-shadow: 0 3px 0 #174aa7, 0 7px 16px rgba(47, 111, 237, .18);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.speed-check-load-button:hover:not(:disabled) {
  background: #245fd2 !important;
  transform: translateY(-1px);
}

.speed-check-load-button:disabled {
  background: #9eb5df !important;
  border-color: #8ba4d2 !important;
  box-shadow: none;
}

.speed-check-load-status {
  min-height: 2.8em;
  margin: 10px 2px 0;
  color: #5b6472;
  font-size: 12px;
  line-height: 1.55;
}

.speed-check-load-status.is-loading {
  color: #2455a5;
  font-weight: 700;
}

.speed-check-load-status.is-ready {
  color: #0f7a3a;
  font-weight: 800;
}

.speed-check-load-status.is-error {
  color: #b42318;
  font-weight: 800;
}

.speed-check-explanation {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #dce4ef;
}

.speed-check-explanation h4 {
  margin: 0 0 8px;
  color: #253650;
  font-size: 14px;
}

.speed-check-explanation p {
  margin: 0 0 10px;
  color: #4b5565;
  font-size: 12px;
  line-height: 1.75;
}

.speed-check-explanation p:last-child {
  margin-bottom: 0;
}

@media (max-width: 380px) {
  .practice-main-switch {
    grid-template-columns: 1fr;
  }

  .practice-main-choice {
    min-height: 92px;
  }
}
/* トップページ専用（既存 style.css を前提に、追加分だけ） */

.home-hero{
  padding: 26px 16px 18px;
  background: linear-gradient(180deg, #f7fbff 0%, #fafafa 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.home-hero-inner{
  max-width: 1100px;
  margin: 0 auto;
}

.home-badge{
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(60,124,255,0.10);
  border: 1px solid rgba(60,124,255,0.25);
}

.home-title{
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.25;
}

.home-lead{
  margin: 0;
  font-size: 15px;
  color: #333;
  line-height: 1.85;
  max-width: 820px;
}

.home-cta{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 9999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  color: #222;
}

.home-btn.primary{
  background: #3c7cff;
  color: #fff;
  border-color: #2b69e8;
}

.home-btn.ghost{
  background: rgba(255,255,255,0.7);
}

.home-btn.warm{
  background: #ffeadc;
  border-color: #ffd0b6;
  color: #8a2a00;
}

.home-quick{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.home-quick-item{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.home-quick-k{ font-size: 12px; color: #666; font-weight: 700; }
.home-quick-v{ margin-top: 4px; font-size: 13px; font-weight: 800; }

.home-section{
  padding: 22px 16px;
}
.home-section.alt{
  background: #f7fbff;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.home-section-inner{
  max-width: 1100px;
  margin: 0 auto;
}

.home-h2{
  margin: 0 0 12px;
  font-size: 20px;
}

.home-section-lead{
  margin: -2px 0 12px;
  color: #555;
  line-height: 1.8;
  font-size: 14px;
}

/* 画像付きメニューカード */
.home-image-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.home-image-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.home-image-card-link{
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.home-image-wrap{
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f2f4f7;
  overflow: hidden;
}

.home-image-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-image-label{
  position: absolute;
  top: 10px;
  left: 10px;
  background: #3c7cff;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.home-image-body{
  padding: 12px 12px 14px;
}

.home-image-body h3{
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.home-image-body p{
  margin: 0;
  color: #444;
  font-size: 13px;
  line-height: 1.75;
}

.home-image-meta{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-image-meta span{
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #4a5568;
  background: #f4f7fb;
  border: 1px solid #e4eaf3;
  border-radius: 9999px;
  padding: 4px 8px;
}

.home-image-cta{
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
  color: #2b69e8;
}

.home-image-cta::after{
  content: "→";
  font-weight: 900;
}

.home-image-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transition: .18s ease;
}

.home-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.home-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px 14px;
}

.home-card h3{
  margin: 0 0 6px;
  font-size: 16px;
}
.home-card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #444;
}

.home-list{
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.9;
  font-size: 15px;
}

.home-trust{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: center;
}
.home-small{ font-size: 12px; color: #777; margin-top: 8px; }

.home-trust-logos{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  align-items: center;
}
.home-trust-logos img{
  width: 100%;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 8px;
}

.home-faq{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
}
.home-faq summary{
  cursor: pointer;
  font-weight: 800;
}
.home-faq p{
  margin: 8px 0 0;
  line-height: 1.8;
}

.home-linkcard{
  display: block;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px 14px;
  text-decoration: none;
  color: inherit;
}
.home-linkcard .t{ font-weight: 900; }
.home-linkcard .d{ margin-top: 4px; color: #555; font-size: 13px; line-height: 1.7; }
.home-linkcard:hover{ box-shadow: 0 6px 16px rgba(0,0,0,0.08); transform: translateY(-1px); }

@media (max-width: 1024px){
  .home-image-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px){
  .home-title{ font-size: 22px; }
  .home-grid{ grid-template-columns: 1fr; }
  .home-quick{ grid-template-columns: 1fr; }
  .home-trust{ grid-template-columns: 1fr; }

  .home-image-body h3{
    font-size: 15px;
  }
}
/* ===============================
   2026-06 トップページ整理
   =============================== */

.home {
  overflow-x: hidden;
}

.home-hero {
  padding: 34px 16px 22px;
}

.home-title {
  max-width: 900px;
}

.home-update {
  margin-top: 14px;
  max-width: 900px;
}

.home-update p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(60,124,255,0.18);
  box-shadow: 0 4px 18px rgba(60,124,255,0.06);
  font-size: 14px;
  line-height: 1.7;
}

.home-update-label {
  display: inline-block;
  margin-right: 10px;
  font-weight: 900;
  color: #2b69e8;
}

.home-update-date {
  display: inline-block;
  margin-right: 10px;
  font-weight: 800;
  color: #333;
}

.home-update-text {
  color: #333;
}

.home-achievement {
  text-align: center;
  padding: 8px 0;
}

.home-achievement-number {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #d64a31;
}

.home-achievement-sub {
  margin: 6px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

.home-image-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-image-card {
  display: flex;
  flex-direction: column;
}

.home-image-card-link {
  display: flex;
  flex-direction: column;
}

.home-image-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-image-body p {
  flex: 1;
}

.home-image-cta {
  margin-top: 12px;
}

.home-section {
  padding: 28px 16px;
}

.home-section.alt {
  background: #f6faff;
}

.home-grid {
  gap: 14px;
}

.home-card,
.home-linkcard,
.home-image-card,
.home-faq {
  box-shadow: 0 4px 18px rgba(0,0,0,0.035);
}

@media (max-width: 1200px) {
  .home-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 24px 14px 18px;
  }

  .home-title {
    font-size: 23px;
  }

  .home-lead {
    font-size: 14px;
  }

  .home-update p {
    font-size: 13px;
  }

  .home-update-label,
  .home-update-date,
  .home-update-text {
    display: block;
    margin-right: 0;
  }

  .home-image-grid {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 24px 14px;
  }
}
/* ===============================
   2026-06 トップページ：3メニュー版
   =============================== */

.home {
  overflow-x: hidden;
}

.home-hero {
  padding: 34px 16px 22px;
}

.home-title {
  max-width: 900px;
}

.home-update {
  margin-top: 14px;
  max-width: 900px;
}

.home-update p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(60,124,255,0.18);
  box-shadow: 0 4px 18px rgba(60,124,255,0.06);
  font-size: 14px;
  line-height: 1.7;
}

.home-update-label {
  display: inline-block;
  margin-right: 10px;
  font-weight: 900;
  color: #2b69e8;
}

.home-update-date {
  display: inline-block;
  margin-right: 10px;
  font-weight: 800;
  color: #333;
}

.home-update-text {
  color: #333;
}

.home-achievement {
  text-align: center;
  padding: 8px 0;
}

.home-achievement-number {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #d64a31;
}

.home-achievement-sub {
  margin: 6px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

.home-section {
  padding: 28px 16px;
}

.home-section.alt {
  background: #f6faff;
}

.home-image-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.home-image-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 22px rgba(0,0,0,0.045);
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-image-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.09);
}

.home-image-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-image-wrap {
  aspect-ratio: 16 / 9;
}

.home-image-wrap img {
  object-fit: cover;
}

.home-image-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}

.home-image-body h3 {
  font-size: 18px;
}

.home-image-body p {
  flex: 1;
  font-size: 14px;
  line-height: 1.85;
}

.home-image-meta {
  margin-top: 14px;
}

.home-image-cta {
  margin-top: 14px;
}

.home-grid {
  gap: 14px;
}

.home-card,
.home-linkcard,
.home-faq {
  box-shadow: 0 4px 18px rgba(0,0,0,0.035);
}

@media (max-width: 1024px) {
  .home-image-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 24px 14px 18px;
  }

  .home-title {
    font-size: 23px;
  }

  .home-lead {
    font-size: 14px;
  }

  .home-update p {
    font-size: 13px;
  }

  .home-update-label,
  .home-update-date,
  .home-update-text {
    display: block;
    margin-right: 0;
  }

  .home-section {
    padding: 24px 14px;
  }
}
/* ===============================
   2026-06 おすすめトップデザイン
   =============================== */

.home-hero-renew {
  position: relative;
  padding: 44px 16px 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(60,124,255,0.14), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(255,138,60,0.16), transparent 24%),
    linear-gradient(180deg, #f4f8ff 0%, #ffffff 82%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.home-hero-renew .home-hero-inner {
  max-width: 1100px;
}

.home-hero-renew .home-badge {
  background: #ffffff;
  color: #245bd6;
  border: 1px solid rgba(60,124,255,0.22);
  box-shadow: 0 6px 18px rgba(60,124,255,0.10);
}

.home-hero-renew .home-title {
  max-width: 900px;
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.home-hero-renew .home-title span {
  color: #255fdc;
}

.home-hero-renew .home-lead {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.95;
  color: #374151;
}

.home-hero-renew .home-cta {
  margin-top: 20px;
}

.home-hero-renew .home-btn {
  padding: 12px 20px;
  font-size: 15px;
}

.home-hero-renew .home-btn.primary {
  background: linear-gradient(135deg, #3c7cff, #265ed9);
  box-shadow: 0 10px 24px rgba(60,124,255,0.25);
}

.home-hero-renew .home-btn.ghost {
  background: #fff;
  color: #245bd6;
  border-color: rgba(60,124,255,0.22);
}

.home-hero-renew .home-quick {
  margin-top: 22px;
  max-width: 900px;
}

.home-hero-renew .home-quick-item {
  border: 1px solid rgba(60,124,255,0.12);
  box-shadow: 0 6px 20px rgba(0,0,0,0.035);
}

.home-update-renew {
  max-width: 900px;
  margin-top: 14px;
}

.home-update-renew p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(60,124,255,0.16);
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}

.home-update-label {
  display: inline-block;
  margin-right: 10px;
  font-weight: 900;
  color: #245bd6;
}

.home-update-date {
  display: inline-block;
  margin-right: 10px;
  font-weight: 800;
  color: #111827;
}

/* 練習メニュー：大きな選択パネル */
.home-menu-section {
  padding: 36px 16px 38px;
  background: #ffffff;
}

.home-menu-section .home-h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.home-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.home-choice-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 16px 42px rgba(0,0,0,0.07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-choice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(0,0,0,0.12);
}

.home-choice-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 22px 20px;
  color: inherit;
  text-decoration: none;
}

.home-choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .9;
  background: linear-gradient(135deg, rgba(60,124,255,.12), rgba(255,255,255,0));
}

.home-choice-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(60,124,255,0.10);
}

.home-choice-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.home-choice-num {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: #3c7cff;
  box-shadow: 0 10px 20px rgba(60,124,255,0.22);
}

.home-choice-title-wrap h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.32;
}

.home-choice-sub {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #4b5563;
}

.home-choice-desc {
  margin: 18px 0 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.85;
}

.home-choice-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.home-choice-points li {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.08);
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.home-choice-cta {
  margin-top: auto;
  padding-top: 18px;
  color: #245bd6;
  font-weight: 900;
  font-size: 14px;
}

.home-choice-cta::after {
  content: " →";
}

.choice-blue .home-choice-num {
  background: linear-gradient(135deg, #3c7cff, #245bd6);
}

.choice-blue::before {
  background: linear-gradient(135deg, rgba(60,124,255,.14), rgba(255,255,255,0));
}

.choice-blue::after {
  background: rgba(60,124,255,0.13);
}

.choice-purple .home-choice-num {
  background: linear-gradient(135deg, #8b5cf6, #6841c6);
  box-shadow: 0 10px 20px rgba(139,92,246,0.22);
}

.choice-purple::before {
  background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(255,255,255,0));
}

.choice-purple::after {
  background: rgba(139,92,246,0.13);
}

.choice-purple .home-choice-cta {
  color: #6841c6;
}

.choice-orange .home-choice-num {
  background: linear-gradient(135deg, #ff9740, #d85d00);
  box-shadow: 0 10px 20px rgba(255,151,64,0.24);
}

.choice-orange::before {
  background: linear-gradient(135deg, rgba(255,151,64,.18), rgba(255,255,255,0));
}

.choice-orange::after {
  background: rgba(255,151,64,0.16);
}

.choice-orange .home-choice-cta {
  color: #b84b00;
}

.home-achievement-renew {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.home-achievement-renew .home-achievement-number {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #d64a31;
}

.home-achievement-renew .home-achievement-sub {
  margin: 6px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .home-choice-grid {
    grid-template-columns: 1fr;
  }

  .home-choice-link {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .home-hero-renew {
    padding: 30px 14px 24px;
  }

  .home-hero-renew .home-title {
    font-size: 30px;
  }

  .home-hero-renew .home-lead {
    font-size: 14px;
  }

  .home-update-label,
  .home-update-date,
  .home-update-text {
    display: block;
    margin-right: 0;
  }

  .home-choice-title-wrap h3 {
    font-size: 20px;
  }

  .home-choice-top {
    gap: 12px;
  }

  .home-choice-num {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}
/* ===============================
   2026-06 おすすめ案 v2：画像付き選択パネル・フッター整理
   =============================== */

/* ヒーローの間延びを調整 */
.home-hero-compact {
  padding-top: 36px !important;
  padding-bottom: 26px !important;
}

.home-hero-compact .home-title {
  font-size: clamp(32px, 4vw, 46px) !important;
  max-width: 820px;
}

.home-hero-compact .home-lead {
  max-width: 760px;
}

/* 選択パネルに画像を追加 */
.home-choice-image {
  position: relative;
  margin: 18px -2px 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

.home-choice-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 画像が入ってもカードが重く見えすぎないように */
.home-choice-link {
  padding: 20px 20px 18px !important;
}

.home-choice-desc {
  margin-top: 14px !important;
}

.home-choice-points {
  margin-top: 14px !important;
}

.home-choice-cta {
  padding-top: 14px !important;
}

/* 画像を入れたのでカード幅を少し広く見せる */
.home-choice-grid {
  gap: 20px !important;
}

/* 下の日本語入力リンクを少し控えめに */
.link-section-renew {
  margin-top: 24px !important;
}

.link-section-renew p {
  padding: 12px 16px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,0.92) !important;
  color: #1f2937 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.045) !important;
  text-shadow: none !important;
}

/* フッター整理 */
.site-footer-renew {
  width: 100%;
  margin: 0;
  padding: 28px 16px 30px;
  background: #f8fafc;
  border-top: 1px solid rgba(0,0,0,0.06);
  color: #374151;
  text-align: left;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px 34px;
}

.footer-brand-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

.footer-brand-text {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #4b5563;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
  align-content: start;
}

.footer-links a {
  font-size: 13px;
  font-weight: 800;
  color: #245bd6;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-org {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-org-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-org-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 52px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
}

.footer-org-logos img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.footer-org p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.footer-org a {
  color: #245bd6;
  font-weight: 800;
}

.footer-notes {
  font-size: 12px;
  line-height: 1.8;
  color: #6b7280;
  text-align: right;
}

.footer-notes p {
  margin: 2px 0;
}

.footer-notes a {
  color: #4b5563;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .home-choice-grid {
    grid-template-columns: 1fr !important;
  }

  .home-choice-image {
    max-height: 260px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-notes {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .home-hero-compact {
    padding-top: 28px !important;
  }

  .home-choice-image {
    margin-top: 14px;
    border-radius: 14px;
  }

  .footer-org {
    align-items: flex-start;
  }

  .footer-org-logos {
    width: 100%;
    flex-wrap: wrap;
  }

  .footer-org-logos a {
    width: 118px;
    height: 46px;
  }
}
/* ===============================
   KIDAI Learning Certification 紹介
   =============================== */

.home-klc-section {
  padding: 10px 16px 34px;
  background: #ffffff;
}

.home-klc-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 20%, rgba(60,124,255,0.10), transparent 28%),
    linear-gradient(135deg, #f7fbff, #ffffff);
  border: 1px solid rgba(60,124,255,0.16);
  box-shadow: 0 14px 36px rgba(0,0,0,0.055);
}

.home-klc-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 900;
  color: #245bd6;
}

.home-klc-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #111827;
}

.home-klc-lead {
  margin: 10px 0 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.9;
  color: #374151;
}

.home-klc-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.home-klc-points span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(60,124,255,0.14);
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.home-klc-action {
  text-align: center;
}

.home-klc-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.home-klc-logo-link img {
  max-width: 160px;
  max-height: 72px;
  width: auto;
  height: auto;
  display: block;
}

.home-klc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #245bd6, #3c7cff);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(60,124,255,0.22);
}

.home-klc-btn::after {
  content: " →";
}

.home-klc-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 760px) {
  .home-klc-box {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .home-klc-action {
    text-align: left;
  }

  .home-klc-btn {
    width: 100%;
  }
}
/* ===============================
   2026-06 トップ最終調整案
   =============================== */

/* ヒーローを中央寄せにして、左に寄りすぎる印象を解消 */
.home-hero-renew,
.home-hero-compact {
  padding-top: 42px !important;
  padding-bottom: 34px !important;
}

.home-hero-renew .home-hero-inner,
.home-hero-compact .home-hero-inner {
  max-width: 1000px !important;
  text-align: center;
}

.home-hero-renew .home-title,
.home-hero-compact .home-title {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 820px !important;
  font-size: clamp(34px, 4.2vw, 52px) !important;
  line-height: 1.18 !important;
}

.home-hero-renew .home-lead,
.home-hero-compact .home-lead {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 760px !important;
}

.home-hero-renew .home-cta,
.home-hero-compact .home-cta {
  justify-content: center !important;
}

.home-hero-renew .home-quick,
.home-hero-compact .home-quick,
.home-update-renew,
.home-update {
  margin-left: auto !important;
  margin-right: auto !important;
}

.home-update-renew p,
.home-update p {
  text-align: center;
}

/* ヘッダーのブランド名を短くしたので少し見やすく */
.site-brand {
  letter-spacing: 0.01em;
}

/* KLC紹介枠：タイピングとは別枠だと分かるように少し控えめに */
.home-klc-section {
  padding-top: 0 !important;
}

.home-klc-box {
  background:
    radial-gradient(circle at 8% 20%, rgba(60,124,255,0.08), transparent 28%),
    linear-gradient(135deg, #ffffff, #f8fbff) !important;
}

.home-klc-eyebrow {
  color: #4b5563 !important;
}

.home-klc-title {
  font-size: 22px !important;
}

/* フッター：左右に散らばらないよう中央寄せ */
.site-footer-renew {
  padding: 30px 16px 32px !important;
}

.site-footer-inner {
  max-width: 980px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 18px !important;
  text-align: center !important;
}

.footer-brand,
.footer-org,
.footer-notes {
  width: 100%;
}

.footer-brand-title {
  font-size: 17px !important;
}

.footer-brand-text {
  max-width: 640px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.footer-links {
  justify-content: center !important;
  gap: 10px 18px !important;
}

.footer-links a {
  white-space: nowrap;
}

.footer-org {
  justify-content: center !important;
}

.footer-org-logos {
  justify-content: center !important;
}

.footer-notes {
  text-align: center !important;
  max-width: 760px;
}

@media (max-width: 640px) {
  .home-hero-renew,
  .home-hero-compact {
    padding-top: 30px !important;
    padding-bottom: 26px !important;
  }

  .home-hero-renew .home-title,
  .home-hero-compact .home-title {
    font-size: 32px !important;
    text-align: left;
  }

  .home-hero-renew .home-lead,
  .home-hero-compact .home-lead,
  .home-update-renew p,
  .home-update p {
    text-align: left;
  }

  .home-hero-renew .home-cta,
  .home-hero-compact .home-cta {
    justify-content: flex-start !important;
  }

  .footer-links {
    gap: 8px 12px !important;
  }
}
/* ===============================
   2026-06 文言調整・改行対策
   =============================== */

/* ヒーロー説明文の「す。」だけ落ちる問題を防ぐ */
.home-hero-renew .home-lead,
.home-hero-compact .home-lead {
  max-width: 900px !important;
  line-height: 1.9 !important;
  text-wrap: balance;
}

/* 中央寄せだと短い末尾だけ落ちた時に目立つため、PCでは幅を広めに */
@media (min-width: 900px) {
  .home-hero-renew .home-lead,
  .home-hero-compact .home-lead {
    white-space: normal;
  }
}

/* 練習メニュー見出しを自然に */
.home-menu-section .home-h2 {
  letter-spacing: 0.01em;
}

/* KLC枠の見出しを検定サイトとして見せる */
.home-klc-eyebrow {
  color: #245bd6 !important;
}

.home-klc-title {
  font-size: 24px !important;
}

.home-klc-btn {
  background: linear-gradient(135deg, #245bd6, #3c7cff) !important;
}

@media (max-width: 640px) {
  .home-hero-renew .home-lead,
  .home-hero-compact .home-lead {
    text-align: left;
    text-wrap: auto;
  }
}

/* ===============================
   2026-06 更新情報カード・実績表示調整
   =============================== */

.home-update-feature {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 18px;
  align-items: center;
  max-width: 920px !important;
  margin-top: 18px !important;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 18%, rgba(255,151,64,0.18), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(247,251,255,0.96));
  border: 1px solid rgba(60,124,255,0.18);
  box-shadow: 0 12px 32px rgba(60,124,255,0.10);
  text-align: left !important;
}

.home-update-feature p {
  all: unset;
}

.home-update-feature .home-update-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  grid-column: 1 / 2;
}

.home-update-feature .home-update-label {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: #245bd6;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
}

.home-update-feature .home-update-date {
  display: inline-flex !important;
  margin: 0 !important;
  color: #4b5563 !important;
  font-size: 13px;
  font-weight: 900;
}

.home-update-feature .home-update-body {
  grid-column: 1 / 2;
}

.home-update-feature .home-update-title {
  display: block;
  margin-top: 7px;
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
}

.home-update-feature .home-update-text {
  display: block;
  margin-top: 6px;
  color: #374151;
  font-size: 14px;
  line-height: 1.8;
}

.home-update-feature .home-update-note {
  display: block;
  margin-top: 7px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.7;
}

.home-update-btn {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9740, #d85d00);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(255,151,64,0.24);
  white-space: nowrap;
}

.home-update-btn::after {
  content: " →";
}

.home-update-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255,151,64,0.30);
}

@media (max-width: 760px) {
  .home-update-feature {
    grid-template-columns: 1fr;
    padding: 15px 16px;
  }

  .home-update-feature .home-update-head,
  .home-update-feature .home-update-body,
  .home-update-btn {
    grid-column: 1 / 2;
    grid-row: auto;
  }

  .home-update-btn {
    width: 100%;
    margin-top: 2px;
  }

  .home-update-feature .home-update-title,
  .home-update-feature .home-update-text,
  .home-update-feature .home-update-note {
    text-align: left !important;
  }
}

/* ===============================
   2026-06 トップ上部：見やすさ調整
   =============================== */

.home-hero-renew,
.home-hero-compact {
  padding-top: 48px !important;
  padding-bottom: 42px !important;
}

.home-hero-renew .home-title,
.home-hero-compact .home-title {
  margin-bottom: 18px !important;
}

.home-hero-renew .home-lead,
.home-hero-compact .home-lead {
  font-size: 16px !important;
  line-height: 1.9 !important;
}

.home-hero-renew .home-cta,
.home-hero-compact .home-cta {
  margin-top: 24px !important;
}

.home-quick {
  margin-top: 26px !important;
  gap: 14px !important;
}

.home-quick-item {
  padding: 16px 14px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(60,124,255,0.16) !important;
  box-shadow: 0 10px 26px rgba(60,124,255,0.07) !important;
}

.home-quick-k {
  font-size: 13px !important;
  color: #245bd6 !important;
  font-weight: 900 !important;
}

.home-quick-v {
  margin-top: 6px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #111827 !important;
  font-weight: 900 !important;
}

.home-update-simple {
  max-width: 900px !important;
  margin: 20px auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
}

.home-update-simple p {
  margin: 0 !important;
  padding: 13px 16px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.86) !important;
  border: 1px solid rgba(60,124,255,0.18) !important;
  box-shadow: 0 8px 24px rgba(60,124,255,0.08) !important;
  color: #374151 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  text-align: center !important;
}

.home-update-simple .home-update-note {
  margin-top: 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}

.home-update-simple .home-update-label {
  display: inline-block !important;
  margin-right: 10px !important;
  color: #245bd6 !important;
  font-weight: 900 !important;
}

.home-update-simple .home-update-date {
  display: inline-block !important;
  margin-right: 10px !important;
  color: #111827 !important;
  font-weight: 900 !important;
}

.home-update-link {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  color: #245bd6;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-update-link::after {
  content: " →";
}

.home-menu-section {
  padding-top: 42px !important;
}

@media (max-width: 760px) {
  .home-hero-renew,
  .home-hero-compact {
    padding-top: 32px !important;
    padding-bottom: 30px !important;
  }

  .home-quick {
    gap: 10px !important;
  }

  .home-update-simple,
  .home-update-simple p {
    text-align: left !important;
  }

  .home-update-simple .home-update-label,
  .home-update-simple .home-update-date,
  .home-update-simple .home-update-text,
  .home-update-link {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .home-update-simple .home-update-date,
  .home-update-simple .home-update-text,
  .home-update-link {
    margin-top: 4px !important;
  }
}

/* ===============================
   2026-06 トップ更新情報：おしゃれ版・崩れ防止
   =============================== */

.home-update-stylish {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  gap: 18px !important;
  max-width: 920px !important;
  margin: 22px auto 0 !important;
  padding: 18px 20px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 5% 12%, rgba(255,151,64,0.18), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(60,124,255,0.10), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,251,255,0.96)) !important;
  border: 1px solid rgba(60,124,255,0.20) !important;
  box-shadow: 0 14px 34px rgba(60,124,255,0.10) !important;
  text-align: left !important;
}

.home-update-stylish p {
  all: unset;
  display: block;
}

.home-update-stylish .home-update-main {
  min-width: 0;
}

.home-update-stylish .home-update-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.home-update-stylish .home-update-label {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #3c7cff, #245bd6) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: 0 6px 14px rgba(60,124,255,0.22) !important;
}

.home-update-stylish .home-update-date {
  display: inline-flex !important;
  margin: 0 !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.home-update-stylish .home-update-title {
  margin-top: 14px !important;
  color: #111827 !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
}

.home-update-stylish .home-update-text {
  margin-top: 8px !important;
  color: #374151 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.home-update-stylish .home-update-note {
  margin-top: 8px !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}

.home-update-stylish .home-update-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 178px !important;
  padding: 13px 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff9740, #d85d00) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(255,151,64,0.26) !important;
  white-space: nowrap !important;
}

.home-update-stylish .home-update-btn::after {
  content: " →";
}

.home-update-stylish .home-update-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(255,151,64,0.34) !important;
}

@media (max-width: 760px) {
  .home-update-stylish {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }

  .home-update-stylish .home-update-btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ===============================
   2026-06 トップ更新情報：完全独立版
   pタグを使わず、既存 .home-update p の影響を受けない
   =============================== */

.home-news-card {
  display: block !important;
  gap: 18px !important;
  max-width: 920px !important;
  margin: 22px auto 0 !important;
  padding: 18px 20px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 5% 12%, rgba(255,151,64,0.18), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(60,124,255,0.10), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,251,255,0.96)) !important;
  border: 1px solid rgba(60,124,255,0.20) !important;
  box-shadow: 0 14px 34px rgba(60,124,255,0.10) !important;
  text-align: left !important;
}

.home-news-content {
  min-width: 0 !important;
}

.home-news-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 10px !important;
}

.home-news-label {
  display: inline-flex !important;
  align-items: center !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #3c7cff, #245bd6) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: 0 6px 14px rgba(60,124,255,0.22) !important;
}

.home-news-date {
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.home-news-entry-date {
  margin-top: 0 !important;
  color: #4b5563 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.home-news-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 6px !important;
}

.home-news-title {
  margin-top: 0 !important;
  color: #111827 !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
}

.home-news-entry {
  display: block !important;
  margin-top: 14px !important;
}

.home-news-entry-body {
  min-width: 0 !important;
}

.home-news-entry + .home-news-entry {
  margin-top: 18px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(60,124,255,0.22) !important;
}

.home-news-text {
  margin-top: 8px !important;
  color: #374151 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.home-news-note {
  margin-top: 8px !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}

.home-news-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: end !important;
  min-width: 150px !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff9740, #d85d00) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(255,151,64,0.26) !important;
  white-space: nowrap !important;
}

.home-news-button-primary {
  background: linear-gradient(135deg, #3c7cff, #245bd6) !important;
  box-shadow: 0 12px 24px rgba(60,124,255,0.22) !important;
}

.home-news-button::after {
  content: " →";
}

.home-news-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(255,151,64,0.34) !important;
}

@media (max-width: 760px) {
  .home-news-card {
    padding: 16px !important;
  }

  .home-news-heading {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
  }

  .home-news-button {
    width: auto !important;
    min-width: 132px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
  }
}


/* KLC block visual balance */
.home-klc-box {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px) !important;
  gap: 28px !important;
  align-items: center !important;
}

.home-klc-lead {
  max-width: 760px !important;
}

.home-klc-action {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center !important;
}

.home-klc-logo-link {
  margin: 0 !important;
  padding: 8px 12px;
  border-radius: 14px;
  transition: background .15s ease, transform .15s ease;
}

.home-klc-logo-link:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.home-klc-logo-link img {
  max-width: 138px !important;
  max-height: 64px !important;
}

.home-klc-btn {
  min-width: 190px !important;
  padding: 12px 22px !important;
}

.home-klc-note {
  margin: -4px 0 0 !important;
}

@media (max-width: 760px) {
  .home-klc-box {
    grid-template-columns: 1fr !important;
  }

  .home-klc-action {
    align-items: flex-start;
    text-align: left !important;
  }

  .home-klc-logo-link {
    padding-left: 0;
  }

  .home-klc-logo-link img {
    max-width: 128px !important;
  }

  .home-klc-btn {
    width: 100%;
  }
}


/* KLC logo-only link */
.home-klc-action {
  min-height: 120px;
}

.home-klc-logo-link {
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px !important;
  border: 1px solid rgba(60,124,255,0.14);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31,58,107,0.06);
  text-decoration: none;
}

.home-klc-logo-link img {
  max-width: 150px !important;
  max-height: 70px !important;
}

.home-klc-logo-link span {
  color: #245bd6;
  font-size: 13px;
  font-weight: 900;
}

.home-klc-btn {
  display: none !important;
}

@media (max-width: 760px) {
  .home-klc-action {
    min-height: 0;
  }

  .home-klc-logo-link {
    align-items: flex-start;
    padding-left: 14px !important;
  }
}


/* Compact update news accordion */
.home-news-compact {
  max-width: 920px !important;
  margin: 18px auto 0 !important;
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: rgba(255,255,255,0.96) !important;
  border: 1px solid rgba(60,124,255,0.18) !important;
  box-shadow: 0 10px 24px rgba(60,124,255,0.08) !important;
}

.home-news-compact summary {
  list-style: none;
}

.home-news-compact summary::-webkit-details-marker {
  display: none;
}

.home-news-summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 14px;
  cursor: pointer;
}

.home-news-summary:hover {
  background: #f8fbff;
}

.home-news-summary-date {
  color: #374151;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.home-news-summary-title {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-summary-action {
  color: #245bd6;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.home-news-compact[open] .home-news-summary {
  border-bottom: 1px solid rgba(60,124,255,0.16);
}

.home-news-compact[open] .home-news-summary-action {
  color: #6b7280;
}

.home-news-compact[open] .home-news-summary-action::before {
  content: "閉じる";
}

.home-news-compact[open] .home-news-summary-action {
  font-size: 0;
}

.home-news-compact[open] .home-news-summary-action::before {
  font-size: 12px;
}

.home-news-compact .home-news-content {
  padding: 4px 16px 14px !important;
}

.home-news-compact .home-news-entry {
  margin-top: 12px !important;
}

.home-news-compact .home-news-title {
  font-size: 16px !important;
}

.home-news-compact .home-news-text {
  font-size: 13px !important;
  line-height: 1.7 !important;
}

.home-news-compact .home-news-note {
  margin-top: 10px !important;
}

@media (max-width: 760px) {
  .home-news-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .home-news-summary-date {
    display: none;
  }

  .home-news-summary-title {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .home-news-summary {
    grid-template-columns: 1fr auto;
  }

  .home-news-summary .home-news-label {
    justify-self: start;
  }

  .home-news-summary-title {
    grid-column: 1 / -1;
    white-space: normal;
  }
}

/* ===============================
   2026-07 協賛関連リンク：1行表示調整
   =============================== */
.home-support-links {
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  text-align: center !important;
}

.home-support-sub-links {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  color: #9aaec7 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.home-support-sub-links a,
.home-support-sub-links span {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.home-support-sub-links a {
  color: #1d5fbf !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.home-support-sub-links a:hover {
  text-decoration: underline !important;
}

@media (max-width: 640px) {
  .home-support-sub-links {
    gap: 6px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 360px) {
  .home-support-sub-links {
    gap: 5px !important;
    font-size: 11px !important;
  }
}
