:root {
    --bg-dark: #1c130f;
    --bg-mid: #4a2f1e;
    --bg-soft: #fff6ee;
    --surface: rgba(255, 249, 242, 0.95);
    --surface-strong: rgba(255, 255, 255, 0.98);
    --ink: #4a2c20;
    --muted: #8a6b5a;
    --line: rgba(74, 44, 32, 0.12);
    --accent: #5ed6df;
    --accent-strong: #0f8086;
    --accent-soft: #cff9fc;
    --warm: #ffb367;
    --warm-strong: #ba6d1f;
    --ember: #ff6e5f;
    --ember-strong: #b94134;
    --shadow: 0 28px 68px rgba(24, 14, 10, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "IBM Plex Sans JP", sans-serif;
    background:
        radial-gradient(circle at 14% 14%, rgba(94, 214, 223, 0.18), transparent 18%),
        radial-gradient(circle at 84% 18%, rgba(255, 179, 103, 0.18), transparent 18%),
        linear-gradient(180deg, #1c130f 0%, #4a2f1e 18%, #f7eee6 18.1%, #fffdfb 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px),
        radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.6px),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 320px 320px, 260px 260px, 44px 44px, 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.14));
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

canvas {
    display: block;
    width: 100%;
    height: auto;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 82px;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 18px 0 20px;
    padding: 16px 22px;
    border-radius: 999px;
    background: rgba(28, 19, 15, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.brand {
    color: #fff8f2;
    font-family: "Shippori Mincho", serif;
    font-size: 1.14rem;
    letter-spacing: 0.1em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    color: rgba(255, 244, 236, 0.84);
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
    color: white;
}

.section,
.signal-strip,
.site-footer {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible,
.site-footer.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 24px;
    padding: 34px 0 22px;
}

.hero-copy,
.hero-panel,
.concept-card,
.formula-card,
.demo-panel,
.status-card,
.link-card,
.signal-strip,
.hero-note {
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-copy {
    min-width: 0;
    padding: 42px 32px 42px 38px;
    border-radius: 38px;
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -72px -132px auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 222, 176, 0.6), rgba(255, 222, 176, 0));
}

.hero-panel {
    min-width: 0;
    padding: 26px;
    border-radius: 36px;
    display: grid;
    gap: 18px;
    background: rgba(238, 220, 203, 0.26);
}

.eyebrow,
.card-label,
.signal-kicker {
    margin: 0 0 12px;
    color: var(--accent-strong);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

h1,
h2,
h3,
.brand,
.formula-block,
.signal-main,
.canvas-caption strong {
    font-family: "Shippori Mincho", serif;
}

h1,
h2,
h3,
.brand {
    line-height: 1.15;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(2.65rem, 5vw, 4.45rem);
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    letter-spacing: -0.03em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.34rem;
}

.hero-lead,
.section-heading p,
.concept-card p,
.formula-card p,
.hero-note p,
.demo-note,
.canvas-caption,
.status-card p,
.link-card p,
.site-footer p,
.signal-sub {
    color: var(--muted);
}

.hero-lead {
    margin: 20px 0 0;
    font-size: 1.04rem;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    cursor: pointer;
}

.button:hover,
.button:focus-visible,
.mode-chip:hover,
.mode-chip:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: #fbffff;
    background: linear-gradient(135deg, #0f8086, #5ed6df);
    box-shadow: 0 14px 30px rgba(15, 128, 134, 0.24);
}

.button-secondary {
    color: var(--ink);
    border-color: rgba(74, 44, 32, 0.12);
    background: rgba(255, 255, 255, 0.74);
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    gap: 12px;
}

.hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.7;
}

.hero-points li::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-top: 0.55em;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--accent), var(--warm));
    box-shadow: 0 0 18px rgba(94, 214, 223, 0.44);
}

