
:root {
  --theme: #2161b4;
  --theme-dark: #17447e;
  --theme-deep: #0f2c51;
  --theme-light: #f3f7fc;
  --theme-soft: #e1ecf8;
  --theme-accent: #6b9ede;
  --theme-hover: #1c5197;
  --theme-border: rgba(33,97,180,.28);
  --header-bg: #14263d;
  --header-bg-2: #1b304b;
  --text-main: #2e3742;
  --text-muted: #5b697b;
  --on-theme: #ffffff;
  --on-header: #f7fbff;
  --on-dark: #f3f8ff;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15,44,81,.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
html { background: var(--theme-light); }
body {
  background: var(--theme-light);
  color: var(--text-main);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--theme-dark); }
a:hover { color: var(--theme-hover); }
button, input, textarea, select { font: inherit; }

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

.site-main { min-height: 60vh; }
.section { padding: 70px 0; }
.section.compact { padding: 42px 0; }
.section.alt { background: linear-gradient(180deg, rgba(225,236,248,.72), rgba(255,255,255,.82)); }
.section-head { max-width: 850px; margin-bottom: 30px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow,
.hero-badge,
.tag,
.badge,
.category-pill {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: max-content;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--theme-soft);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
  font-weight: 800;
  letter-spacing: .01em;
}
.section h2 { color: var(--theme-dark); line-height: 1.22; margin: 0 0 16px; font-size: clamp(28px, 3vw, 42px); }
.section h3 { color: var(--theme-dark); line-height: 1.3; }
.section p { margin: 0 0 16px; }
.muted { color: var(--text-muted); }

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 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;
  font-weight: 700;
  padding: 28px 0 24px;
  border-bottom: 3px solid transparent;
}
.main-nav a.active,
.main-nav a:hover { color: #ffffff; border-bottom-color: var(--theme-accent); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; }
.main-btn,
.header-login,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%);
  color: var(--on-theme);
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 900;
}
.main-btn:hover,
.header-login:hover,
.cta-link:hover { background: linear-gradient(180deg, #ef777a 0%, var(--theme-hover) 100%); color: #4e0e11; transform: translateY(-1px); }

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
}
.mobile-menu-toggle span { display: block; width: 21px; height: 2px; background: var(--on-header); border-radius: 2px; }

.hero-section {
  padding: 66px 0 42px;
  background:
    radial-gradient(circle at 15% 20%, rgba(232,92,96,.24) 0%, transparent 34%),
    linear-gradient(180deg, var(--theme-light) 0%, var(--white) 100%);
}
.hero-inner {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 56px;
}
.hero-content h1 {
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 18px 0 22px;
  color: var(--theme-dark);
}
.hero-content p { max-width: 760px; font-size: 18px; line-height: 1.8; margin: 0 0 28px; color: var(--text-main); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags span { display: inline-flex; align-items: center; border-radius: 999px; padding: 10px 16px; background: var(--theme-soft); color: var(--theme-dark); border: 1px solid var(--theme-border); font-weight: 700; }
.hero-visual { display: flex; align-items: center; justify-content: center; overflow: visible; }
.hero-media-box {
  width: min(100%, 540px);
  min-height: 320px;
  max-height: 420px;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--white) 0%, var(--theme-soft) 100%);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hero-media-box img { display: block; max-width: 70%; max-height: 340px; width: auto; height: auto; object-fit: contain; opacity: 1; }

.info-section { padding: 28px 0 46px; }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.info-card,
.card,
.zone-card,
.feature-card,
.category-card,
.faq-item,
.notice,
.visual-card,
.review-card,
.term-card {
  position: relative;
  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: 26px;
}
.info-card::before,
.category-card::before,
.feature-card::before,
.term-card::before {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme), var(--theme-accent));
  margin-bottom: 16px;
}
.info-card .number,
.category-card .number,
.feature-card .number { color: var(--theme); font-weight: 900; }
.info-card h2,
.category-card h3,
.feature-card h3,
.term-card h3 { color: var(--theme-dark); margin: 10px 0; }
.info-card p,
.category-card p,
.feature-card p,
.review-card p,
.term-card p { color: var(--text-muted); line-height: 1.75; }

.category-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.category-pills a {
  display: inline-flex;
  align-items: center;
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--white);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
  text-decoration: none;
  font-weight: 800;
}
.category-pills a:hover { background: linear-gradient(180deg, var(--theme-accent), var(--theme)); color: var(--on-theme); }

.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.grid-8 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.cards-auto { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 22px; }

.card-link { display: inline-flex; margin-top: 6px; font-weight: 900; text-decoration: none; }
.card-link::after { content: "›"; margin-left: 7px; }

.media-box,
.app-visual,
.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  min-height: 280px;
}
.media-box img,
.app-visual img,
.card-media img {
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(340px,.9fr);
  gap: 42px;
  align-items: center;
}
.split.reverse .split-copy { order: 2; }
.split.reverse .split-visual { order: 1; }
.split-copy ul,
.service-list,
.check-list { margin: 18px 0 0; padding-left: 20px; }
.split-copy li,
.service-list li,
.check-list li { margin-bottom: 10px; }

