@charset "UTF-8";


/* ★ブレークポイント
SP:～519px
Tab:520px～959px
PC:960px～ */

/* ★変数宣言 */
:root {
    --main-color: #45A338;
    --sub-color1: #B1CE6B;
    --text-color: #244E29;
    --size-sm: 1.2rem;
    --size-md: 1.6rem;
    --size-lg: 2.6rem;
    --size-2l: 3.2rem;
    --size-xl: 4.2rem;
    --size-xxl: 6.6rem;
    --font-shippo: "Shippori Mincho", serif;
    --gutter-base: 8px;
    --side-gutter: calc(var(--gutter-base)*2);
    --contents-gutter: calc(var(--gutter-base)*5);
    --contents-gutter-pc: calc(var(--gutter-base)*10);
    --section-gutter: calc(var(--gutter-base)*10);
    --section-gutter-pc: calc(var(--gutter-base)*20);
    --footer-gutter: calc(var(--gutter-base)*25);
}

html {
    font-size: 62.5%;
}

body {
    font-size: var(--size-md);
    /* color: var(--text-color); */
    font-family: var(--font-shippo);
    font-weight: 400;
    font-style: normal;
    line-height: 1.75;
    margin: 0;
    padding: 0;
}





main {
    background: linear-gradient(149deg, #45a338, #ffffff);
    animation: gradient-animation 10s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 500px;
}

.contents_title {
    text-align: center;
    margin-bottom: var(--contents-gutter);
    font-size: var(--size-lg);
    font-family: var(--font-shippo);
}

/* ＝＝＝＝＝min-width:960px＝＝＝＝＝ */
@media screen and (min-width:960px) {

    .center {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        width: 100%;
        max-width: 1000px;
    }

    .contents_title {
        margin-bottom: var(--contents-gutter-pc);

    }
}

.btn {
    background-color: #fff;
    width: 280px;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    text-align: center;
    line-height: var(--size-md);
    padding-top: 15px;
    padding-bottom: 15px;
    transition: 0.1s;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
}


.title {
    width: 280px;
    font-size: var(--size-2l);
    font-weight: 500;
    line-height: 1.4;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 30px;
    padding-top: 1.5rem;

}

.sub_title {
    width: 300px;
    line-height: 2;
    font-size: var(--size-lg);
    font-family: var(--font-serif);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    margin-top: 10px;
}


.under02 .title,
.under03 .title,
.under04 .title {
    /* background-color: #B1CE6B; */
    background-image: url(../../img/Title_leaf.png);
    background-size: 100px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(#fff, 0.9);
    background-blend-mode: hard-light;
    padding-left: 118px;
}


/* 画像をふわっと出現 */
.hide_box {
    opacity: 0;
    transform: translateY(100px);
    transition: 2s;
}

.hide_box.on {
    opacity: 2;
    transform: translateY(0);
}

.hide02 {
    opacity: 0;
    transform: translateY(0px);
    transition: 2s;
}

.hide02.on {
    opacity: 2;
    transform: translateY(100);
}








/* ★ヘッダー */
.header_pc {
    display: none;
}


header {
    background-color: #Fff;
    width: 100%;
    padding: 10px;
    top: 0;
}

header nav {
    background-color: rgba(69, 163, 56, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 80px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 80px;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

header.on nav {

    opacity: 1;
    visibility: visible;
    z-index: 9999;
}


header nav a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #Fff;
    display: block;
    font-size: var(--size-lg);
    line-height: 2.5;
}

header .header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .header_inner h1 {
    width: 200px;
}


/* アコーディオンメニュー */
header nav ul ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(69, 163, 56, 0.9);
    /* ★★★ ここが「display:none; ではなく opacity/visibility/max-height で非表示」の部分です ★★★ */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;

}

/* サブメニュー表示時 (JavaScriptで is-open クラスが付いた時) */
header nav li.parent.is-open>ul {
    max-height: 300px;
    opacity: 1;
    visibility: visible;

}

/* サブメニュー内のリンクのスタイル調整 */
header nav ul ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header nav ul ul li:last-child {
    border-bottom: none;
}

header nav ul ul a {
    padding: 10px 60px;
    font-size: var(--size-md);
    line-height: 2;
    background-color: transparent;
    border-bottom: none;
}



/* --- アコーディオンの矢印アイコン（モバイル用） --- */
/* 親メニューのリンク（aタグ）に適用 */
header nav li.parent>a {
    position: relative;
    padding-right: 40px;
}

/* アコーディオンの矢印アイコンのスタイル */
header nav li.parent>a::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transition: transform 0.3s ease;
}

/* アクティブな親メニュー（開いている状態）の矢印 */
header nav li.parent.is-open>a::after {
    transform: translateY(-50%) rotate(-135deg);
}

/* PC表示時はアコーディオン関連のスタイルを無効化 */
@media screen and (min-width:960px) {

    /* PCではサブメニューの max-height や overflow を元に戻すか、
       display: none; などで直接制御されていることを確認 */
    .header_pc nav ul ul {
        max-height: none;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        transition: none;
    }

    /* PCではアコーディオンの矢印アイコンは不要なので非表示 */
    .header_pc nav li.parent>a::after {
        display: none;
    }
}





header .hum_menu {
    border: 1px solid #244E29;
    color: var(--text-color);
    padding: 16px;
}

header.on .hum_menu {
    z-index: 10000;
    mix-blend-mode: difference;
}



header .hum_menu .hum_menu_line,
header .hum_menu .hum_menu_line::before,
header .hum_menu .hum_menu_line::after {
    content: "";
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s;
}


header .hum_menu .hum_menu_line::before {
    transform: translateY(-8px);
}

header .hum_menu .hum_menu_line::after {
    transform: translateY(8px);
}

header.on .hum_menu .hum_menu_line {
    background: rgba(255, 255, 255, 0);
}

header.on .hum_menu .hum_menu_line::before {
    transform: translateY(2px) rotate(45deg);

}

header.on .hum_menu .hum_menu_line::after {
    transform: translateY(0) rotate(-45deg);
}


/* ＝＝＝＝＝min-width:960px＝＝＝＝＝ */
@media screen and (min-width:960px) {
    header {
        display: none;
    }

    .header_pc {
        display: block;
        position: relative;
        z-index: 1000;
    }

    .header_pc_inner {
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .header_pc_inner h1 {
        width: 200px;
    }

    .header_pc nav {
        width: auto;
        height: auto;
    }

    .header_pc nav a {
        color: var(--text-color);
        text-decoration: none;
        font-size: var(--size-md);
        line-height: 50px;
        transition: 0.3s;
        display: inline-block;
        width: 100%;
        height: 100%;
    }

    .header_pc nav a:hover {
        background-color: var(--main-color);
        color: #fff;
        border: 1px solid #fff;
    }


    .header_pc nav ul {
        display: flex;
        gap: 0px;
        border-bottom: none;
    }

    .header_pc nav ul li {
        width: 150px;
        height: 100%;
        text-align: center;
        line-height: 50px;

    }

    .header_pc nav .parent ul {
        display: none;
        position: absolute;
    }

    .header_pc nav .parent ul a {
        color: #fff;
    }

    .header_pc nav .parent:hover ul {
        display: block;

    }


}


/* フッター */
footer {
    width: 100%;
    padding-bottom: 30px;
    background-color: #fff;
    background-size: cover;
    text-align: center;
    color: var(--text-color);
    font-size: var(--size-md);
    z-index: 100;
}


footer .footer_inner {
    padding: calc(var(--gutter-base)*3) 0;
}

footer a {
    width: 100%;
    text-decoration: none;
}


footer h2 {
    width: 200px;
    margin-left: auto;
    margin-right: auto;
}


footer h2 img {
    width: 280px;
    margin-bottom: calc(var(--gutter-base)*5);
    padding: calc(var(--gutter-base));
}

footer ul img {
    margin-left: auto;
    margin-right: auto;
}

footer ul {
    margin-bottom: calc(var(--gutter-base)*2);
}

footer ul li {
    margin-bottom: calc(var(--gutter-base)*3);
}

footer .footer-link02 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--gutter-base)*5);
}

