:root {
    --paper: #f7f3eb;
    --ink: #2c2a26;
    --muted: #6b6560;
    --celadon: #7a9e9f;
    --celadon-deep: #5d7d7e;
    --line: rgba(44, 42, 38, 0.14);
    --serif: 'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', 'Hiragino Mincho ProN', 'Yu Mincho',
        'Songti TC', serif;
    --sans: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--serif);
    letter-spacing: 0.06em;
}

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

.grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 20;
    opacity: 0.045;
    background-image: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(44, 42, 38, 0.35) 2px,
            rgba(44, 42, 38, 0.35) 3px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(44, 42, 38, 0.2) 3px,
            rgba(44, 42, 38, 0.2) 4px
        );
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 28px 40px;
    animation: fade-down 1s ease both;
}

.brand {
    font-size: 15px;
    letter-spacing: 0.28em;
}

.nav {
    display: flex;
    gap: 28px;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.22em;
}

.nav a {
    color: var(--muted);
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--celadon-deep);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-side {
    position: absolute;
    left: 36px;
    top: 50%;
    margin: 0;
    writing-mode: vertical-rl;
    letter-spacing: 0.55em;
    color: var(--celadon);
    font-size: 13px;
    animation: fade-in 1.4s 0.2s ease both;
}

.hero-inner {
    text-align: center;
}

.seal {
    width: 76px;
    height: 76px;
    margin: 0 auto 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--celadon);
    border-radius: 50%;
    box-shadow: inset 0 0 0 5px rgba(122, 158, 159, 0.18);
    animation: fade-up 1s ease both, breathe 4.8s 1s ease-in-out infinite;
    transform-origin: center;
}

.seal span {
    font-size: 26px;
    line-height: 1;
}

.kana {
    margin: 0 0 12px;
    color: var(--celadon-deep);
    font-size: 13px;
    letter-spacing: 0.42em;
    animation: fade-up 1s 0.15s ease both;
}

.hero h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 400;
    letter-spacing: 0.28em;
    line-height: 1.35;
    animation: fade-up 1.1s 0.25s ease both;
}

.lead {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 16px;
    letter-spacing: 0.32em;
    animation: fade-up 1.1s 0.4s ease both;
}

.rule {
    display: block;
    width: 48px;
    height: 1px;
    margin: 32px auto 0;
    background: var(--celadon);
    animation: grow 1.2s 0.55s ease both;
}

.sub {
    margin: 20px 0 0;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.36em;
    color: var(--muted);
    animation: fade-up 1.1s 0.65s ease both;
}

.scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.4em;
    color: var(--muted);
    animation: fade-in 1.2s 1s ease both, bob 2.8s 1.6s ease-in-out infinite;
}

.section {
    max-width: 920px;
    margin: 0 auto;
    padding: 96px 28px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--celadon-deep);
    font-size: 12px;
    letter-spacing: 0.48em;
}

.section h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 400;
    letter-spacing: 0.22em;
    line-height: 1.5;
}

.copy {
    max-width: 36em;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.12em;
}

.philosophy {
    border-top: 1px solid var(--line);
    animation: fade-up 1s 0.1s ease both;
}

.lines {
    padding-top: 24px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.card {
    padding: 32px 24px 28px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.28);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:nth-child(1) {
    animation: fade-up 0.9s 0.1s ease both;
}

.card:nth-child(2) {
    animation: fade-up 0.9s 0.22s ease both;
}

.card:nth-child(3) {
    animation: fade-up 0.9s 0.34s ease both;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--celadon);
    box-shadow: 0 18px 40px rgba(44, 42, 38, 0.06);
}

.card-kana {
    margin: 0 0 18px;
    color: var(--celadon);
    font-size: 12px;
    letter-spacing: 0.32em;
}

.card h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.24em;
}

.card p:last-child {
    margin: 16px 0 0;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.08em;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 28px;
    padding: 40px 24px 48px;
    border-top: 1px solid var(--line);
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.copyright {
    margin: 0;
}

.site-footer a {
    color: var(--muted);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--celadon-deep);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes grow {
    from {
        opacity: 0;
        transform: scaleX(0.2);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes breathe {
    0%,
    100% {
        box-shadow: inset 0 0 0 5px rgba(122, 158, 159, 0.18);
    }
    50% {
        box-shadow: inset 0 0 0 8px rgba(122, 158, 159, 0.32);
    }
}

@keyframes bob {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 20px 20px;
    }

    .hero-side {
        display: none;
    }

    .hero h1 {
        letter-spacing: 0.16em;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
