:root {
    color-scheme: light;
    --modern-surface: rgba(255, 255, 255, .84);
    --modern-surface-solid: #ffffff;
    --modern-surface-soft: #f5f8fb;
    --modern-border: rgba(13, 41, 71, .11);
    --modern-shadow: 0 18px 50px rgba(4, 22, 39, .09);
    --modern-shadow-hover: 0 24px 65px rgba(4, 22, 39, .16);
    --modern-glow: rgba(55, 132, 190, .16);
    --modern-radius: 18px;
    --modern-radius-lg: 28px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e7eef5;
    --muted: #9eb0c1;
    --line: #203649;
    --paper: #07131f;
    --mist: #0a1a28;
    --mist-2: #0f2232;
    --modern-surface: rgba(11, 27, 41, .86);
    --modern-surface-solid: #0b1b29;
    --modern-surface-soft: #0e2131;
    --modern-border: rgba(151, 181, 205, .15);
    --modern-shadow: 0 20px 55px rgba(0, 0, 0, .25);
    --modern-shadow-hover: 0 28px 70px rgba(0, 0, 0, .38);
    --modern-glow: rgba(63, 145, 205, .18);
}

html { background: var(--paper); }
body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 26%, var(--modern-glow), transparent 24rem),
        var(--paper);
    transition: color .3s ease, background-color .3s ease;
}

body::selection { color: #081522; background: var(--gold-400); }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--gold-500) 70%, white);
    outline-offset: 3px;
}

.emergency-bar {
    position: relative;
    z-index: 101;
    background: linear-gradient(90deg, #020b13, #081c2d 48%, #020b13);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.site-header {
    position: sticky;
    top: 0;
    background: var(--modern-surface);
    border-color: var(--modern-border);
    box-shadow: 0 8px 30px rgba(4, 22, 39, .045);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.site-header.scrolled { position: sticky; box-shadow: var(--modern-shadow); }
.header-inner { min-height: 84px; gap: 22px; }
.brand { gap: 12px; }
.brand-seal {
    display: grid;
    place-items: center;
    width: 61px;
    height: 61px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, .13), transparent 68%);
    transition: transform .25s ease;
}
.brand:hover .brand-seal { transform: rotate(-3deg) scale(1.035); }
.brand-seal img { width: 57px; height: 57px; }
.brand-copy strong { font-size: 1.62rem; letter-spacing: .115em; }

.main-nav {
    align-self: auto;
    align-items: center;
    gap: 3px;
    padding: 5px;
    border: 1px solid var(--modern-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--modern-surface-solid) 74%, transparent);
}
.main-nav a {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    transition: color .2s, background .2s, transform .2s;
}
.main-nav a::after { display: none; }
.main-nav a:hover { background: var(--modern-surface-soft); transform: translateY(-1px); }
.main-nav a.active { color: #f8f3e3; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); box-shadow: 0 7px 18px rgba(6, 29, 51, .18); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--modern-border);
    border-radius: 12px;
    color: var(--navy-800);
    background: var(--modern-surface-solid);
    box-shadow: 0 7px 18px rgba(4, 22, 39, .06);
    cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(3deg); border-color: var(--gold-500); }
.theme-icon { position: absolute; width: 20px; height: 20px; transition: opacity .22s, transform .3s; }
.theme-icon-sun { opacity: 0; transform: rotate(-35deg) scale(.6); }
.theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .theme-icon-sun { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: rotate(35deg) scale(.6); }

.button {
    min-height: 50px;
    border-radius: 12px;
    padding-inline: 22px;
    box-shadow: 0 9px 24px rgba(4, 22, 39, .08);
}
.button:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(4, 22, 39, .16); }
.button.gold { background: linear-gradient(135deg, #d7ba62, #bc9538); }
.button.dark { background: linear-gradient(135deg, #0c3152, #071a2d); }

.home-hero {
    min-height: 720px;
    background:
        radial-gradient(circle at 78% 28%, rgba(38, 111, 164, .72), transparent 26rem),
        linear-gradient(128deg, #020d17 5%, #08223a 54%, #0b3152 100%);
}
.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, .16), transparent 55%);
}
.home-hero-inner { min-height: 720px; }
.hero-copy h1 { text-wrap: balance; text-shadow: 0 12px 35px rgba(0, 0, 0, .28); }
.hero-copy p { color: #d0dce6; }
.hero-seal { filter: drop-shadow(0 35px 55px rgba(0, 0, 0, .42)); transition: transform .55s ease; }
.hero-seal-wrap:hover .hero-seal { transform: translateY(-7px) scale(1.018); }
.seal-orbit { animation: gentle-pulse 5s ease-in-out infinite; }
.service-chip { border-radius: 15px; backdrop-filter: blur(15px); }

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); opacity: .85; }
    50% { transform: scale(1.025); opacity: 1; }
}

