@charset "UTF-8";

/* ==========================================================================
   CSS Variables (Design System)
   ========================================================================== */
:root {
    /* Colors */
    --c-base: #FDFCF9; /* オフホワイト・和紙のような温もり */
    --c-text: #172118; /* より深い緑黒・視認性を高める */
    --c-accent: #C79E4A; /* ゴールド・実り、太陽の光 */
    --c-white: #FFFFFF;
    --c-black: #111111;
    --c-nara: #8C6A4F; /* 落ち着いた茶色（お寺や鹿を連想させるアースカラー） */
    
    /* Typography */
    --font-jp: 'Noto Serif JP', serif;
    --font-en: 'Inter', sans-serif;
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2.5rem;
    --space-lg: 5rem;
    --space-xl: 8rem;
    
    /* Animation */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-base: 0.6s var(--ease-out-expo);
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    scroll-behavior: smooth;
    background-color: var(--c-base);
    color: var(--c-text);
    font-family: var(--font-jp);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 日本語テキストには明朝体を適用 */
p, h1, h2, h3, h4, h5, h6, li, span, a {
    font-family: var(--font-jp);
}

.bold { font-weight: 600; }
.center { text-align: center; }

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

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

/* ==========================================================================
   Layout & Components
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: var(--space-xl) 0;
}

.section-title {
    font-family: var(--font-en);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--c-accent);
    margin-top: 1rem;
}

.section-title.center::after {
    margin-left: auto;
    margin-right: auto;
}

/* Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.header.is-scrolled {
    background-color: rgba(253, 252, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.desktop-nav a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--c-white);
    position: relative;
    text-decoration: none;
}

.header.is-scrolled .desktop-nav a {
    color: var(--c-text);
}

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

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

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero-main.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17,17,17,0.6) 0%, rgba(17,17,17,0.4) 50%, rgba(23,33,24,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--c-white);
    padding-top: 10vh;
}

.hero-sub {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 2.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-text {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 2.2;
    opacity: 0.9;
}

.fade-in-up {
    animation: fadeInUp 1.5s var(--ease-out-expo) forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--c-text);
}

.scroll-indicator span {
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: var(--c-text);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-accent);
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ==========================================================================
   Story Section
   ========================================================================== */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.story-lead {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--c-accent);
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.story-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.story-image img {
    transition: transform 1.5s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Concept Section
   ========================================================================== */
.concept-section {
    background-color: var(--c-white);
    padding: 8rem 0;
}

.concept-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.concept-words {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.word-item {
    font-size: 1.5rem;
    color: var(--c-text);
    opacity: 0;
    transform: translateY(20px);
}

.concept-section.is-visible .word-item {
    animation: fadeInUp 1s var(--ease-out-expo) forwards;
}

.concept-section.is-visible .word-item:nth-child(1) { animation-delay: 0.2s; }
.concept-section.is-visible .word-item:nth-child(2) { animation-delay: 0.4s; }
.concept-section.is-visible .word-item:nth-child(3) { animation-delay: 0.6s; }

.word-item .highlight {
    color: var(--c-accent);
    font-size: 2rem;
    display: block;
    margin-top: 0.5rem;
}

.concept-main {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
}

.concept-sub {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 2;
    margin-bottom: 3rem;
}

.concept-name {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--c-accent);
    position: relative;
    display: inline-block;
}

.concept-name::before, .concept-name::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background-color: var(--c-accent);
}
.concept-name::before { left: -60px; }
.concept-name::after { right: -60px; }

/* ==========================================================================
   Mission Section
   ========================================================================== */
.mission-lead {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.mission-card {
    background: var(--c-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 3rem 2rem 2.5rem; /* 上部の余白を調整 */
    position: relative;
}

.mission-num {
    display: block;
    text-align: left;
    font-family: var(--font-en);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--c-accent);
    text-shadow: none;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.mission-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--c-text);
}

.mission-card p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    color: #444;
}

