@charset "utf-8";

/* ==========================================================================
   1. 基本変数・リセット設定
   ========================================================================== */
:root {
    --primary-orange: #ff8c00;
    --text-dark: #333;
    --text-light: #666;
    --bg-white: #ffffff;
    --bg-gray: #f9f9f9;
}

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

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: "Yu Mincho", "MS Mincho", serif;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul { list-style: none; }

/* ==========================================================================
   2. ヘッダーエリア
   ========================================================================== */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 0 5% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 10000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 100% !important;
}

.header-logo-img {
    height: 76px !important;
    width: auto !important;
    max-height: 76px !important;
    display: block !important;
    object-fit: contain !important;
}

.header-logo-text {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    color: #1a1a1a !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
    line-height: normal !important;
    font-family: "Times New Roman", "Yu Mincho", "Source Han Serif JP", "MS Mincho", serif !important;
}

nav ul {
    display: flex !important;
    gap: 25px !important;
    align-items: center !important;
}

nav a {
    color: var(--text-dark) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

nav a:hover { 
    color: var(--primary-orange) !important; 
}

.hamburger { 
    display: none; 
    cursor: pointer; 
}

/* ==========================================================================
   3. 各セクション共通設定
   ========================================================================== */
section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-orange);
}

/* ==========================================================================
   4. メインビジュアル（左右反転：左に文字、右に写真のPC用新レイアウト）
   ========================================================================== */
#top {
    height: auto !important;
    min-height: 100vh !important;
    padding-top: 100px !important;
    padding-bottom: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.top-image-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 5% !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
}

.top-image-wrapper img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    object-fit: cover !important;
}

.top-content-fallback {
    background: #ffffff !important;
    padding: 40px !important;
    max-width: 800px !important;
    width: 90% !important;
    margin: 30px auto 0 !important;
    border-top: 6px solid #ff8c00 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.top-content-fallback h2 { 
    font-size: 2.0rem !important; 
    margin-bottom: 20px !important; 
    line-height: 1.4 !important; 
    color: #111111 !important; 
    font-family: "Yu Mincho", serif !important;
}

.top-content-fallback p { 
    font-size: 1.1rem !important; 
    margin-bottom: 30px !important; 
    color: #333333 !important; 
}

.top-links-area { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    flex-wrap: wrap !important; 
    gap: 30px !important; 
}

.sns-icons { display: flex !important; gap: 20px !important; }
.sns-icons a { font-size: 2.2rem !important; color: #ff8c00 !important; transition: 0.3s !important; }
.sns-icons a:hover { color: #1a1a1a !important; transform: translateY(-3px) !important; }

.text-links { display: flex !important; gap: 15px !important; align-items: center !important; }
.btn-text-link { 
    font-size: 0.95rem !important; 
    font-weight: bold !important; 
    color: #ffffff !important; 
    background: #ff8c00 !important; 
    padding: 10px 20px !important; 
    border-radius: 4px !important; 
    transition: 0.3s !important; 
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.2) !important; 
}
.btn-text-link:hover { color: #ffffff !important; background: #1a1a1a !important; transform: translateY(-2px) !important; }

@media (min-width: 992px) {
    #top {
        flex-direction: row-reverse !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 140px 8% 60px !important;
        gap: 4% !important;
    }

    .top-image-wrapper {
        flex: 0 0 52% !important;
        max-width: 52% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .top-image-wrapper img {
        border-radius: 12px !important;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    }

    .top-content-fallback {
        flex: 0 0 44% !important;
        max-width: 44% !important;
        width: auto !important;
        margin: 0 !important;
        padding: 45px !important;
        border-top: none !important;
        border-left: 8px solid #ff8c00 !important;
        border-right: none !important;
        border-radius: 8px !important;
        text-align: left !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.06) !important;
    }

    .top-content-fallback h2 { font-size: 2.1rem !important; margin-bottom: 25px !important; }
    .top-content-fallback p { font-size: 1.05rem !important; margin-bottom: 35px !important; }

    .top-links-area { justify-content: flex-start !important; }
}

/* ==========================================================================
   5. プロフィール・重点政策セクション
   ========================================================================== */
#profile { background: var(--bg-white); }
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}
.profile-image img {
    width: 100%;
    border-radius: 5px;
    filter: grayscale(20%);
}
.message-box {
    margin-top: 40px;
    background: var(--bg-gray);
    padding: 30px;
    border-radius: 10px;
}
.message-box h3 { color: var(--primary-orange); margin-bottom: 15px; }

