:root {
    --theme: #a87900;
    --theme-dark: #755400;
    --theme-deep: #463300;
    --theme-light: #fff9e8;
    --theme-soft: #f5e8bd;
    --theme-accent: #d7a62a;
    --theme-hover: #8d6500;
    --theme-border: rgba(168, 121, 0, .22);
    --header-bg: #523b00;
    --header-bg-2: #6b4c00;
    --text-main: #30270f;
    --text-muted: #6c6148;
    --on-theme: #ffffff;
    --on-header: #ffffff;
    --on-dark: #ffffff;
    --white: #ffffff;
    --shadow-soft: 0 18px 44px rgba(105, 76, 0, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
html { scroll-behavior: smooth; }
body {
    background: var(--theme-light);
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--theme-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

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

.section { padding: 58px 0; }
.section-soft { background: linear-gradient(180deg, rgba(245,232,189,.72), rgba(255,249,232,.88)); }
.section-heading { max-width: 900px; margin-bottom: 28px; }
.section-heading.compact-heading { max-width: 820px; }
.section-heading h2,
.topic-hero-copy h1,
.hero-content h1,
.headline-panel h1 { color: var(--theme-dark); }
.section-heading h2 { font-size: clamp(30px, 3vw, 46px); line-height: 1.14; margin: 6px 0 12px; }
.section-heading p { margin: 0; color: var(--text-muted); font-size: 17px; }
.section-kicker,
.badge,
.tag {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: max-content;
    border: 1px solid var(--theme-border);
    background: var(--theme-soft);
    color: var(--theme-dark);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.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: 0 12px 30px rgba(70,51,0,.24);
    border-bottom: 1px solid rgba(255,255,255,.14);
    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: 190px;
    max-height: 72px;
    object-fit: contain;
}
.main-nav { display: flex; justify-content: center; align-items: center; gap: 14px; }
.main-nav a {
    color: var(--on-header);
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    padding: 27px 0 22px;
    border-bottom: 3px solid transparent;
    transition: .2s ease;
}
.main-nav a.active,
.main-nav a:hover { color: #ffe8a3; 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;
    min-height: 44px;
    padding: 10px 20px;
    background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%);
    color: var(--on-theme);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(0,0,0,.16);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 800;
    transition: transform .2s ease, filter .2s ease;
}
.main-btn:hover,
.header-login:hover { transform: translateY(-1px); filter: brightness(1.05); color: var(--on-theme); }
.mobile-menu-toggle { display: none; }


.hero-section {
    padding: 54px 0 42px;
    background:
        radial-gradient(circle at 14% 18%, rgba(215,166,42,.18) 0%, transparent 34%),
        linear-gradient(180deg, var(--theme-light) 0%, #fffdf6 100%);
}
.hero-inner {
    width: min(1280px, calc(100% - 80px));
    margin: 0 auto;
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: center;
    gap: 56px;
}
.hero-content { max-width: 760px; }
.hero-badge,
.hero-tags span {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--theme-border);
    background: var(--theme-soft);
    color: var(--theme-dark);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
}
.hero-content h1 {
    font-size: clamp(42px, 4.2vw, 64px);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin: 18px 0 22px;
    max-width: 820px;
}
.hero-content > p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-visual { width: 100%; justify-self: center; }
.hero-media-box {
    width: min(100%, 540px);
    min-height: 320px;
    max-height: 420px;
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: linear-gradient(180deg, var(--white) 0%, var(--theme-soft) 100%);
    border: 1px solid var(--theme-border);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}
.hero-media-box img {
    display: block;
    max-width: 68%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
}
.info-section { padding-top: 36px; }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.info-card h2 { color: var(--theme-dark); font-size: 21px; line-height: 1.25; margin: 8px 0 10px; }
.category-section { padding: 28px 0; }

.intro-section { padding-top: 24px; }
.intro-card,
.card,
.zone-card,
.info-card,
.feature-card,
.category-card,
.faq-item,
.notice,
.visual-card,
.feedback-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; gap: 20px; }
.intro-card h2 { margin: 0; color: var(--theme-dark); font-size: clamp(27px, 2.5vw, 40px); }
.intro-card p { margin: 0; color: var(--text-muted); }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.category-pills a {
    background: var(--white);
    color: var(--theme-dark);
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    padding: 9px 14px;
    text-decoration: none;
    font-weight: 700;
    transition: .2s ease;
}
.category-pills a:hover { background: linear-gradient(180deg, var(--theme-accent), var(--theme)); color: var(--on-theme); }

.headline-panel {
    background: linear-gradient(135deg, var(--theme-soft), var(--white));
    border: 1px solid var(--theme-border);
    border-radius: 28px;
    padding: clamp(30px, 5vw, 64px);
    box-shadow: var(--shadow-soft);
}
.headline-panel h1 { max-width: 980px; font-size: clamp(38px, 4vw, 62px); line-height: 1.08; margin: 10px 0 18px; letter-spacing: -.025em; }
.headline-panel p { max-width: 1000px; margin: 0; color: var(--text-muted); font-size: 18px; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.category-card { position: relative; overflow: visible; }
.category-card::before,
.info-card::before,
.feature-card::before {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--theme), var(--theme-accent));
    margin-bottom: 16px;
}
.card-number { color: var(--theme); font-weight: 800; font-size: 15px; }
.category-card h3,
.info-card h3,
.feature-card h3 { color: var(--theme-dark); margin: 8px 0 10px; line-height: 1.25; }
.category-card p,
.info-card p,
.feature-card p { color: var(--text-muted); margin: 0 0 14px; }
.text-link { display: inline-flex; text-decoration: none; font-weight: 800; color: var(--theme-dark); }
.text-link:hover { color: var(--theme-hover); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.feature-grid { display: grid; gap: 18px; margin-top: 26px; }
.feature-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split-section { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr); gap: 38px; align-items: center; }
.split-section.reverse .split-copy { order: 2; }
.split-section.reverse .media-box { order: 1; }
.split-copy h2 { color: var(--theme-dark); font-size: clamp(30px,3vw,46px); line-height: 1.15; margin: 8px 0 14px; }
.split-copy p { color: var(--text-muted); }
.media-box,
.hero-visual,
.app-visual,
.card-media,
.topic-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.media-box img,
.hero-visual img,
.app-visual img,
.card-media img,
.topic-hero-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.media-box { min-height: 320px; background: linear-gradient(180deg, var(--white), var(--theme-soft)); border-radius: 26px; padding: 26px; border: 1px solid var(--theme-border); box-shadow: var(--shadow-soft); }
.media-box img { max-height: 360px; }

