/* ===================================================================
   HOSHINA AI — CYBER FUTURE DARK THEME
   =================================================================== */

:root {
    --c-ink: #dce9ff;
    --c-ink-soft: #a8c0e0;
    --c-muted: #6a88a8;
    --c-muted-2: #4a6280;
    --c-line: rgba(255, 109, 45, 0.18);
    --c-card: rgba(11, 22, 44, 0.85);
    --c-surface: rgba(8, 16, 32, 0.9);
    --c-surface-strong: rgba(13, 26, 50, 0.95);
    --c-accent: #ff6d2d;
    --c-accent-strong: #ff4500;
    --c-accent-warm: #ffaa00;
    --c-cyber: #00ccff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.6);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    /* Tags — brighter for dark bg */
    --tag-finance-bg: rgba(14, 165, 233, 0.18);
    --tag-finance-fg: #38bdf8;
    --tag-medical-bg: rgba(16, 185, 129, 0.18);
    --tag-medical-fg: #34d399;
    --tag-logi-bg: rgba(251, 191, 36, 0.2);
    --tag-logi-fg: #fbbf24;
    --tag-construct-bg: rgba(163, 230, 53, 0.14);
    --tag-construct-fg: #a3e635;
    --tag-manufact-bg: rgba(99, 102, 241, 0.2);
    --tag-manufact-fg: #818cf8;
    --tag-ent-bg: rgba(236, 72, 153, 0.18);
    --tag-ent-fg: #f472b6;
    --tag-robotics-bg: rgba(255, 109, 45, 0.2);
    --tag-robotics-fg: #ff7a3d;
    --tag-ai-bg: rgba(255, 109, 45, 0.2);
    --tag-ai-fg: #ff7a3d;
    --tag-app-bg: rgba(139, 92, 246, 0.2);
    --tag-app-fg: #a78bfa;
    --tag-tech-bg: rgba(220, 233, 255, 0.07);
    --tag-tech-fg: #8aa8cc;
}

* { box-sizing: border-box }

/* ── BODY BACKGROUND ─────────────────────────────────────────── */
.site-body {
    margin: 0;
    color: var(--c-ink);
    font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
    background-color: #060b14;
    background-image:
        /* subtle cyber dot-grid */
        radial-gradient(circle, rgba(255, 109, 45, 0.12) 1px, transparent 1px),
        /* orange nebula glow top-left */
        radial-gradient(ellipse 900px 700px at 8% -8%, rgba(255, 109, 45, 0.16), transparent 65%),
        /* blue nebula glow top-right */
        radial-gradient(ellipse 1000px 800px at 96% -12%, rgba(30, 80, 255, 0.1), transparent 65%),
        /* purple bloom bottom-center */
        radial-gradient(ellipse 700px 500px at 50% 110%, rgba(120, 0, 255, 0.07), transparent 60%),
        /* base gradient */
        linear-gradient(160deg, #060b14 0%, #0a1020 50%, #060b14 100%);
    background-size:
        28px 28px,
        auto, auto, auto,
        100% 100%;
    background-attachment: fixed;
    position: relative;
    isolation: isolate;
    z-index: 0;
    min-height: 100vh;
}

/* Subtle scanline overlay — retro-future feel */
.site-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.04) 3px,
        rgba(0, 0, 0, 0.04) 4px
    );
}

.energy-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

.site-body h1,
.site-body h2,
.site-body h3,
.site-body h4,
.site-body h5 {
    font-family: "Space Grotesk", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    letter-spacing: -0.01em;
}

img { max-width: 100%; display: block }

a { color: inherit; text-decoration: none }
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(255, 109, 45, 0.6);
    outline-offset: 3px;
}

input, select, textarea, button { font-family: inherit }

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
[id] { scroll-margin-top: 96px }

