/* 共通 */
* {
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
}

body {
    font-family: "M PLUS 1", sans-serif;
    position: relative;
    box-sizing: border-box;
}

/* 装飾 */
body::before {
    content: "";
    background: url(img/circle01.png) no-repeat;
    width: 15%;
    height: 30%;
    object-fit: contain;
    position: absolute;
    top: 23%;
    right: 0;
}
body::after {
    content: "";
    background: url(img/circle02.png) no-repeat;
    width: 50%;
    height: 31%;
    object-fit: cover;
    position: absolute;
    top: 990px;
    left: 0;
}

a,a:hover,a:visited{
    color: inherit;
}

/*// btn //*/
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: black;
    background-color: transparent;
    border: 2px solid #22AC38;
    border-radius: 5px;  
    text-align: center;
    position: relative;
    z-index: 2;
}

.more__btn {
    width: 180px;
    height: 50px;
    font-size: 17px;
    position: relative;
 }
 
 .more__btn::after {
     content: "";
     width: 180px;
     height: 50px;
     background-color: rgba(34, 172, 56,0.1);
     position: absolute;
     z-index: 1;
     top: 5px;
     left: 5px;
     border-radius: 5px;
 }

 .entry__btn {
    width: 400px;
    height: 60px;
    font-size: 30px;
    position: relative;
    z-index: 1;
 }

 .entry__btn::before {
    content: "";
     width: 400px;
     height: 60px;
     background-color: rgba(34, 172, 56,0.1);
     position: absolute;
     /* z-index: -1; */
     top: 10px;
     left: 7px;
     border-radius: 5px;
 }

/*///////// header /////////*/
.header {
    height: 124px;
    max-width: 1400px;
    margin: 0 auto;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3.8%;
}

.container__left {
    width: 43%;
}

.header__text {
    font-size: 10px;
    color: #9B9797;
}

.header__logo img{
    display: block;
    max-height: 100%;
    width: 278px;
    height: 100px;
    object-fit: contain;
}

.container__right {
    width: 57%;
}

.nav__list {
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
}

.nav__title {
    font-weight: bold;
    font-size: 17px;
    line-height: 20px;
    display: block;
}
.nav__item small {
    font-size: 9px;
}
.nav__list--sub {
    justify-content: end;
}
.nav__item--sub a{
    font-size: 14px;
    line-height: 1;
}
 .contact__btn {
    padding: 6px;
    margin-left: 10px;
    background-color: black;
    color: white;
} 

.contact__btn img {
    width: 13px;
    height: 10px;
    object-fit: cover;
    margin-right: 6px;
}

/* main */
main {
    padding-bottom: 90px;
}

/* wrapper */
.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.wrapper__border {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 13px;
    z-index: 100;
    background: url(img/wrapper_line.png)repeat-y center;
    background-size: contain;
}
.left {
    left: calc(50% - 700px);
}
.right {
    right: calc(50% - 700px);
}

/* /// mv ///*/
.mv {
    margin-bottom: 90px;
    position: relative;
    height: calc(100vh - 124px);
}
.mv__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mv__textContainer {
    position: absolute;
    width: 685px;
    top: 50%;
    left: 200px;
    transform: translateY(-50%);
}
.mv__title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 48px;
    margin-bottom: 30px;
    white-space: nowrap;
}
.mv__title span {
    font-size: 64px;
    color: #22A848;
}

.mv__text {
    font-size: 24px;
    line-height: 1.8;
    margin-bottom: 60px;
    width: 667px;
}


/* ///section ///*/
.section {
    width: 1000px;
    margin: 0 auto;
    position: relative;
}

.section__title {
    text-align: center;
    font-size: 48px;
    font-family: "Noto Sans JP", sans-serif;
    margin-bottom: 17px;
}
.title__text {
    text-align: center;
    font-size: 18px;
    margin-bottom: 60px;
}

.section__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    width: 1000px;
    height: 100%;
    margin: 0 auto 60px;
    position: relative;
}

.content__img {
    width: 320px;
    height: 250px;
    max-width: 100%;
    object-fit: cover;
    text-align: center;
}

.content__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text__container {
    width: 320px;
}

.content__text {
    line-height: 1.5;
    font-size: 16px;
    margin-bottom: 30px;
}

.content__title {
    font-weight: bold;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 30px;
    margin-bottom: 20px;
}


