/* 伊勢の伝統色 - Japanese Traditional Colors for Ise */
:root {
    /* === Primary Color Palette === */
    /* 紅 (Kurenai) - Deep Red: 赤福餅の餡、鳥居の朱色 */
    --color-kurenai: #8E050F;
    --color-kurenai-light: #B91C1C;
    --color-kurenai-dark: #7F1D1D;

    /* 藍 (Ai) - Indigo Blue: 伝統的な藍染め */
    --color-ai: #090D4F;
    --color-ai-light: #1E3A8A;
    --color-ai-dark: #1E1B4B;

    /* 琥珀 (Kohaku) - Amber: 檜、夕日の温かみ */
    --color-kohaku: #F59A36;
    --color-kohaku-light: #FBB360;
    --color-kohaku-dark: #D97706;

    /* 生成 (Kinari) - Off-White: 和紙の質感 */
    --color-kinari: #FEF4F4;
    --color-kinari-dark: #FAF5F0;

    /* 墨 (Sumi) - Charcoal: 本文テキスト */
    --color-sumi: #333333;
    --color-sumi-light: #666666;

    /* === Functional Color Mappings === */
    --color-primary: var(--color-kurenai);
    --color-primary-light: var(--color-kurenai-light);
    --color-primary-dark: var(--color-kurenai-dark);

    --color-secondary: var(--color-ai);
    --color-secondary-light: var(--color-ai-light);
    --color-secondary-dark: var(--color-ai-dark);

    --color-accent: var(--color-kohaku);
    --color-accent-light: var(--color-kohaku-light);
    --color-accent-dark: var(--color-kohaku-dark);

    --color-bg: var(--color-kinari);
    --color-bg-dark: var(--color-kinari-dark);

    --color-text: var(--color-sumi);
    --color-text-light: var(--color-sumi-light);

    /* === Map Pin Colors === */
    --pin-gourmet: var(--color-kurenai);
    /* 🔴 グルメ */
    --pin-shop: var(--color-ai);
    /* 🔵 ショップ */
    --pin-utility: #4CAF50;
    /* 🟢 実用施設 */
    --pin-hidden: var(--color-kohaku);
    /* 🟡 隠れスポット */

    /* === Legacy Compatibility (for gradual migration) === */
    --primary-color: var(--color-primary);
    --primary-dark: var(--color-primary-dark);
    --secondary-color: var(--color-secondary);
    --accent-color: var(--color-accent);
    --background-color: var(--color-bg);
    --text-color: var(--color-text);
    --light-gray: #E8E4D9;
    --dark-gray: #4A4A4A;
    --food-color: var(--pin-gourmet);
    --shop-color: var(--pin-shop);
    --border-color: #DAD3C2;

    /* === Typography === */
    --font-primary: 'Noto Sans JP', 'Kosugi', sans-serif;
    --font-heading: 'Outfit', 'Zen Kaku Gothic New', sans-serif;

    /* === Spacing === */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* === Border Radius === */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* === Shadows === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* === Transitions === */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}


/* ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ヘッダーとナビゲーション */
header {
    background-color: white;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ヘッダーコンテナ */
header .container {
    position: relative;
}

/* ヘッダートップ部分 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex: 1;
}

/* サイトタイトル */
header h1 {
    color: var(--primary-color);
    font-family: 'Kosugi', sans-serif;
    font-size: 1.8rem;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

header h1 a {
    color: var(--primary-color);
    text-decoration: none;
}

/* サイト説明 */
.site-description {
    margin: 0;
    padding: 0;
    flex: 1;
}

.site-description p {
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.3;
    font-style: italic;
    font-weight: 500;
    opacity: 0.7;
    margin: 0;
    margin-top: -2px;
}

/* 言語切り替えボタン */
.header-right {
    flex: 0 0 auto;
    display: block;
}

.lang-switcher {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-switcher:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lang-switcher:active {
    transform: translateY(0);
}

/* グローバルナビゲーション */
.global-nav {
    display: flex;
    list-style: none;
    gap: 0;
    margin-top: 15px;
    background: linear-gradient(135deg, var(--light-gray), var(--background-color));
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.global-nav li {
    margin: 0;
    padding: 0;
    flex: 1;
}

.global-nav a {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 12px 20px;
    text-align: center;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.global-nav a:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.global-nav a.active {
    color: white;
    background: linear-gradient(135deg, var(--secondary-color), #4A3A2A);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.global-nav a::after {
    display: none;
}

/* サブメニュー */
.global-nav .has-submenu {
    position: relative;
}

.global-nav .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px 0;
    min-width: 180px;
    z-index: 1000;
    list-style: none;
    border: 2px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    margin-top: 8px;
}

.global-nav .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.global-nav .submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.global-nav .has-submenu::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    z-index: 199;
}

.global-nav .submenu a {
    display: block;
    padding: 12px 20px;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    margin: 4px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    transform: none;
    box-shadow: none;
}

.global-nav .submenu a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.global-nav .submenu a.active {
    background: linear-gradient(135deg, var(--secondary-color), #4A3A2A);
    color: white;
}

.global-nav .submenu a::after {
    display: none;
}

/* 戻るボタン */
.back-to-list {
    margin: 35px 0;
    text-align: center;
}

.back-to-list a {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(115, 149, 174, 0.3);
}

.back-to-list a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 92, 97, 0.3);
}

.back-to-list-top {
    margin: 12px 0 25px 0;
    text-align: left;
}

.back-to-list-top a {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.back-to-list-top a:hover {
    background-color: rgba(200, 166, 125, 0.05);
}

/* メインコンテンツエリア */
main {
    padding-top: 20px;
    padding-bottom: 30px;
}

/* タグフィルタバナー */
.tag-filter-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag-filter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tag-filter-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tag-filter-icon {
    font-size: 24px;
    line-height: 1;
}

.tag-filter-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}

.tag-filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.tag-filter-clear {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.tag-filter-clear:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.tag-filter-clear:active {
    transform: scale(0.95);
}

/* スポット一覧ページ */
.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* スポットカード */
.spot-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    background-color: #fff;
    height: 100%;
}

.spot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.spot-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.spot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.spot-card:hover .spot-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.spot-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.spot-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.spot-description {
    font-size: 0.9rem;
    margin: 0;
    flex-grow: 1;
}

/* 距離情報 */
.distance-info {
    display: flex;
    gap: 16px;
    margin: 10px 0;
    padding: 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.distance-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-sumi);
    font-weight: 600;
}

.distance-item .icon {
    font-size: 1rem;
}

.distance-item .value {
    color: var(--color-kurenai);
    font-weight: 700;
}

/* モバイル対応 */
@media (max-width: 480px) {
    .distance-info {
        font-size: 0.8rem;
        gap: 12px;
    }

    .distance-item {
        font-size: 0.8rem;
    }
}

/* 営業時間情報 */
.hours-info {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    padding: 6px 0;
}

.hours-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-sumi-light);
}

.hours-item .icon {
    font-size: 1rem;
}

.hours-item .value {
    color: var(--color-sumi);
}

/* 詳細ページ */
.detail-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-top: 2px solid var(--primary-color);
    padding: 35px;
    margin-top: 10px;
}

/* スポットヘッダー */
.spot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.spot-name {
    color: var(--primary-dark);
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.spot-category-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(115, 149, 174, 0.3);
}

