:root {
  --theme: #271275;
  --theme-dark: #1a0b57;
  --theme-deep: #0c052d;
  --theme-light: #f4f1ff;
  --theme-soft: #e8e1ff;
  --theme-accent: #7257ff;
  --theme-hover: #32189a;
  --theme-border: rgba(39, 18, 117, 0.24);
  --header-bg: #160941;
  --header-bg-2: #2f1a86;
  --text-main: #201b32;
  --text-muted: #625b78;
  --on-theme: #ffffff;
  --on-header: #ffffff;
  --on-dark: #f7f4ff;
  --white: #ffffff;
  --shadow-soft: 0 18px 48px rgba(39, 18, 117, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background: var(--theme-light);
  color: var(--text-main);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.container,
.section-inner,
.header-inner,
.footer-inner {
  width: min(1280px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1440px) {
  .container,
  .section-inner,
  .header-inner,
  .footer-inner {
    width: min(1360px, calc(100% - 120px));
  }
}

@media (max-width: 767px) {
  .container,
  .section-inner,
  .header-inner,
  .footer-inner {
    width: min(100% - 32px, 1280px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(180deg, var(--header-bg) 0%, var(--header-bg-2) 100%);
  color: var(--on-header);
  box-shadow: var(--shadow-soft);
  overflow: visible;
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  overflow: visible;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: visible;
}

.site-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 190px;
  max-height: 72px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--on-header);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  padding: 30px 0 27px;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  color: #f4f7ff;
  border-bottom-color: var(--theme-accent);
}

.main-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%);
  color: var(--on-theme);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
  padding: 12px 20px;
  border: 0;
}

.main-btn:hover,
.text-link:hover {
  background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme-hover) 50%, var(--theme-dark) 100%);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
  color: var(--on-header);
  border-radius: 14px;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section {
  padding: 56px 0;
}

.banner-section {
  padding: 36px 0 24px;
}

.banner-carousel {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--theme-soft);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--theme-border);
}

.banner-slide {
  display: none;
}

.banner-slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(14,24,64,.58);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.banner-prev {
  left: 16px;
}

.banner-next {
  right: 16px;
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.banner-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}

.banner-dots button.active {
  width: 32px;
  background: var(--theme-accent);
}

.intro-card,
.headline-card,
.card,
.zone-card,
.info-card,
.feature-card,
.category-card,
.faq-item,
.notice,
.visual-card {
  background: var(--white);
  color: var(--text-main);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
  min-height: auto;
  height: auto;
  padding: 28px;
}

.intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 28px;
  align-items: center;
}

.intro-card h1,
.headline-card h1,
.page-hero h1 {
  margin: 0 0 18px;
  color: var(--theme-dark);
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.08;
}

.intro-card p,
.headline-card p,
.page-hero p,
.card p,
.zone-card p,
.feature-card p,
.category-card p,
.faq-item p,
.notice p,
.content-block p,
.content-block li {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 16px;
}

.category-pills,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.category-pills a,
.category-pill,
.tag,
.badge {
  border-radius: 999px;
  padding: 9px 15px;
  display: inline-flex;
  width: auto;
  max-width: max-content;
  text-decoration: none;
  background: var(--theme-soft);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
  font-weight: 800;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-title h2,
.content-block h2 {
  margin: 0;
  color: var(--theme-dark);
  font-size: clamp(26px, 3vw, 42px);
}

.section-title p {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  gap: 34px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(360px, .8fr) minmax(0, 1fr);
}

.media-box,
.banner-media,
.hero-visual,
.app-visual,
.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.media-box {
  min-height: 260px;
  background: var(--theme-soft);
  border-radius: 24px;
  border: 1px solid var(--theme-border);
  padding: 24px;
}

.media-box img,
.banner-media img,
.hero-visual img,
.app-visual img,
.card-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card-media {
  min-height: 150px;
  margin: -8px -8px 18px;
  background: var(--theme-soft);
  border-radius: 20px;
  padding: 14px;
}

.card-media img {
  max-height: 138px;
}

.card h3,
.zone-card h3,
.feature-card h3,
.category-card h3,
.faq-item h2,
.faq-item h3 {
  margin: 0 0 12px;
  color: var(--theme-dark);
  line-height: 1.25;
}

.card small,
.zone-card small {
  display: inline-flex;
  color: var(--theme);
  font-weight: 900;
  margin-bottom: 10px;
}

.notice {
  background: linear-gradient(135deg, var(--theme-soft), #ffffff);
}

.page-hero {
  padding: 64px 0 28px;
  background: linear-gradient(180deg, var(--theme-light) 0%, var(--theme-soft) 100%);
}

.page-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 36px;
  align-items: center;
}

.content-block {
  background: var(--white);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  border-radius: 28px;
  padding: 34px;
  margin-top: 24px;
}

.content-block ul {
  padding-left: 20px;
}

.footer {
  background: var(--theme-deep);
  color: var(--on-dark);
  padding: 54px 0 34px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) .7fr .7fr 1fr;
  gap: 34px;
}

.footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.footer img {
  display: block;
  max-width: 180px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer p,
.footer li {
  color: rgba(243,246,255,.82);
  line-height: 1.75;
}

.footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin: 10px 0;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 700;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform .28s ease;
  z-index: 10001;
  background: var(--header-bg);
  color: var(--on-header);
  padding: 20px;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  background: rgba(8,15,36,.58);
  transition: opacity .28s ease, visibility .28s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.drawer-head img {
  max-width: 150px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: var(--on-header);
  font-size: 26px;
}

.drawer-nav {
  display: grid;
  gap: 10px;
}

.drawer-nav a {
  color: var(--on-header);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.drawer-note {
  color: rgba(255,255,255,.82);
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 12px;
  }
  .main-nav a {
    font-size: 13px;
  }
}

@media (max-width: 1023px) {
  .header-inner {
    width: min(100% - 28px, 1280px);
    min-height: 68px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  .main-nav {
    display: none;
  }

  .site-logo {
    justify-self: center;
  }

  .site-logo img {
    max-width: min(150px, 42vw);
    max-height: 56px;
  }

  .header-actions {
    justify-self: end;
  }

  .header-actions .main-btn {
    white-space: nowrap;
    padding: 10px 16px;
  }

  .intro-card,
  .page-hero .section-inner,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 38px 0;
  }

  .banner-section {
    padding: 22px 0 14px;
  }

  .banner-carousel {
    border-radius: 18px;
  }

  .banner-arrow {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .grid-4,
  .grid-3,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-title {
    display: block;
  }

  .intro-card,
  .headline-card,
  .card,
  .zone-card,
  .feature-card,
  .category-card,
  .faq-item,
  .notice,
  .content-block {
    padding: 22px;
  }
}

@media (max-width: 390px) {
  .header-inner {
    width: min(100% - 20px, 1280px);
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .site-logo img {
    max-width: min(120px, 36vw);
    max-height: 48px;
  }

  .header-actions .main-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}
