/* 一服ドリル 共通スタイル */
:root {
  --navy: #1b2a4a;
  --navy-dark: #121d35;
  --navy-light: #2d4270;
  --white: #ffffff;
  --paper: #f7f6f1;
  --yellow: #f2c230;
  --yellow-pale: #fdf3cf;
  --text: #1f2530;
  --muted: #4a5263;
  --line: #d8dbe2;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.85;
}

a { color: var(--navy-light); }
a:hover { color: var(--navy-dark); }

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

/* ヘッダー */
.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 5px solid var(--yellow);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  color: var(--white);
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.logo:hover { color: var(--yellow); }
.logo .logo-mark {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-dark);
  border-radius: 6px;
  padding: 0 8px;
  margin-right: 4px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--yellow);
  text-decoration: underline;
}

/* メイン */
main { padding: 32px 0 48px; }

h1 {
  font-size: 30px;
  line-height: 1.45;
  color: var(--navy);
  margin: 0 0 20px;
}
h2 {
  font-size: 25px;
  line-height: 1.5;
  color: var(--navy);
  margin: 48px 0 16px;
  padding-left: 12px;
  border-left: 7px solid var(--yellow);
}
h3 {
  font-size: 21px;
  color: var(--navy);
  margin: 28px 0 10px;
}
p { margin: 0 0 16px; }

/* ヒーロー */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 44px;
}
.hero h1 {
  color: var(--white);
  font-size: 32px;
}
.hero .accent { color: var(--yellow); }
.hero p { font-size: 19px; }
.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-dark);
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 17px;
  margin-bottom: 16px;
}

/* カード */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy);
  border-radius: 8px;
  padding: 20px;
}
.card h3 { margin-top: 0; }
.card .num {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-dark);
  font-weight: 700;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  margin-right: 8px;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* 表 */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 17px;
}
th, td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
thead th {
  background: var(--navy);
  color: var(--white);
}
td.price {
  font-weight: 700;
  white-space: nowrap;
  color: var(--navy);
}
.plan-note {
  display: block;
  font-size: 16px;
  color: var(--muted);
}

/* 価格表：スマホでは縦に並べる */
@media (max-width: 640px) {
  table.price-table thead { display: none; }
  table.price-table, table.price-table tbody, table.price-table tr, table.price-table td {
    display: block;
    width: 100%;
  }
  table.price-table tr {
    border: 1px solid var(--line);
    border-top: 5px solid var(--navy);
    margin-bottom: 14px;
    background: var(--white);
  }
  table.price-table td { border: none; border-bottom: 1px dashed var(--line); }
  table.price-table td:last-child { border-bottom: none; }
  table.price-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 15px;
    color: var(--muted);
  }
}

/* 定義リスト（特商法など） */
.def-table th {
  background: var(--yellow-pale);
  width: 32%;
  color: var(--navy-dark);
}
@media (max-width: 640px) {
  .def-table, .def-table tbody, .def-table tr, .def-table th, .def-table td {
    display: block;
    width: 100%;
  }
  .def-table tr { margin-bottom: 12px; }
  .def-table th { border-bottom: none; }
}

/* お知らせ枠 */
.notice {
  background: var(--yellow-pale);
  border-left: 7px solid var(--yellow);
  padding: 16px 18px;
  border-radius: 4px;
  margin: 20px 0;
}
.notice p:last-child { margin-bottom: 0; }

/* お試し問題 */
.quiz {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.quiz .q-label {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 12px;
  margin-bottom: 10px;
  font-size: 16px;
}
.quiz ol.choices {
  margin: 8px 0 16px;
  padding-left: 1.8em;
}
.quiz ol.choices li { margin-bottom: 6px; }
details {
  border: 2px solid var(--yellow);
  border-radius: 6px;
  background: var(--yellow-pale);
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 16px;
  color: var(--navy-dark);
}
details .answer { padding: 0 16px 14px; }
.answer .correct {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.answer .basis {
  font-size: 16px;
  color: var(--muted);
}

/* ボタン風リンク */
.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 18px;
}
.btn:hover { background: #e5b21c; color: var(--navy-dark); }

/* 規約の条文 */
.article ol, .article ul { padding-left: 1.6em; }
.article li { margin-bottom: 6px; }
.enacted {
  margin-top: 40px;
  text-align: right;
  color: var(--muted);
}

/* フッター */
.site-footer {
  background: var(--navy-dark);
  color: #e6e9f0;
  padding: 28px 0 32px;
  font-size: 16px;
  line-height: 1.8;
  border-top: 5px solid var(--yellow);
}
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: var(--yellow); }
.site-footer .footer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-footer .copy { margin-top: 12px; color: #b9c0cf; }

.small-note { font-size: 16px; color: var(--muted); }

/* 問題ページ */
.breadcrumb { font-size: 15px; margin-bottom: 12px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li { color: var(--muted); }
.breadcrumb li + li::before { content: "＞"; margin: 0 6px; color: var(--muted); }
.q-meta { font-size: 16px; color: var(--muted); }
.answer ul { padding-left: 1.4em; }
.answer ul li { margin-bottom: 6px; }
.answer .basis a { word-break: break-all; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 24px 0; }
.pager a {
  flex: 1 1 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
}
.pager a span { display: block; font-weight: 400; font-size: 16px; color: var(--muted); }
.pager .pager-next { text-align: right; }
.to-list, .more-questions { margin: 20px 0; }
.notice-title { margin: 0 0 8px; padding: 0; border: none; font-size: 21px; }
.q-list { padding-left: 1.6em; }
.q-list li { margin-bottom: 10px; }
.q-list a { font-weight: 700; }
.q-list-meta { display: block; font-size: 15px; color: var(--muted); }
