/* === Header Base === */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    /* background: white; */
    background: linear-gradient(20deg, #f3f11d, #00c61b);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    max-width: 1200px;
    margin: 0 auto;
}

/* === Logo Section === */
.logo-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-left a img {
    height: 50px;
    width: auto;
    display: block;
}

/* === Navigation === */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1em;
}

.nav-menu li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    text-shadow: 1px 1px 6px #fff;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #2bc00e;
}

.fix-side-btn {
    width: 400px;
    margin: 0 auto;
    max-width: 100vw;
    margin-top: 50px;
}

.fix-side-btn ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2列 */
    grid-template-rows: 1fr 1fr;
    /* 2行 */
    width: 100%;
    /* height: 100vh; */
    /* 画面全体を埋める */
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 10px;
}

.fix-side-btn li {
    margin: 0;
    padding: 0;
}

.fix-side-btn img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}


/* === Hamburger Menu === */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: 0.3s;
}

/* === Hamburger Animation === */
.menu-toggle:checked+.hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle:checked+.hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked+.hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* @media screen and(max-width:1091px) {} */

/* === Responsive (Mobile) === */
@media screen and (max-width: 1091px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background: rgba(38, 166, 12, 0.967);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        display: block;
        justify-content: center;
        align-items: center;
    }

    .menu-toggle:checked~.nav div.nav-logo {
        display: flex;
        margin: 80px auto 30px;
        gap: 10px;
        justify-content: center;
        align-items: center;
        max-width: 600px;
    }

    .menu-toggle:checked~.nav div.nav-logo>a {
        width: 50%;
    }

    .menu-toggle:checked~.nav .logo {
        display: block;
    }

    .menu-toggle:checked~.nav .fix-side-btn {
        display: block;
    }

    .menu-toggle:checked~.nav {
        transform: translateX(0);
    }

    .menu-toggle:checked~.nav .nav-logo a img {
        max-width: 300px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1.3em;
        align-items: center;
    }

    .nav-menu li a {
        color: #fff;
        font-size: 1.1rem;
        text-shadow: none;
        transition: 0.3s ease;
    }

    .nav-menu li a:hover {
        color: #e4e60a;
        text-shadow: 1px 1px 3px white;
        transition: 0.3s ease;
    }

    .hamburger {
        display: flex;
    }

    .logo-left img {
        height: 40px;
    }
}

.nav .fix-side-btn {
    display: none;
}

@media screen and (max-width: 561px) {
    .logo.nihon-ishin {
        display: none;
    }
}

#subpage #header {
    opacity: 1;
}



/* footer */
.site-footer {
    background: linear-gradient(20deg, #f3f11d, #00c61b);
    color: #000000;
    padding: 3em 1.5em 1em;
    text-align: center;
}

.footer-left {
    position: relative;
}

.footer-logo-posi {}

.footer-logo-posi img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 必要に応じて left などに変更可能 */
    gap: 20px;
    /* ロゴ間のスペース */
    margin-bottom: 1em;
}

.footer-logo img {
    height: 50px;
    /* おおいた維新の会と同じ高さに統一 */
    width: auto;
}

.nav .logo {
    display: none;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 1em 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #f06c64;
}

.footer-sns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 1.5em 0;
}

.sns-icon {
    font-size: 22px;
    /* background: linear-gradient(to right, #ccc, #eee); */
    /* 初期値（上書きされます） */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease-in-out;
    -webkit-text-fill-color: #fff;
}

/* 
.sns-icon:hover i::before {
    -webkit-text-fill-color: #fff;
    transform: scale(1.1);
    font-size: 1.4rem;
    transition: all 0.3s ease-in-out;
} */

.sns-icon i {
    transition: transform .1s ease-in-out;
}

/* hover時に拡大 */
.sns-icon:hover i {
    transform: translate(-50%, -50%) scale(.9) !important;
}

/* X (黒グラデーション) */
.sns-icon.twitter {
    background: black;
    width: 50px;
    border-radius: 50%;
    height: 50px;
    position: relative;
}

.fa-twitter::before,
.fa-twitter-square::before {
    font-family: vk_sns;
    content: "\e606";
}

.index .youtube-section .fa-youtube:before {
    font-size: 4rem;
}

