/* ===== CSS Custom Properties (Figma colors) ===== */
:root {
  --bg: #ffffff;
  --text-primary: #000000;
  --text-light: #ffffff;

  /* Primary gradient: #1497FA → #146BC8 */
  --gradient-primary: linear-gradient(to right, #1497fa, #146bc8);
  /* Button gradient: #0082D8 → #029BFF */
  --gradient-btn: linear-gradient(to right, #0082d8, #029bff);
  /* CTA gradient: #1470C8 → #0099FF */
  --gradient-cta: linear-gradient(to right, #1470c8, #0099ff);
  /* Header overlay: rgba(0,0,0,0.5) → transparent */
  --gradient-header-overlay: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0));
  /* FV overlay: rgba(20,69,199,0.45) */
  --color-fv-overlay: rgba(20, 109, 199, 0.45);

  --font-family: 'Noto Sans JP', sans-serif;

  /* Layout */
  --content-max-width: 1040px;
  --content-padding: 200px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ===== Header ===== */
.header {
  position: relative;
  width: 100%;
  height: 290px;
  background: var(--color-fv-overlay);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.header__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-header-overlay);
  z-index: 1;
}

.header__nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 var(--content-padding);
}

.header__logo-area {
  width: 200px;
  height: 45px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.header__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--content-padding);
  padding-bottom: 65px;
}

.header__subtitle {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.header__fv-bar {
  width: 100%;
  height: 55px;
  background: var(--gradient-primary);
  position: relative;
  z-index: 2;
}

/* ===== 見つかりません Section ===== */
.notfound {
  padding: 70px var(--content-padding) 40px;
}

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

.notfound__title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 60px;
}

.notfound__body {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ===== Button Section ===== */
.button-section {
  padding: 40px var(--content-padding) 60px;
  display: flex;
  justify-content: center;
}

.btn-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 239px;
  height: 60px;
  background: var(--gradient-btn);
  color: var(--text-light);
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.btn-top:hover {
  opacity: 0.85;
}

/* ===== Footer ===== */
.footer__cta {
  width: 100%;
  height: 317px;
  background: var(--gradient-cta);
}

.footer__cta-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--content-padding);
}

.footer__bottom {
  width: 100%;
  background: var(--bg);
  padding: 40px 0;
}

.footer__bottom-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.footer__links-row {
  height: 20px;
  margin-bottom: 30px;
  background: rgba(0,0,0,0.05);
  border-radius: 2px;
}

/* ===== Responsive (SP: ≤768px) ===== */
@media (max-width: 768px) {
  :root {
    --content-padding: 20px;
  }

  /* Header SP: 194px height */
  .header {
    height: 194px;
  }

  .header__nav {
    height: 60px;
    padding: 0 20px;
  }

  .header__logo-area {
    width: 150px;
    height: 35px;
  }

  .header__content {
    padding: 0 20px;
    padding-bottom: 28px;
  }

  .header__fv-bar {
    height: 28px;
  }

  /* 見つかりません SP */
  .notfound {
    padding: 40px 20px 30px;
  }

  .notfound__title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .notfound__body {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Button SP */
  .button-section {
    padding: 30px 20px 40px;
    justify-content: center;
  }

  /* Footer SP: CTA 485px */
  .footer__cta {
    height: 485px;
  }

  .footer__cta-inner {
    padding: 0 20px;
  }

  .footer__bottom {
    padding: 30px 0;
  }

  .footer__bottom-inner {
    padding: 0 20px;
  }
}
