
:root {
  --theme: #1f4f91;
  --theme-dark: #173b6d;
  --theme-deep: #0e2545;
  --theme-light: #f2f6fb;
  --theme-soft: #dce6f2;
  --theme-accent: #4b7fba;
  --theme-hover: #1b467f;
  --theme-border: rgba(31, 79, 145, .22);
  --header-bg: #14345f;
  --header-bg-2: #1a4479;
  --text-main: #1d2c3f;
  --text-muted: #5b6c83;
  --on-theme: #ffffff;
  --on-header: #f2f6fb;
  --on-dark: #eaf1fa;
  --white: #ffffff;
  --shadow-soft: 0 18px 46px rgba(31, 79, 145, .16);
}
* { 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; font-size: 16px; line-height: 1.7; }
a { color: var(--theme-dark); }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
.container, .section-inner, .header-inner, .footer-inner { width: min(1280px, calc(100% - 80px)); margin-left: auto; margin-right: auto; }
.section { padding: 64px 0; }
.section.alt { background: var(--theme-soft); }
.section.white { background: var(--white); }
.section-head { max-width: 820px; margin-bottom: 30px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .content-copy h2, .page-copy h2 { margin: 8px 0 12px; color: var(--theme-dark); font-size: clamp(28px, 3vw, 42px); line-height: 1.2; }
.section-head p { color: var(--text-muted); margin: 0; }
.eyebrow, .tag, .badge, .hero-badge { 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-size: 13px; font-weight: 800; letter-spacing: .03em; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--theme-hover); }
.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 rgba(255,255,255,.12); overflow: visible; }
.header-inner { min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; 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: 180px; max-height: 66px; object-fit: contain; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 15px; }
.main-nav a { color: var(--on-header); text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 700; padding: 29px 0 25px; border-bottom: 3px solid transparent; }
.main-nav a.active, .main-nav a:hover { color: var(--theme-soft); border-bottom-color: var(--theme-accent); }
.header-actions { display: flex; justify-content: flex-end; }
.main-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; 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 12px 26px rgba(14,37,69,.22); text-decoration: none; white-space: nowrap; font-weight: 900; letter-spacing: .02em; }
.main-btn:hover { background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme-hover) 100%); }
.mobile-menu-toggle { display: none; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 10px; }
.mobile-menu-toggle span { width: 22px; height: 2px; background: var(--on-header); display: block; }
.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(--theme-deep) 100%); color: var(--on-header); box-shadow: 24px 0 60px rgba(0,0,0,.28); overflow-y: auto; padding: 18px; }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-overlay { position: fixed; inset: 0; opacity: 0; visibility: hidden; z-index: 10000; background: rgba(14,37,69,.58); transition: .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; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.15); }
.drawer-logo img { display: block; max-width: 150px; max-height: 58px; width: auto; height: auto; object-fit: contain; }
.drawer-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--on-header); font-size: 28px; line-height: 1; }
.drawer-nav { display: grid; gap: 5px; padding: 16px 0; }
.drawer-nav a { color: var(--on-header); text-decoration: none; padding: 11px 12px; border-radius: 10px; font-weight: 700; }
.drawer-nav a:hover { background: rgba(255,255,255,.1); }