/* ==========================================================================
   Future Goal Section
   ========================================================================== */
.future-section {
    position: relative;
    padding: 10rem 0;
    color: var(--c-white);
}

.future-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* パララックスのための固定背景 */
    z-index: 1;
}

.future-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 33, 24, 0.5); /* 写真が少し透けて見えるように調整 */
    z-index: 2;
}

.future-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.future-title {
    font-family: var(--font-en);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    letter-spacing: 0.3em;
    color: var(--c-accent);
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-value {
    font-family: var(--font-en);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 300;
    line-height: 1;
    color: var(--c-accent);
}

.stat-unit {
    font-family: var(--font-jp);
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-left: 0.5rem;
}

.stat-arrow {
    font-size: clamp(2rem, 5vw, 4rem);
    color: rgba(255,255,255,0.4);
}

.future-text {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.8;
}

/* ==========================================================================
   Gallery Section (Swiper 3D Creative Slider)
   ========================================================================== */
.gallery-section {
    padding-bottom: var(--space-xl);
    overflow: hidden; /* 横スクロールバー防止 */
}

.works-slider-wrapper {
    margin: 2rem auto 0;
    padding: 2rem 0;
    width: 100%;
    max-width: 950px;
    position: relative;
    perspective: 2000px;
    overflow: visible;
}

.works-swiper {
    padding: 4rem 0 !important;
    width: 100%;
    overflow: visible !important; 
}

.works-swiper .swiper-slide {
    width: 500px !important;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    display: flex !important;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    opacity: 0 !important;
    pointer-events: none;
}

.works-swiper .swiper-slide-active,
.works-swiper .swiper-slide-next,
.works-swiper .swiper-slide-prev {
    opacity: 1 !important;
    pointer-events: auto;
}

.works-swiper .swiper-slide-active { z-index: 10; }
.works-swiper .swiper-slide-next,
.works-swiper .swiper-slide-prev { z-index: 1; }

.works-slider-wrapper .swiper-button-prev,
.works-slider-wrapper .swiper-button-next {
    color: #ffffff !important;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    z-index: 30 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.works-slider-wrapper .swiper-button-prev {
    left: 10px !important;
}

.works-slider-wrapper .swiper-button-next {
    right: 10px !important;
}

@media screen and (min-width: 1200px) {
    .works-slider-wrapper .swiper-button-prev {
        left: -120px !important;
    }

    .works-slider-wrapper .swiper-button-next {
        right: -120px !important;
    }
}

.works-slider-wrapper .swiper-button-prev:hover,
.works-slider-wrapper .swiper-button-next:hover {
    background: rgba(199, 158, 74, 0.9);
    border-color: var(--c-accent);
    transform: translateY(-50%) scale(1.1) !important;
}

.works-slider-wrapper .swiper-button-prev::after,
.works-slider-wrapper .swiper-button-next::after {
    font-size: 1.1rem !important;
    font-weight: 900;
}

.work-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.work-img-box {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--c-base);
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border: 1px solid rgba(199, 158, 74, 0.2);
    position: relative;
}

.work-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ギャラリーのhoverテキストを削除 */

@media screen and (max-width: 768px) {
    .works-slider-wrapper {
        max-width: 100%;
        padding: 2rem 0;
        overflow: hidden !important;
    }
    .works-slider-wrapper .swiper-button-prev {
        left: 5px !important;
    }
    .works-slider-wrapper .swiper-button-next {
        right: 5px !important;
    }
    .works-slider-wrapper .swiper-button-prev,
    .works-slider-wrapper .swiper-button-next {
        width: 36px !important;
        height: 36px !important;
    }
    .works-slider-wrapper .swiper-button-prev::after,
    .works-slider-wrapper .swiper-button-next::after {
        font-size: 0.85rem !important;
    }
    .works-swiper .swiper-slide {
        width: 280px !important;
    }
    
    /* Concept Mobile Typography & Lines */
    .concept-main {
        font-size: clamp(0.95rem, 4.2vw, 1.25rem) !important;
    }
    .concept-name::before, .concept-name::after {
        display: none !important;
    }

    /* Footer Mobile Centering */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 2rem;
    }
    .footer-info {
        text-align: center;
    }
    .footer-menu ul {
        justify-content: center;
    }
    .footer-sns {
        justify-content: center !important;
        padding-left: 0 !important;
        width: 100%;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--c-white);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--c-text);
}
.footer-logo-sub {
    font-size: 0.95rem;
    color: var(--c-text);
    margin-top: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.footer-menu ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-menu a {
    font-size: 1.05rem;
    color: var(--c-text);
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--c-text);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    background: transparent;
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    color: var(--c-text);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--c-accent);
}

