/* ========== Design Tokens ========== */
:root {
    --bg: #FAF6EF;
    --bg-2: #F2EADC;
    --bg-3: #ECE3D5;
    --ink: #1F2421;
    --ink-soft: #4A4A45;
    --ink-mute: #8B847B;
    --line: #E5DCC9;
    --line-strong: #D5C8AE;

    --accent: #2F5D49;
    --accent-deep: #1F4535;
    --accent-soft: #E4EEE8;
    --warm: #C84B4B;
    --warm-soft: #FAE3E1;

    --shadow-sm: 0 2px 6px rgba(60, 40, 20, 0.06);
    --shadow-md: 0 10px 30px rgba(60, 40, 20, 0.08);
    --shadow-lg: 0 30px 60px rgba(60, 40, 20, 0.12);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;

    --container: 1180px;
    --gutter: 24px;

    --t-fast: 180ms;
    --t-med: 320ms;
    --t-slow: 600ms;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --font-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-en: "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
    --font-ja: "Noto Sans JP", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
    --font-display: "Inter", "Noto Sans SC", "Noto Sans JP", sans-serif;
}

/* ========== Base ========== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-zh);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), backdrop-filter var(--t-med);
}

.site-header.is-scrolled {
    background: rgba(250, 246, 239, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.04);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform var(--t-med) var(--ease);
}

.brand:hover .brand-mark {
    transform: rotate(-6deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}

.primary-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.primary-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 6px 2px;
    position: relative;
    transition: color var(--t-fast);
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--t-med) var(--ease);
}

.primary-nav a:hover {
    color: var(--ink);
}

.primary-nav a:hover::after {
    transform: scaleX(1);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
}

.lang-toggle {
    font-family: var(--font-en);
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: transparent;
}

.lang-opt {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 2px 4px;
    border-radius: 999px;
    opacity: 0.45;
    cursor: pointer;
    transition: opacity var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.lang-opt:hover {
    opacity: 0.85;
}

.lang-opt.is-active {
    opacity: 1;
    color: var(--accent);
    font-weight: 700;
}

.lang-divider {
    opacity: 0.35;
    user-select: none;
}

.nav-burger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius-sm);
}

.nav-burger span {
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    transition: transform var(--t-med) var(--ease), opacity var(--t-med);
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px var(--gutter) 80px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(228, 238, 232, 0.6), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(250, 227, 225, 0.4), transparent 50%),
        var(--bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.snow-layer {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 70%);
    filter: blur(40px);
    opacity: 0.5;
}

.snow-layer-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -100px;
}

.snow-layer-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -50px;
    background: radial-gradient(circle, rgba(228, 238, 232, 0.7), transparent 70%);
}

.snow-layer-3 {
    width: 400px;
    height: 400px;
    top: 30%;
    right: 20%;
    background: radial-gradient(circle, rgba(250, 227, 225, 0.5), transparent 70%);
}

.hero-content {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    z-index: 2;
}

/* Leave room for the cabin illustration on desktop (all languages) */
@media (min-width: 981px) {
    .hero-content {
        max-width: min(600px, calc(100% - clamp(280px, 38vw, 480px)));
        margin-left: max(0px, calc((100% - var(--container)) / 2));
        margin-right: auto;
        width: 100%;
    }

    html[lang="en"] .hero-content,
    html[lang="ja"] .hero-content {
        max-width: min(520px, calc(100% - clamp(300px, 40vw, 500px)));
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: var(--accent-soft);
    border: 1px solid rgba(47, 93, 73, 0.18);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 800ms 100ms var(--ease) forwards;
}

.hero-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(40px, 7vw, 88px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 24px;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

@media (min-width: 981px) and (max-width: 1200px) {
    .hero-title {
        font-size: clamp(36px, 5.2vw, 68px);
    }
}

.hero-line-1, .hero-line-2 {
    display: block;
    opacity: 0;
    animation: fadeUp 900ms var(--ease) forwards;
}

.hero-line-1 {
    animation-delay: 200ms;
}

.hero-line-2 {
    animation-delay: 380ms;
    color: var(--accent);
}

.hero-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--ink-soft);
    max-width: 34em;
    margin-bottom: 36px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    opacity: 0;
    animation: fadeUp 900ms 560ms var(--ease) forwards;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 900ms 720ms var(--ease) forwards;
}

