/* 免許模擬試験 公式サイト */

:root {
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --ink: #1C1A17;
  --text-body: #47433D;
  --text-sub: #6A645B;
  --chip-text: #36332E;
  --blue: #0B74DE;
  --blue-text: #0A62C9;
  --blue-hover: #0955AD;
  --blue-deep: #0A55A8;
  --blue-tint: #EAF2FC;
  --line: rgba(28, 26, 23, 0.08);
  --line-strong: rgba(28, 26, 23, 0.1);
  --content: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-text);
}

a:hover {
  color: var(--blue-hover);
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

.container {
  max-width: var(--content);
  margin: 0 auto;
}

/* ---- ヘッダー ---- */

.site-header {
  padding: 0 24px;
}

.site-header .container {
  min-height: 76px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.brand:hover {
  color: var(--ink);
}

.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a,
.back-link {
  color: var(--text-body);
  text-decoration: none;
  padding: 10px 0;
}

.site-nav a:hover,
.back-link:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #FFFFFF;
  font-weight: 700;
}

.site-nav .nav-cta:hover {
  background: var(--blue-hover);
  color: #FFFFFF;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
}

/* ---- 共通 ---- */

.section {
  padding: 0 24px 104px;
}

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-text);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.35;
  font-weight: 900;
}

.section-head p:not(.eyebrow) {
  font-size: 16px;
  color: var(--text-body);
}

/* ---- ヒーロー ---- */

.hero {
  padding: 40px 24px 80px;
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-body);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 16px;
  background: var(--ink);
  color: #FFFFFF;
  text-decoration: none;
}

.store-button:hover {
  background: #36332E;
  color: #FFFFFF;
}

.store-button-label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.store-button-label small {
  font-size: 12px;
  opacity: 0.8;
}

.store-button-label strong {
  font-size: 17px;
}

.hero-note {
  font-size: 14px;
  color: var(--text-sub);
}

.hero-art {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero-art-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.hero-art-frame::before {
  content: '';
  position: absolute;
  inset: 4% -10% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 116, 222, 0.16) 0%, rgba(11, 116, 222, 0.07) 55%, rgba(242, 242, 247, 0) 72%);
}

.hero-art-frame img {
  position: relative;
  width: 100%;
  height: auto;
}

/* ---- 収録内容 ---- */

.stats {
  padding: 0 24px 96px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: 40px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.1;
}

.stat-value span {
  font-size: 18px;
  font-weight: 700;
  margin-left: 4px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-body);
}

/* ---- 特長 ---- */

.features .container {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-art {
  aspect-ratio: 4 / 3;
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 16px;
}

.feature-art img {
  height: 100%;
  width: auto;
}

.feature-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-body h3 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
}

.feature-body p {
  font-size: 15px;
  color: var(--text-body);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--chip-text);
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---- 試験の形式 ---- */

.exam .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.exam-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exam-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exam-title span {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-text);
}

.exam-title h3 {
  font-size: 28px;
  font-weight: 900;
}

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

.exam-facts div {
  background: var(--bg);
  border-radius: 18px;
  padding: 16px;
}

.exam-facts dt {
  font-size: 13px;
  color: var(--text-sub);
}

.exam-facts dd {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 900;
}

.exam-facts dd span {
  font-size: 14px;
  font-weight: 700;
}

.exam-card > p {
  font-size: 15px;
  color: var(--text-body);
}

/* ---- CTA ---- */

.cta {
  padding: 0 24px 96px;
}

.cta-panel {
  background: var(--blue);
  border-radius: 36px;
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-copy h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.35;
  font-weight: 900;
  color: #FFFFFF;
}

.cta-copy p {
  font-size: 16px;
  color: #EAF3FD;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--blue-deep);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}

.cta-button:hover {
  background: var(--blue-tint);
  color: var(--blue-deep);
}

.cta-button img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

/* ---- フッター ---- */

.site-footer {
  padding: 48px 24px 56px;
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.footer-brand strong {
  font-size: 15px;
}

.footer-brand small {
  font-size: 12px;
  color: var(--text-sub);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 14px;
}

.footer-nav a {
  color: var(--text-body);
  padding: 10px 0;
}

.footer-nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
}

/* ---- 規約・ポリシー ---- */

.doc-main {
  padding: 24px 24px 96px;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 32px;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.doc-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-head h1 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.3;
  font-weight: 900;
}

.doc-date {
  font-size: 14px;
  color: var(--text-sub);
}

.doc-head p:not(.doc-date) {
  font-size: 16px;
  color: var(--text-body);
}

.doc section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc h2 {
  font-size: 20px;
  font-weight: 700;
}

.doc section > p,
.doc ul,
.doc ol {
  font-size: 16px;
  color: var(--text-body);
}

.doc ul,
.doc ol {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc .doc-note {
  font-size: 14px;
  color: var(--text-sub);
}

.doc .doc-contact {
  background: var(--bg);
  border-radius: 20px;
  padding: 24px;
}

.doc .doc-contact h2 {
  font-size: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.summary-grid div {
  background: var(--bg);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-grid strong {
  font-size: 15px;
}

.summary-grid span {
  font-size: 14px;
  color: var(--text-body);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
}

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.table-wrap thead tr {
  background: var(--bg);
  text-align: left;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 16px;
}

.table-wrap th {
  font-weight: 700;
}

.table-wrap tbody {
  color: var(--text-body);
  vertical-align: top;
}

.table-wrap tbody tr {
  border-top: 1px solid var(--line);
}

.table-wrap tbody td:first-child {
  color: var(--ink);
  font-weight: 500;
}

/* ---- 404 ---- */

.not-found {
  padding: 64px 24px 120px;
  text-align: center;
}

.not-found .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.not-found h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
}

.not-found p {
  color: var(--text-body);
}

/* ---- フォーカス ---- */

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .exam-card {
    padding: 28px 22px;
  }

  .exam-facts dd {
    font-size: 20px;
  }
}
