/* ==============================================
   Kume Code — main.css
   Premium Dark/Light redesign (ds-k.site inspired)
   ============================================== */

/* ===== CSS Variables ===== */
:root {
    /* Dark mode (default) – bright navy base */
    --bg:           #1c2444;
    --bg-2:         #222b50;
    --bg-3:         #28325c;
    --bg-4:         #2f3a68;
    --surface:      rgba(255,255,255,.055);
    --surface-2:    rgba(255,255,255,.09);
    --border:       rgba(255,255,255,.09);
    --border-2:     rgba(255,255,255,.17);
    --text:         #e8e9f4;
    --text-muted:   rgba(232,233,244,.55);
    --text-sub:     rgba(232,233,244,.33);

    --gold:         #F0A500;
    --gold-dark:    #d4900a;
    --gold-glow:    rgba(240,165,0,.22);
    --white:        #FFFFFF;

    /* Reasons section (always distinct) */
    --reasons-bg:        #141a36;
    --reasons-border:    rgba(255,255,255,.09);
    --reasons-card:      rgba(255,255,255,.055);
    --reasons-card-hover:rgba(255,255,255,.09);
    --reasons-title:     #e8e9f4;
    --reasons-text:      rgba(232,233,244,.6);

    --radius-sm:    6px;
    --radius-md:    14px;
    --radius-lg:    22px;
    --radius-xl:    32px;

    --shadow-sm:    0 2px 20px rgba(0,0,0,.4);
    --shadow-md:    0 8px 56px rgba(0,0,0,.55);
    --shadow-lg:    0 24px 100px rgba(0,0,0,.65);

    --transition:   .3s cubic-bezier(.4,0,.2,1);
    --container:    1140px;
    --header-h:     72px;
}

/* ===== Light Mode ===== */
[data-theme="light"] {
    --bg:           #f7f8fc;
    --bg-2:         #ffffff;
    --bg-3:         #eef0f8;
    --bg-4:         #e5e8f4;
    --surface:      rgba(27,42,107,.035);
    --surface-2:    rgba(27,42,107,.065);
    --border:       rgba(27,42,107,.09);
    --border-2:     rgba(27,42,107,.16);
    --text:         #1a1c2e;
    --text-muted:   #6B7194;
    --text-sub:     #9ea2bb;
    --gold-glow:    rgba(240,165,0,.16);

    --reasons-bg:        #111d4e;
    --reasons-border:    rgba(255,255,255,.1);
    --reasons-card:      rgba(255,255,255,.06);
    --reasons-card-hover:rgba(255,255,255,.1);
    --reasons-title:     #ffffff;
    --reasons-text:      rgba(255,255,255,.7);

    --shadow-sm:    0 2px 20px rgba(27,42,107,.07);
    --shadow-md:    0 8px 56px rgba(27,42,107,.12);
    --shadow-lg:    0 24px 100px rgba(27,42,107,.15);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color .45s ease, color .45s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Container ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    padding: 14px 32px;
    font-size: 15px;
    letter-spacing: .03em;
    position: relative;
}
.btn-lg  { padding: 16px 40px; font-size: 16px; }
.btn-xl  { padding: 20px 56px; font-size: 18px; }

.btn-primary {
    background: var(--gold);
    color: #0f1020;
    border-color: var(--gold);
    box-shadow: 0 4px 24px var(--gold-glow), 0 1px 0 rgba(255,255,255,.15) inset;
}
.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 36px var(--gold-glow);
}

.btn-outline-white {
    background: transparent;
    color: rgba(255,255,255,.8);
    border-color: rgba(255,255,255,.25);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.6);
    color: var(--white);
    transform: translateY(-1px);
}

