/*
Theme Name: 麻布十番網代町会テーマ
Description: 麻布十番網代町会のオリジナルWordPressテーマ
Version: 1.0
Author: Custom Development
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #1a365d 0%, #2c4f6b 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    display: block;;
    background-image: url('/wp-content/uploads/2025/06/amishiro_logo.png');
    background-size: cover;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ナビゲーション */
.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.current {
    background-color: rgba(255,255,255,0.1);
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a365d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem;
}

.mobile-nav li {
    margin-bottom: 0.5rem;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
}

.mobile-nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ヒーローセクション */
.hero {
    height: 500px;
    background-image: url('/wp-content/uploads/2025/06/IMG_4049.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #d4af37;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: bold;
}

.btn:hover {
    background-color: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #d4af37;
}

/* カードグリッド */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    height: 200px;
    background: linear-gradient(45deg, #e0f7fa, #b2dfdb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.card-content h3 a:hover {
    color: #d4af37;
}

.card-content .date {
    color: #d4af37;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-content p {
    color: #666;
    line-height: 1.5;
}

/* お知らせセクション */
.news-list {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.news-date {
    background: #1a365d;
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    height: fit-content;
}

.news-content h4 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.news-content h4 a {
    color: inherit;
    text-decoration: none;
}

.news-content h4 a:hover {
    color: #d4af37;
}

.news-content p {
    color: #666;
    font-size: 0.9rem;
}

/* 記事詳細ページ */
.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.article-title {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
}

.article-meta .date {
    color: #d4af37;
    font-weight: 600;
}

.article-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #1a365d;
    margin: 2rem 0 1rem;
}

/* フッター全体 */
.footer {
    background: #2c5aa0;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    text-align: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #f4c430;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.footer-section p {
    line-height: 1.8;
    color: #e0e7ff;
    margin: 0;
}

/* コピーライト部分 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #b8c5d1;
    font-size: 0.9em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-section h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
}

/* ページネーション */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .nav-links a,
.pagination .nav-links span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #1a365d;
    transition: all 0.3s;
}

.pagination .nav-links a:hover {
    background-color: #1a365d;
    color: white;
}

.pagination .nav-links .current {
    background-color: #d4af37;
    color: white;
    border-color: #d4af37;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav.active {
        display: block;
    }

    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
}

/* 新しいボタンセクション */
.council-links-section {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
}

.council-links-section .button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 代替ボタンスタイル */
.council-links-section .alt-btn {
    display: inline-block;
    background: white;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
}

.council-links-section .alt-btn:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
}

.council-links-section .history-alt::before {
    content: '📖 ';
}

.council-links-section .about-alt::before {
    content: '🏠 ';
}

@media (max-width: 768px) {
    .council-links-section .button-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .council-links-section .alt-btn {
        width: 200px;
    }
}

/* リスト要素のスタイル修正 */
.entry-content ul,
.post-content ul,
article ul,
.page-content ul {
    margin-left: 20px;
    padding-left: 20px;
    list-style-type: disc;
    list-style-position: outside;
}

.entry-content li,
.post-content li,
article li,
.page-content li {
    margin-bottom: 8px;
    padding-left: 0;
    list-style-type: disc;
}

/* より具体的にリスト項目を指定 */
.entry-content ul li::before,
.post-content ul li::before,
article ul li::before,
.page-content ul li::before {
    content: none; /* カスタムの疑似要素があれば無効化 */
}

/* 入れ子のリスト */
.entry-content ul ul,
.post-content ul ul,
article ul ul,
.page-content ul ul {
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* 段落内のリスト */
p + ul,
ul + p {
    margin-top: 15px;
}

/* モバイルメニューのCSS（既存のCSSに追加/修正） */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a365d;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .mobile-nav ul {
        list-style: none;
        padding: 1rem;
        margin: 0;
    }
    
    .mobile-nav li {
        margin-bottom: 0.5rem;
    }
    
    .mobile-nav a {
        color: white;
        text-decoration: none;
        display: block;
        padding: 0.5rem;
        border-radius: 4px;
    }
    
    .mobile-nav a:hover {
        background-color: rgba(255,255,255,0.1);
    }
}