/* ── HEADER ───────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(5, 9, 18, 0.88);
    border-bottom: 1px solid rgba(255, 109, 45, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(255, 109, 45, 0.08), 0 4px 24px rgba(0, 0, 0, 0.4);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    flex-wrap: wrap;
}
.brand {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff6d2d, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "Space Grotesk", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    filter: drop-shadow(0 0 10px rgba(255, 109, 45, 0.3));
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: .92rem;
    color: var(--c-muted-2);
}
.site-nav a {
    padding: .35em .7em;
    border-radius: 999px;
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-nav a:hover {
    color: var(--c-ink);
    background: rgba(255, 109, 45, 0.1);
}
.site-nav a[aria-current="page"] {
    color: var(--c-accent);
    background: rgba(255, 109, 45, 0.14);
    border: 1px solid rgba(255, 109, 45, 0.32);
    text-shadow: 0 0 12px rgba(255, 109, 45, 0.5);
    box-shadow: 0 0 12px rgba(255, 109, 45, 0.1);
}
.nav-cta {
    background: linear-gradient(135deg, rgba(255, 109, 45, 0.22), rgba(255, 170, 0, 0.22));
    border: 1px solid rgba(255, 109, 45, 0.4);
    color: var(--c-accent) !important;
    font-weight: 600;
}
.nav-cta:hover {
    background: linear-gradient(135deg, rgba(255, 109, 45, 0.32), rgba(255, 170, 0, 0.32)) !important;
    box-shadow: 0 0 16px rgba(255, 109, 45, 0.25) !important;
    color: var(--c-accent-warm) !important;
}

/* ── PAGE HERO (sub-pages) ────────────────────────────────────── */
.page-hero { padding: 56px 0 12px }
.page-hero h1 {
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    line-height: 1.1;
    margin: 6px 0 12px;
    font-family: "Outfit", "Space Grotesk", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background: linear-gradient(120deg, #ff6d2d 0%, #ffaa00 55%, #dce9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 109, 45, 0.2));
}
.page-lead {
    color: var(--c-muted);
    font-size: 1rem;
    max-width: 52ch;
}

/* ── HERO (top page) ──────────────────────────────────────────── */
.hero { padding: 72px 0 32px }
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
    align-items: center;
}
.hero-copy { display: flex; flex-direction: column }

.hero-eyebrow {
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--c-accent);
    font-weight: 700;
    text-shadow: 0 0 18px rgba(255, 109, 45, 0.55);
    animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 14px rgba(255, 109, 45, 0.5) }
    50% { text-shadow: 0 0 28px rgba(255, 109, 45, 0.9), 0 0 50px rgba(255, 170, 0, 0.3) }
}

.hero h1 {
    font-size: clamp(2.6rem, 4.4vw, 3.8rem);
    line-height: 1.05;
    margin: 8px 0 12px;
    font-family: "Outfit", "Space Grotesk", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background: linear-gradient(120deg, #ff6d2d 0%, #ffaa00 45%, #ffffff 85%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 28px rgba(255, 109, 45, 0.3));
    animation: heroGradientFlow 8s ease infinite;
}
@keyframes heroGradientFlow {
    0%, 100% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--c-muted);
    max-width: 34ch;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .7em 1.6em;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    position: relative;
}
.btn-primary {
    background: linear-gradient(135deg, #c83a00, #ff6d2d, #ffaa00);
    background-size: 200% 100%;
    color: #fff;
    box-shadow:
        0 0 20px rgba(255, 109, 45, 0.45),
        0 0 40px rgba(255, 109, 45, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 150, 80, 0.4);
    animation: btnGlow 4s ease-in-out infinite;
}
@keyframes btnGlow {
    0%, 100% {
        box-shadow: 0 0 18px rgba(255, 109, 45, 0.4), 0 8px 24px rgba(0,0,0,0.35);
        background-position: 0% 50%;
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 109, 45, 0.7), 0 0 60px rgba(255, 170, 0, 0.2), 0 8px 24px rgba(0,0,0,0.4);
        background-position: 100% 50%;
    }
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 40px rgba(255, 109, 45, 0.7),
        0 0 80px rgba(255, 170, 0, 0.25),
        0 12px 32px rgba(0, 0, 0, 0.5);
    animation: none;
}
.btn-ghost {
    background: rgba(255, 109, 45, 0.06);
    border: 1px solid rgba(255, 109, 45, 0.32);
    color: var(--c-ink);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    border-color: rgba(255, 109, 45, 0.65);
    background: rgba(255, 109, 45, 0.12);
    box-shadow: 0 0 18px rgba(255, 109, 45, 0.22), inset 0 0 12px rgba(255, 109, 45, 0.04);
    color: var(--c-ink);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px }