/* タグ表示 */
.spot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 0.85rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag::before {
    content: '#';
    margin-right: 3px;
    color: var(--primary-color);
    font-weight: 600;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.tag:hover::before {
    color: white;
}

/* スポットカード内のタグ */
.spot-info .spot-tags {
    margin-top: 10px;
    gap: 6px;
}

.spot-info .tag {
    font-size: 0.75rem;
    padding: 4px 10px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {

    /* ヘッダーとナビゲーション */
    .header-top {
        padding: 8px 0;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .site-description p {
        font-size: 12px;
        margin-top: 0;
    }

    .global-nav {
        flex-direction: column;
        gap: 4px;
        padding: 6px;
    }

    .global-nav a {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* スポット一覧 */
    .spots-grid,
    .related-spots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .spot-image {
        height: 140px;
    }

    /* 詳細ページ */
    .detail-container {
        padding: 25px;
    }

    .spot-name {
        font-size: 1.6rem;
    }

    .main-image-container {
        height: 300px;
    }

    .thumbnail {
        height: 60px;
    }

    .google-map {
        height: 250px;
    }

    .info-list {
        grid-template-columns: 110px 1fr;
        gap: 10px 15px;
    }
}

@media (max-width: 480px) {

    /* ヘッダー */
    header h1 {
        font-size: 1.2rem;
    }

    .lang-switcher {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    /* スポット一覧 */
    .spots-grid,
    .related-spots-grid {
        grid-template-columns: 1fr;
    }

    /* 詳細ページ */
    .detail-container {
        padding: 20px;
    }

    .spot-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .spot-name {
        margin-bottom: 10px;
    }

    .main-image-container {
        height: 250px;
    }

    .thumbnail-gallery {
        gap: 5px;
    }

    .thumbnail {
        height: 50px;
    }

    .google-map {
        height: 200px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .info-list dt {
        margin-top: 10px;
    }
}

/* フッター */
footer {
    background-color: var(--secondary-color);
    color: white;
    border-top: 2px solid var(--primary-color);
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

/* ... existing code ... */

/* 詳細ページのスタイル補完 */

/* イメージギャラリー - スライダー */
.image-gallery-container {
    margin-bottom: 30px;
    position: relative;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スライダーナビゲーションボタン */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 15px;
}

.slider-nav.next {
    right: 15px;
}

.slider-nav::before {
    font-size: 20px;
    font-weight: bold;
}

.slider-nav.prev::before {
    content: '‹';
}

.slider-nav.next::before {
    content: '›';
}

/* スライダーインジケーター */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 0;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-gray);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.indicator-dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    width: 12px;
    height: 12px;
}

/* サムネイルギャラリー（オプション） */
.thumbnail-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.thumbnail {
    min-width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.6;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
    border: 2px solid var(--primary-color);
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 説明文 */
.spot-detail-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* セクションタイトル */
.section-title {
    font-size: 1.4rem;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--accent-color);
    color: var(--primary-dark);
    font-weight: 600;
    position: relative;
}

/* 基本情報 */
.spot-basic-info {
    margin-bottom: 30px;
}

.info-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px 20px;
    margin-bottom: 25px;
}

.info-list dt {
    font-weight: 600;
    color: var(--primary-dark);
    position: relative;
    padding-left: 18px;
}

.info-list dt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.info-list dd {
    margin: 0;
    color: var(--text-color);
}

.info-list a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.info-list a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 特徴リスト */
.spot-features {
    margin-bottom: 30px;
}

.features-list {
    margin: 0;
    padding-left: 25px;
}

.features-list li {
    margin-bottom: 10px;
    position: relative;
    color: var(--text-color);
    padding-left: 5px;
}

.features-list li::marker {
    color: var(--primary-color);
    font-size: 1.2em;
}

/* SNS セクション */
.spot-sns {
    margin-bottom: 30px;
}

.sns-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.sns-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 14px;
}

.sns-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sns-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.sns-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sns-icon-instagram::before {
    content: '📷';
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sns-icon-twitter::before {
    content: '🐦';
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sns-icon-facebook::before {
    content: '📘';
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sns-label {
    font-weight: 500;
}

/* Google Map */
.spot-map-container {
    margin: 30px 0;
}

.google-map {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 350px;
    margin-top: 10px;
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-title {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

/* 住所表示 */
.spot-address {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 関連スポット */
.related-spots {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-spots-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.related-spots-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.related-spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-spot {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-spot .spot-image {
    height: 160px;
}

.related-spot .spot-info {
    padding: 12px;
}

.related-spot h3 {
    font-size: 1rem;
    margin: 0 0 8px 0;
}

/* レスポンシブ対応の追加 */
@media (max-width: 768px) {
    .image-slider {
        height: 300px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-nav::before {
        font-size: 18px;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .thumbnail {
        height: 60px;
        min-width: 80px;
    }

    .indicator-dot {
        width: 8px;
        height: 8px;
    }

    .indicator-dot.active {
        width: 10px;
        height: 10px;
    }

    .info-list {
        grid-template-columns: 110px 1fr;
        gap: 10px 15px;
    }

    .google-map {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .image-slider {
        height: 250px;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
    }

    .slider-nav::before {
        font-size: 16px;
    }

    .slider-nav.prev {
        left: 5px;
    }

    .slider-nav.next {
        right: 5px;
    }

    .thumbnail-gallery {
        gap: 5px;
    }

    .thumbnail {
        height: 50px;
        min-width: 70px;
    }

    .slider-indicators {
        margin-top: 10px;
        gap: 6px;
    }

    .indicator-dot {
        width: 7px;
        height: 7px;
    }

    .indicator-dot.active {
        width: 9px;
        height: 9px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .info-list dt {
        margin-top: 10px;
    }

    .google-map {
        height: 200px;
    }
}

/* ========================================
   Bottom Navigation (Mobile Only)
   ======================================== */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none; /* デフォルトは非表示（モバイルで表示） */
    justify-content: space-around;
    align-items: center;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
    z-index: 10000;
    /* iPhoneのセーフエリア対応 */
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 64px;
    min-height: 48px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--color-sumi-light, #666);
    cursor: pointer;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:active,
.nav-item.active {
    color: var(--color-kurenai, #8E050F);
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* マップセクションにパディング追加（ボトムナビに隠れないように） */
@media (max-width: 767px) {
    .bottom-navigation {
        display: flex;
    }

    #map-section {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    /* モバイルでは右上のレイヤーコントロールを非表示 */
    #layer-controls {
        display: none !important;
    }

    /* タグフィルタバナーのモバイル対応 */
    .tag-filter-banner {
        padding: 12px 16px;
        margin-bottom: 16px;
    }

    .tag-filter-label {
        font-size: 14px;
    }

    .tag-filter-count {
        font-size: 12px;
        padding: 3px 10px;
    }

    .tag-filter-clear {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .tag-filter-info {
        gap: 8px;
    }

    .tag-filter-icon {
        font-size: 20px;
    }
}

/* ==========================================
   Phase 1: 屋外視認性の向上
   直射日光下でも読みやすいデザイン
   ========================================== */

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .spot-card {
        border: 3px solid #000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    }

    .custom-marker {
        border-width: 3px !important;
        box-shadow: 0 3px 8px rgba(0,0,0,0.5) !important;
    }

    .tag {
        border: 2px solid currentColor;
        font-weight: 700;
    }

    .btn {
        border: 3px solid currentColor;
        font-weight: 700;
    }

    .distance-info,
    .hours-info {
        border-top: 2px solid rgba(0, 0, 0, 0.3);
        border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    }
}

/* 明るい環境での可読性向上 */
.spot-card {
    background: #ffffff;
    border: 2px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.spot-card h3 {
    color: #1a1a1a; /* 濃い黒 */
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

.spot-description {
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

/* ボタンの視認性向上 */
.btn-primary,
button[type="submit"] {
    background: var(--color-kurenai);
    border: 2px solid var(--color-kurenai-dark);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: var(--color-kurenai-dark);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

/* タグの視認性向上 */
.tag {
    background: white;
    border: 2px solid var(--color-kurenai);
    color: var(--color-kurenai);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tag:hover,
.tag:focus {
    background: var(--color-kurenai);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

/* 検索バーの視認性向上 */
#search-input {
    border: 2px solid #ccc;
    font-size: 1rem;
    font-weight: 500;
}

#search-input:focus {
    border-color: var(--color-kurenai);
    box-shadow: 0 0 0 3px rgba(142, 5, 15, 0.1);
    outline: none;
}

/* カテゴリバッジの強調 */
.category-badge {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
}

/* 距離・時間情報の強調 */
.distance-info .value,
.hours-item .value {
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

/* 営業ステータスの強調（business-status.css の補完） */
.business-status {
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* リンクの視認性向上 */
a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover,
a:focus {
    text-decoration-thickness: 2px;
}

/* フォーカス状態の明確化（アクセシビリティ） */
*:focus-visible {
    outline: 3px solid var(--color-kurenai);
    outline-offset: 2px;
}

/* モバイルタップ領域の拡大（タッチしやすく） */
@media (max-width: 767px) {
    .tag {
        padding: 6px 14px;
        font-size: 0.85rem;
        min-height: 44px; /* iOS推奨タップ領域 */
        display: inline-flex;
        align-items: center;
    }

    button,
    .btn {
        min-height: 44px;
        padding: 10px 20px;
    }
}

/* ==========================================
   Phase 1: 検索結果のグループ化
   ========================================== */

.spot-group {
    margin-bottom: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-kurenai);
}

.group-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--color-kurenai);
    font-weight: 700;
}

.group-count {
    background: var(--color-kurenai);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.grouped-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grouped-card {
    margin-left: 16px;
    background: white;
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: auto;
    border: 2px solid #e0e0e0;
}

.grouped-card::before {
    content: "┗";
    position: absolute;
    left: -16px;
    top: 16px;
    color: #999;
    font-size: 1.2rem;
}

.grouped-card .spot-image-small {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.grouped-card .spot-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grouped-card .spot-info {
    flex: 1;
    padding: 12px;
}

.grouped-card h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--color-sumi);
}

.distance-info-compact,
.hours-info-compact {
    font-size: 0.8rem;
    color: var(--color-sumi-light);
    margin: 4px 0;
}

.distance-info-compact span {
    margin-right: 12px;
}

/* モバイル対応 */
@media (max-width: 480px) {
    .spot-group {
        padding: 12px;
    }

    .grouped-card {
        margin-left: 12px;
        flex-direction: column;
    }

    .grouped-card::before {
        left: -12px;
    }

    .grouped-card .spot-image-small {
        width: 100%;
        height: 150px;
    }

    .group-header h3 {
        font-size: 1.1rem;
    }
}