/* YouTube (赤系グラデーション) */
.sns-icon.youtube {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    width: 50px;
    border-radius: 50%;
    height: 50px;
    position: relative;
}

/* Facebook (青系グラデーション) */
.sns-icon.facebook {
    background: linear-gradient(45deg, #3b5998, #1e3c72);
    width: 50px;
    border-radius: 50%;
    height: 50px;
    position: relative;
}

/* HP */
.sns-icon.home {
    background: linear-gradient(45deg, #ffd2a2, #e0721f);
    width: 50px;
    border-radius: 50%;
    height: 50px;
    position: relative;
}

/* instagram  */
.sns-icon.instagram {
    background: linear-gradient(45deg, #833AB4, #C13584, #E1306C, #F77737);
    width: 50px;
    border-radius: 50%;
    height: 50px;
    position: relative;
}

.social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.custom-footer .fab,
.custom-footer .fas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-footer .sns-icon.twitter,
.custom-footer .sns-icon.facebook,
.custom-footer .sns-icon.instagram,
.custom-footer .sns-icon.youtube {
    /* background: none; */
    border-radius: 50%;
    font-size: 1.7rem;
}


/* 
.fab,
.fas {
    font-size: 1.4rem;
    transition: all 0.3s ease-in-out;

} */

.footer-sns .fab {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 3em;
}



.footer-nav {
    margin-bottom: 1em;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0.5em 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2em;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #f06c64;
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1.5em;
    color: #000000;
    /* opacity: 0.9; */
    font-style: normal;
    max-width: 300px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .footer-address {
        text-align: center;
    }
}


.custom-footer {
    background: linear-gradient(20deg, #f3f11d, #00c61b);
    padding: 3em 2em 2em;
    font-family: 'Noto Serif JP', serif;
    color: #000;
}

.footer-inner {
    display: flex;
    justify-content: space-around;
    /* gap: 100px; */
    align-items: flex-start;
    flex-wrap: wrap;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 4em;
}

.footer-left {
    /* display: flex; */
    /* flex-direction: column;
    align-items: center; */
    max-width: 45%;
}

.footer-logo {
    max-width: 360px;
    margin-bottom: 1em;
}

.footer-tagline {
    font-size: 1.3rem;
    line-height: 1.6;
    position: relative;
    top: 90px;
}

.footer-tagline .ja {
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px #ffffff;
}

.footer-tagline .en {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.3em;
}

.footer-right {
    max-width: 50%;
    margin-top: 30px;
}

/* .footer-menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em 2em;
    font-size: 1rem;
} */

.footer-menu {
    display: grid;
    grid-template-columns: repeat(3, auto);
    /* 3列 */
    gap: 40px 20px;
    /* 行間10px、列間20px */
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.1rem;
}

.footer-menu li {
    margin: 0;
    text-align: center;
}

.footer-menu.top {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 30px;
    grid-template-columns: repeat(1, auto);
}

.footer-menu.bottom {
    grid-template-columns: repeat(1, auto);
}

.footer-menu.bottom>.social-icons {
    gap: 30px!important;
}

.footer-menu.top li {
    text-align: left;
}

.footer-menu a {
    color: #000000;
    /* お好みで調整 */
    text-decoration: none;
    /* font-size: 14px; */
    transition: opacity 0.3s ease;
}

.footer-menu.middle a:hover {
    opacity: 0.7;
}

.footer-bottom {
    margin-top: 2em;
    text-align: center;
    font-size: 0.9rem;
}

.footer-link {
    display: inline-block;
    margin-bottom: 1em;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 0.1em;
}

/* .back-to-top {
    display: block;
    margin-bottom: 1em;
    color: #000;
    text-decoration: none;
}

.back-to-top:hover {
    text-decoration: underline;
} */

@media screen and (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        max-width: 100%;
        align-items: center;
    }

    .footer-menu {
        justify-content: center;
    }

    .footer-tagline {
        text-align: center;
    }

    .footer-menu {
        display: grid;
        gap: 40px 10px;
        text-align: center;
    }

    .footer-menu.top {
        text-align: left;
    }

    .footer-menu.top a {
        font-size: 1.6rem;
    }

    .footer-menu a {
        font-size: .9rem;
    }

    .footer-right {
        margin-top: 160px;
    }

}