/* entry */
.entry {
    width: 1000px;
    height: 300px;
    margin: 0 auto;
    background: url(img/entryBg.png) no-repeat;
    background-size: cover;
    text-align: center;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.entry__container {
    background-color: rgba(255, 255, 255, 0.7);
    width: 900px;
    height: 210px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.entry__text {
    font-size: 24px;
    margin-bottom: 38px;
}

/* footer */
.footer {
    height: 102px;
    padding: 0 3.8% ;
    position: relative;
    background-color: white;
}
.footer__container {
    max-width: 1400px;
    height: 100%;
    padding: 0 3.8%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__left {
    width: 50%;
}
.footer__right {
    width: 50%;
}

.footer__nav {
    display: flex;
    justify-content: space-between;
    gap: 2.34%;
}


/* 装飾 */
.bg__gradient {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 800px;
    pointer-events: none;
    z-index: -1;

    background: linear-gradient(
        to bottom, 
       rgba(255, 255, 255, 0) 0%,
        rgba(34, 172, 56, 0.2)100% 
        );
}


.section__content01::after {
    content: "";
    background: url(img/deco1.png) no-repeat;
    background-size: contain;
    width: 160px;
    height: 160px;
    /* transform: rotate(22deg); */
    position: absolute;
    right: 0;
    top: 0;
}

.section__content02::after {
    content: "";
    background: url(img/deco2.png) no-repeat;
    background-size: contain;
    width: 160px;
    height: 160px;
    /* transform: rotate(22deg); */
    position: absolute;
    left: 0;
    top: 0;
}

.section__content03::after {
    content: "";
    background: url(img/deco3.png) no-repeat;
    background-size: contain;
    width: 160px;
    height: 160px;
    /* transform: rotate(22deg); */
    position: absolute;
    right: 0;
    top: 0;
}

footer::after {
    content: "";
    background: url(img/circle03.png) no-repeat;
    background-size: contain;
    width: 445px;
    height: 417px;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* ============================================================
   レスポンシブ対応 (768px以下)
   ============================================================ */
@media screen and (max-width: 768px) {
    /* 画面全体の横スクロール防止 */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* --- 全体調整 --- */
    .wrapper {
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    /* 左右の縦線 */
    .wrapper__border {
        width: 6px;
        z-index: 1000;
    }
    .left { left: 0; }
    .right { right: 0; }

    /* --- ヘッダー --- */
    .header { height: auto; width: 100%; }
    .header__container--sub { display: none; }
    .header__container { flex-direction: column; padding: 15px 10px; }
    .header__logo img { width: 180px; height: auto; margin: 0 auto; }
    .nav__list { flex-wrap: wrap; justify-content: center; gap: 8px 15px; margin-top: 10px; }
    .nav__title { font-size: 13px; }

    /* --- メインビジュアル (MV) --- */
    .mv {
        height: 70vh; /* 高さを少し調整 */
        margin-bottom: 40px;
    }
    .mv__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* テキストコンテナを中央配置 */
    .mv__textContainer {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* 上下左右中央寄せ */
        width: 85%;
        max-width: 500px; /* 広がりすぎ防止 */
        padding: 30px 20px;
        text-align: center; /* 中の要素も中央寄せ */
        box-sizing: border-box;
    }
    .mv__title { font-size: 24px; white-space: normal; margin-bottom: 15px; }
    .mv__title span { font-size: 32px; }
    .mv__text { width: 100%; font-size: 14px; margin-bottom: 25px; line-height: 1.6; }
    
    /* エントリーボタンもコンテナ内で中央へ */
    .entry__btn {
        margin: 0 auto;
        width: 100%;
        max-width: 280px;
    }
    .entry__btn::before { width: 100%; }

    /* --- セクション --- */
    .section {
        width: 100%;
        padding: 0 25px; /* 縦線に重ならない余白 */
        box-sizing: border-box;
    }
    .section__title { font-size: 28px; }
    .title__text { font-size: 15px; margin-bottom: 40px; }

    .section__content {
        flex-direction: column !important;
        width: 100%;
        gap: 30px;
        margin-bottom: 60px;
        align-items: center; /* 子要素を中央に揃える */
    }

    /* 02の順番入れ替え */
    .section__content02 { display: flex; flex-direction: column !important; }
    .section__content02 .content__img { order: 1; }
    .section__content02 .text__container { order: 2; }

    .content__img { width: 100%; height: auto; }
    .content__img img { width: 100%; height: auto; border-radius: 5px; }

    .text__container {
        width: 100%;
        text-align: center; /* テキスト・見出しを中央寄せ */
    }
    .content__title { font-size: 24px; }
    
    /* 「もっと見る」ボタンを中央配置 */
    .more__btn {
        margin: 0 auto; /* block要素として中央寄せ */
        display: flex;  /* ボタン内部の文字を中央にするため(元々btnクラスにある設定を維持) */
    }
    /* 装飾(影)の位置も微調整 */
    .more__btn::after {
        left: 5px;
        top: 5px;
    }

    /* --- エントリーセクション --- */
    .entry {
        width: 100%;
        padding: 40px 15px;
        box-sizing: border-box;
    }
    .entry__container {
        width: 100%;
        height: auto;
        padding: 40px 20px;
    }
    .entry__text { font-size: 16px; margin-bottom: 30px; line-height: 1.4; }

    /* --- フッター --- */
    .footer { height: auto; padding: 30px 0; }
    .footer__container { flex-direction: column; gap: 25px; text-align: center;}
    .footer__nav { flex-direction: column; align-items: center; gap: 15px; }
    .footer__left { width: 100%; font-size: 11px; }
}