:root {
  --ink: #1f211e;
  --muted: #706d66;
  --paper: #f6f3ee;
  --mist: #e7e1d8;
  --line: #d8d1c7;
  --green: #4f5a4b;
  --green-soft: #e3e7dc;
  --amber: #9b7a4a;
  --coral: #8d7354;
  --sky: #d8ddd4;
  --canvas: #cfc7bb;
  --charcoal: #1c1d1a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(31, 33, 30, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    system-ui, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 243, 238, 0.94);
  border-bottom: 1px solid rgba(31, 33, 30, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--paper);
  background: var(--charcoal);
  border-radius: 4px;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-weight: 800;
  line-height: 1.2;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(31, 33, 30, 0.06);
}

.first-view {
  position: relative;
  min-height: min(760px, calc(100svh - 54px));
  overflow: hidden;
  border-bottom: 1px solid rgba(47, 58, 36, 0.24);
  background: var(--charcoal);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.08);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(28, 29, 26, 0.86) 0%, rgba(28, 29, 26, 0.56) 43%, rgba(28, 29, 26, 0.1) 100%),
    linear-gradient(180deg, rgba(28, 29, 26, 0.12) 0%, rgba(28, 29, 26, 0.62) 100%);
}

.first-view-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: clamp(26px, 5vw, 74px);
  width: min(1180px, calc(100% - 36px));
  min-height: min(760px, calc(100svh - 54px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.quiz-category,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(40px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #f8f4ec;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.2);
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: #e9e2d6;
  font-size: 17px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: #ede7dc;
  background: rgba(246, 243, 238, 0.08);
  border: 1px solid rgba(246, 243, 238, 0.24);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link,
.next-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 800;
  cursor: pointer;
}

.primary-link,
.next-button {
  color: var(--paper);
  background: var(--charcoal);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.secondary-link {
  color: #f8f4ec;
  background: rgba(28, 29, 26, 0.22);
  border-color: rgba(246, 243, 238, 0.36);
}

.field-card {
  padding: 26px;
  color: #f8f4ec;
  background: rgba(28, 29, 26, 0.78);
  border: 1px solid rgba(246, 243, 238, 0.18);
  border-radius: 3px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.field-card h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: 0;
}

.essential-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.essential-list a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 12px;
  min-height: 78px;
  padding: 14px;
  background: rgba(246, 243, 238, 0.08);
  border: 1px solid rgba(246, 243, 238, 0.16);
  border-radius: 3px;
}

.essential-list a:hover {
  background: rgba(246, 243, 238, 0.13);
}

.essential-list span {
  grid-row: 1 / 3;
  color: #c6b28e;
  font-weight: 900;
}

.essential-list strong {
  line-height: 1.25;
}

.essential-list small {
  color: #d7d0c5;
  font-size: 12px;
  line-height: 1.5;
}

.quiz-panel {
  padding: 26px;
  background: rgba(248, 245, 239, 0.96);
  border: 1px solid rgba(216, 209, 199, 0.9);
  border-radius: 3px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quiz-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progress {
  height: 6px;
  margin: 14px 0 22px;
  overflow: hidden;
  background: var(--sky);
  border-radius: 3px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  transition: width 220ms ease;
}

.quiz-panel h2 {
  min-height: 116px;
  margin: 0 0 22px;
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.45;
  letter-spacing: 0;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-button {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.answer-button:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.answer-button.correct {
  color: #18362e;
  background: #cfe7dd;
  border-color: #87b6a7;
}

.answer-button.wrong {
  color: #6e271a;
  background: #f7d6ce;
  border-color: #e5a091;
}

.answer-button:disabled {
  cursor: default;
}

.feedback {
  min-height: 58px;
  margin: 16px 0 0;
  color: #405058;
  font-size: 14px;
}

.next-button {
  width: 100%;
  margin-top: 14px;
  font-size: 15px;
}

.next-button:disabled {
  color: #8c8778;
  background: #e4ded4;
  box-shadow: none;
  cursor: not-allowed;
}

.section-block {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gear-card {
  min-height: 320px;
  padding: 22px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.gear-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--paper);
  background: var(--charcoal);
  border-radius: 3px;
  font-weight: 900;
}

.gear-card p {
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.gear-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: 0;
}

.gear-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: #554f44;
  font-weight: 700;
}

.gear-card li {
  padding-top: 8px;
  border-top: 1px solid rgba(212, 200, 182, 0.72);
}

.scene-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.scene-main,
.scene-list a,
.quiz-intro {
  border-radius: 3px;
}

.scene-main {
  min-height: 340px;
  padding: 30px;
  color: #fff8ea;
  background:
    linear-gradient(135deg, rgba(246, 243, 238, 0.08), transparent 38%),
    var(--green);
}

.scene-main h3,
.quiz-intro h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

.scene-main p:not(.panel-kicker),
.quiz-intro p:not(.panel-kicker) {
  max-width: 680px;
  margin: 18px 0 0;
  color: #ede7dc;
}

.scene-list {
  display: grid;
  gap: 12px;
}

.scene-list a {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 105px;
  padding: 18px;
  background: #fbf8f2;
  border: 1px solid var(--line);
}

.scene-list strong {
  font-size: 20px;
  line-height: 1.35;
}

.scene-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.articles {
  padding-top: 28px;
}

.article-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.91fr 0.91fr;
  gap: 14px;
}

.article-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 430px;
  padding: 14px 14px 22px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.article-card.feature {
  color: #f8f4ec;
  background:
    linear-gradient(135deg, rgba(246, 243, 238, 0.08), transparent 42%),
    var(--charcoal);
  border-color: rgba(31, 33, 30, 0.2);
}

.article-card:hover {
  transform: translateY(-2px);
  transition: transform 180ms ease;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.86) contrast(1.03);
}

.article-card.feature img {
  filter: saturate(0.82) contrast(1.08) brightness(0.86);
}

.article-label {
  margin: 4px 10px 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card.feature .article-label {
  color: #c6b28e;
}

.article-card h3 {
  margin: 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: 0;
}

.article-card:not(.feature) h3 {
  font-size: 25px;
}

.article-card p {
  margin: 0 10px;
  color: #554f44;
}

.article-card.feature p {
  color: #dcd4c7;
}

.article-card small {
  margin: 0 10px;
  align-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card.feature small {
  color: #cfc7bb;
}

.quiz-section {
  width: 100%;
  padding: 70px max(18px, calc((100% - 1180px) / 2));
  background: #e9e4dc;
  border-block: 1px solid var(--line);
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 18px;
  align-items: start;
}

.quiz-intro {
  padding: 28px;
  background: #f6f3ee;
  border: 1px solid var(--line);
}

.quiz-intro p:not(.panel-kicker) {
  color: #554f44;
}

.quiz-intro .topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.quiz-intro .topic-card {
  min-height: 106px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  color: var(--ink);
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.topic-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.topic-card strong {
  max-width: 12em;
  font-size: 20px;
  line-height: 1.35;
}

.topic-card.active,
.topic-card:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.topic-card.active span,
.topic-card:hover span {
  color: var(--sky);
}

.preparedness {
  padding-top: 18px;
}

.readiness-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 18px;
}

.score-panel,
.next-prep {
  min-height: 312px;
  padding: 26px;
  border-radius: 6px;
}

.score-panel {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 24px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(246, 243, 238, 0.07), transparent 38%),
    var(--charcoal);
}

.score-panel .panel-kicker {
  color: var(--sky);
}

.score-panel strong {
  display: block;
  font-size: clamp(56px, 8vw, 90px);
  line-height: 1;
  letter-spacing: 0;
}

.score-bars {
  display: grid;
  gap: 15px;
  align-content: center;
}

.score-bars span {
  position: relative;
  display: block;
  height: 36px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.score-bars span::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  content: "";
  background: #b5a27f;
}

.score-bars b {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  font-size: 13px;
}

.next-prep {
  background: #e7e1d8;
  border: 1px solid var(--line);
}

.next-prep h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

.next-prep p:not(.panel-kicker) {
  margin: 16px 0 0;
  color: #554f44;
}

.prep-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.prep-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  color: var(--green);
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #ede8df;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.mobile-tabbar {
  display: none;
}

.article-page {
  padding: 72px 18px 96px;
}

.article-body {
  width: min(760px, 100%);
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 800;
}

.article-body h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-body .lead {
  margin: 24px 0 0;
  color: #4c4944;
  font-size: 20px;
  line-height: 1.9;
}

.article-cover {
  display: block;
  width: 100%;
  margin-top: 42px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(0.88) contrast(1.03);
}

.article-body section,
.source-box {
  margin-top: 52px;
}

.article-body h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: 0;
}

.article-body p {
  margin: 0;
  color: #3f3d38;
}

.article-body ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.article-body li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #3f3d38;
  font-weight: 700;
}

