@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/* Root */
:root {
    --color-main: #82AE19;
    --color-sub: #0F6330;
    --color-accent: #EFC908;
    --color-gray: #E3E6E3;
    --color-white: #FFFFFF;
    --color-back: #191919;
}

/* Reset and base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--color-black);
    font-size: 16px;
    font-feature-settings: "palt" 1;
    background-color: var(--color-white);
    animation: fadeIn 1s ease 0s 1 normal;
    -webkit-animation: fadeIn 1s ease 0s 1 normal;
}

main {
    background-color: var(--color-white);
}

@keyframes fadeIn {
    0% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}

/* Common */
.d-ib {
    display: inline-block;
}

.d-b_600 {
    display: none;
}

.d-n_600 {
    display: block;
}

.d-b_768 {
    display: none;
}

.d-n_768 {
    display: block;
}

.d-b_960 {
    display: flex;
}

@media screen and (max-width: 1080px) {
    .d-b_1080 {
        display: block;
    }
}

@media screen and (max-width: 960px) {
    .d-b_960 {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .d-b_768 {
        display: block;
    }

    .d-n_768 {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .d-b_600 {
        display: block;
    }

    .d-n_600 {
        display: none;
    }
}

.container {
    width: min(80%, 1170px);
    padding-inline: 20px;
    margin: 0 auto;
}

.container h2 {
    text-align: center;
    font-size: clamp(24px, 2.6vw, 50px);
    font-weight: bold;
    line-height: 1.4;
}

@media screen and (max-width: 1170px) {
    .container {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .container h2 {
        font-size: min(6.4vw, 24px);
    }
}

.flex {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

.flex .box {
    width: 31.1%;
}

@media screen and (max-width: 768px) {
    .flex {
        justify-content: center;
        flex-wrap: wrap;
        gap: min(8vw, 30px);
    }

    .flex .box {
        width: min(100%, 295px);
    }
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 10;
}

.header_container {
    display: flex;
    height: 100px;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-white);
    box-shadow: min(0.83vw, 16px) min(0.83vw, 16px) min(1.04vw, 20px) 0px rgba(135, 147, 168, 0.3);
}

.header_container .logotype {
    width: clamp(200px, 1.09vw, 300);
    margin-left: clamp(20px, 2.08vw, 40px);
}

.header_container .logotype img {
    width: 150px;
    padding: clamp(10px, 0.2vw, 15px);
}

.header_container ul > li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 100%;
    font-size: clamp(16px, 1.15vw, 22px);
    font-weight: bold;
}

@media screen and (max-width: 1000px) {
    .header_container nav .menu_box {
        display: none;
    }

    .header_container nav ul li a {
        justify-content: left;
    }
    
    .header_container nav ul li .openbtn_li_btn {
        background-color: var(--color-sub);
        width: clamp(40px, 6vw, 60px);
        height: clamp(40px, 6vw, 60px);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (max-width: 960px) {
    .header_container {
        height: 80px;
    }

    .header_container .logotype {
        font-size: 13px;
        line-height: 1.5;
        margin-left: min(5.34vw, 20px);
    }
}

/* Nav */
nav {
    display: flex;
    align-items: center;
    height: 100%;
}

@media screen and (max-width: 768px) {
    nav {
        display: inline;
    }
}

.menu_box {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    column-gap: max(2.6vw, 50px);
    width: auto;
    height: 100%;
    margin: 0px 4vw;
}

.openbtn_box-nav {
    color: var(--color-black);
    width: 100vw;
    height: 100vh;
    background-color: var(--color-white);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: none;
    overflow-y: scroll;
}

.openbtn_ul {
    padding-top: 10vh;
}

.openbtn_li {
    display: flex;
    justify-content: space-between;
    border-bottom: solid #111 1px;
    padding: 4vw;
}

.openbtn_li a {
    margin: auto 0;
}

.openbtn_li_btn {
    background-color: var(--color-sub);
    width: clamp(40px, 6vw, 60px);
    height: clamp(40px, 6vw, 60px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.openbtn_li_btn::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin-right: 3px;
}

.openbtn_box-contact {
    bottom: 0;
    width: 100%;
    padding: 30px;
    justify-content: space-between;
    align-items: flex-end;
}

.openbtn_box-contact p {
    text-align: center;
}

.openbtn_box-contact p a img {
    width: clamp(140px, 40vw, 200px);
    margin-bottom: 5vh;
}

.contact_text {
    text-align: center;
}

.tel_text {
    font-size: clamp(18px, 8vw, 30px);
}

.mail_btn {
    color: var(--color-white);
    background-color: var(--color-main);
    padding: 20px 0;
    border-radius: 100px;
    margin-top: 30px;
    transition: .3s;
}

.mail_btn:hover {
    border-radius: 100px;
}

.openbtn_box-nav.is-active {
    display: block;
}

.nav-links li a {
    position: relative;
}

.nav-links li a::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: var(--color-main);
    bottom: -0.5px;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: transform 0.3s;
}

.nav-links li a:hover::after {
    transform: scale(1, 1);
}

.nav-links li a:hover {
    color: var(--color-main);
}

/* ---------- フッター 固定CTA ---------- */
#footer_fixarea {
    display: block;
    width: auto; /* 幅を必要なサイズに */
    position: fixed;
    right: 0; /* 画面右側に配置 */
    bottom: 35%; /* 画面下の位置 */
    color: #fff;
    z-index: 10;
    transition-duration: 0.3s;
    box-sizing: border-box;
    font-weight: 500;
    text-align: center;
    border-radius: 30px 0 0 30px; /* 右側配置用に調整 */
}

#footer_fixarea ul li {
    display: inline-block;
    color: #fff;
    vertical-align: middle;
    border-radius: 30px 0 0 30px;
    background: var(--color-sub);
    border-top: 2px solid var(--color-white);
    border-right: 0;
    border-bottom: 2px solid var(--color-white);
    border-left: 2px solid var(--color-white);
    transition-duration: 0.3s;
    width: 70px;
}

#footer_fixarea ul li:hover {
    background-color: var(--color-main);
}

#footer_fixarea ul li a {
    padding: 20px 20px;
    color: #fff;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
}

@media (hover: hover) and (pointer: fine) {
    #footer_fixarea {
        background-color: var(--color-main);
    }
}

@media (max-width: 768px) {
    #footer_fixarea {
        right: auto;
        bottom: 0;
        box-sizing: border-box;
        border-radius: 30px;
    }

    #footer_fixarea ul li {
        margin: 0;
        border-radius: 0 30px 0 0;
        border-top: 2px solid var(--color-white);
        border-right: 2px solid var(--color-white);
        border-bottom: 0;
        border-left: 0;
        width: 180px;
    }

    @media (hover: hover) and (pointer: fine) {
        .pagetop:hover,
        .pagetop:hover .pagetop__arrow {
            background-color: var(--color-main);
        }
    }

    #footer_fixarea ul li a {
        writing-mode: horizontal-tb;
        display: inline-block;
        padding: 16px 30px;
    }
}

/* ---------- ページトップボタン ---------- */
.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: var(--color-accent);
    border: solid 2px var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    transition-duration: 0.3s;
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid var(--color-white);
    border-right: 3px solid var(--color-white);
    transform: translateY(20%) rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
    .pagetop:hover,
    .pagetop:hover .pagetop__arrow {
        background-color: var(--color-main);
    }
}