/* ── HERO PANEL ───────────────────────────────────────────────── */
.hero-panel {
    background: rgba(10, 20, 42, 0.78);
    border: 1px solid rgba(255, 109, 45, 0.28);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow:
        0 0 0 1px rgba(255, 109, 45, 0.05) inset,
        0 0 35px rgba(255, 109, 45, 0.08),
        var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.hero-panel-title {
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--c-muted-2);
    font-weight: 600;
}
.hero-panel-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
    color: var(--c-ink-soft);
}
.hero-panel-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.hero-panel-list li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    margin-top: 7px;
    background: linear-gradient(140deg, var(--c-accent), var(--c-accent-warm));
    flex: 0 0 7px;
    box-shadow: 0 0 8px rgba(255, 109, 45, 0.6);
}
.hero-panel-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35em .8em;
    border-radius: 999px;
    font-size: .72rem;
    background: rgba(255, 109, 45, 0.1);
    color: var(--c-accent);
    border: 1px solid rgba(255, 109, 45, 0.28);
}

/* ── MAIN LAYOUT ──────────────────────────────────────────────── */
.main-flow {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 36px 0 96px;
}

/* ── SECTION BLOCK ────────────────────────────────────────────── */
.section-block {
    background: linear-gradient(140deg, rgba(255, 109, 45, 0.05), rgba(0, 0, 0, 0)), rgba(10, 20, 42, 0.75);
    border: 1px solid rgba(255, 109, 45, 0.18);
    border-radius: 24px;
    padding: clamp(22px, 3.5vw, 36px);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}
/* Cyber corner bracket — top-left */
.section-block::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 22px;
    height: 22px;
    border-top: 2px solid rgba(255, 109, 45, 0.55);
    border-left: 2px solid rgba(255, 109, 45, 0.55);
    border-radius: 24px 0 0 0;
    pointer-events: none;
}
/* Cyber corner bracket — bottom-right */
.section-block::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    border-bottom: 2px solid rgba(255, 109, 45, 0.3);
    border-right: 2px solid rgba(255, 109, 45, 0.3);
    border-radius: 0 0 24px 0;
    pointer-events: none;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--c-ink);
}
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 109, 45, 0.85), rgba(255, 170, 0, 0.3), transparent);
    box-shadow: 0 0 8px rgba(255, 109, 45, 0.25);
}
.section-subtitle { font-size: 1rem; font-weight: 700; color: var(--c-ink) }
.section-lead { color: var(--c-muted); font-size: .95rem; margin-bottom: 20px }
.section-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── SERVICE ──────────────────────────────────────────────────── */
.service-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--c-ink) }
.service-desc { color: var(--c-muted); font-size: .95rem }

/* ── CASE GRID ────────────────────────────────────────────────── */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* ── PROJECT CARD ─────────────────────────────────────────────── */
.pj-card {
    background: rgba(10, 20, 42, 0.82);
    border: 1px solid rgba(255, 109, 45, 0.18);
    border-radius: var(--radius-lg);
    padding: 0;
    display: block;
    height: 100%;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
/* Glowing top accent line */
.pj-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-warm), transparent);
    box-shadow: 0 0 14px rgba(255, 109, 45, 0.7);
}
.pj-card .card-link,
.pj-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 20px;
    color: inherit;
    text-decoration: none;
}
.pj-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--c-ink) }
.pj-card p { margin: 0; color: var(--c-muted); font-size: .94rem }
.pj-card .sub { color: var(--c-muted-2); font-size: .9rem }

.meta, .tags, .other-meta, .other-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px }

