:root {
  --theme: #ffd630;
  --theme-dark: #b08d00;
  --theme-deep: #675300;
  --theme-light: #f9f8f3;
  --theme-soft: #f2eede;
  --theme-accent: #f7dc6e;
  --theme-hover: #daaf00;
  --theme-border: rgba(255, 214, 48, .26);
  --header-bg: #8b7000;
  --header-bg-2: #ba9602;
  --text-main: #3e3619;
  --text-muted: #867b50;
  --on-theme: #102033;
  --on-header: #f8f7f2;
  --on-dark: #f6f4ef;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(103, 83, 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; }
img { max-width: 100%; }
.container, .section-inner, .header-inner, .footer-inner, .hero-inner { width: min(1280px, calc(100% - 80px)); margin-left: auto; margin-right: auto; }
@media (min-width: 1440px) { .container, .section-inner, .header-inner, .footer-inner, .hero-inner { width: min(1360px, calc(100% - 120px)); } }
@media (max-width: 767px) { .container, .section-inner, .header-inner, .footer-inner, .hero-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, .drawer-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: 20px; }
.main-nav a { color: var(--on-header); text-decoration: none; white-space: nowrap; font-weight: 700; padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a.active, .main-nav a:hover { color: var(--theme-accent); border-bottom: 2px solid var(--theme-accent); }
.header-actions { justify-self: end; }
.main-btn, .outline-btn, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; text-decoration: none; white-space: nowrap; font-weight: 800; }
.main-btn { background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%); color: var(--on-theme); box-shadow: var(--shadow-soft); padding: 13px 22px; }
.main-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.outline-btn { border: 1px solid var(--theme-border); color: var(--theme-dark); padding: 12px 18px; background: var(--white); }
.text-link { color: var(--theme-dark); margin-top: 14px; align-self: flex-start; }
.mobile-menu-toggle { display: none; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.12); border-radius: 14px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.mobile-menu-toggle span { display: block; width: 22px; 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: 22px; box-shadow: 20px 0 50px rgba(0,0,0,.18); }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-overlay { position: fixed; inset: 0; opacity: 0; visibility: hidden; z-index: 10000; background: rgba(3, 31, 39, .48); transition: opacity .25s ease, visibility .25s 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: 12px; margin-bottom: 22px; }
.drawer-logo img { max-width: 155px; max-height: 62px; width: auto; height: auto; object-fit: contain; }
.drawer-close { border: 1px solid rgba(255,255,255,.32); color: var(--on-header); background: rgba(255,255,255,.12); border-radius: 14px; width: 44px; height: 44px; font-size: 30px; line-height: 1; }
.drawer-nav { display: grid; gap: 10px; }
.drawer-nav a { color: var(--on-header); text-decoration: none; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.09); }
.drawer-nav a.active { background: rgba(255,255,255,.22); color: var(--theme-accent); }
.section { padding: 68px 0; }
.hero-section { padding: 72px 0 48px; background: linear-gradient(180deg, var(--theme-light) 0%, var(--theme-soft) 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr); align-items: center; gap: 64px; }
.hero-content h1, .page-hero h1 { font-size: clamp(56px, 5vw, 76px); line-height: 1.05; margin: 0 0 24px; color: var(--theme-dark); letter-spacing: -1.6px; }
.hero-content p, .page-hero p, .section-lead { font-size: 18px; line-height: 1.8; color: var(--text-main); margin: 0 0 28px; }
.hero-badge, .hero-tags span, .tag, .badge, .category-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 10px 16px; background: var(--white); color: var(--theme-dark); border: 1px solid var(--theme-border); font-weight: 700; width: auto; max-width: max-content; }
.hero-badge { margin-bottom: 18px; background: rgba(255,255,255,.82); }
.hero-tags, .category-pills, .footer-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual, .media-box, .app-visual, .card-media { display: flex; align-items: center; justify-content: center; overflow: visible; }
.hero-media-box, .page-media-box, .visual-card { width: 100%; border-radius: 32px; background: var(--white); border: 1px solid var(--theme-border); box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: center; overflow: visible; padding: 36px; }
.hero-media-box { max-width: 560px; min-height: 380px; }
.hero-media-box img { display: block; max-width: 100%; max-height: 340px; width: auto; height: auto; object-fit: contain; }
.page-media-box { min-height: 330px; }
.page-media-box img, .media-box 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; }
.info-section { padding: 32px 0 48px; }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card, .zone-card, .info-card, .feature-card, .category-card, .faq-item, .notice, .visual-card, .tip-card, .feedback-card, .mini-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; }
.info-card span, .number { color: var(--theme); font-weight: 900; }
.info-card h2, .card h2, .card h3, .feature-card h3, .category-card h3, .tip-card h3, .mini-card h3, .faq-item h3 { color: var(--theme-dark); margin: 12px 0; line-height: 1.28; }
p { line-height: 1.75; color: var(--text-muted); }
.section-title { max-width: 860px; margin-bottom: 30px; }
.section-title h2 { color: var(--theme-dark); font-size: clamp(30px, 3vw, 46px); margin: 0 0 14px; line-height: 1.15; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.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; }
.category-pills a { text-decoration: none; background: var(--white); color: var(--theme-dark); border: 1px solid var(--theme-border); border-radius: 999px; padding: 12px 18px; font-weight: 800; box-shadow: var(--shadow-soft); }
.category-pills a:hover { background: var(--theme); color: var(--on-theme); }
.category-card { display: flex; flex-direction: column; }
.category-card a { margin-top: auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr); gap: 46px; align-items: center; }
.split.reverse { grid-template-columns: minmax(360px, .88fr) minmax(0, 1fr); }
.app-panel { background: linear-gradient(135deg, var(--white) 0%, var(--theme-soft) 100%); border: 1px solid var(--theme-border); border-radius: 32px; box-shadow: var(--shadow-soft); padding: 36px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.notice { background: linear-gradient(135deg, var(--theme-soft) 0%, var(--white) 100%); }
.notice h2, .notice h3 { color: var(--theme-dark); }
.related-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.related-nav a { text-decoration: none; border-radius: 999px; padding: 10px 16px; border: 1px solid var(--theme-border); background: var(--white); color: var(--theme-dark); font-weight: 700; }
.page-hero { padding: 72px 0 40px; background: linear-gradient(180deg, var(--theme-light) 0%, var(--theme-soft) 100%); }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: center; gap: 48px; }
.content-block { max-width: 980px; }
.check-list { display: grid; gap: 12px; padding-left: 0; list-style: none; }
.check-list li { background: var(--white); border: 1px solid var(--theme-border); border-radius: 18px; padding: 16px 18px; color: var(--text-muted); line-height: 1.65; }
.check-list li strong { color: var(--theme-dark); display: block; margin-bottom: 4px; }
.footer { background: var(--theme-deep); color: var(--on-dark); padding: 60px 0 30px; }
.footer a { color: var(--on-dark); text-decoration: none; display: block; margin: 10px 0; opacity: .92; }
.footer a:hover { opacity: 1; color: var(--theme-accent); }
.footer-inner { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, .8fr)); gap: 36px; }
.footer-brand img { max-width: 180px; max-height: 72px; object-fit: contain; width: auto; height: auto; }
.footer p { color: rgba(243,251,255,.86); }
.footer h2 { color: var(--on-dark); font-size: 18px; margin: 0 0 12px; }
.footer-badges span { border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 8px 12px; }
.footer-note { border-top: 1px solid rgba(255,255,255,.18); margin-top: 36px; padding-top: 24px; }
@media (min-width: 1440px) { .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(480px, .95fr); gap: 80px; } .hero-media-box { max-width: 620px; min-height: 420px; } .hero-media-box img { max-height: 380px; } }
@media (max-width: 1180px) { .main-nav { gap: 12px; } .main-nav a { font-size: 14px; } }
@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; } .hero-section { padding: 48px 0 36px; } .hero-inner, .page-hero-inner, .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; } .hero-content h1, .page-hero h1 { font-size: clamp(36px, 9vw, 52px); } .hero-media-box, .page-media-box { max-width: 100%; min-height: auto; padding: 24px; } .hero-media-box img { max-height: 300px; } .info-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .section { padding: 48px 0; } .info-grid, .grid-4, .grid-3, .grid-2, .faq-grid { grid-template-columns: 1fr; } .card, .zone-card, .info-card, .feature-card, .category-card, .faq-item, .notice, .tip-card, .feedback-card, .mini-card, .app-panel { padding: 22px; border-radius: 22px; } .footer-inner { grid-template-columns: 1fr; } .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; } }


