/* =========================
   01. Reset / Base
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    sans-serif;
  color: #172033;
  background: #f5f8fc;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}


/* =========================
   02. Design Tokens
========================= */

:root {
  --color-text: #172033;
  --color-sub: #526174;
  --color-bg: #f5f8fc;
  --color-white: #ffffff;
  --color-primary: #1769e0;
  --color-primary-dark: #0f4fb0;
  --color-border: #dbe6f3;
  --color-warning: #fff4bf;
  --color-safe: #e8f8ee;
  --color-line: #06c755;
  --color-danger: #e7352f;

  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;

  --shadow-soft:
    0 14px 36px rgba(23, 32, 51, 0.1);

  --shadow-strong:
    0 24px 64px rgba(23, 32, 51, 0.18);
}


/* =========================
   03. Layout
========================= */

.l-section {
  padding: 84px 20px;
}

.l-container {
  width: min(100%, 1120px);
  margin: 0 auto;
}


/* =========================
   04. Components
========================= */

.c-label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 900;
}

.c-section-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.c-section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 7vw, 54px);
  line-height: 1.22;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.c-section-heading p {
  margin: 0;
  color: var(--color-sub);
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 800;
}

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

button.c-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.c-button--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.c-button--secondary {
  border: 3px solid var(--color-primary);
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.c-button--line {
  background: var(--color-line);
  color: var(--color-white);
}

.c-button:focus-visible,
.question-card a:focus-visible,
.menu-button:focus-visible,
.top-movie__box:focus-visible,
.movie-modal__close:focus-visible {
  outline: 4px solid #ffcc33;
  outline-offset: 4px;
}

.c-button-group {
  width: 100%;
  max-width: 520px;
  display: grid;
  gap: 14px;
}

.c-button-group .c-button {
  width: 100%;
}


/* =========================
   05. Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 950;
  text-decoration: none;
}

.site-logo__mark {
  color: var(--color-primary);
  font-size: 18px;
}


/* =========================
   06. Hero
========================= */

.top-hero {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(
      circle at 10% 8%,
      #dcecff 0,
      transparent 32%
    ),
    radial-gradient(
      circle at 86% 18%,
      #e8f8ee 0,
      transparent 26%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f5f8fc 100%
    );
  display: flex;
  align-items: center;
}

.top-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.top-hero__content {
  text-align: left;
}

.top-hero__title {
  margin: 0;
  font-size: clamp(60px, 10vw, 108px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.top-hero__lead {
  margin: 28px 0 34px;
  font-size: clamp(24px, 5.5vw, 40px);
  line-height: 1.45;
  font-weight: 950;
}


/* =========================
   07. Hero Phone Mock
========================= */

.top-hero__apps {
  position: relative;
  min-height: 540px;
}

.phone-mock {
  position: absolute;
  width: 230px;
  min-height: 440px;
  padding: 22px 16px 18px;
  border: 8px solid #172033;
  border-radius: 38px;
  background: #ffffff;
  box-shadow: var(--shadow-strong);
  text-align: center;
  overflow: hidden;
}

.phone-mock::before {
  content: "";
  display: block;
  width: 76px;
  height: 8px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: #172033;
}

.phone-mock--center {
  z-index: 3;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
}

.phone-mock--left {
  z-index: 2;
  left: 4%;
  top: 88px;
  transform: rotate(-8deg);
  opacity: 0.94;
}

.phone-mock--right {
  z-index: 1;
  right: 4%;
  top: 92px;
  transform: rotate(8deg);
  opacity: 0.94;
}

.phone-mock__label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 950;
}

.phone-mock h3 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 950;
}

.phone-mock__map {
  height: 142px;
  margin: 0 0 18px;
  border-radius: 22px;
  background:
    linear-gradient(
      90deg,
      rgba(23, 105, 224, 0.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      rgba(23, 105, 224, 0.12) 1px,
      transparent 1px
    ),
    #f1f7ff;
  background-size: 24px 24px;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 950;
}

.phone-mock__alert {
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  border-radius: 34px;
  background: #ffebe8;
  color: var(--color-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 76px;
  font-weight: 950;
}

.phone-mock__list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.phone-mock__list span {
  min-height: 42px;
  border-radius: 14px;
  background: #f1f7ff;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.phone-mock__button {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 950;
}

.phone-mock__button--danger {
  background: var(--color-danger);
}


/* =========================
   08. Four Questions
========================= */

.top-questions {
  background: var(--color-white);
}

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

.question-card {
  min-height: 360px;
  padding: 20px;
  border: 3px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #f8fbff;
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.question-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border-radius: 24px;
  background: var(--color-white);
  overflow: hidden;
}

.question-card__visual {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.question-card h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.28;
  font-weight: 950;
}

.question-card a {
  margin-top: auto;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 950;
  text-decoration: none;
}


/* =========================
   09. Movie
========================= */

.top-movie {
  background: #f5f8fc;
}

.top-movie__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 44px;
}

.top-movie__content h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1.2;
  font-weight: 950;
}

.top-movie__content p {
  margin: 0;
  color: var(--color-sub);
  font-size: clamp(22px, 4.8vw, 30px);
  line-height: 1.45;
  font-weight: 950;
}

.top-movie__box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: #0f4fb0;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  cursor: pointer;
}