/* ===== Section Common ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
    transition: color .45s ease;
}
.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--text);
    line-height: 1.22;
    margin-bottom: 18px;
    letter-spacing: -.025em;
    transition: color .45s ease;
}
.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    transition: color .45s ease;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(28,36,68,.78);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    z-index: 1000;
    transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
[data-theme="light"] .site-header {
    background: rgba(247,248,252,.82);
    border-bottom-color: rgba(27,42,107,.09);
}
.site-header.scrolled {
    background: rgba(28,36,68,.96);
    box-shadow: 0 4px 48px rgba(0,0,0,.5);
    border-bottom-color: rgba(255,255,255,.08);
}
[data-theme="light"] .site-header.scrolled {
    background: rgba(247,248,252,.98);
    box-shadow: 0 4px 48px rgba(27,42,107,.1);
    border-bottom-color: rgba(27,42,107,.12);
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.03em;
    flex-shrink: 0;
}
.logo-kume { color: var(--text); transition: color .45s ease; }
.logo-code  { color: var(--gold); }

.site-nav { flex: 1; }
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}
.nav-menu li a {
    padding: 8px 15px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 50px;
    transition: color .25s ease, background .25s ease;
}
.nav-menu li a:hover {
    color: var(--text);
    background: var(--surface-2);
}
.nav-menu .nav-cta {
    background: var(--gold) !important;
    color: #0f1020 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 16px var(--gold-glow);
    margin-left: 8px;
}
.nav-menu .nav-cta:hover {
    background: var(--gold-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--gold-glow);
}

/* Header right controls */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    transition: color .25s ease, border-color .25s ease, background .25s ease, transform .2s ease;
    flex-shrink: 0;
}
.theme-toggle:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--surface-2);
    transform: rotate(15deg) scale(1.05);
}
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO (always dark) ===== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    background: #1c2444;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.065) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.hero-bg::before {
    content: '';
    position: absolute;
    width: 720px;
    height: 720px;
    top: -220px;
    right: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,165,0,.14) 0%, transparent 65%);
    animation: heroOrbA 14s ease-in-out infinite alternate;
}
.hero-bg::after {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    bottom: -160px;
    left: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80,100,230,.1) 0%, transparent 65%);
    animation: heroOrbB 10s ease-in-out infinite alternate;
}
@keyframes heroOrbA {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(55px,-35px) scale(1.15); }
}
@keyframes heroOrbB {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(-40px,50px) scale(1.1); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 100px;
    width: 100%;
}
.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .26em;
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: uppercase;
}
.hero-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 900;
    color: #e8e8f2;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -.035em;
}
.hero-accent { color: var(--gold); }
.hero-desc {
    font-size: 15px;
    color: rgba(232,232,242,.6);
    margin-bottom: 44px;
    line-height: 1.95;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-card-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.hero-stat-card {
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.hero-stat-card:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(240,165,0,.35);
    transform: translateY(-5px);
}
.hero-stat-card:first-child { grid-column: 1 / -1; }
.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 54px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}
.stat-num small { font-size: 26px; }
.stat-label {
    font-size: 12px;
    color: rgba(232,232,242,.6);
    font-weight: 500;
    letter-spacing: .06em;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.3);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    z-index: 2;
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
    animation: scrollPulse 2.4s ease-in-out infinite;
    transform-origin: top;
}
@keyframes scrollPulse {
    0%   { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(0); }
}

/* ===== TROUBLE ===== */
.trouble {
    padding: 100px 0;
    background: var(--bg-2);
    transition: background-color .45s ease;
}
.trouble-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}
.trouble-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.trouble-item:hover {
    background: var(--surface-2);
    border-color: var(--border-2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}
.trouble-icon { font-size: 36px; margin-bottom: 16px; }
.trouble-item p { font-size: 14px; color: var(--text-muted); line-height: 1.75; transition: color .45s ease; }
.trouble-item strong { color: var(--text); font-weight: 700; transition: color .45s ease; }

.trouble-arrow { text-align: center; }
.trouble-solution {
    display: inline-block;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
    background: var(--surface-2);
    border: 2px solid var(--gold);
    border-radius: 50px;
    padding: 16px 48px;
    letter-spacing: .02em;
    transition: color .45s ease, background .45s ease;
}
.trouble-solution span { color: var(--gold); }

/* Icon adjust for dark mode */
:root .trouble-icon svg {
    filter: brightness(1.55) saturate(0.75);
}
[data-theme="light"] .trouble-icon svg { filter: none; }

/* ===== SERVICES ===== */
.services {
    padding: 100px 0;
    background: var(--bg);
    transition: background-color .45s ease;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.services-grid--3col { grid-template-columns: repeat(3, 1fr); }
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(240,165,0,.15));
    opacity: 0;
    transition: opacity .3s ease;
}
.service-card:hover {
    background: var(--surface-2);
    border-color: rgba(240,165,0,.28);
    transform: translateY(-7px);
    box-shadow: 0 20px 64px rgba(0,0,0,.45), 0 0 0 1px rgba(240,165,0,.12);
}
.service-card:hover::before { opacity: 1; }
.service-card--featured {
    border-color: rgba(240,165,0,.38);
    background: rgba(240,165,0,.045);
}
.service-card--featured::before { opacity: 1; background: var(--gold); height: 3px; }
.service-card--wide { grid-column: 1 / -1; }

