@charset "UTF-8";

:root {
  --navy: #1f3a60;
  --navy-deep: #2d3748;
  --navy-mid: #245ea0;
  --sky: #ebf2fa;
  --sky-deep: #cbe3f7;
  --orange: #ffa049;
  --orange-deep: #ff7a00;
  --yellow: #ffd849;
  --green: #10d65e;
  --green-deep: #05b34c;
  --line: #06c755;
  --white: #fff;
  --text: #2d3748;
  --muted: #5a6574;
  --shadow: 0 8px 24px rgba(31, 58, 96, 0.12);
  --radius: 20px;
  --header-h: 58px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body.hp {
  margin: 0 auto;
  max-width: 402px;
  min-height: 100vh;
  font-family: "Zen Maru Gothic", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--sky);
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

@media screen and (min-width: 403px) {
  html {
    background-color: #1a3a5c;
    background-image: repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 10px,
      transparent 10px,
      transparent 20px
    );
    background-attachment: fixed;
  }

  body.hp {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.marker {
  background: linear-gradient(transparent 60%, #ffa049 0%);
}

.marker-blue {
  background: linear-gradient(transparent 60%, #cbe3f7 0%);
  font-weight: 700;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(31, 58, 96, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 12px 0 8px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.site-logo img {
  width: 40px;
  height: 40px;
}

.site-logo span {
  font-weight: 700;
  font-size: 18px;
  color: var(--navy-deep);
  letter-spacing: 0.02em;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--line);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid #e4edf6;
  padding: 8px 16px 16px;
}

body.nav-open .site-nav {
  display: block;
}

.site-nav a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid #eef3f8;
}

.site-nav a:last-child {
  border-bottom: 0;
  color: var(--white);
  background: var(--line);
  border-radius: 9999px;
  text-align: center;
  margin-top: 8px;
}

.site-nav a.is-current {
  color: var(--orange-deep);
}

/* ===== Page title ===== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 32px 16px 28px;
}

.page-hero__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: 8px;
}

.page-hero h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.page-hero p {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.9;
}

/* ===== Sections ===== */
.section {
  padding: 36px 16px;
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--white {
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.section-title--light {
  color: var(--white);
}

.section-lead {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.section--navy .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Buttons ===== */
.cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 56px;
  background: linear-gradient(180deg, #10d65e 0%, #05b34c 100%);
  border-radius: 9999px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(5, 179, 76, 0.3);
}

.cta-button--ghost {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
  border: 2px solid var(--navy);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--navy-mid);
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: "→";
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 16px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 36px 20px 28px;
  text-align: center;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.site-footer__brand img {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 50%;
}

.site-footer__brand p {
  font-weight: 700;
  font-size: 18px;
}

.site-footer__copy {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 20px;
}

.site-footer nav a {
  color: var(--white);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__legal {
  font-size: 11px;
  opacity: 0.7;
}

/* ===== Utility ===== */
.note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.placeholder-note {
  background: #fff7e8;
  border: 1px dashed var(--orange);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  color: #8a5a12;
  margin: 16px 0;
  text-align: left;
}

/* ===== HP tablet / PC ===== */
@media screen and (min-width: 720px) {
  body.hp {
    max-width: 720px;
  }

  .site-header__inner {
    padding: 0 24px 0 16px;
  }

  .page-hero {
    padding: 44px 32px 36px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .section {
    padding: 48px 32px;
  }

  .section-title {
    font-size: 26px;
  }

  .card-grid,
  .split-grid,
  .price-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .card-grid .card + .card,
  .split-grid .card + .card,
  .price-teaser .card + .card {
    margin-top: 0;
  }

  .legal {
    padding: 36px 32px 48px;
  }
}

@media screen and (min-width: 960px) {
  body.hp {
    max-width: 860px;
  }

  .site-header {
    position: sticky;
  }

  .site-header__inner {
    padding: 0 28px 0 20px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav[hidden] {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 18px;
    position: absolute;
    top: 0;
    left: 180px;
    right: 118px;
    height: var(--header-h);
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-bottom: 0;
    font-size: 14px;
    white-space: nowrap;
  }

  .site-nav a:last-child {
    display: none;
  }

  .header-line {
    font-size: 13px;
    padding: 7px 14px;
  }

  .site-footer {
    padding: 44px 32px 32px;
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