.contact-form textarea {
    resize: vertical;
    min-height: 60px;
}

.btn-submit {
    align-self: flex-start;
    padding: 1rem 3rem;
    background-color: var(--c-text);
    color: var(--c-white);
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--c-accent);
    transform: translateY(-3px);
}

.footer-links {
    margin-top: 3rem;
}

.footer-links p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
}

.header-sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    transition: opacity 0.3s ease, color 0.3s ease;
}

.header.is-scrolled .header-sns-icon {
    color: var(--c-text);
}

.header-sns-icon:hover {
    opacity: 0.7;
}

/* BGM Button (mimitsubo style) */
.bgm-btn {
    background: linear-gradient(135deg, #1b3022, #2c4c36);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--c-white);
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    width: 110px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.bgm-text-desktop { display: inline; }
.bgm-text-mobile { display: none; }

.bgm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.bgm-btn.is-playing {
    background: #385e43;
    color: var(--c-white);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hamburger (mimitsubo style) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--c-white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.header.is-scrolled .hamburger span {
    background: var(--c-text);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: #fdfcf9;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s ease;
    z-index: 200;
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 36px;
    color: var(--c-text);
    cursor: pointer;
    line-height: 1;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    font-family: var(--font-en);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--c-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--c-accent);
}

@media screen and (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    
    .bgm-text-desktop { display: none; }
    .bgm-text-mobile { display: inline; }
    .bgm-btn {
        width: 65px;
        height: 32px;
        font-size: 12px;
        font-weight: 600;
    }
}

.footer-sns-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-sns-icon:hover {
    opacity: 0.7;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #888;
}

/* Footer Copyright Styles */
.footer-copyright {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: #666;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-align: center;
}

.stealth-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}
.stealth-link:hover {
    text-decoration: none;
    opacity: 0.7;
}

/* ==========================================================================
   Cinematic Opening
   ========================================================================== */
.site-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-pan-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.intro-pan-img {
    width: 100%;
    height: 150%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.4);
    transform: translateY(-33.33%);
    will-change: transform;
    transition: transform 5s cubic-bezier(0.16, 1, 0.3, 1), filter 5s ease;
}

.site-intro.panning .intro-pan-img {
    transform: translateY(0);
    filter: brightness(0.8);
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.intro-tagline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-jp);
    font-weight: 500;
    color: var(--c-white);
    letter-spacing: 0.2em;
    line-height: 1.6;
    opacity: 0;
    margin-top: 20px;
    transform: translateY(10px);
    transition: opacity 1s ease, transform 1s ease;
    text-shadow: 0 0 20px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
}

.site-intro.text-reveal .intro-tagline {
    opacity: 1;
    transform: translateY(0);
}

.intro-blackout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.site-intro.blackout .intro-blackout {
    opacity: 1;
}

.site-intro.finished {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: rgba(23, 33, 24, 0.8);
    border: 1px solid var(--c-accent);
    color: var(--c-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-white);
    transform: translateY(-5px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav {
        display: none; /* スマホでは簡易的に非表示かハンバーガーを検討 */
    }
    
    .concept-words {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-arrow {
        transform: rotate(90deg);
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-menu ul {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