.service-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .18em;
    margin-bottom: 12px;
}
.service-badge {
    display: inline-block;
    background: var(--gold);
    color: #0f1020;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: .03em;
}
.service-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1;
    transition: color .45s ease;
}
.service-price small { font-size: 18px; font-weight: 700; }
.service-icon { font-size: 40px; margin-bottom: 16px; }
.service-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -.01em;
    transition: color .45s ease;
}
.service-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
    transition: color .45s ease;
}
.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 22px;
    position: relative;
    font-weight: 500;
    line-height: 1.65;
    transition: color .45s ease;
}
.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}
.services-note {
    text-align: center;
    margin-top: 36px;
    font-size: 13px;
    color: var(--text-sub);
    transition: color .45s ease;
}

/* ===== MAINTENANCE ===== */
.maintenance {
    padding: 100px 0;
    background: var(--bg-2);
    transition: background-color .45s ease;
}
.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.mplan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mplan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(240,165,0,.15));
    opacity: 0;
    transition: opacity .3s ease;
}
.mplan-card:hover {
    background: var(--surface-2);
    border-color: rgba(240,165,0,.28);
    transform: translateY(-7px);
    box-shadow: 0 20px 64px rgba(0,0,0,.45), 0 0 0 1px rgba(240,165,0,.12);
}
.mplan-card:hover::before { opacity: 1; }
.mplan-card--featured {
    border-color: rgba(240,165,0,.38);
    background: rgba(240,165,0,.045);
}
.mplan-card--featured::before { opacity: 1; background: var(--gold); height: 3px; }

.mplan-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .18em;
    margin-bottom: 12px;
}
.mplan-badge {
    display: inline-block;
    background: var(--gold);
    color: #0f1020;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: .03em;
    width: fit-content;
}
.mplan-name {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -.01em;
    transition: color .45s ease;
}
.mplan-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1;
    transition: color .45s ease;
}
.mplan-price small {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .02em;
}
.mplan-price--consult {
    font-size: 28px;
    letter-spacing: -.01em;
}
.mplan-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}
.mplan-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 22px;
    position: relative;
    font-weight: 500;
    line-height: 1.65;
    transition: color .45s ease;
}
.mplan-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}
.maintenance-note {
    text-align: center;
    margin-top: 36px;
    font-size: 13px;
    color: var(--text-sub);
    transition: color .45s ease;
}

/* ===== REASONS (always dark-ish) ===== */
.reasons {
    padding: 100px 0;
    background: var(--reasons-bg);
    position: relative;
    overflow: hidden;
    transition: background-color .45s ease;
}
.reasons::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
/* Gold orb accent */
.reasons::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,165,0,.08) 0%, transparent 65%);
    pointer-events: none;
}
.reasons .section-eyebrow { color: var(--gold); }
.reasons .section-title { color: var(--reasons-title); transition: color .45s ease; }

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.reason-card {
    background: var(--reasons-card);
    border: 1px solid var(--reasons-border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.reason-card:hover {
    background: var(--reasons-card-hover);
    border-color: rgba(240,165,0,.25);
    transform: translateY(-5px);
}
.reason-icon { font-size: 40px; margin-bottom: 16px; }
.reason-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--reasons-title);
    margin-bottom: 12px;
    transition: color .45s ease;
}
.reason-card p {
    font-size: 14px;
    color: var(--reasons-text);
    line-height: 1.9;
    transition: color .45s ease;
}