/* ── BADGES ───────────────────────────────────────────────────── */
.badge {
    font-size: .72rem;
    line-height: 1;
    padding: .45rem .65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
    user-select: text;
    font-weight: 600;
    letter-spacing: .02em;
}
.badge--finance { background: var(--tag-finance-bg); color: var(--tag-finance-fg) }
.badge--medical { background: var(--tag-medical-bg); color: var(--tag-medical-fg) }
.badge--logi { background: var(--tag-logi-bg); color: var(--tag-logi-fg) }
.badge--domain-ai { background: var(--tag-ai-bg); color: var(--tag-ai-fg) }
.badge--domain-robotics { background: var(--tag-robotics-bg); color: var(--tag-robotics-fg) }
.badge--domain-app { background: var(--tag-app-bg); color: var(--tag-app-fg) }
.badge--tech {
    background: var(--tag-tech-bg);
    color: var(--tag-tech-fg);
    border: 1px solid rgba(220, 233, 255, 0.1);
}
.badge--ind-construct { background: var(--tag-construct-bg); color: var(--tag-construct-fg) }
.badge--ind-manufact { background: var(--tag-manufact-bg); color: var(--tag-manufact-fg) }
.badge--ind-robotics { background: var(--tag-robotics-bg); color: var(--tag-robotics-fg) }
.badge--ind-ai { background: var(--tag-ai-bg); color: var(--tag-ai-fg) }
.badge--ind-medical { background: var(--tag-medical-bg); color: var(--tag-medical-fg) }
.badge--ind-entertain { background: var(--tag-ent-bg); color: var(--tag-ent-fg) }
.badge--ind-app { background: var(--tag-app-bg); color: var(--tag-app-fg) }
.badge--industry-infra { background: rgba(14, 165, 233, 0.16); color: #38bdf8 }
.badge--industry-construction { background: var(--tag-construct-bg); color: var(--tag-construct-fg) }

/* ── CARD BUTTON ──────────────────────────────────────────────── */
.btn-wrap { display: flex; justify-content: flex-start; margin-top: auto; padding-top: 6px }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .6em 1.2em; border: 0; border-radius: 999px;
    background: linear-gradient(135deg, #c83a00, #ff6d2d);
    color: #fff; text-decoration: none;
    font-size: .85rem; font-weight: 600; line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 0 14px rgba(255, 109, 45, 0.35), 0 4px 12px rgba(0,0,0,0.3);
}
.pj-card:hover, .pj-card:active, .pj-card:focus-within {
    box-shadow: 0 0 30px rgba(255, 109, 45, 0.18), var(--shadow-lift);
    transform: translateY(-4px);
    border-color: rgba(255, 109, 45, 0.42);
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(255, 109, 45, 0.55), 0 8px 16px rgba(0,0,0,0.3);
}

/* ── OTHER CASES ──────────────────────────────────────────────── */
.other-cases {
    margin-top: 24px;
    border-top: 1px dashed rgba(255, 109, 45, 0.2);
    padding-top: 16px;
}
.other-cases summary {
    display: flex; align-items: center; gap: 8px;
    font-size: 1rem; font-weight: 700; cursor: pointer; user-select: none;
    color: var(--c-ink);
    background: rgba(8, 16, 32, 0.8);
    border: 1px solid rgba(255, 109, 45, 0.22);
    border-radius: 14px;
    padding: 10px 12px; margin: 0;
    list-style: none;
    backdrop-filter: blur(8px);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.other-cases summary:hover {
    border-color: rgba(255, 109, 45, 0.45);
    box-shadow: 0 0 14px rgba(255, 109, 45, 0.1);
}
.other-cases summary::-webkit-details-marker { display: none }
.other-cases .chev { margin-left: auto; transition: transform .2s ease }
.other-cases[open] .chev { transform: rotate(180deg) }
.other-list { display: grid; gap: 18px; margin-top: 14px }
.other-item { padding: 0 0 16px; border-bottom: 1px dashed rgba(255, 109, 45, 0.15) }
.other-item:last-child { border-bottom: none }
.other-item h5 { margin: 0 0 6px; font-size: .98rem; color: var(--c-ink) }
.other-desc { margin: 6px 0 0; color: var(--c-muted); font-size: .92rem; line-height: 1.7 }

/* ── SOLO CASE ────────────────────────────────────────────────── */
.solo-case .solo-wrap {
    max-width: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 16px; align-items: stretch;
}
.solo-case .solo-card {
    background: rgba(10, 20, 42, 0.82);
    border: 1px solid rgba(255, 109, 45, 0.18);
    border-radius: var(--radius-lg);
    box-sizing: border-box; padding: 20px;
    width: auto; margin: 0;
    box-shadow: var(--shadow-soft);
    position: relative; overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.solo-case .solo-card::before {
    content: "";
    position: absolute; top: 0; left: 0;
    height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-warm), transparent);
    box-shadow: 0 0 12px rgba(255, 109, 45, 0.6);
}
.solo-case h1 { display: none }
.solo-case .lead { display: none }
.solo-case .other-item { padding: 0; border: 0 }
.solo-case .other-item h5 {
    margin: 0 0 12px;
    font-size: 1.02rem; line-height: 1.55;
    letter-spacing: .01em; color: var(--c-ink);
}
.solo-case .other-meta,
.solo-case .other-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 }
.solo-case .other-desc {
    margin: 10px 0 0; color: var(--c-muted);
    font-size: .94rem; line-height: 1.8;
    letter-spacing: .02em; word-break: break-word;
}
.solo-case .other-desc + .other-desc { margin-top: 12px }
.solo-case .badge {
    font-size: .72rem; line-height: 1;
    padding: .45rem .65rem; border-radius: 999px;
    border: 1px solid transparent; white-space: nowrap; user-select: text;
}
.solo-case .badge--tech {
    background: var(--tag-tech-bg);
    color: var(--tag-tech-fg);
    border-color: rgba(220, 233, 255, 0.1);
}
.solo-case .solo-card:hover,
.solo-case .solo-card:active,
.solo-case .solo-card:focus-within {
    box-shadow: 0 0 25px rgba(255, 109, 45, 0.12), var(--shadow-lift);
    transform: translateY(-2px);
    border-color: rgba(255, 109, 45, 0.38);
}

