@charset "utf-8";

.okayama-ishin-logo:hover{
    opacity: 0.5;
}

.header{
    position: relative;
}

.top-header-icon{
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 400;
}

@media screen and (max-width: 340px) {
    .top-header-icon{
        top: 20px;
        left: 20px;
    }
}

/* header-fixed */
.header-fixed{
    width: 100%;
    height: 130px;
    padding: 10px 4%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 500;
    transition: transform 0.3s ease-in-out; /* スライドイン・アウトのアニメーション */
    transform: translateY(-100%); /* 画面上部から隠す */
}

.header-fixed.visible{
    transform: translateY(0); /* 画面内に表示 */
}

.header-icon{
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-nav{
    position: relative;
    z-index: 1;
    width: 70%;
}

.header-fixed .header-nav-list{
    max-width: 940px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

/* 項目数によって変更あり */
.header-nav-list>li{
    width: calc(100% / 5); /* 現在5項目のため、(100% / 5) */
    max-width: 100px;
    margin: 0;
    display: flex;
}

.header-nav-list>li>.header-nav-item-box{
    display: block;
    position: relative;
    z-index: 2;
    background-color: #fff;
    border: 2px solid #00A556;
    box-shadow: 0 0 4px gray;
    color: #00A556;
    text-align: center;
    line-height: 1.5;
    width: 100%;
    border-radius: 20px;
    padding: 75px 5px 8px 5px;
    transition: 0.3s;
}

.header-nav-list>li>.header-nav-item-box:hover{
    background-color: #00A556;
    color: #fff;
    transition: 0.3s;
}

.header-nav-list>li.active>.header-nav-item-box{
    background-color: #00A556;
    border-color: #00A556;
    color: #fff;
}

.header-nav-list>li.home>.header-nav-item-box::before{
    background-image: url(../images/header/home-green.webp);
}

.header-nav-list>li.home:hover>.header-nav-item-box::before{
    background-image: url(../images/header/home-white.webp);
}

.header-nav-list>li.active.home>.header-nav-item-box::before{
    background-image: url(../images/header/home-white.webp);
}

.header-nav-list>li.news>.header-nav-item-box::before{
    background-image: url(../images/header/news-green.webp);
}

.header-nav-list>li.news:hover>.header-nav-item-box::before{
    background-image: url(../images/header/news-white.webp);
    transition: 0.3s;
}

.header-nav-list>li.active.news>.header-nav-item-box::before{
    background-image: url(../images/header/news-white.webp);
}

.header-nav-list>li.policy>.header-nav-item-box::before{
    background-image: url(../images/header/policy-green.webp);
}

.header-nav-list>li.policy:hover>.header-nav-item-box::before{
    background-image: url(../images/header/policy-white.webp);
    transition: 0.3s;
}

.header-nav-list>li.active.policy>.header-nav-item-box::before{
    background-image: url(../images/header/policy-white.webp);
}

.header-nav-list>li.member>.header-nav-item-box::before{
    background-image: url(../images/header/member-green.webp);
}

.header-nav-list>li.member:hover>.header-nav-item-box::before{
    background-image: url(../images/header/member-white.webp);
    transition: 0.3s;
}

.header-nav-list>li.active.member>.header-nav-item-box::before{
    background-image: url(../images/header/member-white.webp);
}

.header-nav-list>li.election>.header-nav-item-box::before{
    background-image: url(../images/header/election-green.webp);
}

.header-nav-list>li.election:hover>.header-nav-item-box::before{
    background-image: url(../images/header/election-white.webp);
    transition: 0.3s;
}

.header-nav-list>li.active.election>.header-nav-item-box::before{
    background-image: url(../images/header/election-white.webp);
}

.header-nav-list>li.contact>.header-nav-item-box::before{
    background-image: url(../images/header/contact-green.webp);
}

.header-nav-list>li.contact:hover>.header-nav-item-box::before{
    background-image: url(../images/header/contact-white.webp);
    transition: 0.3s;
}

.header-nav-list>li.active.contact>.header-nav-item-box::before{
    background-image: url(../images/header/contact-white.webp);
}

.header-nav-list>li.others>.header-nav-item-box::before{
    background-image: url(../images/header/others-green.webp);
}

.header-nav-list>li.others:hover>.header-nav-item-box::before{
    background-image: url(../images/header/others-white.webp);
    transition: 0.3s;
}

.header-nav-list>li.active.others>.header-nav-item-box::before{
    background-image: url(../images/header/others-white.webp);
}

.header-nav-list>li.about>.header-nav-item-box::before{
    background-image: url(../images/okayama-ishin-logo-tra.webp);
}

.header-nav-list>li>.header-nav-item-box::before{
    position: absolute;
    content: "";
    width: 50px;
    height: 50px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    top: 15px;
    left: calc(50% - 24px);
}

.header-nav-item-title{
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media screen and (min-width: 1200px) {
    .header-nav-list>li{
        max-width: 110px;
    }
}

@media screen and (max-width: 1200px) {
    .header-icon{
        width: 250px;
    }

    .header-fixed{
        padding: 10px 2%;
    }

    .header-nav-list{
        gap: 20px;
    }

    .header-nav-item-title{
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 1000px) {
    .header-nav-list{
        gap: 10px;
    }
}

@media screen and (max-width: 800px) {
    .header-fixed{
        height: 90px;
    }

    .header-nav{
        display: none;
    }
}

/* header-site-nav */
.header-site-nav{
    position: absolute;
    top: 60vh;
    transform: translateY(-40%);
    right: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px gray;
    padding: 10px 20px;
    border-radius: 15px;
    z-index: 200;
}

.header-site-nav-header{
    text-align: center;
    padding-bottom: 20px;
}

.header-site-nav-body{
    max-width: 520px;
    margin: 0 auto 10px;
}

.header-site-nav-body>.header-nav-list{
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

@media screen and (max-width: 800px) {
    .header-site-nav{
        display: none;
    }
}

/* header-sp */
.header-sp {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS用 */
}

.header-sp-menu{
    position: fixed;
    z-index: 700;
    overflow-x: auto;
    bottom: 35px;
    right: 0;
    width: 100%;
    height: 95px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

@media screen and (min-width: 700px) {
    .header-sp-menu{
        right: auto;        
    }
    .header-sp-menu-box{
        left: 50%;
        transform: translateX(-50%);
    }
}

.header-sp-menu-box {
    position: relative;
    width: max-content; 
    padding: 10px 15px;
    margin: 0 20px;
    background-color: rgba(0, 0, 0, 0.1); /* 背景色 */
    border: 1px solid rgba(255, 255, 255, 0.4); /* ボーダー */
    border-right-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    -webkit-backdrop-filter: blur(10px); /* ぼかしエフェクト */
    backdrop-filter: blur(3px);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); /* 薄い影 */
}

.header-nav-list {
    display: flex;
    flex-wrap: nowrap; 
    gap: 10px;

}

.header-nav-list>li.header-sp-menu-nav-item{
    width: 66px;
    max-width: 100px;
    margin: 0;
    display: flex;
    scroll-snap-align: center;
}

.header-nav-list>li.header-sp-menu-nav-item>.header-nav-item-box{
    display: block;
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.7);
    border: 0;
    box-shadow: 0;
    color: #00A556;
    text-align: center;
    line-height: 1.5;
    width: 100%;
    padding: 45px 5px 10px 5px;
    transition: 0.3s;
    cursor: pointer;
}

.header-nav-list>li.header-sp-menu-nav-item>.header-nav-item-box:hover{
    background-color: rgba(0, 165, 86, 0.7);
    color: #fff;
    transition: 0.3s;
}

.header-nav-list>li.header-sp-menu-nav-item.active>.header-nav-item-box{
    background-color: rgba(0, 165, 86, 0.7);
    border-color: #00A556;
    color: #fff;
}

.header-nav-list>li.header-sp-menu-nav-item>.header-nav-item-box::before{
    position: absolute;
    content: "";
    width: 30px;
    height: 30px;
    top: 15px;
    left: calc(50% - 15px);
}

.header-nav-list>li.header-sp-menu-nav-item.header-sp-menu-button>.header-nav-item-box::before{
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: 0;
}

.header-sp-menu-nav-item-title{
    font-size: 0.5rem
}

.header-menu-modal{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    cursor: pointer;
}

.menu-modal-open-button{
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 30px;
    height: 30px;
    z-index: 999;
}

.menu-modal-open{
    content: "";
    position: center;
    z-index: 999;
    width: 10px;
    display: block; 
}

.menu-modal-open i{
    content: "";
    position: absolute;
    background-color: #00A556;
    top: calc(50% - 0px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    transition: .25s;
}

.menu-modal-open::before{
    content: "";
    position: absolute;
    background-color: #00A556;
    top: calc(50% - 5px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    transition: .25s;
}

.menu-modal-open::after{
    content: "";
    position: absolute;
    background-color: #00A556;
    top: calc(50% - -5px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    transition: .25s;
}

.header-nav-list>.header-nav-item.header-sp-menu-nav-item.header-sp-menu-button:hover .menu-modal-open i,.header-nav-list>.header-nav-item.header-sp-menu-nav-item.header-sp-menu-button:hover .menu-modal-open::before,.header-nav-list>.header-nav-item.header-sp-menu-nav-item.header-sp-menu-button:hover .menu-modal-open::after{
    background-color: #fff;
    transition: .25s;
}

.header-nav-item.header-sp-menu-nav-item.header-sp-menu-button.active .menu-modal-open i{
    display: none;
}

.header-nav-item.header-sp-menu-nav-item.header-sp-menu-button.active .menu-modal-open::before{
    background-color: #fff;
    transform: rotate(45deg);
    transition: .25s;
    top: 15px;
    left: 0;
}

.header-nav-item.header-sp-menu-nav-item.header-sp-menu-button.active .menu-modal-open::after{
    background-color: #fff;
    transform: rotate(-45deg);
    transition: .25s;
    top: 15px;
    left: 0;
}

.menu-modal-overlay{
    display: none;
    position: fixed;
    z-index: 500;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.header-sp{
    display: none;
}

@media screen and (max-width: 800px) {
    .header-sp{
        display: block;
    }
}

.header-sp-swiper {
    position: fixed !important;
    display: none !important; /* JSのクラス追加まで非表示 */
    bottom: 140px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    height: 70%;
    z-index: 800 !important;
}

.header-sp-swiper.is-active {
    display: block !important;
}


.header-sp-swiper .swiper-slide {
    padding: 20px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.header-sp-swiper-slide-header {
    flex-shrink: 0;
    margin: 0 auto 10px;
    width: fit-content;
}

.header-sp-swiper-slide-header p{
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0 auto;
    width: fit-content;
    padding: 0 0 5px;
    border-bottom: 2px solid #00A556;
}

.header-sp-swiper-slide-body{
    flex-grow: 1;
    overflow-y: auto;
}

.swiper-slide .header-nav-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, 100px);
    gap: 10px 10px;
    margin: 0 auto;
    justify-content: center;
}

.swiper-slide .header-nav-item{
    width: 200px;
}

.menu-modal-overlay.is-visible {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-sp-swiper-slide-item{
    position: relative;
    margin: 15px 3%;
    padding: 10px 5px;
    border: 2px solid #00A556;
    border-radius: 5px;
    box-shadow: 4px 4px gray;
    font-size: 1.1rem;
    font-weight: 600;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
}

.header-sp-swiper-slide-item>a{
    display: block;
}

.header-sp-swiper-slide-item:hover{
    box-shadow: 0 0 rgba(255, 255, 255, 0);
    top: 2px;
    left: 2px;
}

.header-sp-swiper-slide-body-contact-desc{
    font-size: 1.0rem;
    font-weight: 500;
    margin-bottom: 10px;
}

@media screen and (max-width: 343px) {
    .header-sp-swiper-slide-header p{
        font-size: 1.0rem;
    }
    .header-sp-swiper-slide-item{
        font-size: 0.8rem;
    }
}

.page-top{
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: solid 2px #00A556;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: transform 0.3s ease-in-out; /* スライドイン・アウトのアニメーション */
    transform: translateY(600%); /* 画面上部から隠す */
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #00A556;
    border-right: 3px solid #00A556;
    transform: translateY(20%) rotate(-45deg);
}

.page-top.visible{
    transform: translateY(0); /* 画面内に表示 */
}

@media screen and (max-width: 800px) {
    .page-top{
        right: 15px;
        bottom: 180px;
    }
}


/* conctact */
.form-table{
    margin: auto;
    border-collapse: collapse;
}

.form-table tr.contact-item{
    border-top: 2px solid #D9D9D9;
}


.form-table th{
    text-align: start;
    padding: 20px 5px 20px 0;
}

.form-table td{
    padding: 20px 0;
    max-width: 500px;
}

.form-table th p{
    font-size: 1.2rem;   
}

@media screen and (max-width: 800px) {
    .form-table tr{
        display: flex;
        flex-wrap: wrap;
    }
    .form-table th{
        padding: 10px 10px 10px 0;
    }
    .form-table td{
        max-width: none;
        padding: 10px 0;
    }
    .form-table th p{
        font-size: 1.0rem;   
    }
    .m-required-kana{
        display: none !important;
    }
    .m-input-item{
        width: 100% !important; 
    }
    .m-required{
        margin-left: 10px;
    }
    .form-table td .m-input-horizontal-col2{
        margin: 2%;
        width: 44%;
        padding: 0 5% 0 50px;
    }
    .m-input-horizontal-col2.name-sei::before{
        top: 5px;
        left: 12.5px;
    }
    .m-input-horizontal-col2.name-mei::before{
        top: 5px;
        left: 12.5px;
    }
    .m-input-horizontal-col2.kana-sei::before{
        top: 5px;
        left: 0;
    }
    .m-input-horizontal-col2.kana-mei::before{
        top: 5px;
        left: 0;
    }
}

@media screen and (max-width: 480px) {
    .form-table td .m-input-horizontal-col2{
        width: 46% !important;
        padding: 0 0 0 40px !important;
    }
}

.horizontal-item{
    height: fit-content;
}

.m-input-col2{
    display: flex;
}

.form-table td .m-input-horizontal-col2{
    margin: 2%;
    position: relative;
    width: 44%;
    padding: 0 5% 0 50px;
}

.m-input-horizontal-col2.name-sei::before{
    position: absolute;
    top: 5px;
    left: 12.5px;
    content: "姓";
    font-weight: 600;
}

.m-input-horizontal-col2.name-mei::before{
    position: absolute;
    top: 5px;
    left: 12.5px;
    content: "名";
    font-weight: 600;
}

.m-input-horizontal-col2.kana-sei::before{
    position: absolute;
    top: 5px;
    left: 0;
    content: "せい";
    font-weight: 600;
}

.m-input-horizontal-col2.kana-mei::before{
    position: absolute;
    top: 5px;
    left: 0;
    content: "めい";
    font-weight: 600;
}

.m-input-vertical{
    max-width: 400px;
}

.m-required{
    display: inline-block;
    background-color: #E71324;
    padding: 5px;
    margin-right: 20px;
    font-size: 1.0rem;
    color: #fff;
    text-align: center;
    line-height: 1;
    border-radius: 3px;
}

.wpcf7-form-control{
    width: 100%;
    margin: 3px 0;
    padding: 1px 3px;
    background-color: #fff;
    border: 1px solid #333;
    border-radius: 5px;
}

.contact-form-button{
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 15px auto 5px;
}

.contact-form-button-box{
    padding: 2px 5px;
    background-color: #00A556;
    border-radius: 5px;
    color: #fff;
    font-size: 1.0rem;
    box-shadow: 0 0 8px gray;
}

.contact-form-button-box:hover{
    background-color: #CCEDDD;
    color: #333;
    font-weight: 600;
}

/* 入力が不正なとき（@がないメールアドレスなど）に枠を赤くする */
.js-input:invalid {
    background-color: rgba(231, 19, 36, 0.05);
}



/* background */

.background{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}

.js-background-swiper {
  /* margin: 0 calc(50% - 50vw); は fixed の中にある場合は不要になることが多いですが、
     現状のデザインを維持するため一旦残すか、width: 100% 指定にします */
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.js-background-swiper .slide-images img {
  display: block; /* 隙間防止 */
  object-fit: cover;
  height: 100vh;
  width: 100vw;
  animation-name: zoomIn;
  animation-duration: 5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes zoomIn {
  from { transform: scale(1.05); }
  to { transform: scale(1.0); }
}

.swiper-scrollbar-horizontal{
  display: none;
}