/* ===== RESULTS (gold gradient – always) ===== */
.results {
    padding: 88px 0;
    background: linear-gradient(135deg, #F0A500 0%, #d4900a 100%);
    position: relative;
    overflow: hidden;
}
.results::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.section-header--light .section-eyebrow,
.section-header--light .section-title,
.section-header--light .section-desc { color: #111d4e !important; }

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}
.result-item {
    text-align: center;
    padding: 32px 24px;
    border-right: 1px solid rgba(27,42,107,.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.result-item:last-child { border-right: none; }
.result-icon {
    font-size: 52px;
    font-weight: 900;
    color: #111d4e;
    line-height: 1;
    font-family: 'Noto Sans JP', sans-serif;
}
.result-reason {
    font-size: 15px;
    font-weight: 700;
    color: #111d4e;
    margin-top: 4px;
}
.result-desc {
    font-size: 13px;
    color: rgba(17,29,78,.75);
    line-height: 1.7;
    text-align: left;
}

/* ===== FLOW ===== */
.flow {
    padding: 100px 0;
    background: var(--bg-2);
    transition: background-color .45s ease;
}
.flow-steps {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.flow-step {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 26px;
    text-align: center;
    transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.flow-step:hover {
    background: var(--surface-2);
    border-color: rgba(240,165,0,.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}
.step-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 20px;
}
.step-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    transition: color .45s ease;
}
.step-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.85;
    transition: color .45s ease;
}
.flow-arrow {
    font-size: 22px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 64px;
    font-weight: 700;
    opacity: .55;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: var(--bg);
    transition: background-color .45s ease;
}
.cta-inner {
    text-align: center;
    background: linear-gradient(145deg, #1a2248 0%, #243070 50%, #1c2a5c 100%);
    border-radius: var(--radius-xl);
    padding: 96px 48px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(240,165,0,.18);
}
.cta-inner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,165,0,.1) 0%, transparent 65%);
    pointer-events: none;
}
.cta-inner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80,100,230,.08) 0%, transparent 65%);
    pointer-events: none;
}
.cta-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    display: block;
}
.cta-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    color: #e8e8f2;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: -.03em;
}
.cta-desc {
    font-size: 15px;
    color: rgba(232,232,242,.65);
    margin-bottom: 48px;
    line-height: 1.95;
    position: relative;
    z-index: 1;
}
.cta-note {
    margin-top: 24px;
    font-size: 12px;
    color: rgba(232,232,242,.3);
    position: relative;
    z-index: 1;
    letter-spacing: .03em;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 0;
    background: var(--bg-2);
    transition: background-color .45s ease;
}
.contact-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    box-shadow: var(--shadow-md);
    transition: background .45s ease, border-color .45s ease;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group + .form-group:not(.form-row .form-group) { margin-top: 24px; }
