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

:root {
    /* カラーパレット - 雅やかで華やかな配色 */
    --primary-color: #8B4513;      /* 茶褐色 */
    --secondary-color: #D4AF37;    /* 金色 */
    --accent-color: #B8860B;       /* 暗い金色 */
    --text-primary: #2C2C2C;       /* ダークグレー */
    --text-secondary: #666666;     /* グレー */
    --bg-light: #FAF8F3;           /* 薄いベージュ */
    --bg-white: #FFFFFF;
    --bg-dark: #3A2F2F;            /* ダークブラウン */
    --border-color: #D4C5B9;       /* ベージュグレー */
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* フォント */
    --font-primary: 'Shippori Mincho', 'Noto Serif JP', serif;
    --font-secondary: 'Noto Serif JP', serif;
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.4;
}

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

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

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

/* ========================================
   ヘッダー & ナビゲーション
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.8rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    align-items: center;
}

.nav-menu a {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-menu a:not(.btn-primary):hover {
    color: var(--primary-color);
}

.nav-menu a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu a.active::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAF8F3 0%, #E8DED0 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
}

/* スライドショー */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 精進料理ページのヒーロー背景 */
.hero-shojin {
    background: url('images/dishes/ryouri-all.jpg') center/cover no-repeat;
}

/* 寺子屋ページのヒーロー背景 */
.hero-terakoya {
    background: url('images/architecture/gaikan7.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.15em;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.subtitle {
    display: block;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    color: #F5F5F5;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.2em;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5), 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #FFFFFF;
    margin-bottom: var(--spacing-lg);
    line-height: 2;
    letter-spacing: 0.05em;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5), 0 1px 5px rgba(0, 0, 0, 0.3);
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.3);
    transition: all 0.4s ease;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(139, 69, 19, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--secondary-color), transparent);
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% { opacity: 0; transform: translateY(-20px); }
    50% { opacity: 1; transform: translateY(0); }
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    letter-spacing: 0.3em;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   Aboutセクション
======================================== */
.about {
    background: var(--bg-white);
}

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

.about-text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-light), #E8DED0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    box-shadow: 0 10px 40px var(--shadow);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '📷';
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    opacity: 0.3;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-image {
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    border-radius: 10px;
}

.feature-image img {
    transition: transform 0.3s ease;
}

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

.feature-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   メニューセクション
======================================== */
.menu {
    background: var(--bg-light);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.menu-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
}

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

.menu-card.featured {
    border: 3px solid var(--secondary-color);
}

.menu-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.menu-image {
    position: relative;
    overflow: hidden;
}

.menu-image .image-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #E8DED0, #D4C5B9);
}

.menu-content {
    padding: var(--spacing-md);
}

.menu-name {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.1em;
}

.menu-description {
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.menu-detail {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.menu-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.menu-price .tax {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.menu-note {
    background: white;
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
}

.menu-note p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

/* ========================================
   店舗情報セクション
======================================== */
.info {
    background: var(--bg-white);
}

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

.info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px var(--shadow);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: var(--spacing-sm);
}

.info-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-note {
    display: block;
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
    opacity: 0.9;
}

/* ========================================
   アクセスセクション
======================================== */
.access {
    background: var(--bg-light);
}

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

.access-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-item {
    background: white;
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.info-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--secondary-color);
}

.info-item p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.info-item a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.info-item a:hover {
    color: var(--accent-color);
}

.access-map {
    position: sticky;
    top: 100px;
}

.map-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #E8DED0, #D4C5B9);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    box-shadow: 0 10px 40px var(--shadow);
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '🗺️';
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    opacity: 0.3;
}

/* ========================================
   お問い合わせセクション
======================================== */
.contact {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-method {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: var(--spacing-md);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.3);
}

.contact-method h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
}

.contact-method p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    margin: var(--spacing-sm) 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.contact-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-links {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-links h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.social-link {
    background: white;
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* フォームスタイル */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-form-wrapper h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required {
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.3);
    letter-spacing: 0.1em;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.4);
}

/* ========================================
   フッター
======================================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer-info h3,
.footer-links h4,
.footer-note h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
}

.footer-info p {
    line-height: 1.8;
    font-size: 0.95rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-note p {
    font-size: 0.9rem;
    line-height: 1.7;
}

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

/* ========================================
   画像ギャラリー（スライダー形式）
======================================== */
.image-gallery {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 1.5rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.gallery-main img.active {
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.gallery-thumbnail {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.gallery-thumbnail:hover {
    opacity: 0.8;
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 旧スタイルのギャラリー（互換性のため残す） */
.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* ========================================
   年間行事リスト
======================================== */
.event-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.event-images-grid .image-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.annual-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-month {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.month-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
    text-align: center;
}

.event-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.event-item:hover {
    background: #E8DED0;
}

.event-date {
    font-weight: 700;
    color: var(--accent-color);
    white-space: nowrap;
    font-size: 0.9rem;
}

.event-name {
    font-weight: 600;
    color: var(--primary-color);
    grid-column: 2;
    font-size: 1rem;
}

.event-detail {
    grid-column: 2;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    /* ナビゲーション */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px var(--shadow);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* グリッドレイアウト */
    .about-content,
    .access-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    /* ギャラリースライダー */
    .gallery-main {
        height: 400px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .gallery-thumbnail {
        flex: 0 0 80px;
        height: 60px;
    }

    /* 年間行事リスト */
    .annual-events-list {
        grid-template-columns: 1fr;
    }

    .event-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .event-name,
    .event-detail {
        grid-column: 1;
    }

    /* テキストサイズ調整 */
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* スペーシング調整 */
    section {
        padding: var(--spacing-lg) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .access-map {
        position: static;
    }

    /* 三つの核のカード */
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-image img {
        height: 180px;
    }

    /* 年間行事の画像 */
    .event-images-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* ギャラリースライダー */
    .gallery-main {
        height: 300px;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .gallery-thumbnail {
        flex: 0 0 70px;
        height: 50px;
    }

    /* ボタンサイズ調整 */
    .btn-hero {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* セクションヘッダー */
    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* メニューカード */
    .menu-name {
        font-size: 1.5rem;
    }

    .menu-price {
        font-size: 1.7rem;
    }

    /* 年間行事の月タイトル */
    .month-title {
        font-size: 1.3rem;
    }

    .event-date,
    .event-name,
    .event-detail {
        font-size: 0.85rem;
    }

    /* フォームボタン */
    .btn-contact {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* ナビゲーションロゴ */
    .nav-logo a {
        font-size: 1.5rem;
    }

    /* 年間行事の画像 */
    .event-images-grid .image-item img {
        height: 250px;
    }
}