/* ── PROFILE ──────────────────────────────────────────────────── */
.profile-photo {
    border-radius: 24px;
    border: 1px solid rgba(255, 109, 45, 0.28);
    box-shadow:
        0 0 0 4px rgba(255, 109, 45, 0.06),
        0 0 35px rgba(255, 109, 45, 0.12),
        var(--shadow-soft);
}
.profile-lead { color: var(--c-muted); font-size: .95rem; margin-bottom: 24px }

/* ── TIMELINE ─────────────────────────────────────────────────── */
.timeline {
    border-left: 2px solid rgba(255, 109, 45, 0.0);
    padding-left: 24px;
    display: grid;
    gap: 20px;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: -1px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(255, 109, 45, 0.9) 0%,
        rgba(255, 170, 0, 0.6) 40%,
        rgba(255, 109, 45, 0.2) 100%
    );
    filter: drop-shadow(0 0 4px rgba(255, 109, 45, 0.5));
}
.timeline-year {
    font-size: .72rem; letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin: 0; font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 109, 45, 0.4);
}
.timeline-role { font-weight: 700; color: var(--c-ink); margin: 2px 0 0 }
.timeline-desc { font-size: .92rem; color: var(--c-muted); margin: 6px 0 0 }

/* ── ACHIEVEMENT LIST ─────────────────────────────────────────── */
.achievement-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 10px; color: var(--c-muted);
}
.achievement-list li { position: relative; padding-left: 24px }
.achievement-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .6em;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--c-accent), var(--c-accent-warm));
    box-shadow: 0 0 10px rgba(255, 109, 45, 0.6);
}

