/*
Theme Name: Event Site Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: イベントサイト用のカスタムテーマ。お知らせ、トピック、店舗情報、X埋め込みに対応。
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: event-site
*/

/* ==========================================
   リセット & 基本設定
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* ==========================================
   レイアウト
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   ヘッダー
   ========================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: #333;
}

.site-description {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
}

/* ==========================================
   ナビゲーション
   ========================================== */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* モバイルメニュー */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 20px;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation a {
        padding: 15px 0;
    }
}

/* ==========================================
   フッター
   ========================================== */
.site-footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 14px;
}

/* ==========================================
   メインコンテンツ
   ========================================== */
.site-main {
    padding: 60px 0;
    min-height: 60vh;
}

.page-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

/* ==========================================
   お知らせ
   ========================================== */
.notices-section {
    margin-bottom: 60px;
}

.notices-list {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.notice-item {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

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

.notice-meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-date {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.notice-category {
    background: #0073aa;
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
    display: inline-block;
}

.notice-content {
    flex: 1;
}

.notice-content p {
    margin: 0;
}

@media (max-width: 600px) {
    .notice-item {
        flex-direction: column;
    }
}

/* ==========================================
   トピック一覧
   ========================================== */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.topic-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.topic-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.topic-card-content {
    padding: 20px;
}

.topic-card h2 {
    font-size: 20px;
    margin: 0 0 15px 0;
}

.topic-card h2 a {
    color: #333;
}

.topic-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.author-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    color: #666;
}

.topic-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.topic-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    font-size: 12px;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 3px;
    color: #666;
}

.read-more {
    color: #0073aa;
    font-weight: 500;
    font-size: 14px;
}

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

/* ==========================================
   トピック詳細
   ========================================== */
.topic-single {
    max-width: 900px;
    margin: 0 auto;
}

.topic-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.topic-header h1 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.topic-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topic-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topic-author .author-icon {
    width: 50px;
    height: 50px;
}

.topic-author .author-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.topic-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tags-list .tag {
    font-size: 13px;
    background: #e8f4f8;
    color: #0073aa;
    padding: 5px 12px;
}

.topic-content {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 40px;
}

.topic-content p {
    margin-bottom: 1.5em;
}

.topic-content h2 {
    font-size: 24px;
    margin: 2em 0 1em;
}

.topic-content h3 {
    font-size: 20px;
    margin: 1.8em 0 0.8em;
}

/* トピックブロック */
.topic-blocks {
    margin-top: 50px;
}

.topic-block {
    margin-bottom: 60px;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
}

.topic-block h2 {
    font-size: 26px;
    margin: 0 0 25px 0;
    color: #0073aa;
}

.block-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.block-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
}

.block-comment {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .topic-block {
        padding: 25px 20px;
    }
    
    .block-images {
        grid-template-columns: 1fr;
    }
    
    .block-images img {
        height: 200px;
    }
}

/* ==========================================
   店舗一覧・詳細
   ========================================== */
.shop-list {
    display: grid;
    gap: 40px;
}

.shop-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.shop-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shop-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.shop-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.shop-details h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #333;
}

.shop-info-row {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.shop-info-label {
    font-weight: 600;
    min-width: 100px;
    color: #666;
}

.shop-info-value {
    flex: 1;
}

.shop-address {
    margin-bottom: 15px;
}

.shop-hours {
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.shop-contact {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.shop-contact p {
    margin: 10px 0;
}

.shop-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.shop-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}

.shop-btn:hover {
    background: #005a87;
    opacity: 1;
}

.shop-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.shop-btn.map {
    background: #34a853;
}

@media (max-width: 768px) {
    .shop-item {
        grid-template-columns: 1fr;
    }
    
    .shop-images {
        order: 1;
    }
    
    .shop-details {
        order: 2;
    }
}

/* ==========================================
   X埋め込み
   ========================================== */
.twitter-embeds-section {
    margin: 60px 0;
}

.twitter-embed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.twitter-embed-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.twitter-embed-item h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #333;
}

.twitter-embed-item iframe {
    width: 100% !important;
}

/* ==========================================
   ペジネーション
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 60px 0 40px;
}

.pagination .page-numbers {
    padding: 10px 15px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
}

.pagination .page-numbers:hover {
    background: #e0e0e0;
}

.pagination .page-numbers.current {
    background: #0073aa;
    color: white;
}

/* ==========================================
   ボタン
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #005a87;
    opacity: 1;
}

.btn-secondary {
    background: #666;
}

.btn-secondary:hover {
    background: #555;
}

/* ==========================================
   ユーティリティ
   ========================================== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-40 {
    margin-top: 40px;
}

.hidden {
    display: none;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .site-main {
        padding: 40px 0;
    }
    
    .topic-header h1 {
        font-size: 24px;
    }
    
    .topic-content {
        font-size: 16px;
    }
    
    .twitter-embed-grid {
        grid-template-columns: 1fr;
    }
}