.hero-cabin {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(260px, 34vw, 460px);
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}

.cabin-float {
    width: 100%;
    filter: drop-shadow(0 30px 40px rgba(60, 40, 20, 0.18));
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
    opacity: 0;
    animation: fadeIn 1s 1.2s var(--ease) forwards;
}

.scroll-arrow {
    font-size: 16px;
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(47, 93, 73, 0.25);
}

.btn-primary:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(47, 93, 73, 0.32);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    transform: translateY(-2px);
}

/* ========== Section Base ========== */
.section {
    padding: 110px 0;
    position: relative;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    position: relative;
    padding: 0 18px;
}

.section-kicker::before, .section-kicker::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.section-kicker::before { left: 0; }
.section-kicker::after { right: 0; }

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-sub {
    font-size: 16px;
    color: var(--ink-mute);
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
}

/* ========== About ========== */
.section-about {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 80px;
    align-items: start;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: transform var(--t-med) var(--ease), border-color var(--t-med), box-shadow var(--t-med);
}

.stat:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.stat-num {
    font-family: var(--font-en);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
}

.stat-unit {
    font-size: 20px;
    color: var(--accent);
    margin-left: 2px;
}

.stat-label {
    font-size: 13px;
    color: var(--ink-mute);
    letter-spacing: 0.02em;
}

.about-text {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.85;
    min-width: 0;
    overflow-wrap: anywhere;
}

.about-lead {
    font-size: 18px;
    color: var(--ink);
    font-weight: 500;
}

.about-text strong {
    color: var(--accent);
    font-weight: 600;
}

.about-quote {
    margin-top: 24px;
    padding: 18px 22px;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--accent-deep);
    font-style: italic;
    font-weight: 500;
}

/* ========== Games ========== */
.section-games {
    background: var(--bg-2);
}

.game-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}

.game-info {
    min-width: 0;
}

.game-card:last-child {
    margin-bottom: 0;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.game-card-2 {
    background: linear-gradient(160deg, #1A1418 0%, #2A1F22 100%);
    border-color: rgba(255, 255, 255, 0.06);
    color: #F0E8DD;
}

.game-card-2 .game-meta,
.game-card-2 .game-tagline {
    color: rgba(240, 232, 221, 0.7);
}

.game-card-2 .game-desc {
    color: rgba(240, 232, 221, 0.8);
}

.game-card-2 .game-name {
    color: #F0E8DD;
}

.game-card-2 .game-facts {
    border-color: rgba(240, 232, 221, 0.15);
}

.game-card-2 .game-facts li {
    border-color: rgba(240, 232, 221, 0.1);
}

.game-card-2 .game-facts li span {
    color: rgba(240, 232, 221, 0.55);
}

.game-card-2 .game-facts li strong {
    color: #FF9999;
}

.game-card-2 .btn-ghost {
    color: #F0E8DD;
    border-color: rgba(240, 232, 221, 0.3);
}

.game-card-2 .btn-ghost:hover {
    background: #F0E8DD;
    color: #1A1418;
    border-color: #F0E8DD;
}

.game-card-2 .btn-primary {
    background: #E04A6F;
    box-shadow: 0 6px 16px rgba(224, 74, 111, 0.3);
}

.game-card-2 .btn-primary:hover {
    background: #C7385D;
    box-shadow: 0 10px 24px rgba(224, 74, 111, 0.45);
}

.game-visual {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.game-kv-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-3);
    box-shadow: var(--shadow-md);
    transition: transform var(--t-slow) var(--ease);
}

.game-card:hover .game-kv-frame {
    transform: scale(1.02);
}

.game-kv-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.game-tag-released {
    background: rgba(47, 93, 73, 0.9);
    color: #fff;
}

.game-tag-dev {
    background: rgba(255, 153, 153, 0.92);
    color: #1A1418;
}

.game-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--ink-mute);
}

