:root {
  --main-color: #002b97; /* デザインのボタン色 */
  --panel-bg: rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #000;
  background: #fff;
}

/* ===== Hero (背景＋パネル) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 24px 80px; /* Figmaレイアウトに合わせて上余白を確保 */
}

.hero__bg {
  background-color: #e6e6e6;
  position: absolute;
  inset: 0;
  background-image: url("img/pc-bg.jpg");
  background-size: cover;
  background-position: 50% 50%;
  filter: none;
  opacity: 1;
  background-repeat: no-repeat;
}

/* SP用（jpg） */
@media screen and (max-width: 768px) {
  .hero__bg {
    background-image: url("img/sp-bg.jpg");
    background-position: top center;
    background-size: contain;
  }
}

/* WebP対応ブラウザ用 */
@supports (background-image: url("data:image/webp;base64,UklGRhIAAABXRUJQVlA4IC4AAAAwAQCdASoEAAQAAVAfJaQAA3AAAAAA")) {
  .hero__bg {
    background-image: url("img/pc-bg.webp");
  }

  /* SP + WebP */
  @media screen and (max-width: 768px) {
    .hero__bg {
      background-image: url("img/sp-bg.webp");
    }
  }
}

/* 中央のホワイトパネル */
.panel {
  position: relative;
  width: 100%;
  max-width: 682px; /* Desktop幅 */
  background: var(--panel-bg);
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  align-items: center;
  text-align: center;
}

/* タイポグラフィ（Desktop基準） */
.panel__title {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 98px;
  letter-spacing: -0.02em;
  line-height: 1.35;
  @media screen and (max-width: 768px) {
    font-size: 14dvw;
  }
}

.panel__subtitle {
  margin: -10px 0 0 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

@media screen and (max-width: 768px) {
  .panel__subtitle {
    font-size: 5dvw;
  }
}

.panel__lead {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.panel__copy {
  text-align: left;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.86; /* デザインの行送り感に合わせる */
  letter-spacing: -0.02em;
}
.panel__copy p {
  margin: 0 0 8px;
}

.panel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  padding: 15px 10px;
  background: var(--main-color);
  color: #fff;
  text-decoration: none;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.panel__note {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

/* ===== レスポンシブ（iPhone想定） ===== */
@media (max-width: 430px) {
  .hero {
    padding: 168px 16px 64px;
  }

  .panel {
    width: 338px; /* Figma iPhoneのパネル幅 */
    max-width: 100%;
    padding: 40px 10px; /* iPhoneは上下40 / 横10 */
    gap: 44px;
  }

  .panel__title {
    font-size: 50px;
    letter-spacing: -0.02em;
  }
  .panel__subtitle {
    font-size: 21px;
  }
  .panel__lead {
    font-size: 20px;
  }

  .panel__copy {
    font-size: 17px;
    line-height: 1.86;
    max-width: 284px; /* デザイン準拠 */
    margin: 0 auto;
  }

  .panel__cta {
    width: 100%;
  }
}