#policy { background: var(--bg-gray); }
.policy-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.policy-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    text-align: center;
}
.policy-card i {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

/* ==========================================================================
   6. 活動報告・各種SNS
   ========================================================================== */
.activity-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.profile-sub-title { margin-top: 20px !important; }
.activity-sub-title { margin-bottom: 20px !important; font-size: 1.3rem !important; }
.icon-youtube { color: #ff0000 !important; margin-right: 8px !important; }

.video-alt-box {
    position: relative !important;
    background: #111 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
}
.video-alt-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.7 !important;
    filter: brightness(0.8) !important;
    transition: 0.5s ease !important;
}
.video-alt-link {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
    background: rgba(0,0,0,0.2) !important;
    transition: 0.3s !important;
}
.video-alt-box:hover .video-alt-link { background: rgba(0,0,0,0.4) !important; }
.video-alt-box:hover .video-alt-thumb { transform: scale(1.05) !important; }

/* SNSボックス関連 */
.sns-embed-box { display: flex !important; flex-direction: column !important; gap: 30px !important; }
.x-custom-box { background: #ffffff !important; border: 1px solid #e1e8ed !important; border-radius: 12px !important; padding: 30px !important; text-align: center !important; box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important; }
.icon-x-large { font-size: 3rem !important; color: #1a1a1a !important; margin-bottom: 15px !important; }
.sns-box-title { font-size: 1.1rem !important; margin-bottom: 10px !important; font-family: 'Yu Mincho', serif !important; }
.sns-box-desc { font-size: 0.9rem !important; color: #666666 !important; margin-bottom: 25px !important; }

a.btn-sns-follow { display: inline-block !important; background: #1a1a1a !important; color: #ffffff !important; padding: 14px 40px !important; border-radius: 30px !important; font-weight: bold !important; font-size: 0.95rem !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important; }
a.btn-sns-follow:hover { opacity: 0.8 !important; }

.insta-timeline-wrapper { border: 1px solid #e1e1e1 !important; border-radius: 12px !important; background: #ffffff !important; padding: 15px !important; text-align: center !important; }
.insta-box-title { font-size: 0.9rem !important; margin-bottom: 10px !important; font-weight: bold !important; }
.icon-insta { color: #cf2872 !important; }

a.btn-insta-link { display: block !important; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; color: #ffffff !important; padding: 12px !important; border-radius: 6px !important; font-weight: bold !important; font-size: 0.9rem !important; }
a.btn-insta-link:hover { opacity: 0.9 !important; }

/* ==========================================================================
   7. 応援する・事務所案内
   ========================================================================== */
section#support { background: var(--bg-gray) !important; }
.support-fix-wrapper { max-width: 800px !important; margin: 0 auto 50px !important; text-align: center !important; }
.support-sub-title { margin-bottom: 20px !important; }

#access { background: var(--bg-gray); }
.access-container { max-width: 600px !important; margin: 0 auto !important; text-align: center !important; }
.access-container p { text-align: center !important; }

/* ==========================================================================
   8. フッター
   ========================================================================== */
footer {
    background: #eef2f5 !important;
    color: #4a5568 !important;
    padding: 60px 10%;
    text-align: center;
}

.footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    width: 100% !important;
}

.footer-logo-img {
    height: 76px !important;
    width: auto !important;
    max-height: 76px !important;
    display: block !important;
    object-fit: contain !important;
}

.footer-logo span {
    font-size: 1.1rem !important;
    font-weight: bold !important;
    letter-spacing: 0.08em !important;
    font-family: "Times New Roman", "Yu Mincho", "Source Han Serif JP", "MS Mincho", serif !important;
    color: #1a1a1a !important;
}

.footer-links {
    margin-bottom: 15px !important;
}
.footer-links a {
    color: #4a5568 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: 0.3s;
}
.footer-links a:hover {
    color: #ff8c00 !important;
}

footer p {
    color: #718096 !important;
    font-size: 0.9rem !important;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   9. レスポンシブ（スマホ・タブレット対応用アップデート版）
   ========================================================================= */
@media (max-width: 768px) {
    header { padding: 0 15px !important; height: 60px !important; }
    
    /* 【修正】display: none を解除し、スマホ用の全画面（またはドロワー）メニューとして再定義 */
    nav { 
        display: block !important; 
        position: fixed !important;
        top: 60px !important; /* ヘッダーの高さに合わせる */
        left: 100% !important; /* 初期状態は画面の右外に隠す */
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        transition: 0.3s ease !important;
        z-index: 9999 !important;
    }
    
    /* JavaScriptで「open」クラスがついたら画面内にスライドイン */
    nav.open {
        left: 0 !important;
    }

    /* スマホメニュー内のリストを縦並びにする */
    nav ul {
        flex-direction: column !important;
        gap: 0 !important;
        padding-top: 20px !important;
    }

    nav ul li {
        width: 100% !important;
        text-align: center !important;
        border-bottom: 1px solid #eee !important;
    }

    nav ul li a {
        display: block !important;
        padding: 20px 0 !important;
        font-size: 1.1rem !important;
        width: 100% !important;
    }
    
    /* ハンバーガーボタンのスタイル設定 */
    .hamburger { 
        display: block !important; 
        font-size: 1.5rem !important;
        color: var(--text-dark) !important;
        cursor: pointer !important; 
        z-index: 10001 !important;
        transition: 0.3s !important;
    }

    /* 【オマケ】メニューが開いているときに三本線ボタンを少し変化（色変えなど）させる場合 */
    .hamburger.active {
        color: var(--primary-orange) !important;
    }
    
    .header-logo-img { height: 20px !important; max-height: 20px !important; }
    .header-logo-text { font-size: 1.0rem !important; }
    
    #top {
        padding-top: 80px !important;
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    .top-image-wrapper { padding: 0 !important; }
    .top-image-wrapper img { border-radius: 0 !important; }
    
    .top-content-fallback { 
        width: 100% !important; 
        margin: 0 !important; 
        padding: 30px 20px !important; 
        box-shadow: none !important; 
    }
    
    .top-content-fallback h2 { font-size: 1.4rem !important; }
    .top-content-fallback p { font-size: 0.95rem !important; }
    .top-links-area { flex-direction: column !important; gap: 20px !important; }

    /* 各セクションの縦余白をスマホ用に最適化 */
    section {
        padding: 60px 5%;
    }
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    /* 【プロフィール】グリッドを解除し、写真→文章の順で縦並びに固定 */
    .profile-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    /* スマホ画面で写真が大きすぎないよう適正サイズに制御 */
    .profile-image {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    /* 【重点政策】3カラムカードを縦並びに変更 */
    .policy-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 【活動報告】左右2分割を縦並びに変更 */
    .activity-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}