/* Tailwind CSS CDN is included via script in HTML */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@3.4.0/base.min.css');

/* Custom CSS Variables */
:root {
    --color-white-01: #fbfafc;
    --color-white-02: #f5f3f7;
    --color-black-01: #1b1311;
    --color-purple-01: #654ea3;
    --color-gray-01: #757575;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Outfit', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-black-01);
    background-color: var(--color-white-01);
    overflow-x: hidden;
}

/* Typography */
.mns {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
}

.of {
    font-family: 'Outfit', sans-serif;
}

.of.-light {
    font-weight: 300;
}

.ygSemi {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
}

/* Color Utilities */
.bg-White-01 {
    background-color: var(--color-white-01);
}

.bg-White-02 {
    background-color: var(--color-white-02);
}

.text-Black-01 {
    color: var(--color-black-01);
}

.text-Purple-01 {
    color: var(--color-purple-01);
}

.text-Gray-01 {
    color: var(--color-gray-01);
}

/* Header Styles */
header {
    transition: all 0.3s ease;
}

.h-nav-pc__bg {
    border-radius: 80px;
}

/* Burger Menu */
.burger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.burger__bg {
    background: rgba(101, 78, 163, 0.1);
    backdrop-filter: blur(30px);
}

.wrap-lines {
    transition: transform 0.4s ease;
}

.close-lines {
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.open-lines {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.burger.is-active .close-lines {
    opacity: 1;
    transform: translateY(0);
}

.burger.is-active .open-lines {
    opacity: 0;
    transform: translateY(-100%);
}

/* Mobile Menu */
.menu {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 90;
}

.menu.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.menu__links li {
    margin-bottom: 1.6rem;
}

.link-m {
    transition: color 0.3s ease;
}

.link-m:hover {
    color: var(--color-purple-01);
}

/* Link Text Animation */
.link-text-01 {
    cursor: pointer;
}

.link-text-01 .w-text {
    position: relative;
}

.link-text-01 .w-text .of:last-child {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.link-text-01:hover .w-text .of:first-child {
    transform: translateY(100%);
}

.link-text-01:hover .w-text .of:last-child {
    transform: translateY(0);
}

/* Loading Screen */
.js-loading {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.js-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.js-loading .w-logo svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* Hero Section */
.fv {
    position: relative;
}

.fv__movie {
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(20deg);
    }
}

/* Scroll Bar Animation */
.scroll-bar__line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black-01);
    animation: scrollBar 2s ease-in-out infinite;
}

@keyframes scrollBar {
    0% {
        transform: translateY(-100%);
        opacity: 1;
    }
    90% {
        transform: translateY(100%);
        opacity: 1;
    }
    95% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Product Animation */
.js-prod-01,
.js-prod-02,
.js-prod-03,
.js-prod-04 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.js-prod-01 {
    animation-delay: 0.1s;
}

.js-prod-02 {
    animation-delay: 0.2s;
}

.js-prod-03 {
    animation-delay: 0.3s;
}

.js-prod-04 {
    animation-delay: 0.4s;
}

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

/* Deco Movie */
.deco-movie {
    pointer-events: none;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border: 1px solid var(--color-purple-01);
    border-radius: 24px;
    background: transparent;
    color: var(--color-purple-01);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--color-purple-01);
    color: white;
}

.btn.-white {
    border-color: white;
    color: white;
}

.btn.-white:hover {
    background: white;
    color: var(--color-purple-01);
}

.btn.-semiBold {
    font-weight: 600;
}

.btn.-s-01 {
    height: 40px;
    font-size: 1.2rem;
}

.btn__arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn__arrow::before,
.btn__arrow::after {
    content: '';
    position: absolute;
    background: currentColor;
}

.btn__arrow::before {
    width: 8px;
    height: 1px;
    top: 50%;
    right: 0;
}

.btn__arrow::after {
    width: 1px;
    height: 8px;
    top: 4px;
    right: 0;
    transform: rotate(45deg);
}

.btn:hover .btn__arrow {
    transform: translateY(-50%) translateX(4px);
}

.btn__arrow-play {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent currentColor;
    margin-right: 8px;
}

/* Grid System */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.grid-8 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

/* Wave SVG */
.wave-01 {
    display: block;
    width: 100%;
    height: auto;
}

/* Swiper Overrides */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.swiper-wrapper {
    padding-left: 20px;
}

@media (min-width: 1024px) {
    .swiper-wrapper {
        padding-left: 0;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .swiper-slide {
        width: 100% !important;
    }
}

/* Topic Card Hover */
.topic-t {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.swiper-slide .w-pic img,
.w-pic > div {
    transition: transform 1.2s ease;
}

.swiper-slide:hover .w-pic img,
.swiper-slide:hover .w-pic > div {
    transform: scale(1.04);
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-purple-01);
}

/* SNS Icons */
.w-sns-i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.w-sns-i:hover {
    transform: translateY(-2px);
    color: var(--color-purple-01);
}

.w-sns-i svg {
    width: 100%;
    height: 100%;
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 62.5%;
    }
}

/* Animations */
@keyframes hoverArrow01 {
    0% {
        transform: translateY(-50%) rotate(45deg);
        opacity: 1;
    }
    48% {
        transform: translate(70%) translateY(-50%) rotate(45deg) scale(0.8);
        opacity: 0;
    }
    52% {
        transform: translate(-70%) translateY(-50%) rotate(45deg) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateY(-50%) rotate(45deg);
        opacity: 1;
    }
}

@keyframes snsImagesHorizontal {
    0% {
        transform: translate(0);
    }
    100% {
        transform: translate(-100%);
    }
}

/* SNS Auto Scroll */
.sns-auto {
    animation: snsImagesHorizontal 30s linear infinite;
}

.sns-imgs-list {
    flex-shrink: 0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.is-active {
    display: flex;
}

.modal__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.w-ifrme-width {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 900px;
}

.w-ifrme-width.-short {
    max-width: 500px;
}

.iframe-w-wide {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

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

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 20;
}

.modal__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 2px;
    background: white;
}

.close-left {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-right {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__close:hover span {
    background: var(--color-purple-01);
}

/* Utility Classes */
.overflow-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-50 {
    z-index: 50;
}

.z-80 {
    z-index: 80;
}

.z-90 {
    z-index: 90;
}

.z-100 {
    z-index: 100;
}

/* Fade In Animation */
.js-text-line-01,
.js-text-line-02,
.js-text-line-03 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.js-text-line-01 {
    animation-delay: 0.2s;
}

.js-text-line-02 {
    animation-delay: 0.4s;
}

.js-text-line-03 {
    animation-delay: 0.6s;
}

/* Smooth Scroll Padding for Fixed Header */
html {
    scroll-padding-top: 100px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-purple-01);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #553d8a;
}
