/*
Theme Name: 四季の街光が丘通信 Child
Theme URI: （あなたのサイトのURL）
Description: みんな大好き光が丘サイトの子テーマ
Author: あなたの名前
Author URI: （あなたのサイトのURL）
Template: twentytwentyfour
Version: 1.0.0
*/

/* --- 基本設定 --- */
body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴ ProN W3', 'メイリオ', Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fdfdfd;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
a {
    color: #e67e22;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --- ヘッダー --- */
.site-header {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.site-branding {
    text-align: center;
}
.site-title a {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

/* --- ナビゲーション --- */
.main-navigation {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}
.main-navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
/* WordPressが出力するデフォルトのdivコンテナとulリスト */
.main-navigation div > ul,
.main-navigation ul#primary-menu /* IDが付く場合も考慮 */ {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.main-navigation li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, background-color 0.2s;
}
.main-navigation li a:hover {
    background-color: #fef9e7;
    color: #d35400;
}
.header-contact-button a {
    display: block;
    background-color: #f39c12;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin-right: 20px;
    transition: background-color 0.2s;
}
.header-contact-button a:hover {
    background-color: #e67e22;
    color: #fff;
    text-decoration: none;
}


/* --- トップページ --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 350px;
    overflow: hidden;
}
.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    filter: brightness(0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-text {
    color: white;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.hero-text h1 { font-size: 3.2em; margin-bottom: 10px; }
.hero-text p { font-size: 1.6em; }
.site-introduction { background-color: #fef9e7; padding: 50px 0; border-bottom: 1px solid #eee; }
.site-introduction p { max-width: 800px; margin: 0 auto; text-align: center; font-size: 1.1em; line-height: 1.8; color: #555; }
.home-section { padding: 60px 0; border-bottom: 1px solid #eee; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.section-title { font-size: 2em; color: #2c3e50; margin: 0; }
.read-more-link { text-align: right; margin-top: 20px; font-weight: bold; }

/* スライダー */
.swiper { width: 100%; height: auto; padding-bottom: 40px; }
.swiper-slide { height: auto; }
.slider-navigation { display: flex; gap: 10px; }
.swiper-button-next, .swiper-button-prev { position: static; width: 40px; height: 40px; margin: 0; background-color: #fff; border: 1px solid #e0e0e0; border-radius: 50%; color: #f39c12; transition: background-color 0.2s, color 0.2s; }
.swiper-button-next:hover, .swiper-button-prev:hover { background-color: #f39c12; color: #fff; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px; font-weight: bold; }
.swiper-pagination { bottom: 0 !important; }
.swiper-pagination-bullet { background-color: #ccc; }
.swiper-pagination-bullet-active { background-color: #f39c12; }

/* --- アーカイブページ --- */
.page-header { text-align: center; padding: 40px 20px; background-color: #fef9e7; margin-bottom: 40px; }
.page-title { margin-top: 0; }
.spot-archive-container, .event-archive-container, .archive .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.spot-grid, .event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.spot-card, .event-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; height: 100%; }
.spot-card:hover, .event-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.spot-card-link, .event-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.spot-card-thumbnail img, .event-card-thumbnail img { width: 100%; height: 180px; object-fit: cover; }
.spot-card .entry-header, .event-card .entry-header { padding: 20px; flex-grow: 1; }
.spot-card .entry-title, .event-card .entry-title { font-size: 1.2em; margin: 0; }
.event-card .event-date-badge { font-size: 0.9em; color: #777; margin-top: 5px; display: block; }
.card-meta { font-size: 0.8em; margin-top: 10px; color: #777; }
.card-meta span { display: inline-block; margin-right: 10px; padding: 3px 8px; border-radius: 4px; }
.card-category { background-color: #fef9e7; color: #e67e22; }
.card-area { background-color: #f0f0f0; }

/* 絞り込み検索フォーム */
.spot-search-form { background-color: #fff; padding: 30px; border-radius: 8px; margin-bottom: 40px; border: 1px solid #e0e0e0; }
.spot-search-form form { display: flex !important; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.spot-search-form .search-field { flex: 1; min-width: 200px; }
.spot-search-form label { display: block; margin-bottom: 5px; font-weight: bold; }
.spot-search-form select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; background-color: #fff; }
.spot-search-form .search-submit { flex-basis: 150px; }
.spot-search-form .search-submit button { width: 100%; padding: 12px 25px; font-size: 1.1em; font-weight: bold; background-color: #f39c12; color: white; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.2s; }
.spot-search-form .search-submit button:hover { background-color: #e67e22; }

/* --- シングルページ & 固定ページ --- */
.single-spot .site-main, .single-event .site-main, .single .site-main .single-spot, .page .site-main .container, .single-gallery .site-main { 
    max-width: 800px; 
    margin: 60px auto; 
    padding: 40px; 
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); 
}
.single-spot .entry-title, .single-event .entry-title, .single .entry-title, .page .entry-title, .single-gallery .entry-title { text-align: center; margin-bottom: 30px; }
.single-spot .post-thumbnail img, .single-event .post-thumbnail img, .single .post-thumbnail img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px; }
.single-spot .entry-content, .single-event .entry-content, .single .entry-content, .page .entry-content { line-height: 1.8; }
.page .entry-content img { max-width: 100%; height: auto; border-radius: 8px; }

/* シングルページ：追加情報 */
.spot-intro { background-color: #fdfdfd; border: 1px solid #eee; padding: 20px; border-radius: 8px; margin-bottom: 30px; line-height: 1.7; }
.google-review-info { display: flex; align-items: center; gap: 8px; margin: -10px 0 30px 0; font-size: 1.1em; }
.rating-stars { --star-size: 24px; --star-color: #eee; --star-background: #f39c12; --percent: calc(var(--rating) / 5 * 100%); display: inline-block; font-size: var(--star-size); font-family: Times; line-height: 1; }
.rating-stars::before { content: '★★★★★'; letter-spacing: 3px; background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rating-score { font-weight: bold; color: #e67e22; }
.rating-count { font-size: 0.9em; color: #777; }
.spot-info-table, .event-info-table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.spot-info-table h2, .event-info-table h2 { text-align: left; margin-bottom: 20px; font-size: 1.5em; }
.spot-info-table th, .event-info-table th { background-color: #f7f7f7; text-align: left; padding: 15px; width: 120px; border: 1px solid #e0e0e0; }
.spot-info-table td, .event-info-table td { padding: 15px; border: 1px solid #e0e0e0; }
.spot-map { margin-top: 40px; }
.spot-map h2 { text-align: left; margin-bottom: 20px; font-size: 1.5em; }
.spot-map iframe { width: 100%; height: 400px; border: none; border-radius: 8px; }
.single-spot .entry-footer, .single-event .entry-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; font-size: 0.9em; color: #666; }
.single-spot .spot-meta span, .single-event .event-meta span { margin-right: 20px; }

/* --- 口コミ（コメント）欄 --- */
.comments-area { margin-top: 40px; padding-top: 30px; border-top: 2px solid #fef9e7; }
.comments-title, .comment-reply-title { font-size: 1.5em; margin-bottom: 20px; color: #2c3e50; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-body { padding: 20px; margin-bottom: 20px; background-color: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 8px; }
.comment-author .avatar { border-radius: 50%; float: left; margin-right: 15px; }
.comment-meta { margin-bottom: 10px; }
.comment-author .fn { font-weight: bold; font-style: normal; }
.comment-metadata a { color: #777; font-size: 0.9em; }
.comment-content { clear: both; }
.reply a { font-size: 0.9em; font-weight: bold; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; margin-bottom: 15px; box-sizing: border-box; }
.comment-form .form-submit .submit { background-color: #f39c12; color: white; border: none; padding: 12px 25px; font-size: 1em; border-radius: 5px; cursor: pointer; }
.comment-form .form-submit .submit:hover { background-color: #e67e22; }

/* トップページ新規追加セクション */
.attractions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.attraction-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); display: flex; flex-direction: column; }
.attraction-card-image { height: 220px; background-size: cover; background-position: center; }
.attraction-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.attraction-card-content h3 { margin-top: 0; font-size: 1.5em; color: #2c3e50; }
.attraction-card-content p { flex-grow: 1; color: #555; }
.btn { background: #f39c12; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; text-align: center; align-self: flex-start; transition: background-color 0.2s; }
.btn:hover { background-color: #e67e22; text-decoration: none; color: #fff; }

.gallery-grid-home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.gallery-item-home { display: block; overflow: hidden; border-radius: 8px; }
.gallery-item-home img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease-in-out; }
.gallery-item-home:hover img { transform: scale(1.1); }

/* ★★★ ギャラリーページ ★★★ */
.gallery-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-archive-item {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.gallery-archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.gallery-archive-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.gallery-archive-title {
    padding: 15px;
}
.gallery-archive-title h3 {
    margin: 0;
    font-size: 1.2em;
    color: #2c3e50;
}
.single-gallery .gallery-image-full img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}
.single-gallery .gallery-meta {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}
.single-gallery .gallery-comment {
    font-size: 1.1em;
    line-height: 1.8;
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
}


/* --- フッター --- */
.site-footer { color: #fff; background-color: #2c3e50; }
.footer-widgets { padding: 60px 0; border-bottom: 1px solid #3d566e; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-widget h4, .site-title-footer a { color: #fff; text-decoration: none; }
.site-title-footer a { font-size: 1.5em; font-weight: bold; }
.site-description-footer { color: #bdc3c7; font-size: 0.9em; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: #bdc3c7; text-decoration: none; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.site-info { padding: 20px 0; text-align: center; font-size: 0.9em; background-color: #23313f; }

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2em; }
    .hero-text p { font-size: 1.2em; }
    .main-navigation-container { flex-direction: column; }
    .header-contact-button { margin: 10px 0; }
    .section-header { flex-direction: column; gap: 20px; }
    .attractions-grid { grid-template-columns: 1fr; }
    .gallery-grid-home { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-archive-grid { grid-template-columns: 1fr; } /* ギャラリー一覧を1列に */
}