.top-movie__thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-movie__overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  background: rgba(8, 25, 49, 0.14);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.top-movie__play {
  width: 86px;
  height: 86px;
  padding-left: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  box-shadow:
    0 12px 30px rgba(8, 25, 49, 0.25);
  display: grid;
  place-items: center;
  font-size: 38px;
  line-height: 1;
}

.top-movie__caption {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(8, 25, 49, 0.72);
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}


/* =========================
   10. Emergency Flow
========================= */

.top-flow {
  background: var(--color-warning);
}

.top-flow__list {
  display: grid;
  grid-template-columns:
    1fr auto
    1fr auto
    1fr auto
    1fr auto
    1fr;
  align-items: center;
  gap: 12px;
}

.top-flow__item {
  min-height: 190px;
  padding: 18px 14px;
  border: 3px solid rgba(23, 32, 51, 0.12);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.top-flow__icon {
  display: block;
  width: 100%;
  max-width: 116px;
  aspect-ratio: 1;
  object-fit: contain;
}

.top-flow__text {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.3;
  font-weight: 950;
}

.top-flow__arrow {
  color: var(--color-primary-dark);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}


/* =========================
   11. App Experience
========================= */

.top-experience {
  background: #edf6ff;
}

.top-experience__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 42px;
}

.top-experience__content h2 {
  margin: 0 0 28px;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.25;
  font-weight: 950;
}

.top-experience__screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 18px;
}

.mini-screen {
  margin: 0;
  padding: 8px 8px 14px;
  border: 7px solid #172033;
  border-radius: 30px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.mini-screen__image {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  object-fit: cover;
  object-position: top center;
}

.mini-screen figcaption {
  margin-top: 10px;
  color: var(--color-primary-dark);
  text-align: center;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 950;
}


/* =========================
   12. LINE
========================= */

.top-line {
  background: var(--color-safe);
}

.top-line__inner {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: center;
  gap: 44px;
}

.top-line h2 {
  margin: 0 0 28px;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.25;
  font-weight: 950;
}

.line-phone {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.line-phone__image {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   13. Partners
========================= */

.top-partners {
  background: var(--color-white);
}

.top-partners__inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 44px;
}

.top-partners h2 {
  margin: 0 0 28px;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.25;
  font-weight: 950;
}

.partners-illustration {
  width: 100%;
  border-radius: var(--radius-xl);
  background: #f5f8fc;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.partners-illustration__image {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   14. Contact
========================= */

.top-contact {
  background: var(--color-text);
  color: var(--color-white);
  text-align: center;
}

.top-contact .c-label {
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
}

.top-contact .c-section-heading p {
  color: rgba(255, 255, 255, 0.82);
}

.top-contact .c-button--primary {
  background: var(--color-white);
  color: var(--color-text);
}


/* =========================
   15. Footer
========================= */

.site-footer {
  padding: 36px 20px;
  background: #0f1724;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong {
  color: var(--color-white);
  font-size: 18px;
}

.site-footer p {
  margin: 6px 0 0;
  font-size: 14px;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__nav a {
  font-size: 14px;
  text-decoration: none;
}


/* =========================
   16. Movie Modal
========================= */

body.is-movie-modal-open {
  overflow: hidden;
}

.movie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.movie-modal.is-open {
  display: flex;
}

.movie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 25, 49, 0.72);
  backdrop-filter: blur(4px);
}

.movie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-height: calc(100vh - 48px);
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 24px 80px rgba(8, 25, 49, 0.28);
  overflow-y: auto;
}

.movie-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef5fa;
  color: #12345b;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.movie-modal__heading {
  padding-right: 56px;
  margin-bottom: 20px;
}

.movie-modal__heading h2 {
  margin: 8px 0;
}

.movie-modal__heading p:last-child {
  margin: 0;
  color: #66778b;
  font-size: 14px;
}