/* ── OVERVIEW TABLE ───────────────────────────────────────────── */
.overview-table-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 109, 45, 0.18);
    background: rgba(7, 14, 28, 0.85);
    backdrop-filter: blur(8px);
}
.overview-table {
    width: 100%; border-collapse: collapse;
    font-size: .95rem; color: var(--c-ink);
}
.overview-table th,
.overview-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 109, 45, 0.1);
    vertical-align: top;
}
.overview-table th {
    width: 26%; color: var(--c-muted-2);
    background: rgba(255, 109, 45, 0.06);
    font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.overview-table tr:last-child th,
.overview-table tr:last-child td { border-bottom: none }

/* ── CONTACT FORM ─────────────────────────────────────────────── */
.contact-form {
    background: rgba(10, 20, 42, 0.82);
    border: 1px solid rgba(255, 109, 45, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.input-label {
    display: block; font-size: .85rem;
    font-weight: 600; color: var(--c-ink); margin-bottom: 6px;
}
.input-field {
    width: 100%; border-radius: 12px;
    border: 1px solid rgba(255, 109, 45, 0.22);
    background: rgba(5, 9, 18, 0.85);
    padding: 10px 14px; font-size: .95rem;
    color: var(--c-ink); box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input-field::placeholder { color: var(--c-muted-2) }
.input-field:focus {
    outline: none;
    border-color: rgba(255, 109, 45, 0.65);
    box-shadow:
        0 0 0 3px rgba(255, 109, 45, 0.14),
        0 0 18px rgba(255, 109, 45, 0.1);
}
.input-field option { background: #0a1020; color: var(--c-ink) }
select.input-field { color-scheme: dark }

.submit-btn {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #c83a00, #ff6d2d, #ffaa00);
    background-size: 200% 100%;
    color: #fff; padding: .7em 1.8em;
    font-size: .95rem; font-weight: 600; border: 0;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 0 22px rgba(255, 109, 45, 0.4), 0 8px 24px rgba(0,0,0,0.35);
    cursor: pointer;
}
.submit-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 35px rgba(255, 109, 45, 0.65), 0 10px 30px rgba(0,0,0,0.45);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
    margin-top: 40px; padding: 48px 0 36px;
    border-top: 1px solid rgba(255, 109, 45, 0.16);
    background: rgba(4, 8, 16, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.footer-brand {
    font-size: 1.05rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #ff6d2d, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "Space Grotesk", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    filter: drop-shadow(0 0 8px rgba(255, 109, 45, 0.25));
}
.footer-text { color: var(--c-muted-2); font-size: .9rem; margin: 0; line-height: 1.7 }
.footer-title {
    font-size: .78rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--c-muted-2);
    margin: 0 0 12px; font-weight: 600;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px }
.footer-links a {
    color: var(--c-ink); font-size: .92rem;
    transition: color .2s ease, text-shadow .2s ease;
}
.footer-links a:hover {
    color: var(--c-accent);
    text-shadow: 0 0 10px rgba(255, 109, 45, 0.35);
}
.footer-meta {
    margin-top: 24px; padding-top: 16px;
    border-top: 1px dashed rgba(255, 109, 45, 0.14);
    font-size: .78rem; color: var(--c-muted-2); text-align: center;
}

/* ── INFO LIST (infos.html) ───────────────────────────────────── */
.info-section-head {
    display: flex; align-items: flex-end;
    justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.info-count {
    font-size: .82rem; color: var(--c-muted-2);
    background: rgba(255, 109, 45, 0.1);
    border-radius: 999px; padding: .35em .9em;
    border: 1px solid rgba(255, 109, 45, 0.22);
}
.info-list { display: grid; gap: 18px; margin-top: 20px }
.info-card {
    background: rgba(10, 20, 42, 0.82);
    border: 1px solid rgba(255, 109, 45, 0.18);
    border-radius: var(--radius-md); padding: 20px 22px;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 109, 45, 0.1), var(--shadow-lift);
    border-color: rgba(255, 109, 45, 0.38);
}
.info-meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--c-muted-2) }
.info-date { font-weight: 600; color: var(--c-accent) }
.info-tag {
    display: inline-flex; align-items: center;
    border-radius: 999px; padding: .2em .85em;
    background: rgba(255, 109, 45, 0.15);
    color: var(--c-accent); font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; font-size: .68rem;
    border: 1px solid rgba(255, 109, 45, 0.28);
}
.info-title { margin: 12px 0 8px; font-size: 1.2rem }
.info-title a { color: inherit; transition: color .2s ease }
.info-title a:hover { color: var(--c-accent); text-shadow: 0 0 12px rgba(255, 109, 45, 0.3) }
.info-excerpt { margin: 0 0 12px; color: var(--c-muted) }
.info-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .9rem; color: var(--c-accent); font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 109, 45, 0.25);
}
.info-link::after { content: "→"; transition: transform .2s ease }
.info-link:hover::after { transform: translateX(4px) }
.info-empty, .info-error { margin-top: 20px; color: var(--c-muted-2) }
.info-error { color: #f87171 }

/* ── INFO ARTICLE (info.html) ─────────────────────────────────── */
.info-hero-meta {
    margin-top: 12px; display: flex; align-items: center;
    gap: 12px; color: var(--c-muted-2); font-size: .85rem;
}
.info-pill {
    display: inline-flex; align-items: center;
    border-radius: 999px; padding: .2em .85em;
    background: rgba(255, 109, 45, 0.15);
    color: var(--c-accent); font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; font-size: .68rem;
    border: 1px solid rgba(255, 109, 45, 0.28);
}
.info-article {
    background: rgba(10, 20, 42, 0.82);
    border: 1px solid rgba(255, 109, 45, 0.18);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 3vw, 36px);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.info-article p { margin: 0 0 16px; color: var(--c-muted) }
.info-article p:last-child { margin-bottom: 0 }
.info-article ul { margin: 0 0 16px; padding-left: 1.2em; color: var(--c-muted) }
.info-article li { margin-bottom: 8px }
.info-article a {
    color: var(--c-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.info-loading { margin: 0; color: var(--c-muted-2) }

/* ── ANIMATIONS ───────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px) }
    to { opacity: 1; transform: translateY(0) }
}
.hero { animation: fadeUp .9s ease both }
.main-flow > .section-block { animation: fadeUp .8s ease both }
.main-flow > .section-block:nth-of-type(2) { animation-delay: .06s }
.main-flow > .section-block:nth-of-type(3) { animation-delay: .12s }
.main-flow > .section-block:nth-of-type(4) { animation-delay: .18s }
.main-flow > .section-block:nth-of-type(5) { animation-delay: .24s }
.main-flow > .section-block:nth-of-type(6) { animation-delay: .30s }
.pj-card { animation: fadeUp .7s ease both }
.pj-card:nth-child(2) { animation-delay: .08s }
.pj-card:nth-child(3) { animation-delay: .16s }
.solo-card { animation: fadeUp .7s ease both }
.solo-card:nth-child(2) { animation-delay: .08s }
.solo-card:nth-child(3) { animation-delay: .16s }
.other-item { animation: fadeUp .7s ease both }
.other-item:nth-child(2) { animation-delay: .05s }
.other-item:nth-child(3) { animation-delay: .10s }
.other-item:nth-child(4) { animation-delay: .15s }
.other-item:nth-child(5) { animation-delay: .20s }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 920px) {
    .hero-inner { grid-template-columns: 1fr }
    .solo-case .solo-wrap { grid-template-columns: repeat(2, minmax(240px, 1fr)) }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 640px) {
    .page-container { padding: 0 18px }
    .hero { padding: 56px 0 24px }
    .nav-wrap { padding: 12px 0 }
    .site-nav { gap: 10px; font-size: .88rem }
    .page-hero { padding: 44px 0 8px }
    .footer-grid { grid-template-columns: 1fr }
}
@media (max-width: 620px) {
    .solo-case .solo-wrap { grid-template-columns: 1fr }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important }
    .energy-grid { display: none }
    .site-body::before { display: none }
}