.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: color .45s ease;
}
.required {
    display: inline-block;
    background: var(--gold);
    color: #0f1020;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: .03em;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    transition: border-color .25s ease, box-shadow .25s ease, background .45s ease, color .45s ease;
    outline: none;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
    background: var(--bg-2);
}
.form-group textarea { resize: vertical; }
.form-group select { cursor: pointer; }
.form-submit { margin-top: 36px; text-align: center; }
.form-notice {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
}
.form-notice.success { color: #27ae60; }
.form-notice.error   { color: #e74c3c; }

/* ===== FOOTER (always dark) ===== */
.site-footer {
    background: #131a38;
    color: var(--white);
    border-top: 1px solid rgba(255,255,255,.05);
}
[data-theme="light"] .site-footer {
    background: #090c20;
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    padding: 64px 0 48px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-logo { margin-bottom: 16px; display: inline-block; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.38); line-height: 1.85; }
.footer-nav-wrap { display: flex; gap: 64px; }
.footer-nav-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav-col a {
    font-size: 13px;
    color: rgba(255,255,255,.38);
    transition: color .25s ease;
}
.footer-nav-col a:hover { color: rgba(255,255,255,.85); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 16px;
}
.copyright { font-size: 12px; color: rgba(255,255,255,.22); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    font-size: 12px;
    color: rgba(255,255,255,.22);
    transition: color .25s ease;
}
.footer-links a:hover { color: rgba(255,255,255,.6); }

/* ===== PAGE / SINGLE ===== */
.page-main, .single-main { }
.page-title, .single-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 40px;
}
.page-body, .single-body { max-width: 720px; }
.page-body p, .single-body p { margin-bottom: 1.5em; color: var(--text); line-height: 1.9; }
.single-container { max-width: 860px; }
.single-header { margin-bottom: 48px; }
.single-thumb { border-radius: var(--radius-md); overflow: hidden; margin-top: 32px; }
.post-meta time { font-size: 12px; color: var(--text-muted); }

/* ===== BLOG INDEX ===== */
.site-main.blog-main, .site-main {  }
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-2);
}
.post-thumb img { width: 100%; height: 200px; object-fit: cover; }
.post-body { padding: 24px; }
.post-title { font-size: 17px; font-weight: 700; margin: 12px 0; color: var(--text); transition: color .45s ease; }
.post-title a:hover { color: var(--gold); }
.post-excerpt { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; transition: color .45s ease; }

/* ===== SVG ICONS ===== */
.trouble-icon svg { width: 80px; height: 80px; margin: 0 auto 16px; display: block; }
.service-icon svg { width: 72px; height: 72px; margin-bottom: 16px; display: block; }
.reason-icon svg  { width: 60px; height: 60px; margin-bottom: 16px; display: block; }

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1),
                transform .8s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}
[data-animate].is-visible {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-card-wrap { max-width: 480px; margin: 0 auto; }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .result-item:nth-child(2) { border-right: none; }
    .result-item:nth-child(3) { border-top: 1px solid rgba(27,42,107,.15); }
    .services-grid--3col { grid-template-columns: 1fr 1fr; }
    .maintenance-grid { grid-template-columns: 1fr 1fr; }
    .mplan-card:last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .hamburger { display: flex; }
    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: rgba(28,36,68,.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 24px;
        transform: translateY(-110%);
        transition: transform .35s cubic-bezier(.4,0,.2,1);
        box-shadow: 0 20px 60px rgba(0,0,0,.6);
        border-bottom: 1px solid rgba(255,255,255,.07);
    }
    [data-theme="light"] .site-nav {
        background: rgba(247,248,252,.98);
        border-bottom-color: rgba(27,42,107,.1);
    }
    .site-nav.open { transform: translateY(0); }
    .nav-menu { flex-direction: column; gap: 4px; }
    .nav-menu li { width: 100%; }
    .nav-menu li a { display: block; text-align: center; padding: 12px 16px; }

    .trouble-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .services-grid--3col { grid-template-columns: 1fr; }
    .maintenance-grid { grid-template-columns: 1fr; }
    .service-card--wide { grid-column: auto; }
    .reasons-grid { grid-template-columns: 1fr; }
    .flow-steps { flex-direction: column; }
    .flow-arrow { margin: 0 auto; transform: rotate(90deg); }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-nav-wrap { gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 36px 24px; }
    .posts-grid { grid-template-columns: 1fr; }
    .hero-card-wrap { grid-template-columns: 1fr 1fr; }
    .hero-stat-card:first-child { grid-column: auto; }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-inner { padding: 56px 24px; border-radius: var(--radius-lg); }
}

@media (max-width: 480px) {
    .trouble-grid { grid-template-columns: 1fr; }
    .hero-card-wrap { grid-template-columns: 1fr; }
    .footer-nav-wrap { flex-direction: column; gap: 32px; }
    .results-grid { grid-template-columns: 1fr; }
    .result-item { border-right: none; border-bottom: 1px solid rgba(27,42,107,.15); }
    .result-item:last-child { border-bottom: none; }
    .hero-title { letter-spacing: -.02em; }
}
