/* ========================================
   Base Styles
======================================== */

body {
    font-family: 'Noto Serif JP', serif;
    overflow-x: hidden;
    font-feature-settings: "palt";
}

/* ========================================
   Loading Screen
======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    transform: scaleX(1.2);
}

/* ========================================
   Scroll Progress Indicator
======================================== */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1001;
}

.scroll-progress {
    height: 100%;
    background: black;
    width: 0%;
    transition: width 0.1s ease;
}

/* ========================================
   Navigation
======================================== */

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: white;
}

.navigation.scrolled {
    background: white;
    backdrop-filter: blur(10px);
}

.nav-container {

    margin: 0 5vw;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0 2rem 0 auto;
}

.nav-menu li {
    transform: scaleX(1.1);
    line-height: 1;
    margin-bottom: 4px;
}

.nav-link {
    color: #000;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff6b6b;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff6b6b;
    transition: width 0.3s ease;
}

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

/* ========================================
   Hero Section
======================================== */

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../assets/img-hero-001.webp') no-repeat center center;
    background-size: cover;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
}

.hero-image-layer.active {
    opacity: 1;
}

.hero-image-layer:nth-child(1) {
    background-image: url('../assets/img-hero-001.webp');
}

.hero-image-layer:nth-child(2) {
    background-image: url('../assets/img-hero-002.webp');
}

.hero-image-layer:nth-child(3) {
    background-image: url('../assets/img-hero-003.webp');
}

.hero-image-layer:nth-child(4) {
    background-image: url('../assets/img-hero-004.webp');
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.floating-shape--small {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape--medium {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.floating-shape--large {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 10s;
}

.hero-content-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100vh; /* 全体の高さを確保 */
    justify-content: flex-end; /* 下部に配置 */
}

.hero-content {
    text-align: start;
    color: #fff;
    z-index: 2;
    padding: 4vh 5vw;
    position: absolute;
    bottom: 0;
    left: 0;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 0.9;
    letter-spacing: 0.5em;
    transform: scaleX(1.1);
    transform-origin: left center;
}

.hero-subtitle {
    font-size: clamp(0.75rem, 3vw, 1rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    transform: scaleX(1.1);
    transform-origin: left center;
    width: 80vw;
}

.hero-description {
    font-size: 0.7rem;
    max-width: unset;
    opacity: 0.8;
    line-height: 2.25;
    transform: scaleX(1.1);
    transform-origin: left center;
    min-height: 2.25em; /* 1行分の高さを確保 */
    width: 80vw;
}

.last-description {
    margin-bottom: 3rem;
}

.award-details {
    font-size: 0.6rem;
    max-width: unset;
    opacity: 0.8;
    line-height: 2.25;
    letter-spacing: 0.25em;
    transform: scaleX(1.1);
    transform-origin: left center;
}

.award-label, .award-value {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: #fff;
    color: #333;
    transform: translateY(-2px);
}

/* ========================================
   Common Components
======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    transform: scaleX(1.1);
    transform-origin: left center;
    line-height: 1.75;
    text-align: start;
    margin-bottom: 3rem;
    color: #333;
    width: fit-content;
}

.section-title--white {
    color: #fff;
}

/* ========================================
   About Section
======================================== */

.about-section {
    padding: 8rem 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.about-paragraph {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.8;
    color: #666;
}

.about-paragraph:last-child {
    margin-bottom: 0;
}

.about-image {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Features Section
======================================== */

.features-section {
    padding: 0;
    background: #000;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.features-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.image-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease;
    opacity: 0;
}

.gallery-image.active {
    opacity: 1;
}

.feature-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Gallery Section
======================================== */

.gallery-section {
    padding: 8rem 0;
    background: #000;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* ========================================
   Footer
======================================== */

.footer {
    background: #111;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer-description {
    color: #999;
    font-size: 0.7rem;
    margin-bottom: 2rem;
    line-height: 2.25;
    letter-spacing: 0.1em;
}

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

.footer-link {
    font-size: 0.7rem;
    font-weight: 300;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    transform: scaleX(1.1);
    transform-origin: left center;
    letter-spacing: 0.1em;
}

.footer-link:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    color: #666;
}

.footer-bottom p {
    transform: scaleX(1.1);
    transform-origin: center;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    font-weight: 300;
    color: #666;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
}

.footer-link-instagram {
    display: inline-block;
    transform: scaleX(1.2);
    transform-origin: center;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 300;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    padding-bottom: 4px;
    transition: all 0.3s ease;
    &:hover {
        color: #fff;
        border-color: #fff;
    }
}

/* ========================================
   Typewriter Animation
======================================== */

.typing-cursor {
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        border-color: rgba(255, 255, 255, 0.75);
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* ========================================
   Animations
======================================== */

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.7;
    }
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    .navigation {
        padding: 1rem 0;
    }
    .nav-container {
        padding: 1rem 0;
    }
}