/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra子テーマ（野鳥サイト用カスタマイズ）
Author: あなたの名前
Author URI: あなたのウェブサイト
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* 親テーマのスタイルは自動的に読み込まれます */

/* 基本スタイル */
body {
    background-color: #ffffff !important; /* 背景色を白に強制設定 */
    line-height: 1.6;
    color: #333;
    position: relative;
}

/* コンテンツエリア - PC表示は幅を1000pxに制限 */
@media (min-width: 769px) {
    .site-content {
        padding: 0;
        margin: 0 auto;
        max-width: 1000px;
    }
    
    .ast-container {
        max-width: 1000px !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    
    #primary, 
    #main,
    .ast-col-lg-8, 
    .ast-col-md-12 {
        width: 100% !important;
        max-width: 1000px !important;
        margin: 0 auto !important;
        padding: 20px !important;
    }
    
    /* 情報カードなど、コンテンツ要素のサイズ調整 */
    .info-card,
    .bird-info,
    .other-spots,
    .map-area {
        width: 100%;
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* パンくずリスト */
.ast-breadcrumbs-wrapper {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    display: block !important; /* 必ず表示 */
}

.ast-breadcrumbs-wrapper a {
    color: #4a90e2;
}

/* エリアタイトル - H1を完全に非表示、余白も削除 */
.entry-title,
h1.entry-title {
    display: none !important; /* タイトルを非表示 */
    visibility: hidden !important;
    margin: 0 !important; /* 余白を削除 */
    padding: 0 !important; /* 余白を削除 */
    height: 0 !important; /* 高さを0に */
    position: absolute !important; /* 文書フローから外す */
    left: -9999px !important;
}

/* タイトル関連の余白をさらに削除 */
.entry-header {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* 情報カード */
.info-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.info-card h2 {
    position: relative;
    padding-left: 35px;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #a5d6a7;
    display: flex;
    align-items: center;
}


/* 情報ボックスの見出し（アイコンなし版） */
.info-box-title {
    position: relative;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #81c784;
    font-size: 1.05rem;
    /* アイコン用のパディングを削除 */
    padding-left: 0;
}

/* 各タイプ別のスタイル */
.info-box-title.overview {
    color: #2e7d32; /* 濃い緑 */
}

.info-box-title.season {
    color: #0277bd; /* 青 */
}

.info-box-title.address {
    color: #5d4037; /* 茶色 */
}

.info-box-title.access {
    color: #c62828; /* 赤 */
}

/* 地図エリア */
.map-area {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-area iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* スマホ用の追加スタイル - 横長に調整 */
@media (max-width: 768px) {
    .map-area iframe {
        height: 250px !important; /* やや横長に調整 */
    }
}

/* 野鳥情報エリア */
.bird-info {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.bird-info h2 {
    position: relative;
    padding-left: 35px;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #a5d6a7;
    display: flex;
    align-items: center;
}

.bird-info-content {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 観察できる野鳥セクション */
.birds-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 25px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* 野鳥タイルグリッド - 6列（PC）、3列（モバイル） */
.birds-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .birds-grid {
        grid-template-columns: repeat(4, 1fr); /* 中間サイズでは4列 */
    }
}

@media (max-width: 768px) {
    .birds-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

.bird-tile {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bird-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.bird-tile img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background-color: #CCEBFF; /* 鳥画像の背景色を設定 */
}

.bird-tile-info {
    padding: 10px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
}

.bird-tile-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
}

.see-all-birds {
    display: inline-block;
    padding: 10px 20px;
    background-color: #81c784;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin: 10px 0 20px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.see-all-birds:hover {
    background-color: #66bb6a;
    transform: translateY(-2px);
}

/* 他の探鳥地セクション */
.other-spots {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.other-spots h2 {
    position: relative;
    padding-left: 35px;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #a5d6a7;
    display: flex;
    align-items: center;
}

.spots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

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

.spot-card {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.spot-card:hover {
    transform: translateY(-3px);
}

.spot-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.spot-card-info {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spot-card-info h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: #2c3e50;
}

/* アニメーション */
@keyframes flyIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: flyIn 0.8s ease forwards;
}

/* ヘッダーカスタマイズ - ロゴ位置とヘッダー高さの調整 */
.site-header {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 60px !important;
    max-height: 60px !important;
}

/* ヘッダーバー */
.main-header-bar {
    line-height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* サイトブランディング - ロゴ配置 */
.site-branding {
    padding: 0 !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
}

/* ロゴコンテナを確実に表示 - 重要な修正 */
.tori-map-logo {
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
    margin-left: 50px !important; /* 左余白50px */
    padding-top: 5px !important; /* 上余白を減らす */
    padding-bottom: 10px !important; /* 下余白を増やす */
}

.tori-map-logo a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.tori-map-logo img {
    width: 40px !important;
    height: 40px !important;
    margin-right: 10px !important;
}

.tori-map-logo span {
    font-family: 'Josefin Sans', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333 !important;
    letter-spacing: 1px !important;
}

/* サイトタイトルと説明を非表示 */
.site-title, 
.site-description,
.ast-site-title-wrap {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ヘッダーとボディの間の余白を完全に削除 */
.site-header + div,
.site-header + .site-content,
.ast-main-header-bar-alignment + .site-content,
#content,
#primary,
.main-header-bar + .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* スマホ表示用のスタイル最適化 - カード型を解除して画面幅を最大化、但し10pxの余白を確保 */
@media (max-width: 768px) {
    /* ロゴの左余白を調整（モバイル表示） */
    .tori-map-logo {
        margin-left: 15px !important;
    }
    
    /* コンテナの余白を調整 - 10pxに増加 */
    .ast-container,
    .ast-row,
    #primary,
    #main,
    .ast-col-lg-8,
    .ast-col-md-12,
    article {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* カード型スタイルを解除 - フラットデザインに */
    .info-card,
    .bird-info,
    .other-spots,
    .map-area {
        background-color: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        padding: 0 10px !important; /* 横余白を10px */
        margin: 10px 0 !important;
    }
    
    /* 情報ボックス */
    .info-box {
        padding: 10px !important;
        margin: 10px 0 !important;
        border-radius: 0 !important;
    }
    
    /* セクション間の区切り線 */
    .info-card,
    .bird-info {
        border-bottom: 1px solid #e0e0e0 !important;
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
    }
    
    /* 見出しスタイルの調整 */
    .info-card h2,
    .bird-info h2,
    .other-spots h2 {
        font-size: 1.3rem !important;
        padding-bottom: 8px !important;
        margin-bottom: 10px !important;
    }
    
    /* 地図エリアの最適化 */
    .map-area {
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
    }
    
    .map-area iframe {
        height: 250px !important;
    }
    
    /* コンテンツエリアに余白を追加 - 可読性確保 */
    .entry-content {
        padding: 0 10px !important;
    }
    
    /* 鳥グリッドの調整 */
    .birds-grid {
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 鳥タイルの余白最適化 */
    .bird-tile-info {
        padding: 8px !important;
    }
}
/* 野鳥タイル表示の調整用CSS */
.bird-tile {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* アスペクト比を維持するためのスタイル追加 */
    display: flex;
    flex-direction: column;
}

.bird-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.bird-tile img {
    width: 100%;
    /* 高さを幅と同じにして正方形に表示 */
    aspect-ratio: 1 / 1;
    object-fit: contain; /* 画像が切れないように */
    background-color: #CCEBFF !important; /* 背景色 */
    display: block;
    padding: 8px; /* 内側に余白を追加 */
}

.bird-tile-info {
    padding: 8px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
}

.bird-tile-info h4 {
    margin: 0;
    font-size: 0.9rem; /* フォントサイズを少し小さく */
    color: #2c3e50;
    /* テキストが長い場合の対策 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 鳥グリッドの調整 */
.birds-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

@media (max-width: 992px) {
    .birds-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .birds-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .bird-tile-info h4 {
        font-size: 0.8rem; /* モバイルではさらに小さく */
    }
}
/* 野鳥タイル表示の調整用CSS - 上書き用 */
.bird-tile {
    background-color: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.bird-tile img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    background-color: #CCEBFF !important;
    display: block !important;
    padding: 8px !important;
    height: auto !important; /* 高さの固定値を解除 */
}

.bird-tile-info {
    padding: 8px !important;
    text-align: center !important;
    background-color: #fff !important;
}

.bird-tile-info h4 {
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: #2c3e50 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 背景色をすべて白に統一 */
.info-card, .bird-info, .other-spots, .info-box, .map-area {
    background-color: #FFFFFF !important;
}

/* 鳥のタイル背景も白に */
.bird-tile img {
    background-color: #FFFFFF !important;
}

/* 最上部のH1タイトルを確実に非表示 */
.entry-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ヘッダーバーをコンテンツ幅一杯に */
.ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* メインコンテンツエリアの余白調整 */
.site-main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* サイト全体のコンテナ背景色を白に */
.site-content, 
.site-content .ast-container,
.site-main,
.ast-container,
body {
    background-color: #FFFFFF !important;
}

/* 背景色をすべて白に統一 */
.info-card, .bird-info, .other-spots, .info-box, .map-area {
    background-color: #FFFFFF !important;
}

/* 鳥のタイル背景も白に */
.bird-tile img {
    background-color: #FFFFFF !important;
}

/* 最上部のH1タイトルを確実に非表示 */
.entry-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ヘッダーバーをコンテンツ幅一杯に */
.ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* 基本情報の見出し上部の余白を調整 */
.info-card h2 {
    margin-top: 0 !important;
    padding-top: 10px !important; /* 小さい余白を残す */
}

/* メインコンテンツの上部余白調整 */
.site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* メインコンテンツエリアとヘッダーの間の余白を削減 */
.ast-col-lg-8, .ast-col-md-12 {
    padding-top: 10px !important;
}

/* シーズングラフのスタイル */
.season-chart {
    max-width: 800px;
    margin: 20px auto 30px;
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.chart-container {
    display: flex;
    flex-direction: column;
}

.month-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 180px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.month-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% / 12);
    position: relative;
}

.bar-container {
    width: 80%;
    height: 150px;
    display: flex;
    align-items: flex-end;
}

.bar {
    width: 100%;
    transition: height 0.3s;
    border-radius: 3px 3px 0 0;
}

.bar-high {
    background-color: #4CAF50;
}

.bar-medium {
    background-color: #FFC107;
}

.bar-low {
    background-color: #E0E0E0;
}

.month-label {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

.peak-season-indicator {
    position: absolute;
    top: -25px;
    font-size: 12px;
    color: #e74c3c;
    font-weight: bold;
}

.legend {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 15px;
    font-size: 14px;
    color: #555;
}

.legend-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border-radius: 3px;
}

.legend-color.high {
    background-color: #4CAF50;
}

.legend-color.medium {
    background-color: #FFC107;
}

.legend-color.low {
    background-color: #E0E0E0;
}

.recommendation-text {
    font-size: 15px;
    color: #333;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .month-label {
        font-size: 12px;
    }
    
    .legend-item {
        margin: 0 8px;
        font-size: 12px;
    }
    
    .peak-season-indicator {
        font-size: 10px;
        top: -20px;
    }
}

/* 新しいレイアウト用のスタイル */
.simple-title {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 0;
    background-color: #FFFFFF;
}

.simple-title h1 {
    margin: 0;
    font-size: 28px;
    color: #333;
}

.map-area {
    margin-bottom: 25px;
    background-color: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
}

.map-area iframe {
    width: 100%;
    border: none;
}

.info-box {
    background-color: #FFFFFF;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 0;
}

.info-box-title {
    font-weight: bold;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
}

.info-box-content {
    padding: 15px;
    line-height: 1.6;
}

.address-access {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.address-section, .access-section {
    flex: 1;
    min-width: 250px;
}

.birds-header {
    margin: 30px 0 15px;
}

.birds-header h2 {
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px;
}

.birds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.bird-tile {
    background-color: #FFFFFF;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.bird-tile:hover {
    transform: translateY(-3px);
}

.bird-tile img {
    width: 100%;
    height: auto;
    background-color: #FFFFFF;
    display: block;
}

.bird-tile-info {
    padding: 10px;
    text-align: center;
}

.bird-tile-info h4 {
    margin: 0;
    font-size: 14px;
}

.see-all-birds {
    display: inline-block;
    margin: 10px 0 25px;
    color: #4CAF50;
    text-decoration: underline;
}

.bird-info {
    background-color: #FFFFFF;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.bird-info-content {
    line-height: 1.8;
}

.other-spots {
    margin-top: 40px;
    background-color: #FFFFFF;
    border-radius: 4px;
    padding: 20px;
}

.other-spots h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.spot-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #FFFFFF;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.spot-card:hover {
    transform: translateY(-3px);
}

.spot-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.spot-card-info {
    padding: 12px;
}

.spot-card-info h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .address-access {
        flex-direction: column;
    }
    
    .birds-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
/* スマホ表示の左右マージン調整 */
@media (max-width: 768px) {
    .ast-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    #primary .site-main {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* カード統合のスタイル */
.spot-info-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.spot-info-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.info-icon {
    flex: 0 0 30px;
    font-size: 20px;
    color: #4CAF50;
    margin-right: 10px;
    text-align: center;
}

.info-content {
    flex: 1;
}

/* シーズングラフの最適化 */
.season-chart {
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 30px !important;
}

.chart-title {
    display: none !important; /* 見出しを非表示 */
}

.peak-season-indicator {
    display: none !important; /* ピーク期のテキストを非表示 */
}

/* 低・中・高レベルの色の調整 */
.bar-low {
    background-color: #E0E0E0 !important;
}

.bar-medium {
    background-color: #FFC107 !important;
}

.bar-high {
    background-color: #4CAF50 !important;
}

/* アクセス項目のスタイル */
.access-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.access-item {
    display: flex;
    align-items: flex-start;
}

.access-icon {
    flex: 0 0 30px;
    font-size: 18px;
    margin-right: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
}

.train-icon {
    background-color: #3498db;
}

.bus-icon {
    background-color: #2ecc71;
}

.car-icon {
    background-color: #e74c3c;
}

.access-text {
    flex: 1;
    padding-top: 8px;
}

/* アイコンの基本スタイル */
.info-icon {
    flex: 0 0 30px;
    margin-right: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
}

/* 各アイコンの色設定 */
.info-color {
    background-color: #3498db; /* 青 - 情報 */
}

.location-color {
    background-color: #e74c3c; /* 赤 - 位置 */
}

.train-color {
    background-color: #3498db; /* 青 - 電車 */
}

.bus-color {
    background-color: #2ecc71; /* 緑 - バス */
}

.car-color {
    background-color: #f39c12; /* オレンジ - 車 */
}

/* 情報項目のスタイル */
.info-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.info-content {
    flex: 1;
}

/* カード統合のスタイル */
.spot-info-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.spot-info-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* スマホ表示の左右マージン調整 */
@media (max-width: 768px) {
    .ast-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    #primary .site-main {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
/* アイコンの基本スタイル */
.info-icon {
    flex: 0 0 30px;
    margin-right: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
}

/* 各アイコンの色設定 */
.info-color {
    background-color: #3498db; /* 青 - 情報 */
}

.location-color {
    background-color: #e74c3c; /* 赤 - 位置 */
}

.train-color {
    background-color: #3498db; /* 青 - 電車 */
}

.bus-color {
    background-color: #2ecc71; /* 緑 - バス */
}

.car-color {
    background-color: #f39c12; /* オレンジ - 車 */
}
/* 鳥タイルの装飾強化 */
.bird-tile {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

/* ホバーエフェクト */
.bird-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* 画像のサイズを130%に拡大し、中央寄せ */
.bird-tile img {
    width: 130%;
    height: auto;
    display: block;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

.birds-grid .bird-tile img {
    background-color: #FFFFFF !important;
    width: 120% !important;
    height: auto !important;
}

/* Add to your CSS or use add_custom_styles_to_head function */
@media (max-width: 768px) {
  /* Adjust breadcrumb positioning on mobile */
  .ast-breadcrumbs-wrapper {
    margin-top: 60px !important; /* Match your header height */
    position: relative;
    z-index: 90; /* Below header z-index */
  }
  
  /* Make header background solid on mobile */
  body.home .site-header {
    background-color: rgba(255, 255, 255, 0.9) !important;
  }
}

/* 動画スタイル */
.video-fullscreen video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 100vw !important; 
    min-height: 100vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover !important;
}

/* マップ部分のスタイル調整 */
.card-content svg path {
    stroke: #2E7D32 !important; /* 地図の境界線を濃い緑に */
    stroke-width: 0.8 !important; /* 線を少し太く */
}

.card-content svg path:hover {
    fill: #AED581 !important; /* ホバー時は明るい緑に */
    cursor: pointer;
}

/* マップの枠線追加 */
#area-section .card-content {
    border: 2px solid #2E7D32; /* 濃い緑の枠線 */
    border-radius: 8px; /* 角丸 */
    padding: 1.5rem;
    position: relative;
}

/* マップに装飾的な背景色を追加 */
#area-section .card-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(220, 237, 200, 0.3); /* 薄い緑色の背景 */
    border-radius: 6px;
    z-index: -1;
}

/* 検索フォームの枠線も調整 */
#search-section .card-content {
    border: 2px solid #0288d1; /* 青の枠線 */
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

/* 検索フォームに装飾的な背景色を追加 */
#search-section .card-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(200, 230, 255, 0.3); /* 薄い青色の背景 */
    border-radius: 6px;
    z-index: -1;
}

/* 検索フォームの入力部分も調整 */
#search-section .search-field {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #0288d1;
}

/* スマホ表示時のヘッダー位置修正 */
@media (max-width: 768px) {
    /* 絶対的なリセットスタイル */
    html body .site-header,
    html body #masthead,
    html body .ast-primary-header-bar,
    html body .main-header-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        min-height: 50px !important;
        max-height: 50px !important;
        background-color: #ffffff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 隙間を解消するためのリセット */
    html body .ast-header-break-point .site-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
    
    /* 管理バーがある場合の調整 */
    html body.admin-bar .site-header {
        top: 46px !important;
    }
    
    /* コンテンツエリアの上部パディング調整 */
    html body .site-content,
    html body #content {
        padding-top: 50px !important;
        margin-top: 0 !important;
    }
    
    /* トップページのヒーロー位置調整 */
    html body.home .torimap-hero {
        margin-top: 50px !important;
    }
    
    /* パンくずリストの位置調整 */
    html body .ast-breadcrumbs-wrapper {
        margin-top: 50px !important;
    }
}

/* 野鳥モーダル表示用スタイル */
.birds-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.birds-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.birds-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.birds-modal-close:hover {
    color: #333;
}

.birds-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.birds-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

/* ヘッダー上部の余白と線を削除 */
header {
  margin-top: 0 !important;
  border-top: none !important;
}

/* ロゴとマップ間の余白を縮小 */
.site-logo {
  margin-bottom: 15px !important;
}

/* コンテンツ間の余白調整 */
.content-wrapper {
  margin-top: 15px !important;
  margin-bottom: 15px !important;
}

/* 住所・アクセス下の余白を減らす */
.location-info {
  padding-bottom: 10px !important;
  margin-bottom: 15px !important;
}

/* すべて見るボタンの配色改善とアコーディオン化 */
.view-all-button {
  background-color: #3c8a50 !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 4px !important;
  font-weight: bold !important;
  text-align: center !important;
  display: block !important;
  margin: 10px auto !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* フッターを画面幅いっぱいに */
footer {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  background-color: #f5f5f5 !important;
  padding: 20px 0 !important;
  text-align: center !important;
}

/* アコーディオン機能のためのJavaScript連携用スタイル */
.birds-grid.collapsed {
  max-height: 480px;
  overflow: hidden;
}

.birds-grid.expanded {
  max-height: none;
}


/* マスターリセット - フッターと余白の問題を完全に解決 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

#content {
    flex: 1 0 auto;
    width: 100%;
}

.site-footer {
    flex-shrink: 0;
    width: 100%;
    clear: both;
    position: relative;
    z-index: 5;
}

/* コンテンツ終了マーカー */
.content-end-marker {
    clear: both;
    height: 20px;
    margin-bottom: 20px;
}

/* マップエリアの修正 */
.map-area {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0;
}

.map-area iframe {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    border: none !important;
}

/* コンテンツラッパー */
.content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ヘッダーとパンくずリストの間の余白調整 */
.ast-breadcrumbs-wrapper {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 野鳥コンテンツエリア */
.birds-content {
    position: relative;
    z-index: 1;
}

/* 鳥タイル調整 */
.birds-grid {
    position: relative;
    z-index: 1;
}

/* フッター前の探鳥地セクション */
.other-spots {
    margin-bottom: 40px !important;
    position: relative;
    z-index: 1;
}

/* クリアフィックス */
.clearfix-before-footer {
    clear: both !important;
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    visibility: visible !important;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    /* モバイル向け調整 */
    #content {
        padding-top: 50px !important; /* モバイルヘッダーの高さに合わせる */
    }
    
    .ast-breadcrumbs-wrapper {
        margin-top: 0 !important;
    }
    
    .site-footer {
        margin-top: 20px !important;
    }
}

/* 新しいレイアウト用のスタイル - 2025/05/08 */

/* アイキャッチ画像コンテナ */
.featured-image-container {
    margin: 0 0 20px 0;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    max-height: 300px;
}

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

/* タイトル部分 */
.entry-header.simple-title {
    text-align: center;
    margin: 20px 0;
    padding: 0;
}

.entry-header.simple-title h1 {
    font-size: 28px;
    color: #333;
    margin: 0;
}

/* シーズングラフの位置調整 */
.season-chart-wrapper {
    margin: 20px 0 30px;
    padding: 0;
}

/* 情報カードの間隔調整 */
.spot-info-card {
    margin: 0 0 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* マップエリアの位置調整 */
.map-area {
    margin: 0 0 30px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.map-area iframe {
    display: block;
    width: 100%;
    border: none;
    margin: 0;
    padding: 0;
}

/* 野鳥コンテンツエリア */
.bird-content-area {
    margin: 0 0 30px;
}

.birds-header {
    margin: 0 0 20px;
}

.birds-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #4CAF50;
}

/* 他の探鳥地セクション */
.other-spots {
    margin: 0 0 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.other-spots h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4CAF50;
}

/* フッターマージン */
.ast-small-footer {
    margin-top: 30px;
}

/* 重複タグの問題を解決 */
#primary #primary,
#main #main {
    display: none;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .entry-header.simple-title h1 {
        font-size: 24px;
    }
    
    .spot-info-card,
    .map-area,
    .other-spots {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 5px;
    }
    
    .birds-header h2,
    .other-spots h2 {
        font-size: 20px;
    }
}

/* マップとフッター重なり問題の修正 - 2025/05/08 */

/* マップエリアのz-indexとポジション設定 */
.map-area {
    position: relative;
    z-index: 1;
    margin: 0 0 30px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    clear: both;
}

/* iframeの配置とサイズの明示的な設定 */
.map-area iframe {
    display: block !important;
    width: 100% !important;
    height: 350px !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* コンテンツエリア全体をクリアフィックス */
.ast-col-lg-12:after,
.ast-col-md-12:after {
    content: "";
    display: table;
    clear: both;
}

/* フッターの明示的な配置設定 */
.site-footer {
    clear: both;
    position: relative;
    z-index: 2;
    margin-top: 40px !important;
}

/* 野鳥タイルセクションとその他のセクションの明示的なz-index */
.birds-section,
.other-spots {
    position: relative;
    z-index: 2;
    clear: both;
}

/* 野鳥コンテンツエリア全体をブロック要素として明示 */
.bird-content-area {
    display: block;
    width: 100%;
    clear: both;
    position: relative;
    z-index: 2;
}

/* メインコンテンツエリアの位置関係を明確に */
#content {
    overflow: visible;
    position: relative;
}

/* 各セクション間に明確な区切りを設定 */
.map-area:after,
.bird-content-area:after,
.other-spots:after {
    content: "";
    display: block;
    clear: both;
    height: 1px;
    margin: 0;
    padding: 0;
}

/* 特にiframe内のコンテンツがはみ出す問題への対策 */
.map-area iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* スマホ用の追加スタイル - 横長に調整 */
@media (max-width: 768px) {
    .map-area iframe {
        height: 250px !important; /* やや横長に調整 */
    }
}

/* レイアウト修正用CSS - style.cssの最後に追加 */

/* 基本的なレイアウト修正 - flexboxを使用 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 全画面高さを確保 */
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

#content {
    flex: 1 0 auto; /* コンテンツを伸ばしてフッターを下部に押し出す */
}

.site-footer {
    flex-shrink: 0; /* フッターの縮小を防ぐ */
    position: relative !important;
    z-index: 10 !important;
    clear: both !important;
    margin-top: 20px !important;
    background-color: #f5f5f5 !important;
}

/* コンテンツの構造修正 */
.ast-container {
    padding: 0 15px !important;
}

/* マップエリアの修正 */
.map-area {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
}

.map-area iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* スマホ用の追加スタイル - 横長に調整 */
@media (max-width: 768px) {
    .map-area iframe {
        height: 250px !important; /* やや横長に調整 */
    }
}

/* 各セクションの余白調整 */
.featured-image-container {
    margin-bottom: 20px;
}

.season-chart-wrapper {
    margin-bottom: 20px;
}

.spot-info-card {
    margin-bottom: 20px !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    padding: 20px !important;
}

.birds-header {
    margin-top: 20px !important;
    margin-bottom: 15px !important;
}

.birds-section {
    margin-bottom: 30px !important;
}

.other-spots {
    margin-bottom: 40px !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    padding: 20px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* クリアフィックス - 野鳥タイルのフロート解除 */
.birds-grid:after,
.birds-section:after,
.other-spots:after {
    content: "";
    display: table;
    clear: both;
}

/* 見出しスタイル調整 */
.entry-header.simple-title {
    text-align: center;
    margin: 0 0 20px 0 !important;
    padding: 15px 0 !important;
}

.entry-header.simple-title h1 {
    font-size: 24px;
    color: #333;
    margin: 0 !important;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
    /* ヘッダー固定 */
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background-color: #fff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
    
    /* 管理バーがある場合 */
    body.admin-bar .site-header {
        top: 46px !important;
    }
    
    /* コンテンツの上部調整 */
    #content {
        padding-top: 60px !important;
    }
    
    /* パンくずリストの位置調整 */
    .ast-breadcrumbs-wrapper {
        margin-top: 10px !important;
    }
    
    /* セクション間の余白調整 */
    .spot-info-card,
    .map-area,
    .birds-section,
    .other-spots {
        margin-bottom: 20px !important;
    }
}

/* 野鳥タイルのデザイン調整 - 白背景・グレー装飾 */
.bird-tile {
    background-color: #FFFFFF !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #e0e0e0 !important;
}

.bird-tile:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.bird-tile img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    background-color: #FFFFFF !important;
    display: block !important;
    padding: 8px !important;
    height: auto !important;
}

.bird-tile-info {
    padding: 8px !important;
    text-align: center !important;
    background-color: #f5f5f5 !important;
    border-top: 1px solid #e0e0e0 !important;
}

.bird-tile-info h4 {
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: #333333 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/**
 * 探鳥地詳細ページ用のカスタムスタイル
 * functions.phpに追加するか、またはスタイルシートに含めてください
 */

/* 野鳥ギャラリーヘッダースタイル */
.spot-featured-header {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
}

.spot-featured-header .bird-eyecatch-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    height: 320px;
}

/* エリア名タイトル */
.spot-title {
    background-color: #f5f5f5;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
}

.spot-title h1 {
    margin: 0;
    font-size: 2rem;
    color: #333;
}

/* マップエリア */
.map-area {
    margin-bottom: 2rem;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* スポット情報カード */
.spot-info-card {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    flex: 0 0 30px;
    margin-right: 12px;
    padding-top: 3px;
}

.info-color {
    color: #4CAF50;
}

.location-color {
    color: #2196F3;
}

.info-content {
    flex: 1;
}

/* 季節グラフエリア */
.season-chart-wrapper {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.season-chart-wrapper h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.season-description {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 野鳥コンテンツエリア */
.bird-content-area {
    margin-bottom: 2rem;
}

.birds-header {
    margin-bottom: 1.5rem;
}

.birds-header h2 {
    font-size: 1.7rem;
    position: relative;
    display: inline-block;
    margin-bottom: 0;
}

.birds-header h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4CAF50;
}

.birds-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 1.5rem;
}

.bird-tile {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bird-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.bird-tile img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.bird-tile-info {
    padding: 8px;
    text-align: center;
}

.bird-tile-info h4 {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
    color: #333;
}

.see-all-button-wrapper {
    text-align: center;
    margin: 1rem 0 2rem;
}

.see-all-birds {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.see-all-birds:hover {
    background-color: #388E3C;
    color: white;
    text-decoration: none;
}

/* 他の探鳥地エリア */
.other-spots {
    margin-bottom: 3rem;
}

.other-spots h2 {
    font-size: 1.7rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.other-spots h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2196F3;
}



.spots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.spot-card {
    display: block;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.spot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.spot-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.spot-card-info {
    padding: 15px;
}

.spot-card-info h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .birds-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .spot-featured-header .bird-eyecatch-container {
        height: 220px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .spot-featured-header .bird-eyecatch-container img {
        scroll-snap-align: start;
        flex: 0 0 auto;
        width: 85%;
        margin-right: 10px;
    }
    
    .birds-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .spots-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .spot-title h1 {
        font-size: 1.6rem;
    }
    
    .birds-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .spots-grid {
        grid-template-columns: 1fr;
    }
}

/* 野鳥画像ギャラリーのスタイル - 隙間なしグリッドレイアウト */
.bird-eyecatch-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 500px; /* 指定の高さ */
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}

/* マスリーレイアウト用のスタイル */
.bird-eyecatch-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 1fr;
  grid-gap: 0; /* 隙間なし */
}

.bird-eyecatch-container::before {
  content: '';
  width: 0;
  padding-bottom: 100%;
  grid-row: 1 / 1;
  grid-column: 1 / 1;
}

.bird-eyecatch-container > *:first-child {
  grid-row: 1 / 1;
  grid-column: 1 / 1;
}

/* 各画像の設定 */
.bird-eyecatch-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  transition: transform 0.3s ease;
}

/* 画像サイズ調整（グリッドスパン） */
.bird-image-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bird-image-medium {
  grid-column: span 1;
  grid-row: span 2;
}

.bird-image-small {
  grid-column: span 1;
  grid-row: span 1;
}

/* ホバーエフェクト */
.bird-eyecatch-container img:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* スポットページのヘッダーとして使用する場合 */
.spot-featured-header {
  width: 100%;
  height: 500px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.spot-featured-header .bird-eyecatch-container {
  height: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .spot-featured-header,
  .bird-eyecatch-container {
    height: 400px;
  }
  
  .bird-eyecatch-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  .spot-featured-header,
  .bird-eyecatch-container {
    height: 300px;
  }
  
  .bird-eyecatch-container {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}
/* すべての見出しを統一スタイルに */
.spot-title-section h2,
.birds-header h2,
.other-spots h2,
.season-chart-wrapper h3 {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    color: #333333 !important;
    border-bottom: 2px solid #3c8a50 !important;
    padding-bottom: 10px !important;
    margin: 0 0 20px 0 !important;
    background: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* アイコンや装飾を完全に削除 */
.spot-title-section h2:before,
.spot-title-section h2:after,
.birds-header h2:before,
.birds-header h2:after,
.other-spots h2:before,
.other-spots h2:after,
.season-chart-wrapper h3:before,
.season-chart-wrapper h3:after {
    display: none !important;
    content: none !important;
}

/* 親要素のスタイルもリセット */
.spot-title-section,
.birds-header,
.other-spots {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 30px 0 20px 0 !important;
}

/* スマホでの見出し調整 */
@media (max-width: 768px) {
    .spot-title-section h2,
    .birds-header h2,
    .other-spots h2,
    .season-chart-wrapper h3 {
        font-size: 1.5rem !important;
        padding-bottom: 8px !important;
        margin-bottom: 15px !important;
    }
    
    .spot-title-section,
    .birds-header,
    .other-spots {
        margin: 20px 0 15px 0 !important;
        padding: 0 5px !important;
    }
}
/* 都道府県アーカイブページ */
.prefecture-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.archive-header {
    margin-bottom: 2rem;
    text-align: center;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.archive-description {
    font-size: 1.2rem;
    color: #4a5568;
}

/* 検索結果ページ */
.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.results-header {
    margin-bottom: 2rem;
    text-align: center;
}

.results-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.results-description {
    font-size: 1.2rem;
    color: #4a5568;
}

/* 個別スポット詳細ページ */
.site-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.site-header {
    margin-bottom: 2rem;
    text-align: center;
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.site-meta {
    font-size: 1.2rem;
    color: #4a5568;
}

.site-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

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

.site-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.birds-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bird-tag {
    background-color: #e6f7ff;
    color: #0070f3;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.map-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9アスペクト比 */
    position: relative;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sidebar-widget {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-tag {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.related-sites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-sites-list li {
    margin-bottom: 0.5rem;
}

.related-sites-list a {
    color: #2563eb;
    text-decoration: none;
}

.related-sites-list a:hover {
    text-decoration: underline;
}

/* PC表示時のコンテンツ幅を修正 */
@media (min-width: 992px) {
    .content-area {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
    }
    
    .site-main {
        width: 100%;
    }
    
    .spot-info-card, 
    .map-area, 
    .season-chart-wrapper,
    .bird-content-area,
    .other-spots {
        width: 100%;
        max-width: 100%;
    }
}
/* テスト用スタイル - 明確に違いがわかるよう派手な色を使用 */
.spot-item {
    background-color: pink !important;
    border: 5px solid red !important;
    padding: 20px !important;
}

.page-title {
    color: blue !important;
    font-size: 36px !important;
    text-decoration: underline !important;
}