/* ------------------リセットcss--------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
img,
blockquote,
dl,
dd,
a {
    margin: 0;
    text-decoration: none;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
}

body {
    min-height: 100vh;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1;
}

h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

img,
picture {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
}

textarea:not([rows]) {
    min-height: 10em;
}

:target {
    scroll-margin-block: 5ex;
}

/* ------------------リセットcss終わり--------------------- */
/* --------------------css変数------------------------------*/
:root {
    --color1: #00a33e;
    --color2: #6fba2c;
    --color-text: #333;
    --color4: #848484;
    --color-red: #FF3636;
    --font17-: clamp(1rem, 0.905rem + 0.41vw, var(--font17-));
    --font26-: clamp(1.375rem, 1.136rem + 1.02vw, 1.625rem);
    --font32-: clamp(1.625rem, 1.267rem + 1.53vw, 2rem);
}

/* --------------------css変数おわり------------------------------*/
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable both-edges;
}

body {
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

main{
    flex: 1;
}
article {
    margin-top: 100px;
    margin-bottom: 100px;
}

header {
    width: 100%;
    height: 90px;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.sticky-header {
    background-color: rgba(255, 255, 255, 0);
}

.sticky-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
}

header .header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    max-width: 1280px;
}

header .logo {
    padding: 5px;
    width: 300px;
}

header nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    margin-right: 2rem;
}

header nav li {
    list-style: none;
    padding: 0 1rem;
}

nav li a {
    padding-bottom: 5px;
    position: relative;
}

nav li a::before {
    background: var(--color-text);
    content: '';
    width: 100%;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: 0;
    margin: auto;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: transform .3s;
}

nav li a:hover::before {
    transform-origin: left top;
    transform: scale(1, 1);
}

.drawer_hidden {
    display: none;
}

@media screen and (max-width:768px) {
    .drawer_open {
        display: flex;
        height: 60px;
        width: 60px;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 100;
        /* 重なり順を一番上にする */
        cursor: pointer;
    }

    .drawer_open span,
    .drawer_open span:before,
    .drawer_open span:after {
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background: #333;
        transition: 0.5s;
        position: absolute;
    }

    /* 三本線の一番上の棒の位置調整 */
    .drawer_open span:before {
        bottom: 8px;
    }

    /* 三本線の一番下の棒の位置調整 */
    .drawer_open span:after {
        top: 8px;
    }

    /* アイコンがクリックされたら真ん中の線を透明にする */
    #drawer_input:checked~.drawer_open span {
        background: rgba(255, 255, 255, 0);
    }

    /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
    #drawer_input:checked~.drawer_open span::before {
        bottom: 0;
        transform: rotate(45deg);
        background: #fff;
    }

    #drawer_input:checked~.drawer_open span::after {
        top: 0;
        transform: rotate(-45deg);
        background: #fff;
    }

    /* メニューのデザイン*/
    .nav_content {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 100%;
        /* メニューを画面の外に飛ばす */
        z-index: 99;
        background: rgba(0, 0, 0, 0.8);
        transition: .5s;
    }

    .nav_list {
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        height: 100vh;
        margin-right: 0;
        gap: 10px;
    }

    .nav_list li {
        font-size: 24px;
        border-bottom: 1px dotted white;
        width: 100%;
        text-align: center;
        color: white;
    }

    /* アイコンがクリックされたらメニューを表示 */
    #drawer_input:checked~.nav_content {
        left: 0;
        /* メニューを画面に入れる */
    }
}

footer {
    width: 100%;
    padding: 1rem;
    padding-bottom: 0;
    border-top: var(--color1) 4px solid;
}

footer .footer_inner {
    width: 90%;
    max-width: 350px;
    margin: auto;
    margin-bottom: 1rem;
    font-weight: 600;
}

footer .footer_inner img {
    width: 100%;
}

footer p {
    word-break: break-all;
}

footer .copy {
    text-align: center;
    line-height: 1.5;
    font-size: 0.875rem;
    color: var(--color1);
    font-weight: 700;
}

.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: solid 2px var(--color1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid var(--color1);
    border-right: 3px solid var(--color1);
    transform: translateY(20%) rotate(-45deg);
}

.container {
    width: 100%;
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 5px;
}

.flex {
    display: flex;
}

@media screen and (max-width:768px) {
    .flex {
        flex-direction: column;
    }
}

.w800 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.main-img {
    width: 100%;
    height: auto;
    max-width: 1280px;
    margin: 0 auto;
    margin-top: -90px;
}

.main-img img {
    width: 100%;
}

@media screen and (max-width:768px) {
    .main-img {
        width: 100%;
        height: 98vh;
    }

    .main-img img {
        width: 100%;
        height: 98vh;
        object-fit: cover;
    }
}

.h2_deco {
    position: relative;
    padding-top: 50px;
    padding-bottom: 50px;
    font-size: var(--font26-);
    text-align: center;
}

.h2_deco span {
    position: relative;
    z-index: 2;
}

h1.h2_deco {
    margin-top: 50px;
}

.button {
    color: white;
    padding: 0.3rem 0.5rem 0.1rem 0.5rem;
    border-radius: 5px;
    font-weight: 700;
    margin: 0.2rem;
    min-width: 80px;
    display: inline-block;
}

#service .button {
    margin-right: 1rem;
}

@media screen and (max-width:768px) {
    .button.short {
        width: 100%;
        max-width: 7rem;
        text-align-last: justify;
        display: block;
    }

    #service .button {
        margin-top: 1em;

    }

    .button+span {
        padding-left: 1em;
        display: block;
        margin-top: 0.5rem;
    }
}

