/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

/* Custom Properties */
:root {
    --dark-gray: #1F1F1F;
    --medium-gray: #747474;
    --light-gray: #F9FAFB;
    --accent-blue: #0066FF;
    --accent-pink: #FF1493;
}

/* Smooth Scroll and Prevent Horizontal Scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* Navigation Link Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

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

/* Artist Card */
.artist-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
    transform: skewX(-4deg);
}

/* border-topの代わりに擬似要素でアクセントラインを追加 */
.artist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--artist-color, var(--accent-blue));
    z-index: 10;
}

.artist-card:hover {
    transform: skewX(-4deg) translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.artist-card__image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(to bottom, #f3f4f6, #ffffff);
}

.artist-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    transform: skewX(4deg);
}

/* 紗奈のカードのみ縦幅フィット表示 */
.artist-card__image:not(.artist-card__image--placeholder) img {
    width: 155%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    left: 50%;
    transform: skewX(4deg) translateX(-50%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, rgba(0,0,0,0) 100%);
}

.artist-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-card__image--placeholder img {
    width: 75%;
    height: 75%;
}

.artist-card__content {
    padding: 1rem;
    transform: skewX(4deg);
}

.artist-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.artist-card__tagline {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.artist-card__description {
    font-size: 0.75rem;
    color: var(--medium-gray);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.artist-card__social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* SNSアイコンのタップ領域を拡大（44px以上） */
.artist-card__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -0.5rem;
    color: var(--medium-gray);
    transition: color 0.2s ease;
}

.artist-card__social a:hover {
    color: var(--dark-gray);
}

.artist-card__social svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Artists Swiper Styles */
.artistsSwiper {
    padding: 40px 50px 60px;
    max-width: 100%;
}

@media (max-width: 640px) {
    .artistsSwiper {
        padding: 20px 10px 40px;
    }
}

/* Modal Swiper Styles */
.modalSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Artists Swiper スライド効果 */
.artistsSwiper .swiper-slide {
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.7;
}

.artistsSwiper .swiper-slide-active {
    transform: scale(1.08);
    opacity: 1;
}

.artistsSwiper .swiper-slide-prev,
.artistsSwiper .swiper-slide-next {
    opacity: 0.85;
}

.swiper-button-prev,
.swiper-button-next {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-gray);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
    color: white;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--medium-gray);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 5px;
    background: var(--accent-blue);
    opacity: 1;
}

/* UGC Swiper Styles */
.ugcSwiper {
    padding: 0 !important;
}

.ugc-swiper-button-prev,
.ugc-swiper-button-next {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.ugc-swiper-button-prev::after,
.ugc-swiper-button-next::after {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.ugc-swiper-button-prev:hover,
.ugc-swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ugc-swiper-pagination {
    bottom: 30px !important;
}

.ugc-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.ugc-swiper-pagination .swiper-pagination-bullet-active {
    width: 32px;
    border-radius: 6px;
    background: white;
    opacity: 1;
}

/* Contact Form Styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Scroll to Top Button Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

#scrollToTop {
    animation: fadeInUp 0.3s ease;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slideInUp {
    animation: slideInUp 0.6s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease forwards;
}

/* Modal Styles */
#artistModal {
    transition: opacity 0.3s ease;
}

#artistModal.show {
    opacity: 1;
}

#artistModal.hide {
    opacity: 0;
}

/* モーダル内要素のシャドウを削除 */
#artistModal * {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .swiper {
        padding: 20px 10px 40px !important;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    /* トップページのセクション幅調整 */
    section {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* コンテナの幅調整 */
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl {
        max-width: 100% !important;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray);
}

/* Diagonal Background Pattern */
.diagonal-lines-bg {
    position: relative;
}

.diagonal-lines-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 102, 255, 0.03) 10px,
            rgba(0, 102, 255, 0.03) 20px);
    pointer-events: none;
    z-index: 1;
}

/* Hero Parallax */
.hero-parallax {
    transform: translateY(var(--parallax-offset, 0));
    transition: transform 0.5s ease-out;
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 40px rgba(0, 102, 255, 0.3);
}

.glow-pink {
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.3);
}

/* Utility Classes */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* Logo Shadow Effect - 3 Layer System */
.logo-shadow {
    filter:
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.5))
        /* Inner glow */
        drop-shadow(0 0 40px rgba(255, 255, 255, 0.3))
        /* Outer glow */
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    /* Depth shadow */
}

/* Logo Glow Animation */
.logo-glow {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: logoGlowPulse 3s ease-in-out infinite;
}

@keyframes logoGlowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Floating Particle Animation */
.logo-particle {
    animation: particleFloat 2s ease-in-out infinite;
    opacity: 0.5;
}

.logo-particle:nth-child(2) {
    animation-duration: 2.3s;
}

.logo-particle:nth-child(3) {
    animation-duration: 2.6s;
}

.logo-particle:nth-child(4) {
    animation-duration: 2.9s;
}

.logo-particle:nth-child(5) {
    animation-duration: 3.2s;
}

.logo-particle:nth-child(6) {
    animation-duration: 3.5s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 0.8;
    }
}

/* Hero Text Shadow */
.hero-text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Hero Decorative Pattern */
.hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: 1;
}

/* Modal shadow removal */
.modal-shadow-removed {
    box-shadow: none !important;
}

/* =========================================
   Loading Screen
   ========================================= */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-logo {
    position: relative;
    z-index: 1;
    height: 60px;
    width: auto;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}


/* About Section - シンプルなスタイル */
.about-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.aboutSwiper {
    padding: 0 !important;
    border-radius: 1rem;
    overflow: hidden;
}

.aboutSwiper .swiper-slide {
    opacity: 0 !important;
    transition: opacity 0.8s ease;
}

.aboutSwiper .swiper-slide-active {
    opacity: 1 !important;
}

.about-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem;
}

.about-pagination {
    position: relative !important;
    margin-top: 16px;
}

.about-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--medium-gray);
    opacity: 0.4;
}

.about-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-blue);
    opacity: 1;
}

/* モバイル対応 */
@media (max-width: 640px) {
    /* ヘッダーのモバイル調整 */
    header {
        top: 10px !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    header .bg-white\/95 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* ヒーローセクションの調整 */
    #hero {
        overflow-x: hidden;
    }

    /* 画像の幅制御 */
    img {
        max-width: 100%;
        height: auto;
    }

    /* すべてのセクションの横スクロール防止 */
    section {
        overflow-x: hidden !important;
    }

    /* テキストの折り返し */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}