.microwave-window {
    position: relative;
    min-height: 320px;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 18%, rgba(94, 214, 223, 0.12), transparent 20%),
        radial-gradient(circle at 78% 18%, rgba(255, 179, 103, 0.14), transparent 20%),
        linear-gradient(180deg, #211711 0%, #342217 44%, #5e3c25 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.grid-layer,
.oven-shell,
.door-frame,
.door-window,
.standing-bar,
.tray-disc,
.meal-core,
.steam,
.control-panel,
.knob,
.display-panel,
.magnetron-core,
.wave-trace,
.panel-tag {
    position: absolute;
}

.grid-layer {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.45;
}

.oven-shell {
    right: 8%;
    top: 17%;
    width: 72%;
    height: 62%;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(31, 23, 19, 0.96), rgba(60, 40, 27, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
}

.door-frame {
    left: 20px;
    top: 18px;
    width: 70%;
    height: calc(100% - 36px);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.door-window {
    inset: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(12, 19, 25, 0.98), rgba(25, 37, 49, 0.96));
    overflow: hidden;
}

.standing-bar {
    top: 0;
    bottom: 0;
    width: 14%;
    background: linear-gradient(180deg, rgba(94, 214, 223, 0.22), rgba(94, 214, 223, 0));
    filter: blur(1px);
}

.bar-a { left: 8%; }
.bar-b { left: 31%; }
.bar-c { left: 54%; }
.bar-d { left: 77%; }

.tray-disc {
    left: 50%;
    bottom: 10%;
    width: 62%;
    height: 16%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(233, 241, 248, 0.88), rgba(150, 164, 182, 0.9));
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.22);
}

.meal-core {
    left: 50%;
    bottom: 18%;
    width: 30%;
    height: 16%;
    transform: translateX(-50%);
    border-radius: 48% 52% 42% 58% / 46% 40% 60% 54%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 207, 143, 0.95), rgba(255, 110, 95, 0.82));
    box-shadow: 0 0 24px rgba(255, 110, 95, 0.28);
}

.steam {
    width: 16px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-color: rgba(255, 255, 255, 0.32) transparent transparent transparent;
    filter: blur(0.3px);
}

.steam-a {
    left: 42%;
    bottom: 34%;
}

.steam-b {
    left: 50%;
    bottom: 38%;
}

.steam-c {
    left: 58%;
    bottom: 34%;
}

.control-panel {
    right: 18px;
    top: 18px;
    width: calc(30% - 24px);
    height: calc(100% - 36px);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.knob {
    left: 50%;
    width: 42px;
    height: 42px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(230, 236, 242, 0.9), rgba(124, 135, 147, 0.9));
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.22);
}

.knob::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 4px;
    background: rgba(63, 78, 97, 0.9);
}

.knob-a { top: 22px; }
.knob-b { top: 86px; }

.display-panel {
    left: 50%;
    bottom: 24px;
    width: 72%;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(94, 214, 223, 0.74), rgba(255, 207, 143, 0.5));
}

.magnetron-core {
    left: 6%;
    top: 42%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 207, 143, 0.94), rgba(255, 110, 95, 0.82), rgba(255, 110, 95, 0));
    box-shadow: 0 0 30px rgba(255, 110, 95, 0.3);
}

.magnetron-core::before,
.magnetron-core::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.28);
}

.magnetron-core::after {
    inset: 18px;
}

.wave-trace {
    left: 13%;
    height: 2px;
    background: linear-gradient(90deg, rgba(94, 214, 223, 0.94), rgba(94, 214, 223, 0));
    transform-origin: left center;
    filter: drop-shadow(0 0 6px rgba(94, 214, 223, 0.2));
}

.wave-a {
    top: 46%;
    width: 164px;
    transform: rotate(-10deg);
}

.wave-b {
    top: 50%;
    width: 176px;
    transform: rotate(2deg);
}

.wave-c {
    top: 54%;
    width: 164px;
    transform: rotate(14deg);
}

