:root {
  --theme: #007aff;
  --theme-dark: #0057b8;
  --theme-deep: #003b73;
  --theme-light: #f2f8ff;
  --theme-soft: #e6f2ff;
  --theme-accent: #4da3ff;
  --theme-hover: #0068d9;
  --theme-border: rgba(0, 122, 255, .22);
  --header-bg: #0d3f73;
  --header-bg-2: #082b52;
  --text-main: #10253d;
  --text-muted: #50677f;
  --on-theme: #ffffff;
  --on-header: #f5faff;
  --on-dark: #f3f9ff;
  --white: #ffffff;
  --shadow-soft: 0 18px 44px rgba(0, 59, 115, .14);
}

* { 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; line-height: 1.7; }
a { color: var(--theme-dark); }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

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

.section { padding: 72px 0; }
.section.compact { padding: 42px 0; }
.section.soft { background: linear-gradient(180deg, var(--theme-soft) 0%, var(--theme-light) 100%); }
.section.white { background: var(--white); }
.section-heading { max-width: 860px; margin-bottom: 30px; }
.section-heading .eyebrow,
.page-kicker {
  display: inline-flex;
  align-items: center;
  width: auto;
  border-radius: 999px;
  padding: 7px 13px;
  margin-bottom: 12px;
  background: var(--theme-soft);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.section-heading h2,
.page-section h2,
.split-copy h2 { color: var(--theme-dark); margin: 0 0 12px; font-size: clamp(28px, 3vw, 42px); line-height: 1.18; }
.section-heading p,
.page-lead,
.split-copy p { color: var(--text-muted); margin: 0; }

.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);
  border-bottom: 1px solid var(--theme-border);
  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; padding: 9px 0 7px; border-bottom: 2px solid transparent; }
.main-nav a.active,
.main-nav a:hover { color: var(--white); border-bottom-color: var(--theme-accent); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; }
.main-btn,
.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%);
  color: var(--on-theme);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
  padding: 12px 20px;
  transition: transform .2s ease, filter .2s ease;
}
.main-btn:hover,
.header-login:hover { color: var(--on-theme); filter: brightness(.96); transform: translateY(-1px); }
.mobile-menu-toggle { display: none; border: 0; background: rgba(255,255,255,.1); border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.mobile-menu-toggle span { width: 20px; height: 2px; background: var(--on-header); border-radius: 2px; }

.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: linear-gradient(180deg, var(--header-bg) 0%, var(--header-bg-2) 100%);
  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(5, 30, 56, .5); transition: opacity .28s ease, visibility .28s ease; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.18); }
.drawer-logo img { display: block; width: auto; height: auto; max-width: 150px; max-height: 58px; object-fit: contain; }
.drawer-close { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--on-header); border-radius: 12px; font-size: 28px; line-height: 1; }
.drawer-nav { display: grid; gap: 6px; padding-top: 18px; }
.drawer-nav a { color: var(--on-header); text-decoration: none; padding: 11px 12px; border-radius: 12px; border: 1px solid transparent; }
.drawer-nav a.active,
.drawer-nav a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }

.banner-section { padding: 36px 0 24px; background: linear-gradient(180deg, var(--theme-soft) 0%, var(--theme-light) 100%); }
.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: 0; border-radius: 50%; background: rgba(0,59,115,.78); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.banner-prev { left: 18px; }
.banner-next { right: 18px; }
.banner-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dots button { width: 10px; height: 10px; border: 0; border-radius: 50%; background: rgba(255,255,255,.68); padding: 0; cursor: pointer; }
.banner-dots button.active { width: 28px; border-radius: 999px; background: var(--theme-accent); }

.intro-card,
.card,
.zone-card,
.info-card,
.feature-card,
.category-card,
.faq-item,
.notice,
.visual-card,
.feedback-card,
.topic-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 { position: relative; overflow: visible; }
.intro-card::before,
.info-card::before,
.category-card::before,
.feature-card::before,
.topic-card::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme), var(--theme-accent));
  margin-bottom: 16px;
}
.intro-card h1,
.page-hero h1 { color: var(--theme-dark); margin: 0 0 18px; line-height: 1.1; letter-spacing: -.025em; }
.intro-card h1 { font-size: clamp(36px, 4vw, 58px); }
.intro-card p { color: var(--text-muted); font-size: 17px; margin: 0; }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.category-pill,
.tag,
.badge { border-radius: 999px; padding: 8px 14px; display: inline-flex; width: auto; max-width: max-content; background: var(--theme-soft); color: var(--theme-dark); border: 1px solid var(--theme-border); text-decoration: none; font-weight: 700; }
.category-pill:hover { background: var(--theme); color: var(--on-theme); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-card .card-number,
.info-card .card-number { color: var(--theme); font-size: 14px; font-weight: 900; letter-spacing: .08em; }
.category-card h3,
.info-card h3,
.feature-card h3,
.topic-card h3 { color: var(--theme-dark); margin: 8px 0 10px; font-size: 22px; line-height: 1.25; }
.category-card p,
.info-card p,
.feature-card p,
.topic-card p,
.feedback-card p { color: var(--text-muted); margin: 0 0 14px; }
.text-link { color: var(--theme-dark); font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--theme-hover); text-decoration: underline; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 46px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split.reverse .visual-card { order: 1; }
.split-copy p + p { margin-top: 16px; }
.media-box,
.banner-media,
.hero-visual,
.app-visual,
.card-media { display: flex; align-items: center; justify-content: center; overflow: visible; }
.media-box img,
.banner-media img,
.hero-visual img,
.app-visual img,
.card-media img,
.visual-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; margin: auto; }
.visual-card { min-height: 300px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--white) 0%, var(--theme-soft) 100%); }
.visual-card img { max-height: 340px; }

