@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;700&family=Zen+Kaku+Gothic+New:wght@400;700&display=swap');

:root {
    --primary-bg: #1B3A56;   /* Game Muted Color */
    --accent-color: #72BDFF; /* Game Accent Color */
    --hover-color: #66A3E0;  /* Game Hover Color */
    --text-white: #ffffff;
    --text-dim: #aaaaaa;
    --bg-darker: #0e1f2f;
    --link-color: #ffdded;   /* Very Light Sakura */
    --link-hover: #ffffff;   /* Pure White */
    --font-serif: 'Shippori Mincho', serif;
    --font-sans: 'Zen Kaku Gothic New', sans-serif;
    --section-padding: 6rem 8%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-white);
    line-height: 1.7;
    background-color: var(--primary-bg);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, .serif {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 235, 250, 0.3);
    transition: all 0.3s ease;
}

a:visited {
    color: var(--link-color);
}

a:hover {
    color: var(--link-hover);
    border-bottom: 1px solid var(--link-hover);
    text-shadow: 0 0 8px rgba(255, 235, 250, 0.6);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(27, 58, 86, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-link {
    display: flex;
    align-items: center;
    border-bottom: none !important;
}

.studio-logo-icon {
    height: 44px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.studio-link:hover .studio-logo-icon {
    opacity: 1;
}

.game-logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: none !important;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

.lang-switch,
.lang-switch:visited {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--text-white);
    text-decoration: none !important;
    color: var(--text-white) !important;
    transition: all 0.3s;
    border-bottom: 1px solid var(--text-white) !important;
}

.lang-switch:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-bg);
}

/* Hero Section */
.hero {
    height: 62vh;
    min-height: 500px;
    background: url('image/title0420.webp') no-repeat right center / cover;
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
    margin-top: 70px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(27, 58, 86, 0.9) 0%, rgba(27, 58, 86, 0.4) 40%, rgba(27, 58, 86, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
}

.game-title {
    font-size: 2.8rem;
    color: var(--text-white);
    margin-bottom: 0.1rem;
}

.game-subtitle {
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.eng-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.eng-title span {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.catch-copy {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    color: var(--text-white);
}

/* Common Section Layout */
section {
    padding: var(--section-padding);
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title h2 {
    font-size: 1.8rem;
    letter-spacing: 0.3em;
    color: var(--text-white);
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
    text-transform: uppercase;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.section-title p {
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

/* Story / Agency */
.story-content, .agency-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.story-content p, .agency-text p {
    margin-bottom: 1.8rem;
    line-height: 2;
}

/* Movies Gallery */
.movies-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.movie-item {
    text-align: center;
}

.movie-label {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Follow Banner */
.follow-banner-wrapper {
    max-width: 480px;
    margin: 3rem auto 0;
}

.follow-banner-link {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.follow-banner-link:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.follow-banner-img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.4s ease;
}

.follow-banner-link:hover .follow-banner-img {
    filter: brightness(0.6);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.follow-banner-link:hover .banner-overlay {
    opacity: 1;
}

.banner-overlay span {
    background: #ffffff;
    color: #000000;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.follow-banner-link:hover .banner-overlay span {
    transform: translateY(0);
}

.follow-caption {
    margin-top: 1.5rem;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    color: #ffffff;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Characters */
.char-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.char-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem;
    border-radius: 2px;
    transition: all 0.4s ease;
    text-align: center;
}

.char-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.char-img-box {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #000;
}

.char-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.6s ease;
}

.char-card:hover .char-img-box img {
    opacity: 1;
    transform: scale(1.04);
}

.char-role {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.15em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
}

.char-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-white);
}

.char-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: left;
    line-height: 1.8;
}

/* System */
.system-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

/* Info Table */
.info-table {
    max-width: 750px;
    margin: 0 auto;
    background: rgba(0,0,0,0.15);
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item dt {
    font-weight: 700;
    color: var(--accent-color);
    width: 30%;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.info-item dd {
    width: 70%;
    color: var(--text-white);
    font-size: 0.9rem;
}

/* Multilingual screenshot hover effect */
.lang-screenshot-item {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}
.lang-screenshot-item:hover {
    transform: scale(2.5);
    border-color: var(--accent-color) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
    z-index: 10;
}
.lang-screenshot-item img {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-screenshot-item:hover img {
    filter: brightness(1) grayscale(0%) !important;
}

/* Footer */
footer {
    background: #0a141d;
    padding: 5rem 10% 3rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.7rem;
    color: #b9b9b9;
    letter-spacing: 0.1em;
}

/* Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .game-logo {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 1100px) {
    nav {
        display: none !important;
    }
    header {
        padding: 0 5%;
    }
}

@media (max-width: 1024px) {
    .char-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 768px) {
    .hero { height: auto; padding: 120px 5% 80px; text-align: center; justify-content: center; background-position: center; }
    .hero::after { background: var(--primary-bg); opacity: 0.8; }
    .eng-title { padding-top: 1rem; }
    .char-grid { grid-template-columns: 1fr; }
    .footer-links { gap: 2rem; flex-direction: column; align-items: center; }
    header { padding: 0 5%; }
    nav { display: none; }
}

/* Language Switcher Dropdown */
.lang-switcher {
    position: relative;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    cursor: pointer;
    outline: none;
    width: 88px;
    user-select: none;
}

.lang-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--text-white);
    padding: 0.4rem 0;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    font-weight: 700;
    line-height: 1;
    width: 100%;
}

.lang-current:hover,
.lang-switcher:focus-within .lang-current {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.lang-current .arrow {
    font-size: 0.6rem;
    opacity: 0.7;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 130px;
    background: rgba(14, 31, 47, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0;
    z-index: 1100;
}

.lang-dropdown::before {
    content: "";
    position: absolute;
    top: -0.6rem;
    left: 0;
    right: 0;
    height: 0.6rem;
    background: transparent;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    text-decoration: none !important;
    color: var(--text-dim) !important;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    text-align: left;
    display: block;
    border: none !important;
}

.lang-dropdown a:hover {
    color: var(--text-white) !important;
    background: rgba(255, 255, 255, 0.05);
}

.lang-dropdown a.active {
    color: var(--accent-color) !important;
    font-weight: bold;
}

/* ==========================================================================
   Steam Wishlist Action Section
   ========================================================================== */
.wishlist-action {
    padding: 4rem 8%;
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.wishlist-container {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(27, 58, 86, 0.15);
    border: 1px solid rgba(114, 189, 255, 0.2);
    border-radius: 4px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.wishlist-container h3 {
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    color: var(--text-white);
    margin-bottom: 0.8rem;
}

.wishlist-container p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.steam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #10253d 0%, #1b3b5c 100%);
    color: #ffffff !important;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    padding: 1rem 3rem;
    border-radius: 4px;
    border: 1px solid rgba(114, 189, 255, 0.4) !important;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
}

.steam-btn:hover {
    background: linear-gradient(135deg, #173558 0%, #265383 100%);
    border-color: var(--accent-color) !important;
    box-shadow: 0 8px 25px rgba(114, 189, 255, 0.25);
    transform: translateY(-2px);
    text-shadow: none !important;
}

.steam-icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}
