﻿/* ========================================
   常在寺ホームページ スタイルシート
   基調色：深紅（#8B3A3A）と白（#FFFFFF）
   フォント：明朝体
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif JP', Georgia, serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
}

/* ========================================
   ヘッダー・ナビゲーション
   ======================================== */

.header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

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

.temple-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8B3A3A;
    letter-spacing: 0.1em;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
}

.nav a:hover {
    color: #8B3A3A;
    border-bottom-color: #8B3A3A;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav {
        flex-direction: column;
        gap: 0.75rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .nav a {
        display: block;
    }
}

/* ========================================
   ヒーロー画像
   ======================================== */

.hero {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
}

/* ========================================
   メインコンテンツ
   ======================================== */

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

/* ========================================
   訪問者の目的別入口セクション
   ======================================== */

.purpose-section {
    margin: 3rem 0 5rem 0;
    padding: 3rem 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

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

.purpose-card {
    padding: 2rem;
    text-align: center;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
}

.purpose-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.purpose-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #8B3A3A;
}

.purpose-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #8B3A3A;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Noto Serif JP', Georgia, serif;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #6b2e2e;
}

@media (max-width: 768px) {
    .purpose-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================
   セクション共通スタイル
   ======================================== */

.section {
    margin: 5rem 0;
    padding: 3rem 0;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
    letter-spacing: 0.05em;
    padding-bottom: 1rem;
    border-bottom: 2px solid #8B3A3A;
    display: inline-block;
    width: 100%;
}

.section-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 2rem auto;
    border: 1px solid #e0e0e0;
}

.text-content {
    margin: 2rem 0;
    line-height: 2;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
}

/* ========================================
   文化財セクション
   ======================================== */

.cultural-asset-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.cultural-asset-item:last-child {
    border-bottom: none;
}

.cultural-asset-image {
    text-align: center;
}

.cultural-asset-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border: 1px solid #e0e0e0;
}

.cultural-asset-text h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
}

.cultural-asset-text p {
    color: #666;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .cultural-asset-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================
   年間行事セクション
   ======================================== */

#events-year {
    text-align: center;
    font-size: 1rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.events-list {
    display: block;
    margin: 2rem 0;
}

.events-list dt {
    font-weight: 600;
    color: #8B3A3A;
    font-size: 0.95rem;
    padding: 1rem;
    background-color: #fafafa;
    border-left: 4px solid #8B3A3A;
    margin-top: 0.5rem;
}

.events-list dt:first-child {
    margin-top: 0;
}

.events-list dd {
    padding: 0.75rem 1rem;
    margin-left: 0;
    color: #666;
    font-size: 0.95rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-left: 4px solid #ccc;
}

.event-name {
    display: block;
    color: #333;
    font-weight: 500;
}

.event-reading {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

.event-note {
    display: block;
    font-size: 0.8rem;
    color: #c41e3a;
    margin-top: 0.25rem;
}

#events-notes {
    list-style: none;
    margin-top: 2rem;
    padding-left: 0;
}

#events-notes li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: #fafafa;
    border-left: 4px solid #8B3A3A;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   拝観案内セクション
   ======================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    padding: 1.5rem;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.info-item h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.info-item p {
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   連絡先ボックス
   ======================================== */

.contact-box {
    background-color: #f5f5f5;
    padding: 2rem;
    border: 1px solid #ddd;
    margin: 2rem 0;
    text-align: center;
}

.contact-label {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.contact-phone {
    font-size: 1.3rem;
    color: #8B3A3A;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ========================================
   アクセスセクション
   ======================================== */

.address-box {
    background-color: #fafafa;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    margin: 2rem 0;
}

.address-box h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.address-box p {
    color: #666;
    font-size: 1rem;
}

.access-info {
    margin-top: 2rem;
}

.access-item h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #8B3A3A;
    padding-bottom: 0.5rem;
}

.access-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
    background-color: #fafafa;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
}

.access-map-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.access-map-section h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #8B3A3A;
    padding-bottom: 0.5rem;
}

.access-map {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border: 1px solid #e0e0e0;
    background-color: #fff;
}

.access-map-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ========================================
   お問い合わせセクション
   ======================================== */

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    padding: 1.5rem;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
}

.contact-method h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #8B3A3A;
    padding-bottom: 0.5rem;
}

.phone,
.email {
    color: #8B3A3A;
    font-size: 1rem;
    font-weight: 600;
    word-break: break-all;
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   フッター
   ======================================== */

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-size: 0.85rem;
}

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

/* ========================================
   レスポンシブ調整
   ======================================== */

@media (max-width: 480px) {
    .main-content {
        padding: 2rem 1rem;
    }

    .section {
        margin: 3rem 0;
        padding: 1.5rem 0;
    }

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

    .temple-name {
        font-size: 1.2rem;
    }
}
