@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --bg-color-main: #0b0d17;
    --bg-color-sub: #151932;
    --text-color-main: #e0e6ed;
    --text-color-sub: #a0aec0;
    --accent-color-primary: #00d2ff;
    /* Cyan */
    --accent-color-secondary: #ff0099;
    /* Neon Pink */
    --accent-color-tertiary: #7000ff;
    /* Purple */
    --font-main: 'Zen Kaku Gothic New', sans-serif;
    --font-title: 'Orbitron', sans-serif;
    /* Futuristic/Anime feel */
    --header-height: 80px;
    --max-width: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color-main);
    color: var(--text-color-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.1) 0%, transparent 40%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

ul {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color-primary), var(--accent-color-secondary));
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   Opening Animation
   ========================================================================== */
#opening {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color-main);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.opening-logo {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-color-primary);
    position: relative;
    animation: textFill 2s forwards 0.5s;
}

@keyframes textFill {
    from {
        color: transparent;
        text-shadow: none;
    }

    to {
        color: var(--accent-color-primary);
        text-shadow: 0 0 20px var(--accent-color-primary);
    }
}

body.loaded #opening {
    opacity: 0;
    visibility: hidden;
}

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

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--accent-color-primary), var(--accent-color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-pc {
    display: none;
}

@media (min-width: 768px) {
    .nav-pc {
        display: block;
    }

    .nav-pc ul {
        display: flex;
        gap: 2rem;
    }

    .nav-pc a {
        position: relative;
        font-weight: 500;
        padding: 0.5rem 0;
    }

    .nav-pc a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--accent-color-secondary);
        transition: width 0.3s ease;
    }

    .nav-pc a:hover::after {
        width: 100%;
    }
}

/* ==========================================================================
   Hamburger Menu
   ========================================================================== */
.hamburger {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-color-main);
    transition: all 0.3s ease;
}

.hamburger span:nth-of-type(1) {
    top: 0;
}

.hamburger span:nth-of-type(2) {
    top: 9px;
}

.hamburger span:nth-of-type(3) {
    bottom: 0;
}

.hamburger.active span:nth-of-type(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-of-type(2) {
    opacity: 0;
}

.hamburger.active span:nth-of-type(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-sp {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(11, 13, 23, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 1001;
}

.nav-sp.active {
    right: 0;
}

.nav-sp ul {
    text-align: center;
}

.nav-sp li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.nav-sp.active li {
    opacity: 1;
    transform: translateY(0);
}

.nav-sp.active li:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-sp.active li:nth-child(2) {
    transition-delay: 0.2s;
}

.nav-sp.active li:nth-child(3) {
    transition-delay: 0.3s;
}

.nav-sp.active li:nth-child(4) {
    transition-delay: 0.4s;
}

.nav-sp.active li:nth-child(5) {
    transition-delay: 0.5s;
}

.nav-sp a {
    font-size: 1.5rem;
    font-weight: bold;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transform: scale(1.1);
    animation: bgScale 20s infinite alternate;
}

@keyframes bgScale {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 2.5s;
    /* Wait for opening */
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-color-sub);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 2.8s;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(45deg, var(--accent-color-primary), var(--accent-color-secondary));
    color: #fff;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 3.1s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.news-list {
    background-color: var(--bg-color-sub);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

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

.news-date {
    font-family: var(--font-title);
    color: var(--accent-color-primary);
    margin-right: 1.5rem;
    font-size: 0.9rem;
}

.news-cat {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 1.5rem;
}

.news-title {
    flex: 1;
}

/* ==========================================================================
   Gallery / Works Preview
   ========================================================================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.work-card {
    background-color: var(--bg-color-sub);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease;
    position: relative;
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-img {
    height: 200px;
    overflow: hidden;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-img img {
    transform: scale(1.1);
}

.work-content {
    padding: 1.5rem;
}

.work-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.work-desc {
    font-size: 0.9rem;
    color: var(--text-color-sub);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-color-main);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--text-color-sub);
    text-decoration: none;
    transition: color 0.3s;
    font-family: var(--font-title);
    letter-spacing: 0.1em;
}

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

.sns-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sns-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s;
}

.sns-links a:hover {
    background: var(--accent-color-primary);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-color-primary);
}

.sns-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.copyright {
    color: var(--text-color-sub);
    font-size: 0.8rem;
}

.copyright a {
    color: var(--text-color-sub);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color-sub);
}

/* ==========================================================================
   JS Interaction States
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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