:root {
    --bg: #0f1115;
    --bg-alt: #171a21;
    --panel: rgba(255, 255, 255, 0.04);
    --accent: #8dd0ff;
    --accent-strong: #5ac5ff;
    --text: #f7f7f7;
    --text-dim: rgba(247, 247, 247, 0.65);
    --border: rgba(255, 255, 255, 0.08);
    --font-base: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

.site-wrapper {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(19, 24, 32, 0.95), rgba(11, 12, 16, 0.95)),
                url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=2000&q=80')
                center/cover fixed;
}

.inner {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section-header {
    width: min(900px, 90vw);
    margin: 0 auto 3rem;
    text-align: center;
}

.section-description {
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(4, 6, 8, 0.7);
    border-bottom: 1px solid var(--border);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.05em;
}

.site-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.site-nav a {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.site-nav a:hover {
    background: var(--panel);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    display: block;
}

.hero {
    width: min(1200px, 90vw);
    margin: 0 auto;
    padding: 6rem 0 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.hero-eyebrow {
    color: var(--accent);
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin: 1rem 0;
}

.hero-lead {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
    background: linear-gradient(120deg, var(--accent-strong), #92ffe2);
    color: #04101d;
}

.btn.secondary {
    border-color: var(--border);
    color: var(--text);
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-stats {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    gap: 2rem;
    color: var(--text-dim);
}

.hero-stats span {
    display: block;
    font-size: 1.6rem;
    color: var(--text);
}

.hero-showcase {
    display: grid;
    gap: 1.5rem;
}

.mockup-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 2rem;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.35);
}

.mockup-card.secondary {
    border-style: dashed;
    color: var(--text-dim);
}

.about-grid,
.card-grid,
.work-grid,
.catalog-grid,
.timeline {
    width: min(1100px, 90vw);
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.about-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.about-grid article,
.card,
.work-card,
.catalog-grid article,
.timeline article {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    padding: 1.5rem;
}

.about-grid ul,
.card ul {
    padding-left: 1.2rem;
    color: var(--text-dim);
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.work-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.work-thumb {
    border-radius: 0.9rem;
    padding: 2rem;
    background: radial-gradient(circle at top, rgba(141, 208, 255, 0.3), transparent),
                var(--bg-alt);
    min-height: 160px;
    display: flex;
    align-items: flex-end;
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.work-thumb.alt {
    background: radial-gradient(circle at top, rgba(146, 255, 226, 0.3), transparent),
                var(--bg-alt);
}

.work-body h3 {
    margin-bottom: 0.5rem;
}

.text-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.catalog-grid ul {
    list-style: none;
    padding-left: 0;
}

.catalog-grid li + li {
    margin-top: 0.5rem;
}

.catalog-grid a {
    color: var(--text-dim);
    border-bottom: 1px solid transparent;
}

.catalog-grid a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.timeline {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline article span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    border: 1px solid var(--border);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.contact-form {
    width: min(700px, 90vw);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 0.9rem 1rem;
    color: var(--text);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid var(--accent);
}

.site-footer {
    text-align: center;
    padding: 2.5rem 1rem 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
}

@media (max-width: 800px) {
    .site-nav {
        position: absolute;
        inset: 100% 0 auto;
        background: rgba(4, 6, 8, 0.95);
        flex-direction: column;
        padding: 1rem 5vw 2rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }
}