.movie-modal__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #081931;
}


/* =========================
   17. Header Menu
========================= */

.menu-button {
  position: relative;
  z-index: 110;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.12);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #1f2937;
}

.site-menu {
  position: absolute;
  top: 64px;
  right: 16px;
  z-index: 100;
  width: min(250px, calc(100vw - 32px));
  max-height: calc(100vh - 88px);
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.16);
  overflow-y: auto;
  display: none;
}

.site-menu.is-open {
  display: grid;
  gap: 2px;
}

.site-menu a,
.site-menu__pending {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 1.4;
}

.site-menu a {
  color: #1f2937;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  background: #f3f7f4;
}

.site-menu a:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.32);
  outline-offset: -2px;
}

.site-menu__pending {
  color: #8a94a3;
  font-weight: 600;
  cursor: default;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}


/* =========================
   18. Responsive / Tablet
========================= */

@media (max-width: 980px) {
  .l-section {
    padding: 64px 16px;
  }

  .site-header {
    padding: 10px 14px;
  }

  .top-hero {
    min-height: auto;
    padding-top: 54px;
  }

  .top-hero__inner,
  .top-movie__inner,
  .top-experience__inner,
  .top-line__inner,
  .top-partners__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .top-hero__apps {
    order: 1;
    min-height: 440px;
  }

  .top-hero__content {
    order: 2;
    text-align: center;
  }

  .top-hero .c-button-group {
    margin: 0 auto;
  }

  .c-button {
    width: 100%;
  }

  .phone-mock {
    width: 190px;
    min-height: 360px;
    border-width: 7px;
  }

  .phone-mock--center {
    top: 18px;
  }

  .phone-mock--left {
    left: 0;
    top: 78px;
  }

  .phone-mock--right {
    right: 0;
    top: 82px;
  }

  .phone-mock h3 {
    font-size: 22px;
  }

  .phone-mock__map {
    height: 100px;
  }

  .phone-mock__alert {
    width: 90px;
    height: 90px;
    font-size: 56px;
  }

  .phone-mock__button {
    min-height: 52px;
    font-size: 16px;
  }

  .top-questions__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .top-flow__list {
    width: min(100%, 720px);
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .top-flow__arrow {
    transform: rotate(90deg);
  }

  .top-flow__item {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .top-flow__icon {
    max-width: 132px;
  }

  .top-experience__screens {
    width: min(100%, 560px);
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .mini-screen {
    width: min(100%, 340px);
    margin: 0 auto;
  }

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

  .line-phone {
    max-width: 520px;
  }

  .partners-illustration {
    max-width: 720px;
    margin: 0 auto;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}


/* =========================
   19. Responsive / Mobile
========================= */

@media (max-width: 560px) {
  .site-logo {
    font-size: 15px;
  }

  .top-hero__apps {
    min-height: 400px;
  }

  .phone-mock {
    width: 172px;
    min-height: 330px;
    padding: 18px 12px 14px;
  }

  .phone-mock--left {
    left: -18px;
  }

  .phone-mock--right {
    right: -18px;
  }

  .phone-mock::before {
    width: 62px;
    margin-bottom: 16px;
  }

  .phone-mock__label {
    font-size: 12px;
  }

  .phone-mock h3 {
    font-size: 20px;
  }

  .phone-mock__list span {
    min-height: 34px;
    font-size: 14px;
  }

  .top-questions__grid {
    grid-template-columns: 1fr;
  }

  .question-card {
    min-height: 300px;
  }

  .question-card__image {
    aspect-ratio: 4 / 3;
  }

  .top-movie__play {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }

  .top-movie__caption {
    margin-top: 12px;
    font-size: 13px;
  }

  .top-flow__item {
    min-height: 178px;
  }

  .line-phone {
    max-width: 360px;
  }

  .movie-modal {
    padding: 12px;
  }

  .movie-modal__panel {
    max-height: calc(100vh - 24px);
    padding: 20px 16px 16px;
    border-radius: 18px;
  }

  .movie-modal__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .movie-modal__heading {
    padding-right: 44px;
  }

  .movie-modal__heading h2 {
    font-size: 24px;
  }

  .movie-modal__video {
    border-radius: 10px;
  }

  .site-menu {
    top: 60px;
    right: 12px;
    width: min(240px, calc(100vw - 24px));
    max-height: calc(100vh - 76px);
    padding: 10px;
    border-radius: 18px;
  }

  .site-menu a,
  .site-menu__pending {
    min-height: 44px;
    padding: 9px 11px;
    font-size: 15px;
  }
}