.page-hero { padding: 58px 0 34px; background: linear-gradient(180deg, var(--theme-soft), var(--theme-light)); }
.page-hero-inner { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(300px,.88fr); gap: 44px; align-items: center; }
.page-hero h1 { color: var(--theme-dark); font-size: clamp(38px, 4vw, 58px); line-height: 1.1; margin: 16px 0 18px; }
.page-hero p { font-size: 18px; line-height: 1.8; margin: 0; }
.page-visual {
  min-height: 300px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg,var(--white),var(--theme-soft));
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.page-visual img { width: auto; height: auto; max-width: 100%; max-height: 320px; object-fit: contain; }

.notice { background: linear-gradient(180deg, var(--theme-soft), var(--white)); border-left: 5px solid var(--theme); }
.notice h2, .notice h3 { color: var(--theme-dark); }
.faq-list { display: grid; gap: 16px; }
.faq-item h3 { margin: 0 0 10px; font-size: 20px; }
.faq-item p { margin: 0; color: var(--text-muted); }
.review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.review-card strong { color: var(--theme-dark); display: block; margin-bottom: 8px; }
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a { text-decoration: none; border: 1px solid var(--theme-border); background: var(--theme-soft); padding: 10px 14px; border-radius: 14px; font-weight: 800; }
.callout { padding: 24px; border-radius: 22px; background: linear-gradient(135deg,var(--theme-dark),var(--theme-deep)); color: var(--on-dark); }
.callout h2, .callout h3, .callout a { color: var(--on-dark); }

.footer { background: linear-gradient(180deg, var(--theme-dark) 0%, var(--theme-deep) 100%); color: var(--on-dark); padding-top: 52px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 34px; }
.footer-brand img { max-width: 180px; max-height: 70px; width: auto; height: auto; object-fit: contain; margin-bottom: 14px; }
.footer h2 { font-size: 18px; margin: 0 0 14px; color: #ffffff; }
.footer p { margin: 0 0 12px; color: rgba(255,247,247,.9); }
.footer a { display: block; color: var(--on-dark); text-decoration: none; margin-bottom: 9px; }
.footer a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom { margin-top: 34px; border-top: 1px solid rgba(255,255,255,.16); padding: 20px 0 26px; }
.footer-bottom-inner { display: block; }
.footer-bottom-inner p { margin: 5px 0; font-size: 14px; }

.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);
  box-shadow: 18px 0 45px rgba(0,0,0,.25);
}
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59,11,13,.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 10000;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.16); }
.drawer-logo img { max-width: 155px; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.drawer-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); color: var(--on-header); background: rgba(255,255,255,.08); font-size: 30px; line-height: 1; }
.drawer-nav { padding: 18px; overflow-y: auto; height: calc(100vh - 76px); }
.drawer-nav a { display: block; color: var(--on-header); text-decoration: none; padding: 11px 10px; border-radius: 10px; margin-bottom: 4px; }
.drawer-nav a.active, .drawer-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }

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

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

@media (max-width: 1023px) {
  .header-inner {
    width: min(calc(100% - 28px), 1280px);
    min-height: 68px;
    grid-template-columns: 48px minmax(0,1fr) auto;
    gap: 10px;
  }
  .mobile-menu-toggle { display: inline-flex; }
  .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 { padding: 10px 16px; font-size: 14px; }
  .hero-section { padding: 46px 0 34px; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 30px; }
  .hero-content h1 { font-size: clamp(36px,8vw,52px); }
  .hero-media-box { max-width: 100%; min-height: 260px; padding: 24px; }
  .hero-media-box img { max-height: 280px; }
  .info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-4,.grid-8 { 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 .split-visual { order: initial; }
  .page-visual { min-height: 250px; }
  .footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .container,.section-inner,.footer-inner,.hero-inner { width: min(calc(100% - 32px), 1280px); }
  .site-header { width: 100%; max-width: none; left: 0; right: 0; }
  .header-inner { width: calc(100% - 20px); }
  .section { padding: 50px 0; }
  .info-grid,.grid-2,.grid-3,.grid-4,.grid-8,.review-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: clamp(34px,10vw,46px); }
  .hero-content p,.page-hero p { font-size: 16px; }
  .hero-media-box { min-height: 220px; padding: 20px; }
  .page-hero { padding-top: 44px; }
  .page-hero h1 { font-size: clamp(34px,10vw,48px); }
  .page-visual { min-height: 220px; padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .category-pills { justify-content: flex-start; }
}

@media (max-width: 390px) {
  .header-inner {
    width: calc(100% - 16px);
    grid-template-columns: 44px minmax(0,1fr) auto;
    gap: 7px;
  }
  .site-logo img { max-width: min(112px,35vw); max-height: 46px; }
  .header-actions .main-btn { padding: 8px 10px; font-size: 12px; min-height: 40px; }
  .mobile-menu-toggle { width: 40px; height: 40px; }
}

/* CHATGPT_HAMBURGER_SPAN_FIX_V6_START */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after {
    content: none !important;
    display: none !important;
    box-shadow: none !important;
  }

  .mobile-menu-toggle span {
    display: block !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 2px !important;
    min-height: 2px !important;
    max-height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--on-header, #fff) !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    flex: 0 0 2px !important;
  }
}
/* CHATGPT_HAMBURGER_SPAN_FIX_V6_END */