.caution {
    font-size: 10px;
    color: var(--text-color);
    text-align: center;
    line-height: 1.6;
    margin-top: 40px;
    margin-bottom: 5px;
    padding: 0 20px;
}

/* ＝＝＝＝＝min-width:960px＝＝＝＝＝ */
@media screen and (min-width:960px) {

    footer ul {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: calc(var(--gutter-base)*5);
    }

    footer a:hover {
        opacity: 0.5;
    }


}


/*横から出現させる */
.appear.active {
    animation: 2s fadeup ease-in-out forwards;
}

@keyframes fadeup {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



/* トップへ戻るボタン */

/* モバイルデザイン */

button {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 90px;
    right: -80px;
    bottom: 20px;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    border: 0;
    background: #d4d0c9;
    letter-spacing: 3px;
    font-weight: bold;
    border-radius: 5px 0 0 5px;
    transition: opacity 1.5s ease, visibility 1.5s ease;
    z-index: 9999;
}


button p {
    writing-mode: vertical-rl;
    margin: 0;
    font-size: 15px;
    bottom: 13px;
    position: absolute;
}

button .material-symbols-outlined {
    position: absolute;
    font-size: 30px;
    color: var(--text-color);
    top: 5px;
    font-weight: 300;

}

button.is-active {
    opacity: 1;
    visibility: visible;
    right: -2px;
}



/* ＝＝＝＝＝min-width:960px＝＝＝＝＝ */
@media screen and (min-width:960px) {

    button .material-symbols-outlined {
        display: none;
    }

    button {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        right: 30px;
        bottom: 20px;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        border: 0;
        font-weight: normal;
        background: none;
        transition: opacity 1.5s ease, visibility 1.5s ease;
        z-index: 9999;
    }

    button p {
        writing-mode: vertical-rl;
        text-decoration: none;
        text-transform: uppercase;
        height: 85px;
        margin: 0;
        letter-spacing: 5px;
        text-align: right;
        position: relative;
        /* PCのp要素の基準点を設定 (もし未定義なら) */
        bottom: auto;
        /* グローバルのbottom: 13px; をリセット */
    }

    button p:before {
        content: "";
        position: absolute;
        top: 1px;
        right: -6px;
        width: 1px;
        height: 20px;
        background: var(--text-color);
        transform: skewX(-150deg);
    }

    button p:after {
        content: "";
        position: absolute;
        bottom: 0px;
        right: 0;
        width: 1px;
        height: 85px;
        background: var(--text-color);
    }

    button.is-active {
        right: 30px;
        opacity: 1;
        visibility: visible;
    }

}