.panel-tag {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(28, 19, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 248, 242, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tag-wave {
    left: 8%;
    top: 12%;
}

.tag-loss {
    right: 10%;
    top: 12%;
}

.tag-cavity {
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
}

.hero-note-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.hero-note,
.concept-card,
.formula-card,
.status-card,
.link-card {
    border-radius: 26px;
    padding: 22px 22px 20px;
}

.hero-note {
    min-height: 0;
}

.strong-card,
.strong-note {
    background: linear-gradient(145deg, rgba(249, 253, 255, 0.98), rgba(225, 244, 246, 0.92));
}

.warm-card,
.warm-note {
    background: linear-gradient(145deg, rgba(255, 247, 228, 0.98), rgba(255, 228, 185, 0.92));
}

.night-card,
.night-note {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(160deg, rgba(27, 19, 15, 0.97), rgba(69, 43, 28, 0.93));
}

.night-card h3,
.night-card h2,
.night-note h2,
.night-card .card-label,
.night-note .card-label,
.night-card .formula-block,
.night-note .formula-block,
.status-card.night-card h3,
.link-card.night-card h3 {
    color: rgba(255, 249, 242, 0.96);
}

.night-card p,
.night-note p,
.status-card.night-card p,
.link-card.night-card p {
    color: rgba(237, 224, 214, 0.84);
}

.signal-strip {
    position: relative;
    overflow: hidden;
    margin: 10px 0 16px;
    padding: 24px 28px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(28, 19, 15, 0.96), rgba(66, 42, 27, 0.92));
    color: #fff8f2;
    display: grid;
    gap: 8px;
}

.signal-strip::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 214, 223, 0.18), rgba(94, 214, 223, 0));
}

.signal-kicker {
    margin-bottom: 2px;
    color: rgba(207, 249, 252, 0.82);
}

.signal-main {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.34rem);
    line-height: 1.2;
}

.signal-sub {
    margin: 0;
    color: rgba(255, 241, 232, 0.82);
    line-height: 1.8;
}

.section {
    padding: 38px 0 4px;
}

.section-heading {
    max-width: 860px;
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.section-heading p {
    margin-bottom: 0;
    line-height: 1.85;
}

.concept-grid,
.formula-strip,
.link-grid,
.status-panel {
    display: grid;
    gap: 16px;
}

.concept-grid,
.link-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.formula-strip {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 18px;
}

.formula-block {
    margin-bottom: 12px;
    font-size: clamp(1.02rem, 1.9vw, 1.34rem);
    color: var(--ink);
    line-height: 1.6;
}

.concept-card,
.link-card {
    min-height: 198px;
}

.demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
    gap: 18px;
    align-items: start;
}

.demo-panel {
    border-radius: 32px;
    padding: 24px;
}

.mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.mode-chip {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(74, 44, 32, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mode-chip.is-active {
    color: #fbffff;
    border-color: transparent;
    background: linear-gradient(135deg, #0f8086, #5ed6df);
    box-shadow: 0 14px 30px rgba(15, 128, 134, 0.24);
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.control {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
}

.control span {
    color: var(--muted);
}

.control strong {
    color: var(--ink);
    font-size: 1.08rem;
}

.control input[type="range"] {
    width: 100%;
    accent-color: var(--accent-strong);
}

.canvas-frame {
    margin-top: 18px;
    padding: 14px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(27, 19, 15, 0.98), rgba(51, 33, 23, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#microwaveCanvas {
    border-radius: 22px;
    background: #140f0b;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.canvas-caption,
.demo-note {
    margin-bottom: 0;
    line-height: 1.75;
}

.canvas-caption {
    margin-top: 14px;
}

.demo-note {
    margin-top: 12px;
}

.status-panel {
    grid-template-columns: 1fr;
}

.status-card {
    min-height: 120px;
}

.status-card h3,
.link-card h3 {
    font-size: 1.14rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card .button {
    margin-top: auto;
}

.site-footer {
    margin-top: 38px;
    padding: 30px 32px;
    border-radius: 34px;
    background: rgba(28, 19, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.site-footer p {
    color: rgba(255, 240, 232, 0.84);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    color: rgba(255, 240, 232, 0.84);
}

.footer-links a {
    transition: color 180ms ease;
}

@media (max-width: 1024px) {
    .hero,
    .demo-grid {
        grid-template-columns: 1fr;
    }

    .status-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100%, calc(100% - 20px));
    }

    .site-header {
        border-radius: 28px;
        padding: 16px 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-copy,
    .hero-panel,
    .demo-panel,
    .site-footer {
        border-radius: 28px;
    }

    .hero-copy {
        padding: 34px 24px 34px 26px;
    }

    .hero-panel,
    .demo-panel {
        padding: 20px;
    }

    .control-grid,
    .status-panel {
        grid-template-columns: 1fr;
    }

    .mode-chip,
    .button {
        width: 100%;
    }

    .microwave-window {
        min-height: 286px;
    }

    .panel-tag {
        font-size: 0.72rem;
    }
}