.quick-strip { background: var(--modern-surface-solid); box-shadow: var(--modern-shadow); }
.quick-item { transition: background .2s; }
.quick-item:hover { background: var(--modern-surface-soft); }
.quick-item.emergency { background: color-mix(in srgb, #b2373e 9%, var(--modern-surface-solid)); }
.priority-notice { background: color-mix(in srgb, #f2cf67 14%, var(--modern-surface-solid)); border-color: color-mix(in srgb, var(--gold-500) 28%, transparent); }

.section-heading h2 { text-wrap: balance; }
.section-heading.split { align-items: center; }
.section-light { background: color-mix(in srgb, var(--mist) 90%, transparent); }
.news-card, .division-card, .benefit-card, .service-card, .contact-card, .notice-card, .value-card, .leader-card {
    border-color: var(--modern-border);
    border-radius: var(--modern-radius);
    background: var(--modern-surface-solid);
    box-shadow: 0 10px 32px rgba(4, 22, 39, .055);
}
.news-card, .division-card, .leader-card { overflow: hidden; }
.news-card:hover, .benefit-card:hover, .service-card:hover, .contact-card:hover, .notice-card:hover, .division-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--gold-500) 45%, var(--modern-border));
    box-shadow: var(--modern-shadow-hover);
}
.news-card, .benefit-card, .service-card, .contact-card, .notice-card, .division-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card-media { border-radius: 0; }
.card-content { padding: 28px; }
.media-placeholder { background: radial-gradient(circle at 78% 18%, #246a9e, #071a2d 68%); }

.mission-section { background: linear-gradient(130deg, #061521, #0b2c49); }
.chief-quote { border-radius: var(--modern-radius-lg); border-top-width: 0; box-shadow: var(--modern-shadow-hover); }
.chief-quote::before { content: ''; display: block; width: 58px; height: 4px; margin-bottom: 22px; border-radius: 4px; background: var(--gold-500); }
.division-preview { border-color: var(--modern-border); border-radius: 13px; padding: 22px !important; margin: 5px; transition: background .2s, transform .2s; }
.division-preview:nth-child(odd) { border-right: 1px solid var(--modern-border); }
.division-preview:hover { transform: translateX(3px); background: var(--modern-surface-soft); }
.division-icon { box-shadow: 0 10px 25px rgba(4, 22, 39, .16); }
.career-band { background: radial-gradient(circle at 90% 15%, #174f7a, transparent 25rem), linear-gradient(115deg, #071724, #0a2a47); }

.page-hero {
    min-height: 455px;
    background:
        radial-gradient(circle at 82% 20%, rgba(38, 115, 171, .82), transparent 22rem),
        linear-gradient(125deg, #04111d, #082844 60%, #0c3659);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 64px 64px;
}
.page-hero-inner p { color: #d0dce5; }
.subnav {
    top: 0;
    background: var(--modern-surface);
    border-color: var(--modern-border);
    backdrop-filter: blur(18px);
}
.subnav .container { justify-content: center; gap: 6px; padding-block: 8px; }
.subnav a { position: relative; padding: 10px 17px; border-radius: 9px; transition: color .2s, background .2s; }
.subnav a:hover, .subnav a.active { color: var(--navy-800); background: color-mix(in srgb, var(--gold-500) 14%, var(--modern-surface-solid)); }
.subnav a.active::after { content: ''; position: absolute; right: 17px; bottom: 5px; left: 17px; height: 2px; border-radius: 3px; background: var(--gold-500); }
.anchor-section { scroll-margin-top: 132px; }

.values-grid { gap: 14px; border: 0; background: transparent; }
.value-card { min-height: 250px; border: 1px solid var(--modern-border); transition: transform .25s, box-shadow .25s; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--modern-shadow); }
.history-visual { border-radius: var(--modern-radius-lg); overflow: hidden; box-shadow: var(--modern-shadow-hover); }
.history-visual::before { border-radius: 16px; }
.section-navy.command-section { position: relative; overflow: hidden; background: radial-gradient(circle at 15% 0%, #174a72, transparent 25rem), linear-gradient(135deg, #061521, #0a2944); }
.command-section::before { content: ''; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 72px 72px; }
.command-section > .container { position: relative; }
.command-section .section-heading > p { color: #aebfce; }
.command-profile {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 150px;
    gap: 42px;
    align-items: center;
    padding: 40px;
    overflow: hidden;
    border: 1px solid rgba(224, 196, 110, .28);
    border-radius: var(--modern-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
    box-shadow: 0 28px 70px rgba(0, 0, 0, .25);
    backdrop-filter: blur(12px);
}
.command-seal { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: rgba(0, 0, 0, .17); box-shadow: inset 0 0 0 1px rgba(224, 196, 110, .2), 0 18px 38px rgba(0, 0, 0, .25); }
.command-seal img { width: 88%; filter: drop-shadow(0 15px 22px rgba(0,0,0,.32)); }
.command-label { color: var(--gold-400); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.command-copy h3 { margin: 8px 0 16px; color: #fff; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.command-copy blockquote { margin: 0 0 16px; color: #d8e3eb; font-family: var(--serif); font-size: 1.18rem; line-height: 1.65; }
.command-copy p { margin: 0; color: #9eb1c1; font-size: .88rem; }
.command-mark { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-left: 30px; border-left: 1px solid rgba(255,255,255,.14); color: var(--gold-400); text-align: center; }
.command-mark .icon { width: 52px; height: 52px; }
.command-mark span { color: #c8d3dd; font-family: var(--serif); font-size: 1rem; line-height: 1.3; }
.headquarters-card { border-radius: var(--modern-radius-lg); border-color: var(--modern-border); background: var(--modern-surface-soft); box-shadow: var(--modern-shadow); }

.division-card-media, .leader-photo { border-radius: 0; }
.career-status-card, .apply-card, .service-rule, .emergency-card, .contact-warning, .hq-panel, .article-aside, .emergency-aside {
    border-radius: var(--modern-radius);
    overflow: hidden;
}
.check-list li { border-radius: 11px; background: var(--modern-surface-soft); border-top: 1px solid var(--modern-border); border-right: 1px solid var(--modern-border); border-bottom: 1px solid var(--modern-border); }
.process-card > span { box-shadow: 0 10px 25px rgba(4, 22, 39, .16); }
.faq-item { border-color: var(--modern-border); }
.faq-item summary { padding-inline: 16px; border-radius: 11px; }
.faq-item[open] summary { color: var(--blue-500); background: var(--modern-surface-soft); }
.apply-card { box-shadow: var(--modern-shadow-hover); }

.filter-bar, .category-pills { background: var(--modern-surface-soft); border-color: var(--modern-border); }
.filter-form select, .category-pills a { border-radius: 9px; border-color: var(--modern-border); background: var(--modern-surface-solid); }
.news-row { border-color: var(--modern-border); }
.news-row-media { border-radius: 15px; }
.article-header { background: radial-gradient(circle at 80% 15%, #174e77, transparent 24rem), linear-gradient(125deg, #051521, #092b47); }
.article-aside { background: var(--modern-surface-soft); }
.notice-card { border-top-width: 3px; }
.service-rule { border-top-width: 0; border-left: 4px solid var(--gold-500); background: var(--modern-surface-solid); }
.service-email { border-radius: 9px; background: var(--modern-surface-soft); }
.contact-card > span, .hq-mark { box-shadow: 0 10px 22px rgba(4, 22, 39, .18); }
.contact-card > button { border-radius: 9px; background: var(--modern-surface-soft); }
.gallery-item { border-radius: var(--modern-radius); box-shadow: var(--modern-shadow); }
.footer-main { padding-block: 78px; }
.toast { border-radius: 11px; }

html[data-theme="dark"] body h1,
html[data-theme="dark"] body h2,
html[data-theme="dark"] body h3,
html[data-theme="dark"] .brand-copy strong,
html[data-theme="dark"] .quick-item strong,
html[data-theme="dark"] .division-copy strong,
html[data-theme="dark"] .headquarters-card dd,
html[data-theme="dark"] .contact-card strong,
html[data-theme="dark"] .faq-item summary,
html[data-theme="dark"] .card-content h3 a,
html[data-theme="dark"] .news-row h2 a { color: #e7f0f7; }

html[data-theme="dark"] .site-header { background: rgba(6, 18, 29, .88); }
html[data-theme="dark"] .main-nav { background: rgba(255, 255, 255, .035); }
html[data-theme="dark"] .main-nav a { color: #aebdcc; }
html[data-theme="dark"] .main-nav a:hover { color: #f3f7fa; background: rgba(255,255,255,.07); }
html[data-theme="dark"] .main-nav a.active { color: #fff; background: linear-gradient(135deg, #174c77, #0d3456); }
html[data-theme="dark"] .theme-toggle { color: var(--gold-400); background: #0c2030; }
html[data-theme="dark"] .subnav { background: rgba(7, 19, 31, .9); }
html[data-theme="dark"] .subnav a { color: #91a5b7; }
html[data-theme="dark"] .subnav a:hover,
html[data-theme="dark"] .subnav a.active { color: #f3e5b6; background: rgba(201, 168, 76, .11); }

html[data-theme="dark"] .quick-strip,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .division-card,
html[data-theme="dark"] .benefit-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .notice-card { background: var(--modern-surface-solid); }
html[data-theme="dark"] .quick-item.emergency { background: rgba(116, 29, 36, .25); }
html[data-theme="dark"] .priority-notice { background: #171c1d; }
html[data-theme="dark"] .priority-inner h2 { color: #f0e3ba; }
html[data-theme="dark"] .chief-quote { background: #0d2131; }
html[data-theme="dark"] .chief-quote > p,
html[data-theme="dark"] .lead { color: #c9d7e2; }
html[data-theme="dark"] .division-preview:hover { background: rgba(255,255,255,.035); }
html[data-theme="dark"] .division-preview > .arrow,
html[data-theme="dark"] .text-link { color: #70add8; }
html[data-theme="dark"] .headquarters-card,
html[data-theme="dark"] .service-rule,
html[data-theme="dark"] .article-aside { background: #0b1d2c; }
html[data-theme="dark"] .check-list li,
html[data-theme="dark"] .service-email,
html[data-theme="dark"] .faq-item[open] summary { background: #0d2232; }
html[data-theme="dark"] .button.outline { color: #dce7ef; border-color: #496074; }
html[data-theme="dark"] .filter-form select,
html[data-theme="dark"] .category-pills a,
html[data-theme="dark"] .contact-card > button { color: #cbd8e2; background: #0c2131; }
html[data-theme="dark"] .category-pills a.active,
html[data-theme="dark"] .category-pills a:hover { background: #174a72; }
html[data-theme="dark"] .contact-warning,
html[data-theme="dark"] .emergency-card { background: rgba(116, 29, 36, .26); border-color: rgba(221, 101, 109, .32); }
html[data-theme="dark"] .contact-warning p { color: #e0b9bd; }
html[data-theme="dark"] .emergency-aside { background: rgba(116, 29, 36, .25); border-color: rgba(221,101,109,.3); }
html[data-theme="dark"] .lightbox { background: #030a10; }
html[data-theme="dark"] .article-body { color: #aebfcd; }

@media (max-width: 1180px) {
    .header-inner { gap: 12px; }
    .main-nav a { padding-inline: 7px; }
    .theme-toggle { width: 40px; height: 40px; }
}

@media (max-width: 980px) {
    .header-inner { min-height: 76px; }
    .main-nav {
        top: 110px;
        align-items: stretch;
        padding: 22px;
        border: 0;
        border-radius: 0;
        background: rgba(4, 17, 28, .98);
        backdrop-filter: blur(22px);
    }
    .main-nav a { min-height: 50px; padding-inline: 14px; color: #c5d2dd; border-radius: 9px; border-bottom: 0; }
    .main-nav a + a { margin-top: 3px; }
    .main-nav a.active { background: rgba(201, 168, 76, .14); color: var(--gold-400); box-shadow: none; }
    .brand-seal { width: 54px; height: 54px; }
    .brand-seal img { width: 51px; height: 51px; }
    .command-profile { grid-template-columns: 180px 1fr; }
    .command-mark { grid-column: 1 / -1; flex-direction: row; justify-content: center; padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
}

@media (max-width: 760px) {
    .section { padding-block: 78px; }
    .subnav .container { justify-content: flex-start; }
    .values-grid { gap: 10px; }
    .value-card { min-height: 0; }
    .command-profile { grid-template-columns: 1fr; gap: 26px; padding: 28px; text-align: center; }
    .command-seal { width: min(210px, 70vw); margin-inline: auto; }
    .command-mark { grid-column: auto; }
    .command-copy blockquote { font-size: 1.05rem; }
    .headquarters-card { border-radius: 20px; }
    .news-card, .division-card, .benefit-card, .service-card, .contact-card, .notice-card, .value-card { border-radius: 15px; }
}

@media (max-width: 480px) {
    .brand-seal { width: 49px; height: 49px; }
    .brand-seal img { width: 47px; height: 47px; }
    .theme-toggle, .nav-toggle { width: 42px; height: 42px; }
    .brand-copy strong { font-size: 1.35rem; }
    .main-nav { top: 104px; }
    .command-profile { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .seal-orbit { animation: none; }
}