/* Final visual safety overrides */
.site-header { background: linear-gradient(180deg, var(--header-bg) 0%, var(--header-bg-2) 100%) !important; color: var(--on-header) !important; border-bottom: 1px solid var(--theme-border) !important; }
.main-btn, .header-login, .text-btn, .section-link { background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%) !important; color: var(--on-theme) !important; }
.hero-section { background: radial-gradient(circle at 15% 20%, var(--theme-soft) 0%, transparent 34%), linear-gradient(180deg, var(--theme-light) 0%, var(--white) 100%) !important; }
.hero-content h1, .page-hero h1, .section-title h2 { color: var(--theme-dark) !important; }
.hero-badge, .hero-tags span { background: var(--theme-soft) !important; color: var(--theme-dark) !important; border: 1px solid var(--theme-border) !important; }
.info-card, .category-card, .feature-card, .faq-item, .notice, .visual-card { border-color: var(--theme-border) !important; box-shadow: var(--shadow-soft) !important; }
.info-card span, .category-card .card-number { color: var(--theme) !important; }
.info-card h2, .category-card h3, .feature-card h3, .faq-item h3 { color: var(--theme-dark) !important; }
.category-pills a { background: var(--white) !important; color: var(--theme-dark) !important; border: 1px solid var(--theme-border) !important; }
.category-pills a:hover { background: linear-gradient(180deg, var(--theme-accent), var(--theme)) !important; color: var(--on-theme) !important; }
.footer { background: linear-gradient(180deg, var(--theme-dark) 0%, var(--theme-deep) 100%) !important; color: var(--on-dark) !important; }
.media-box, .hero-visual, .app-visual, .card-media, .hero-media-box, .page-media-box, .visual-card { overflow: visible !important; }
.media-box img, .hero-visual img, .app-visual img, .card-media img, .hero-media-box img, .page-media-box img, .visual-card img, .site-logo img, .drawer-logo img { object-fit: contain !important; width: auto; height: auto; }
