/* ====================================
   CSS変数（デザインシステム）
   ==================================== */
:root {
    /* カラーパレット */
    --color-primary: #2c3e50;
    --color-secondary: #34495e;
    --color-accent: #c9a96e;
    --color-text-primary: #333;
    --color-text-secondary: #666;
    --color-text-light: #999;
    --color-background: #f8f9fa;
    --color-white: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.3);
    
    /* タイポグラフィ */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    --font-size-hero: 48px;
    
    /* スペーシング */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 80px;
    
    /* トランジション */
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
    
    /* その他 */
    --border-radius: 4px;
    --max-width: 1200px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ====================================
   リセット & ベーススタイル
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* ====================================
   コンテナ
   ==================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ====================================
   ヘッダー
   ==================================== */
.header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.header-title {
    font-family: var(--font-serif);
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--color-primary);
    text-align: center;
    letter-spacing: 0.15em;
    position: relative;
    writing-mode: vertical-rl;
    margin: 0 auto;
    height: auto;
}


/* ====================================
   ヒーローセクション
   ==================================== */
.hero-section {
    position: relative;
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.hero-content {
    width: 90%;
    max-width: 800px;
    margin: var(--spacing-lg) auto;
    text-align: center;
    padding: var(--spacing-md);
}

.hero-text {
    font-size: var(--font-size-large);
    color: var(--color-text-secondary);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 2;
}

/* ====================================
   ギャラリーセクション
   ==================================== */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    margin: var(--spacing-xxl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* 左カラム：画像グリッド */
.gallery-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    background: var(--color-white);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* 右カラム：テキストブロック */
.gallery-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
}

.text-block {
    background: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-accent);
    transition: all var(--transition-base);
}

.text-block:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.text-block p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 2;
    margin-bottom: var(--spacing-sm);
}

.text-block p:last-child {
    margin-bottom: 0;
}

/* ====================================
   下部セクション
   ==================================== */
.bottom-section {
    padding: var(--spacing-xxl) 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.bottom-text {
    padding: var(--spacing-lg);
}

.bottom-title {
    font-family: var(--font-serif);
    font-size: var(--font-size-xxl);
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.bottom-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.bottom-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.bottom-image-wrapper:hover .bottom-image {
    transform: scale(1.05);
}

/* ====================================
   フッター
   ==================================== */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-text {
    font-size: var(--font-size-small);
    opacity: 0.8;
}

/* ====================================
   アニメーション
   ==================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ====================================
   レスポンシブデザイン
   ==================================== */

/* タブレット */
@media (max-width: 768px) {
    :root {
        --font-size-hero: 32px;
        --font-size-xxl: 24px;
        --font-size-xl: 20px;
        --spacing-xl: 40px;
        --spacing-xxl: 60px;
    }
    
    .hero-image-wrapper {
        height: 400px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .gallery-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .bottom-title {
        font-size: var(--font-size-xl);
    }
    
    .bottom-image {
        height: 350px;
    }
}

/* モバイル */
@media (max-width: 480px) {
    :root {
        --font-size-hero: 24px;
        --font-size-xxl: 20px;
        --font-size-xl: 18px;
        --spacing-lg: 32px;
        --spacing-xl: 40px;
        --spacing-xxl: 48px;
    }
    
    .header-title {
        font-size: var(--font-size-large);
    }
    
    .hero-image-wrapper {
        height: 300px;
    }
    
    .hero-text {
        font-size: var(--font-size-base);
    }
    
    .gallery-images {
        grid-template-columns: 1fr;
    }
    
    .gallery-img {
        height: 200px;
    }
    
    .text-block {
        padding: var(--spacing-md);
    }
    
    .bottom-title {
        font-size: var(--font-size-large);
    }
    
    .bottom-image {
        height: 250px;
    }
}

/* ====================================
   プリントスタイル
   ==================================== */
@media print {
    .header {
        position: static;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}