.banner-section {
  padding: 34px 0 22px;
  background: linear-gradient(180deg, var(--theme-light) 0%, var(--theme-soft) 100%);
}
.banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: var(--theme-soft);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
}
.banner-slide { display: none; width: 100%; }
.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: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(14,37,69,.78);
  color: var(--on-dark);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(14,37,69,.22);
}
.banner-prev { left: 18px; }
.banner-next { right: 18px; }
.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(14,37,69,.60);
}
.banner-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.banner-dots button.active { background: var(--on-dark); }
.intro-section { padding: 28px 0 10px; background: var(--theme-light); }
.intro-card {
  background: linear-gradient(135deg, var(--white), var(--theme-soft));
  border: 1px solid var(--theme-border);
  border-left: 5px solid var(--theme);
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
  padding: 28px 32px;
}
.intro-card p { margin: 14px 0 0; color: var(--text-main); }
.home-category-pills { padding-top: 18px; padding-bottom: 28px; background: var(--theme-light); }
.headline-section { padding: 46px 0 38px; background: var(--white); }
.headline-inner { text-align: center; }
.headline-inner .eyebrow { margin-left: auto; margin-right: auto; }
.headline-inner h1 {
  max-width: 1080px;
  margin: 16px auto 20px;
  color: var(--theme-dark);
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.headline-inner p { max-width: 920px; margin: 0 auto; font-size: 18px; line-height: 1.8; color: var(--text-main); }

.info-section { padding: 34px 0 44px; }
.info-grid, .feature-grid, .topic-grid, .related-grid, .feedback-grid, .faq-grid, .news-grid { display: grid; gap: 22px; }
.info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid, .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feedback-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card, .card, .zone-card, .feature-card, .category-card, .faq-item, .notice, .visual-card, .feedback-card, .news-card, .content-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: 26px; }
.info-card { border-top: 4px solid var(--theme-accent); }
.info-card .num, .card-number { display: inline-flex; color: var(--theme); font-weight: 900; font-size: 13px; }
.info-card h2, .feature-card h3, .topic-card h3, .category-card h3, .news-card h3, .faq-item h3, .feedback-card h3 { color: var(--theme-dark); margin: 10px 0; line-height: 1.3; }
.info-card p, .feature-card p, .topic-card p, .category-card p, .news-card p, .faq-item p, .feedback-card p { color: var(--text-muted); margin: 0; }
.category-section { padding: 10px 0 44px; }
.category-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.category-pills a { border-radius: 999px; padding: 10px 17px; display: inline-flex; width: auto; max-width: max-content; color: var(--theme-dark); background: var(--white); border: 1px solid var(--theme-border); text-decoration: none; font-weight: 800; }
.category-pills a:hover { background: var(--theme); color: var(--on-theme); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.category-card { position: relative; overflow: visible; border-top: 3px solid var(--theme); }
.category-card .entity-line { display: block; color: var(--theme); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.category-card .text-link { margin-top: 14px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.service-card { background: linear-gradient(160deg, var(--white), var(--theme-soft)); border: 1px solid var(--theme-border); border-radius: 26px; padding: 28px; box-shadow: var(--shadow-soft); }
.service-card h3 { color: var(--theme-dark); margin-top: 0; }
.split-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.85fr); gap: 52px; align-items: center; }
.split-section.reverse .media-box { order: -1; }
.content-copy p, .page-copy p { margin: 0 0 16px; }
.media-box, .app-visual, .card-media, .page-visual { display: flex; align-items: center; justify-content: center; overflow: visible; background: linear-gradient(145deg, var(--white), var(--theme-soft)); border: 1px solid var(--theme-border); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-soft); }
.media-box img, .app-visual img, .card-media img, .page-visual img { max-width: 100%; max-height: 360px; width: auto; height: auto; object-fit: contain; }
.app-section { display: grid; grid-template-columns: minmax(340px,.8fr) minmax(0,1.2fr); gap: 48px; align-items: center; }
.mini-list, .check-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mini-list span, .check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--theme-soft); border: 1px solid var(--theme-border); }
.check-list li:before { content: '•'; color: var(--theme); font-weight: 900; }
.notice { background: linear-gradient(135deg, var(--theme-soft), var(--white)); border-left: 5px solid var(--theme); box-shadow: none; }
.notice strong { color: var(--theme-dark); }
.page-hero { padding: 58px 0 38px; background: linear-gradient(180deg, var(--theme-soft), var(--theme-light)); }
.page-hero-inner { width: min(1280px, calc(100% - 80px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(330px,.88fr); gap: 46px; align-items: center; }
.page-hero h1 { font-size: clamp(40px, 4vw, 60px); color: var(--theme-dark); margin: 12px 0 18px; line-height: 1.1; letter-spacing: -.02em; }
.page-hero p { font-size: 17px; line-height: 1.8; margin: 0; }
.page-content { padding-top: 52px; }
.prose { max-width: 900px; }
.prose p { margin: 0 0 18px; }
.term-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.term-chip { border-radius: 18px; padding: 15px 16px; background: var(--theme-soft); border: 1px solid var(--theme-border); color: var(--theme-dark); font-weight: 800; }
.links-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.links-card h2 { width: 100%; margin: 0 0 4px; }
.links-card a { border: 1px solid var(--theme-border); border-radius: 999px; padding: 8px 13px; text-decoration: none; background: var(--theme-soft); font-weight: 800; }
.footer { background: var(--theme-deep); color: var(--on-dark); padding: 54px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 34px; }
.footer h2 { font-size: 17px; color: var(--theme-soft); margin: 0 0 14px; }
.footer a { color: var(--on-dark); text-decoration: none; display: block; margin: 8px 0; }
.footer a:hover { color: var(--theme-soft); }
.footer-brand p { color: var(--on-dark); max-width: 410px; }
.footer-logo { display: inline-flex !important; }
.footer-logo img { display: block; max-width: 180px; max-height: 66px; width: auto; height: auto; object-fit: contain; }
.footer-legal { margin-top: 38px; padding: 22px max(40px, calc((100vw - 1280px)/2)); background: rgba(0,0,0,.16); border-top: 1px solid rgba(255,255,255,.1); color: var(--on-dark); }
.footer-legal p { margin: 6px 0 0; }
@media (min-width: 1440px) {
  .container, .section-inner, .header-inner, .footer-inner { width: min(1360px, calc(100% - 120px)); }
  .page-hero-inner { width: min(1360px, calc(100% - 120px)); }
}
@media (max-width: 1180px) {
  .main-nav { gap: 10px; }
  .main-nav a { font-size: 13px; }
  .site-logo img { max-width: 150px; }
  .info-grid, .feature-grid, .topic-grid, .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1023px) {
  .header-inner { width: min(100% - 28px, 1280px); min-height: 68px; 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 { padding: 10px 16px; font-size: 13px; }
   .page-hero-inner, .split-section, .app-section { grid-template-columns: 1fr; gap: 32px; }
  .page-visual { max-width: 650px; width: 100%; margin: 0 auto; }
  .services-grid, .news-grid, .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .term-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .container, .section-inner, .header-inner, .footer-inner, .page-hero-inner { width: min(100% - 32px, 1280px); }
  .section { padding: 46px 0; }
  .info-grid, .feature-grid, .topic-grid, .category-grid, .services-grid, .news-grid, .related-grid, .feedback-grid, .faq-grid, .term-grid { grid-template-columns: 1fr; }
  .category-pills { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { padding: 22px 16px; }
  .page-hero { padding: 42px 0 28px; }
  .page-hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .media-box, .page-visual { padding: 20px; }
}
@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 10px; font-size: 11px; }
}
.section-subtitle { margin: 8px 0 18px; color: var(--theme-dark); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.25; }
.links-card h3 { width: 100%; margin: 0 0 4px; color: var(--theme-dark); font-size: 22px; }

@media (max-width: 767px) {
  .banner-section { padding: 22px 0 14px; }
  .banner-carousel { border-radius: 18px; }
  .banner-arrow { width: 38px; height: 38px; font-size: 25px; }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
  .banner-dots { bottom: 8px; padding: 6px 9px; }
  .intro-card { padding: 22px; }
  .headline-section { padding: 36px 0 30px; }
  .headline-inner h1 { font-size: clamp(34px, 10vw, 48px); }
  .headline-inner p { font-size: 16px; }
}

/* MOBILE_FIX_TYPE_A_20260930: restore mobile menu icon + narrow-screen hardening */
@media (max-width: 1023px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  .header-inner, .header-inner > *, .hero-inner > *, .page-hero-inner > *, .split > * { min-width: 0; }
  .mobile-menu-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 8px !important;
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--on-header, #fff) !important;
    -webkit-appearance: none;
    appearance: none;
  }
  .mobile-menu-toggle span {
    display: block !important;
    flex: 0 0 2px !important;
    width: 24px !important;
    height: 2px !important;
    min-height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: var(--on-header, #fff) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
@media (max-width: 390px) {
  .header-inner { width: calc(100% - 16px) !important; gap: 6px !important; }
  .site-logo { min-width: 0; overflow: hidden; }
  .site-logo img { max-width: min(116px, 35vw) !important; }
  .header-actions .main-btn { max-width: 94px; min-width: 0; padding-inline: 8px !important; }
}

/* CHATGPT_MOBILE_HEADER_V4_START */
@media (max-width: 767px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .site-header {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .header-inner {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Stable hamburger: do not rely on three flex children. */
  .mobile-menu-toggle {
    display: flex !important;
    position: relative !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--on-header, #fff) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mobile-menu-toggle span {
    display: none !important;
  }

  .mobile-menu-toggle::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 20px !important;
    height: 2px !important;
    margin-left: -10px !important;
    margin-top: -1px !important;
    border-radius: 2px !important;
    background: currentColor !important;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .site-logo {
    display: flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .site-logo img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(112px, 100%) !important;
    max-height: 44px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .header-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-end !important;
  }

  .header-login,
  .header-actions .main-btn {
    display: inline-flex !important;
    flex: 0 0 92px !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    min-height: 38px !important;
    padding: 8px 4px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  .drawer-logo,
  .footer-logo {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .drawer-logo img,
  .footer-logo img {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 359px) {
  .header-inner {
    padding-left: 6px !important;
    padding-right: 6px !important;
    gap: 5px !important;
  }

  .mobile-menu-toggle {
    flex-basis: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
  }

  .site-logo img {
    max-width: min(102px, 100%) !important;
  }

  .header-login,
  .header-actions .main-btn {
    flex-basis: 84px !important;
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    font-size: 9.5px !important;
  }
}
/* CHATGPT_MOBILE_HEADER_V4_END */