.button.orange {
    background-color: orange;
}

.button.red {
    background-color: #e9546b;
}

.button.green {
    background-color: var(--color2);
}

.button.blue {
    background-color: #26b7bc;
}

.nav_button {
    text-align: center;
}

.nav_button a {
    display: inline-block;
    width: 300px;
    font-size: 1.1rem;
    line-height: 3.5;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: var(--color2);
    position: relative;
}

.nav_button a::before {
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    bottom: 0;
    content: "";
    height: 7px;
    width: 7px;
    margin: auto;
    position: absolute;
    right: 30px;
    top: 0;
    transform: rotate(45deg);
    transition: right .3s;
}

.nav_button a:hover::before {
    right: 20px;
}

.h2_deco::before {
    content: attr(data-en);
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color2);
    opacity: 0.2;
    font-size: clamp(3.125rem, 1.336rem + 7.63vw, 5rem);
    font-style: italic;
}

@media screen and (max-width:520px) {
    .h2_deco::before {
        top: 10px;
    }
}

#about .grid_container,
#page_about .grid_container {
    display: grid;
    width: 95%;
    height: auto;
    margin: 0 auto 50px;
    grid-template-columns: 0.6fr 0.4fr;
    grid-template-areas:
        "sec1 img""sec2 img";
    gap: 1rem;
}

#about .grid_container {
    max-width: 1000px;
}

.grid_item1 {
    grid-area: sec1;
    align-self: center;

}

.grid_item1 h3 {
    color: var(--color1);
    font-size: 2rem;
    border-bottom: 2px solid var(--color2);
    display: inline-block;
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
}

.grid_item2 {
    grid-area: sec2;
    border: 4px solid orange;
    border-radius: 1rem;
    padding: 1rem;
    margin: 0;
    width: 100%;
    text-align: center;
}

.grid_item2 h3 {
    margin-bottom: 0.5rem;
    background-color: orange;
    color: white;
    padding: 0.5rem;
}

.grid_item2 p {
    font-size: var(--font17-);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.grid_item2 small {
    font-weight: 400;
}

.grid_item2 .tel {
    font-size: 1.5rem;
    margin-top: 0.2rem;
    display: inline-block;
}

.grid_item3 {
    grid-area: img;
    align-self: center;
    width: 100%;

}

.grid_item3 img {
    margin: auto;
    width: 100%;
    max-width: 450px;
}

@media screen and (max-width:768px) {

    #page_about .grid_container,
    #about .grid_container {
        grid-template-areas:
            "sec1 img""sec2 sec2";
    }
}

#service section {
    padding: 2rem;
    border-radius: 2rem;
    width: 80%;
    margin: 0 auto 50px;
}


#service h3 {
    font-size: var(--font32-);
    display: inline-block;
    padding: 0 0.5rem;
    margin-bottom: 1rem;
}

#service p {
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.service_section1 {
    border: 4px solid #e9546b;
}

.price {
    width: 100%;
    max-width: 450px;
}

.service_section1 h3 {
    color: #e9546b;
    border-bottom: 2px solid #e9546b;
}

.service_section1 .flowchart {
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
}

.service_section1 .flowchart img {
    width: 100%;
}

.service_section1h4 {
    margin: 1rem;
    padding: 0.5rem 0.5rem 0.3rem 0.5rem;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 2rem;
    display: block;
}

.service_section2 {
    border: 4px solid var(--color2);

}

.service_section2 h3 {
    color: var(--color2);
    border-bottom: 2px solid var(--color2);
}

.service_section2 small {
    color: var(--color1);
}

.service_section3 {
    border: 4px solid #26b7bc;

}

.service_section3 h3 {
    color: #26b7bc;
    border-bottom: 2px solid #26b7bc;
}

.service_section3 small {
    color: #26b7bc;
}

#information section {
    margin-bottom: 50px;
}

#information .grid_container {
    display: grid;
    grid-auto-flow: column;
}

@media screen and (max-width:768px) {
    #service section {
        width: 100%;
        padding: 1.5rem 0.5rem;
    }

    #information .grid_container {
        grid-auto-flow: row;
    }
}

#information h3 {
    margin: 1em;
    padding: 0.5rem 0.5rem 0.3rem 0.5rem;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 2rem;
    display: block;
}


#information .info_photo_area {
    display: grid;
    width: 90%;
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

#information .info_photo_area img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

#information .info_photo_area figcaption {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    line-height: 2;
}

#information .access_area {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 1em;
}

#information .access_area iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

#information .access_area h4 {
    font-size: 1.5em;
    line-height: 1.4;
    border-bottom: 2px solid var(--color1);
    margin-bottom: 1em;
    margin-top: 10px;
    padding-left: 0.5em;
}

#information .access_area p {
    line-height: 1.4;
    margin-bottom: 5px;
}

#page_about h2 {
    color: var(--color1);
    font-size: 2rem;
    border-bottom: 2px solid var(--color2);
    display: inline-block;
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
}

#page_about .grid_container {
    width: 100%;
    margin-top: 50px;
}

.recruit_banner {
    max-width: 600px;
    margin-bottom: 100px;
}

@media screen and (max-width:768px) {
    #information .info_photo_area {
        grid-template-columns: repeat(2, 1fr);
    }

    #information .access_area {
        grid-template-columns: 1fr;
    }
}