/* ========================================
   千光山寿福院圓満寺 公式ホームページ
   メインスタイルシート
   ======================================== */

/* ========================================
   リセット＆基本設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット - 真言宗のイメージカラー */
    --primary-purple: #5e3a8f;
    --light-purple: #8b6fb5;
    --dark-purple: #3d2560;
    --gold: #c9a961;
    --light-gold: #e6d4a8;
    --dark-gold: #a68942;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #888888;
    --dark-gray: #333333;
    --black: #1a1a1a;
    --wood-brown: #8b6f47;
    --light-brown: #c9b896;
    
    /* タイポグラフィ */
    --font-main: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
    --font-sub: 'Noto Sans JP', 'Yu Gothic', 'YuGothic', sans-serif;
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* ブレークポイント */
    --mobile: 768px;
    --tablet: 1024px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--dark-gray);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ========================================
   ヘッダー
   ======================================== */
.site-header {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-logo h1 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.site-logo .temple-name {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    opacity: 0.9;
    white-space: nowrap;
}

/* ナビゲーション */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    flex-wrap: nowrap;
}

.main-nav a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* モバイルメニューボタン */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1);
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.6);
    opacity: 1;
}

/* ========================================
   セクション共通スタイル
   ======================================== */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--dark-gold) 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: var(--spacing-md);
}

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

/* 背景色の切り替え */
.section-light {
    background-color: var(--white);
}

.section-dark {
    background-color: var(--light-gray);
}

/* ========================================
   カードレイアウト
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.card-text {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.8;
}

/* ========================================
   インフォメーションセクション
   ======================================== */
.info-section {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--primary-purple) 100%);
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-md);
}

.info-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--black) 100%);
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: var(--spacing-md);
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section p,
.footer-section li {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   アニメーション
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-up {
    animation: fadeInUp 1s ease;
}

/* ========================================
   ユーティリティクラス
   ======================================== */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

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

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .site-logo h1 {
        font-size: 1.1rem;
        letter-spacing: 0.05em;
    }
    
    .site-logo .temple-name {
        font-size: 0.75rem;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--dark-purple);
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .site-logo h1 {
        font-size: 1rem;
        letter-spacing: 0.03em;
    }
    
    .site-logo .temple-name {
        font-size: 0.7rem;
    }
    
    .header-container {
        padding: 0.6rem 0.8rem;
    }
    
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: var(--spacing-md) var(--spacing-sm);
    }
}