.content-wall { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.zone-card h3 { color: var(--theme-dark); margin-top: 0; }
.zone-card p { color: var(--text-muted); }
.zone-card .tag { margin-bottom: 12px; }

.feedback-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.feedback-card { margin: 0; }
.feedback-card p { margin: 0; color: var(--text-main); }
.faq-list { display: grid; gap: 14px; }
.faq-item h3 { margin: 0 0 8px; color: var(--theme-dark); }
.faq-item p { margin: 0; color: var(--text-muted); }
.notice { background: linear-gradient(145deg, var(--theme-soft), var(--white)); }
.notice h2 { color: var(--theme-dark); margin: 8px 0 12px; }
.notice p { color: var(--text-muted); }
.notice-list { margin: 16px 0 0; padding-left: 20px; }
.notice-list li { margin: 8px 0; }

.topic-hero-section { padding: 44px 0 32px; background: radial-gradient(circle at 10% 10%, var(--theme-soft), transparent 34%); }
.topic-hero { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(340px,.88fr); gap: 42px; align-items: center; }
.topic-hero-copy h1 { font-size: clamp(42px,4.2vw,64px); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 20px; }
.topic-hero-copy > p { margin: 0; color: var(--text-muted); font-size: 18px; max-width: 820px; }
.topic-meta-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.topic-hero-media { min-height: 320px; max-height: 420px; background: linear-gradient(180deg, var(--white), var(--theme-soft)); }
.topic-hero-media img { max-height: 340px; }
.prose-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.prose-grid p { margin: 0; font-size: 17px; color: var(--text-main); }
.entity-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.entity-label { color: var(--theme); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-link { text-decoration: none; border: 1px solid var(--theme-border); background: var(--white); border-radius: 999px; padding: 10px 16px; font-weight: 800; }
.related-link:hover { background: var(--theme); color: var(--on-theme); }

.footer { background: linear-gradient(180deg, var(--theme-dark) 0%, var(--theme-deep) 100%); color: var(--on-dark); padding: 54px 0 24px; }
.footer a { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 34px; }
.footer-brand p { max-width: 430px; color: rgba(255,255,255,.82); }
.footer-logo { display: inline-flex; padding: 10px 12px; background: rgba(255,255,255,.08); border-radius: 18px; }
.footer-logo img { max-width: 175px; max-height: 62px; width: auto; height: auto; object-fit: contain; }
.footer-col h2 { font-size: 16px; margin: 0 0 14px; }
.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,.82); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-compliance { display: grid; grid-template-columns: 74px 1fr; gap: 20px; align-items: start; margin-top: 34px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.footer-age { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; font-size: 22px; font-weight: 900; }
.footer-compliance h2 { margin: 0 0 8px; font-size: 18px; }
.footer-compliance p { margin: 0; color: rgba(255,255,255,.82); }
.footer-bottom { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.68); font-size: 14px; }
.footer-bottom p { margin: 0; }

.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 40px rgba(0,0,0,.22);
    padding: 18px;
    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(52,38,0,.54); transition: .25s 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: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.16); }