.source-box {
  padding: 24px;
  background: #e9e4dc;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.source-box h2 {
  font-size: 22px;
}

.source-box a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
  }

  .first-view,
  .first-view-inner {
    min-height: auto;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(28, 29, 26, 0.9) 0%, rgba(28, 29, 26, 0.62) 48%, rgba(28, 29, 26, 0.82) 100%),
      rgba(28, 29, 26, 0.16);
  }

  .first-view-inner {
    grid-template-columns: 1fr;
    padding: 44px 0 36px;
  }

  .field-card {
    margin-top: 8px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .quiz-panel h2 {
    min-height: auto;
  }

  .gear-grid,
  .article-grid,
  .topic-grid,
  .scene-layout,
  .quiz-layout,
  .readiness-layout,
  .score-panel {
    grid-template-columns: 1fr;
  }

  .quiz-intro .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 66px;
  }

  main {
    display: flex;
    flex-direction: column;
  }

  .first-view {
    order: 1;
  }

  .articles {
    order: 2;
  }

  .gear-guide {
    order: 3;
  }

  .scenes {
    order: 4;
  }

  .quiz-section {
    order: 5;
  }

  .preparedness {
    order: 6;
  }

  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-sub {
    display: none;
  }

  .first-view-inner,
  .section-block {
    width: min(100% - 28px, 1180px);
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
  }

  .field-card .panel-kicker {
    margin-bottom: 8px;
  }

  .field-card h2 {
    font-size: 22px;
  }

  .essential-list {
    margin-top: 18px;
  }

  .quiz-panel,
  .field-card,
  .gear-card,
  .scene-main,
  .quiz-intro,
  .score-panel,
  .next-prep {
    padding: 20px;
  }

  .gear-card {
    min-width: 78vw;
    min-height: auto;
  }

  .gear-grid {
    display: flex;
    gap: 10px;
    margin-inline: -14px;
    padding-inline: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gear-grid::-webkit-scrollbar {
    display: none;
  }

  .gear-card {
    scroll-snap-align: start;
  }

  .article-card {
    min-height: auto;
  }

  .scene-main {
    min-height: auto;
  }

  .quiz-section {
    padding-block: 46px;
  }

  .quiz-intro .topic-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-top: 4px;
  }

  .topic-grid {
    gap: 10px;
  }

  .topic-card {
    min-height: 108px;
  }

  .site-footer {
    display: block;
  }

  .mobile-tabbar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 52px;
    overflow: hidden;
    background: rgba(28, 29, 26, 0.92);
    border: 1px solid rgba(246, 243, 238, 0.12);
    border-radius: 3px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
  }

  .mobile-tabbar a {
    display: grid;
    place-items: center;
    color: var(--paper);
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-tabbar a + a {
    border-left: 1px solid rgba(246, 243, 238, 0.12);
  }
}
