/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-color: #417B5C;
    --secondary-color: #356349;
    --accent-color: #F39C12;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --bg-light: #F6F6E9;
    --bg-base: #F6F6E9;
    --shadow: 0 4px 6px rgba(65, 123, 92, 0.1);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-base);
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
/* ========================================
   Mobile Menu Button
   ======================================== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(65, 123, 92, 0.5);
    z-index: 1001;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   Mobile Sidebar
   ======================================== */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
}

.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--text-light);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s;
    padding: 2rem 1.5rem;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.mobile-sidebar ul {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-sidebar ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #E9ECEF;
}

.mobile-sidebar ul li:last-child {
    border-bottom: none;
}

.mobile-sidebar ul li a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.mobile-sidebar ul li a:hover {
    color: var(--primary-color);
}

.mobile-sidebar .sns-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.mobile-sidebar .sns-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.mobile-sidebar .sns-link:hover {
    transform: scale(1.1);
}

/* ========================================
   Main Layout
   ======================================== */
.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 2rem;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    background: var(--text-light);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #E9ECEF;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: color 0.3s, transform 0.3s;
}

.sidebar ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-cta {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(65, 123, 92, 0.1) 0%, rgba(53, 99, 73, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    background: var(--text-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    text-align: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 3rem;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}


.hero-image-frame {
    width: 100%;
    height: 100%;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--primary-color);
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-catchphrase {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}
.wrapper {
    display: flex;
    flex-direction: column;
}
.wrapper-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
.wrapper-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    width: 150px;
    text-align: center;
    line-height: 1.5;
    background-color: #f3a73e;
    border-radius: 30px;
}
.wrapper-item p{
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
/* ========================================
   Section Styles
   ======================================== */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 5px solid var(--primary-color);
}

.section-label {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   Card Styles
   ======================================== */
.card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(65, 123, 92, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(65, 123, 92, 0.2);
}


.card-news:hover {
    cursor: pointer;
}
.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* ========================================
   Policy List
   ======================================== */
.policy-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.policy-item {
    background: var(--text-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(65, 123, 92, 0.1);
}

.policy-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.policy-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* ========================================
   Chart Placeholder
   ======================================== */
.chart-placeholder {
    background: linear-gradient(135deg, rgba(65, 123, 92, 0.05) 0%, rgba(53, 99, 73, 0.05) 100%);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    border: 2px dashed var(--primary-color);
}

/* ========================================
   Activity Grid
   ======================================== */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.activity-card {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(65, 123, 92, 0.1);
    transition: transform 0.3s;
}

.activity-card:hover {
    transform: scale(1.05);
}

.activity-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

.activity-content {
    padding: 1.5rem;
}

.activity-content h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.activity-date {
    font-size: 0.9rem;
    color: #6C757D;
    margin-bottom: 1rem;
}

/* ========================================
   News List
   ======================================== */
.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid #E9ECEF;
    position: relative;
}
.news-link {
    display: block;
    text-decoration: none;
}

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

.news-date {
    font-size: 0.9rem;
    color: #6C757D;
    margin-bottom: 0.3rem;
}

.news-title {
    color: var(--text-dark);
    font-weight: 500;
}

/* ========================================
   Info Box
   ======================================== */
.info-box {
    background: linear-gradient(135deg, rgba(65, 123, 92, 0.1) 0%, rgba(53, 99, 73, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

/* ========================================
   Budget Grid
   ======================================== */
.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.budget-item {
    background: linear-gradient(135deg, rgba(65, 123, 92, 0.05) 0%, rgba(53, 99, 73, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.budget-label {
    font-size: 0.9rem;
    color: #6C757D;
    margin-bottom: 0.5rem;
}

.budget-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.budget-total {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.budget-total .budget-label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.budget-total .budget-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.point_to_note {
    padding: 1.5rem;
    margin-left: 1.5rem;
}

/* ========================================
   Widget (Right Sidebar)
   ======================================== */
.widget {
    background: var(--text-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(65, 123, 92, 0.05);
}

.widget h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.sns-widget {
    text-align: center;
    padding: 2rem 1.5rem;
}

.sns-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.sns-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.sns-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: transform 0.3s;
}

.sns-link:hover {
    transform: scale(1.2);
}

.sns-widget .sns-link {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

/* ========================================
   Button Styles
   ======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(65, 123, 92, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(65, 123, 92, 0.5);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.7;
}

.footer-sns {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-sns a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-sns a:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.widget,
.activity-card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.widget:nth-child(1) { animation-delay: 0.1s; }
.widget:nth-child(2) { animation-delay: 0.2s; }
.widget:nth-child(3) { animation-delay: 0.3s; }

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .sidebar-right {
        grid-column: 1;
        position: static;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-sidebar-overlay,
    .mobile-sidebar {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-image-frame {
        height: 100%;
        font-size: 4rem;
    }

    .hero-catchphrase {
        font-size: 1.2rem;
    }

    .hero-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .policy-list,
    .activity-grid {
        grid-template-columns: 1fr;
    }

    .main-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-sns {
        justify-content: center;
    }

    .sidebar-right {
        display: none;
    }

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