:root {
  --color-navy: rgb(26, 45, 82);
  --color-yellow: rgb(255, 235, 59);
  --color-black: rgb(6, 6, 5);
  --color-text: rgb(51, 51, 51);
  --color-white: rgb(255, 255, 255);
  --font-display: "Roboto Slab", "Noto Sans JP", serif;
  --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-max: 1000px;
  --footer-h: 50px;
}

html {
  background: var(--color-white);
}

body {
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  word-spacing: 1px;
  font-feature-settings: "palt";
  -webkit-font-feature-settings: "palt";
  padding-bottom: var(--footer-h);
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-white);
  width: 100%;
  position: relative;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 30px;
}
.site-header__logo img {
  width: 151px;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .site-header__inner { padding-top: 40px; padding-bottom: 40px; }
  .site-header__logo img { width: 160px; }
}
@media (max-width: 480px) {
  .site-header__inner { padding-top: 20px; padding-bottom: 10px; }
  .site-header__logo img { width: 124px; }
}

/* ===== Main ===== */
.site-main {
  background: var(--color-white);
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  display: flex;
  justify-content: center;
  margin: 40px 0 80px;
  padding: 0 20px;
  background: transparent;
}
.hero__card {
  width: 100%;
  max-width: var(--container-max);
  background: var(--color-navy);
  color: var(--color-white);
  padding: 50px;
}
.hero__title {
  margin: 0;
  padding: 0;
  display: block;
  color: var(--color-white);
  letter-spacing: 0;
}
.hero__title__main {
  display: block;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 15px;
}
.hero__title__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .hero { margin: 50px 0 80px; padding: 0 40px; }
  .hero__card { padding: 50px; }
}
@media (max-width: 480px) {
  .hero { margin: 40px 0 80px; padding: 0 20px; }
  .hero__card { padding: 40px 30px; }
  .hero__title__main { font-size: 36px; }
  .hero__title__sub { font-size: 12px; }
}

/* ===== Trailing spacer (reduced; just enough gap above the fixed footer) ===== */
.trailing-spacer {
  width: 100%;
  height: 80px;
}
@media (max-width: 768px) {
  .trailing-spacer { height: 60px; }
}
@media (max-width: 480px) {
  .trailing-spacer { height: 40px; }
}

/* ===== Section common ===== */
.section {
  width: 100%;
  margin: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  color: var(--color-black);
  margin: 0 0 20px;
}
.section__body {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 2;
  color: var(--color-black);
}
.section__body p {
  margin: 0;
}
.section__bar {
  display: block;
  width: 383px;
  max-width: 80%;
  height: 5px;
  background: var(--color-navy);
  margin-top: 100px;
}

@media (max-width: 768px) {
  .section .container { padding: 0 40px; }
}
@media (max-width: 480px) {
  .section { margin: 50px 0; }
  .section__title { font-size: 24px; }
  .section__bar { width: 240px; margin-top: 50px; }
}

/* ===== Outline ===== */
.outline {
  width: 100%;
  max-width: 500px;
  display: grid;
  gap: 0;
  margin: 0;
}
.outline__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 30px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-black);
  align-items: baseline;
}
.outline__row dt {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 2;
  color: var(--color-black);
  margin: 0;
}
.outline__row dd {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  color: var(--color-black);
  margin: 0;
}

@media (max-width: 480px) {
  .outline { max-width: 100%; }
}

/* ===== Footer ===== */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  padding: 0 30px;
  z-index: 10;
}
.site-footer__inner {
  margin-left: auto;
}
.site-footer__inner small {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-white);
}
@media (max-width: 480px) {
  .site-footer { padding: 0 15px; }
}

/* ===== 404 page ===== */
.error-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
}
.error-404__code {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 20px;
}
.error-404__link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 4px;
}