.game-year {
    font-family: var(--font-en);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.game-genre {
    position: relative;
    padding-left: 14px;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.game-genre::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 1px;
    background: var(--line-strong);
}

.game-title {
    font-size: clamp(28px, 3.5vw, 40px);
    margin-bottom: 12px;
    line-height: 1.1;
}

.game-name {
    color: var(--ink);
}

.game-tagline {
    font-size: 17px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 18px;
    font-style: italic;
}

.game-desc {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 24px;
}

.game-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}

.game-facts-2 {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    border-top: none;
    margin-bottom: 0;
}

.game-facts-1 {
    grid-template-columns: 1fr;
}

.game-release-row {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.game-release {
    margin: 0 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink-mute);
    line-height: 1.2;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.35);
    box-sizing: border-box;
    min-height: 44px;
}

.game-card-2 .game-release-row {
    border-color: rgba(240, 232, 221, 0.15);
}

.game-card-2 .game-release {
    color: rgba(240, 232, 221, 0.85);
    border-color: rgba(240, 232, 221, 0.22);
    background: rgba(240, 232, 221, 0.06);
}

html[lang="en"] .game-release,
html[lang="ja"] .game-release {
    font-family: var(--font-en);
}

.game-release-row .game-actions {
    margin: 0;
}

.game-facts-2 li {
    justify-content: flex-start;
    gap: 10px;
    padding: 16px 0;
    border-bottom: none;
    border-top: 1px solid var(--line);
}

.game-facts-2 li strong {
    font-size: 16px;
}

