@charset "UTF-8";

/* --- CSS変数の定義 --- */
:root {
    --color-text-main: #333333;
    --color-bg-white: #ffffff;
    --color-bg-gray: #f5f5f5;
    --color-border: #dddddd;
    --font-serif: 'Zen Old Mincho', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

/* --- 基本リセット --- */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- 共通コンテナ --- */
.container {
    max-width: 1100px; /* 少し幅を広げました */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー --- */
.site-header {
    padding: 15px 0; /* 少し狭く */
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* ベースラインで揃える */
}
.logo img {
    height: 50px;
}
.tagline {
    font-size: 0.8rem;
    color: #666;
}

/* --- ヒーローセクション（修正：コンパクト化） --- */
.hero-section {
    padding: 50px 0; /* 余白を大幅に削減 */
    text-align: center;
}
.hero-message {
    font-family: var(--font-serif);
    font-size: 2.2rem; /* 少し小さく */
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 15px;
}
.hero-section p {
    font-size: 1rem;
    color: #555;
}

/* --- 検索エリア --- */
.search-section {
    background-color: var(--color-bg-gray);
    padding: 50px 0;
}
.search-grid {
    display: flex;
    gap: 50px;
}
/* 左カラム（地域）を少し広めに */
.area-column { flex: 2; }
/* 右カラム（タグ）を少し狭めに */
.tag-column { flex: 1; }

.section-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-text-main);
}

/* --- 都道府県リストのグリッド表示（新規追加） --- */
.prefecture-grid {
    display: grid;
    /* PCでは3列表示にする */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}
.region-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #555;
}
.area-list li {
    margin-bottom: 5px;
}
.area-list a {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dotted var(--color-border);
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.area-list a:hover { opacity: 0.6; }
.count { font-size: 0.85rem; color: #666; }


/* --- タグリストスタイル --- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-link {
    display: inline-block;
    padding: 8px 14px;
    background-color: var(--color-bg-white);
    border: 1px solid #ccc;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.tag-link:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg-white);
    border-color: var(--color-text-main);
}
.tag-link::before { content: "#"; color: #999; margin-right: 3px; }

/* --- 更新ログ --- */
.updates-section {
    padding: 30px 0;
    font-size: 0.85rem;
    color: #555;
}
.update-list li {
    margin-bottom: 5px;
    font-family: monospace;
}
.update-date { margin-right: 10px; }

/* --- フッター --- */
.site-footer {
    padding: 15px 0;
    text-align: center;
    font-size: 0.7rem;
    color: #999;
    border-top: 1px solid var(--color-border);
}

/* --- レスポンシブ（スマホ対応） --- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .tagline { margin-top: 5px; }
    .hero-message { font-size: 1.8rem; }
    
    /* スマホでは縦積みに戻す */
    .search-grid { flex-direction: column; gap: 40px; }
    
    /* スマホでは都道府県グリッドを2列にする */
    .prefecture-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 480px) {
    /* 画面が狭いスマホでは1列にする */
    .prefecture-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   以下、下層ページ用のスタイルを追記
========================================= */

/* --- パンくずリスト --- */
.breadcrumb {
    padding: 15px 0;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: #666;
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    /* 以下の3行を追加して番号をリセットします */
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumb li {
    display: flex; /* 高さを揃えるため */
    align-items: center;
}
.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: #ccc;
    font-family: var(--font-sans); /* 記号のフォントを統一 */
}
.breadcrumb a:hover { text-decoration: underline; }

/* --- 下層ページのメインレイアウト --- */
.page-content {
    padding: 40px 0;
    background-color: var(--color-bg-gray);
    min-height: 600px; /* コンテンツが少ない時用 */
}
/* トップページと同様の2カラム構成 */
.page-grid {
    display: flex;
    gap: 40px;
}
.main-column { flex: 3; } /* メインを広めに */
.sidebar-column { flex: 1; }

/* ページタイトル */
.page-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-text-main);
}


/* =========================================
   A. 一覧ページ用のスタイル (カード)
========================================= */
.shrine-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.shrine-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 25px;
    transition: box-shadow 0.2s;
}
.shrine-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-color: #999;
}
.card-header-tags {
    margin-bottom: 15px;
}
/* カード内のタグは少し小さく */
.shrine-card .tag-link {
    padding: 4px 10px;
    font-size: 0.8rem;
}
.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}
.card-title a { text-decoration: none; }
.card-catchphrase {
    font-size: 1rem;
    color: #444;
    font-weight: 700;
    margin-bottom: 15px;
}
.card-meta {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    gap: 15px;
}
.meta-item::before { content: "■"; margin-right: 5px; font-size: 0.7em; color: #ccc; }


/* =========================================
   B. 詳細ページ用のスタイル (スペック表)
========================================= */
.detail-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 30px;
}
.detail-tags { margin-bottom: 20px; }
.detail-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
.detail-catchphrase {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

/* スペックテーブル */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background-color: var(--color-bg-white);
}
.spec-table th,
.spec-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}
.spec-table th {
    width: 20%;
    background-color: #f9f9f9;
    font-weight: 700;
    color: #555;
}

/* 解説テキスト */
.detail-description {
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.05rem;
}
.detail-description a {
    text-decoration: underline;
}

/* アクションボタンエリア */
.action-area {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: #eee;
    justify-content: center;
}
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: var(--color-text-main);
    color: var(--color-bg-white);
    font-weight: 700;
    min-width: 200px;
    transition: opacity 0.2s;
}
.action-btn:hover {
    opacity: 0.8;
    color: var(--color-bg-white);
}
.btn-icon { margin-right: 10px; }

/* サイドバーのスタイル調整 */
.sidebar-section { margin-bottom: 40px; }
.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ccc;
}


/* --- レスポンシブ調整 (下層ページ用) --- */
@media (max-width: 768px) {
    .page-grid {
        flex-direction: column;
    }
    .sidebar-column {
        order: 2; /* スマホではサイドバーを下に */
    }
    .detail-title { font-size: 2rem; }
    .spec-table th, .spec-table td {
        display: block;
        width: 100%;
    }
    .spec-table th {
        background-color: transparent;
        padding-bottom: 5px;
        color: #999;
        font-size: 0.85rem;
    }
    .spec-table td {
        padding-top: 0;
        border-bottom: none;
        padding-bottom: 20px;
    }
    .action-area { flex-direction: column; }
}