.drawer-head img { max-width: 150px; max-height: 58px; object-fit: contain; }
.drawer-close { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 28px; cursor: pointer; }
.drawer-nav { display: grid; gap: 6px; padding: 18px 0; }
.drawer-nav a { color: #fff; text-decoration: none; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.drawer-nav a:hover { background: rgba(255,255,255,.12); }
.drawer-note { margin-top: 10px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.08); }
.drawer-note strong { font-size: 20px; }
.drawer-note p { margin: 6px 0 0; color: rgba(255,255,255,.82); font-size: 14px; }

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

@media (max-width: 1180px) {
    .main-nav { gap: 10px; }
    .main-nav a { font-size: 13px; }
    .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .feature-grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@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; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,255,255,.08); }
    .mobile-menu-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 999px; }
    .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-inner,
    .topic-hero,
    .split-section { grid-template-columns: 1fr; }
    .hero-inner { width: min(100% - 48px, 1280px); min-height: 0; gap: 34px; }
    .hero-visual { max-width: 680px; width: 100%; justify-self: center; }
    .split-section.reverse .split-copy,
    .split-section.reverse .media-box { order: initial; }
    .topic-hero-media { max-width: 680px; width: 100%; justify-self: center; }
    .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .service-grid,
    .content-wall,
    .entity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767px) {
    .container,
    .section-inner,
    .header-inner,
    .footer-inner { width: min(calc(100% - 32px), 1280px); }
    .section { padding: 42px 0; }
    .headline-panel { padding: 28px 22px; }
    .hero-content h1,
    .headline-panel h1,
    .topic-hero-copy h1 { font-size: clamp(34px,10vw,48px); }
    .hero-section { padding: 38px 0 30px; }
    .hero-inner { width: min(calc(100% - 32px), 1280px); gap: 26px; }
    .hero-content > p { font-size: 16px; line-height: 1.72; }
    .hero-media-box { min-height: 240px; padding: 24px; }
    .hero-media-box img { max-width: 72%; max-height: 250px; }
    .info-grid { grid-template-columns: 1fr; }
    .category-grid,
    .service-grid,
    .content-wall,
    .entity-grid,
    .feature-grid-4,
    .feedback-grid,
    .prose-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .topic-hero { gap: 24px; }
    .topic-hero-media,
    .media-box { min-height: 240px; }
    .topic-hero-media img,
    .media-box img { max-height: 280px; }
    .footer-compliance { grid-template-columns: 58px 1fr; }
    .footer-age { width: 52px; height: 52px; font-size: 18px; }
}

@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; }
    .mobile-menu-toggle { width: 42px; height: 42px; }
    .footer-compliance { grid-template-columns: 1fr; }
}