.game-facts li {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.game-facts li span {
    color: var(--ink-mute);
    flex: 0 1 auto;
}

.game-facts li strong {
    color: var(--ink);
    font-family: var(--font-en);
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}

.game-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========== Team ========== */
.section-team {
    background: var(--bg);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.member-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 48px;
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med), border-color var(--t-med);
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.member-card:has(.member-info-full) {
    display: block;
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.member-info-full {
    width: 100%;
}

.member-portrait {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.member-portrait-placeholder {
    background: linear-gradient(135deg, var(--accent-soft), var(--bg-3));
}

.member-portrait-placeholder .member-initial {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--accent);
}

.member-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-portrait::after {
    content: "Photo";
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-family: var(--font-en);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(250, 246, 239, 0.85);
    color: var(--ink-mute);
    padding: 2px 6px;
    border-radius: 4px;
    display: var(--placeholder-label, none);
}

.member-portrait-placeholder::after {
    display: block;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-role {
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
}

.member-name {
    font-size: 28px;
    color: var(--ink);
    margin-bottom: 14px;
}

.member-bio {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}

.member-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.member-tags li {
    font-size: 12px;
    padding: 5px 12px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-radius: 999px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* ========== Contact ========== */
.section-contact {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: transform var(--t-med) var(--ease), border-color var(--t-med);
    min-width: 0;
}

.contact-card:not(.contact-card-social) {
    container-type: inline-size;
    container-name: contact-mail;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-label {
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 12px;
}

.contact-value {
    --contact-email-max: 22;
    --contact-email-min: 11;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    word-break: keep-all;
    transition: color var(--t-fast);
    margin-bottom: 8px;
}

.contact-value:hover {
    color: var(--accent-deep);
}

.contact-hint {
    font-size: 12px;
    color: var(--ink-mute);
    font-style: italic;
}

.contact-card-social {
    display: flex;
    flex-direction: column;
}

.social-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.social-list li {
    list-style: none;
    min-width: 0;
}

.social-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.social-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

.social-chip span {
    min-width: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-chip:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(47, 93, 73, 0.18);
}

.game-card-2 .social-chip {
    background: rgba(255, 153, 153, 0.12);
    color: #FF9999;
}

.game-card-2 .social-chip:hover {
    background: #FF9999;
    color: #1A1418;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.footer-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.footer-meta {
    text-align: right;
    font-size: 13px;
    line-height: 1.6;
}

.footer-meta p {
    margin: 0;
}

.footer-company {
    color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px !important;
}

.footer-icp {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px !important;
    margin-top: 4px !important;
}

/* ========== Reveal Animation ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

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

/* ========== Animations ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floatIn {
    from { opacity: 0; transform: translate(40px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
}

@keyframes cabinFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.5; }
}

/* ========== Responsive ========== */
@media (max-width: 980px) {
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(250, 246, 239, 0.96);
        backdrop-filter: blur(12px);
        padding: 20px var(--gutter);
        gap: 18px;
        border-bottom: 1px solid var(--line);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .nav-burger {
        display: flex;
    }

    .hero-cabin {
        right: 2%;
        top: 14%;
        width: 220px;
        opacity: 0.55;
    }

    .about-grid,
    .game-card,
    .team-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .game-card {
        padding: 28px;
    }

    .section {
        padding: 80px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-meta {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .brand-text {
        display: none;
    }

    .hero {
        padding: 100px var(--gutter) 60px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat {
        padding: 20px 16px;
    }

    .stat-num {
        font-size: 28px;
    }

    .member-card {
        flex-direction: column;
        padding: 28px;
    }

    .member-portrait {
        width: 100px;
        height: 100px;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .game-actions {
        flex-direction: column;
    }

    .game-actions .btn {
        justify-content: center;
    }

    .game-release-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .game-release,
    .game-card-2 .game-release {
        margin-left: 0;
        font-size: 14px;
        padding: 12px 22px;
        min-height: 44px;
    }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========== Language Mode Adjustments ========== */
html[lang="en"] body {
    font-family: var(--font-en);
}

html[lang="ja"] body {
    font-family: var(--font-ja);
}

html[lang="en"] .game-name,
html[lang="ja"] .game-name {
    font-family: inherit;
}

/* Longer EN/JA display type */
html[lang="en"] .hero-title,
html[lang="ja"] .hero-title {
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

html[lang="ja"] .hero-title,
html[lang="ja"] .game-title,
html[lang="ja"] .section-title {
    word-break: keep-all;
    line-break: strict;
    overflow-wrap: normal;
}

html[lang="en"] .section-title,
html[lang="ja"] .section-title {
    font-size: clamp(28px, 3.6vw, 42px);
}

html[lang="en"] .game-title,
html[lang="ja"] .game-title {
    font-size: clamp(24px, 3vw, 34px);
}

html[lang="en"] .brand-name,
html[lang="ja"] .brand-name {
    font-size: 13px;
    letter-spacing: -0.01em;
}

html[lang="en"] .member-role,
html[lang="ja"] .member-role {
    letter-spacing: 0.06em;
}

html[lang="en"] .stat-label,
html[lang="ja"] .stat-label {
    line-height: 1.35;
}

html[lang="en"] .about-grid,
html[lang="ja"] .about-grid {
    gap: 56px;
}

html[lang="ja"] .hero-sub,
html[lang="ja"] .about-text,
html[lang="ja"] .game-desc,
html[lang="ja"] .member-bio,
html[lang="ja"] .section-sub {
    line-height: 1.85;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    html[lang="en"] .primary-nav,
    html[lang="ja"] .primary-nav {
        gap: 16px;
    }

    html[lang="en"] .primary-nav a,
    html[lang="ja"] .primary-nav a {
        font-size: 13px;
    }

    .lang-toggle {
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media (max-width: 980px) {
    .hero-content {
        max-width: var(--container);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 56px);
    }

    html[lang="en"] .hero-title,
    html[lang="ja"] .hero-title {
        font-size: clamp(28px, 7vw, 44px);
    }
}