.page-hero { padding: 64px 0 50px; background: radial-gradient(circle at 15% 20%, var(--theme-soft) 0%, transparent 34%), linear-gradient(180deg, var(--theme-light) 0%, var(--white) 100%); }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 44px; align-items: center; }
.page-hero h1 { font-size: clamp(42px, 4.2vw, 64px); max-width: 820px; }
.page-lead { font-size: 17px; }
.page-hero .visual-card { min-height: 300px; max-height: 420px; }
.page-hero .visual-card img { max-height: 330px; }
.page-section p { color: var(--text-muted); margin: 0 0 16px; }
.page-section p:last-child { margin-bottom: 0; }
.list-points { display: grid; gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; }
.list-points li { position: relative; padding: 15px 16px 15px 46px; border-radius: 16px; background: var(--theme-soft); border: 1px solid var(--theme-border); }
.list-points li::before { content: "•"; position: absolute; left: 20px; top: 10px; color: var(--theme); font-size: 28px; line-height: 1; }
.feedback-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.feedback-card strong { display: block; color: var(--theme-dark); margin-bottom: 8px; }
.faq-list { display: grid; gap: 14px; }
.faq-item h3 { color: var(--theme-dark); margin: 0 0 8px; font-size: 19px; }
.faq-item p { color: var(--text-muted); margin: 0; }
.notice { background: linear-gradient(180deg, var(--theme-soft) 0%, var(--white) 100%); border-left: 5px solid var(--theme); }
.notice strong { color: var(--theme-dark); }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { text-decoration: none; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--theme-border); background: var(--white); color: var(--theme-dark); font-weight: 700; }
.related-links a:hover { background: var(--theme-soft); }

.footer { background: var(--theme-deep); color: var(--on-dark); padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-brand img { display: block; max-width: 180px; max-height: 66px; width: auto; height: auto; object-fit: contain; margin-bottom: 18px; }
.footer-brand p { color: rgba(243,249,255,.82); margin: 0; }
.footer-column { display: grid; align-content: start; gap: 8px; }
.footer-column h2 { color: var(--white); margin: 0 0 10px; font-size: 18px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: #ffffff; text-decoration: underline; }
.footer-notice { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.footer-notice strong { color: #fff; }
.footer-notice p { color: rgba(243,249,255,.82); margin: 8px 0 0; }

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

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

@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; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split,
  .page-hero-inner { grid-template-columns: 1fr; }
  .split.reverse .split-copy,
  .split.reverse .visual-card { order: initial; }
  .visual-card { min-height: 260px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .container, .section-inner, .header-inner, .footer-inner { width: min(100% - 32px, 1280px); }
  .section { padding: 54px 0; }
  .banner-section { padding: 22px 0 16px; }
  .banner-carousel { border-radius: 18px; }
  .banner-arrow { width: 38px; height: 38px; font-size: 28px; }
  .banner-prev { left: 10px; }
  .banner-next { right: 10px; }
  .banner-dots { bottom: 10px; }
  .grid-2,
  .grid-3,
  .grid-4,
  .feedback-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .intro-card,
  .card,
  .zone-card,
  .info-card,
  .feature-card,
  .category-card,
  .faq-item,
  .notice,
  .visual-card,
  .feedback-card,
  .topic-card { padding: 22px; border-radius: 20px; }
  .page-hero { padding: 48px 0 38px; }
  .page-hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .page-hero .visual-card { min-height: 220px; }
  .page-hero .visual-card img { max-height: 260px; }
  .footer { padding-top: 46px; }
}

@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; }
  .category-pills { gap: 7px; }
  .category-pill { padding: 7px 10px; font-size: 13px; }
}
