:root {
    --color-body: #333;
    --color-button: #fff;
    --color-main: #009653;
    --bg-white: #FFF;
    --bg-gray: #F8F7F6;
    --gradation-main: linear-gradient(to right, #11998E, #38EF7D);
    --header: 80px;
    scroll-padding: calc(var(--header) + 30px);
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    /* すべての要素に対してボックスサイズを設定 */
    /* デバッグ用 */
    /* outline: 1px solid blue; */
}

.main-visual img,
.images,
.images p,
.grid-container,
.grid-item,
.card,
.service-content,
.scroll-area {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    color: var(--color-body);
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    /* width: 100%; */
    box-sizing: border-box;
}

/* ヘッダーインナー */
.wrapper {
    width: 100%;
    max-width: 80%;
    /* padding: 0 16px; */
    margin: 0 auto;

    @media screen and (max-width: 1200px) {
        max-width: 80%;
        /* overflow: hidden; */
        margin: 0 auto 0 0;
    }
}

/* 全体のインナー */
.container {
    width: 80%;
    max-width: 1533px;
    margin: 0 auto;

    /* @media screen and (max-width: 1200px) {
        overflow: hidden;
    } */
    @media screen and (max-width: 1200px) {
        width: 90%;
    }

}

img {
    max-width: 100%;
}

/* セクションタイトル */
.section-title {
    font-size: 50px;
    font-weight: bold;
    color: var(--color-body);
    position: relative;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
        height: 5px;
        background: var(--gradation-main);
        transform: translateY(-150%);
    }

    span {
        font-size: 22px;
        font-weight: normal;
        display: block;
        margin-top: 8px;
    }

    @media screen and (max-width: 1200px) {
        font-size: 35px;
    }
}

/* @media (375px <= width < 768px) {
    .section-title {
        font-size: 20px;
    }
} */

.flex {
    display: flex;
    gap: 16px;
}

.hover:hover {
    opacity: 0.8;
    /* transition: all 0.3s ease-in-out; */
}

.c-txt {
    padding-bottom: 5px;
    position: relative;
}

.c-txt::before {
    background: var(--color-body);
    content: '';
    width: 100%;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: 0;
    margin: auto;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: transform .3s;
}

.c-txt:hover::before {
    transform-origin: left top;
    transform: scale(1, 1);
}

/* ホバースタイル */
@media (hover: hover) {
    header .logo img:hover {
        opacity: 0.7;
    }
}


/* ヘッダー */
#header {
    height: var(--header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 4;
    background: var(--bg-white);
    border-bottom: 2px solid var(--bg-gray);
    z-index: 100;

    .inner {
        /* max-width: 70%; */
        max-width: 65%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-right: 0;

        @media screen and (max-width: 1200px) {
            max-width: 90%;
            margin-right: 0;
            margin-left: 5%;
        }

        .lead {
            display: none;
        }
    }
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
    position: relative;
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: -10px;
    position: relative;
}

/* ヘッダーメニューからお問い合わせを消す */
@media (min-width: 1200px) {
    .sp-none {
        display: none;
    }
}

/* 1200px以下のときにハンバーガーメニュー */
@media (max-width: 1200px) {
    .hamburger-menu {
        display: flex;
        /* margin-right: 24px; */
    }

    .header_nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #fff;
        width: 100%;
        text-align: center;
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform: translateY(-10px);
    }

    .header_nav ul li {
        padding: 16px 0;
    }

    .header_nav a:last-child {
        display: block;
    }

    .header_nav.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 40px;
    margin-right: 10px;
    transition: .3s;
}

.header_nav {
    @media screen and (max-width: 768px) {
        display: none;
    }

    a {
        display: inline-block;
        color: var(--color-main);
        /* font-size: 120%; */
        font-weight: 600;
        text-decoration: none;
        background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 50%, var(--color-main) 50%);
        background-position: 0 0;
        background-size: 200% auto;
        transition: .3s;
        padding: 4px 8px;

        @media (hover: hover) {
            &:hover {
                background-position: -100% 0;
                color: #fff;
            }
        }

        @media screen and (max-width: 1200px) {
            &:first-child {
                margin-top: 40px;
            }

            font-size: 1.3rem;
            margin: 16px;
        }
    }
}

.drawer_menu {
    display: none;
}

@media screen and (max-width: 1200px) {
    .drawer_menu {
        display: block;
    }
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #000;
}

/* ヘッダーお問い合わせ */
.contact {
    /* width: 20%; */
    width: 25%;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: end;

    @media screen and (max-width: 1200px) {
        display: none;
    }

    .contact-flex {
        text-align: center;

        .phone {
            display: flex;
        }
    }

    .contact-box {
        height: 80px;
        width: 160px;
        text-align: center;
        line-height: 80px;
        background-color: var(--color-main);
        color: var(--bg-white);
        margin-left: 16px;
        position: relative;

        &:hover {
            opacity: 0.7;
        }
    }

    .contact-button {
        display: inline-block;
    }
}

/* メインビジュアル */
.main-visual {
    position: relative;
    margin-bottom: 64px;

    img {
        height: calc(100vh - 60px);
        /* height: 100vh; */
        width: 100%;
        object-fit: cover;
    }

    .mv-text {
        width: 65%;

        h2 {
            color: var(--color-main);
            font-size: 40px;
            font-weight: bold;
            line-height: 2.5;

            @media screen and (max-width: 1200px) {
                font-size: 30px;
            }

            @media screen and (max-width: 768px) {
                font-size: 19px;
            }

            span {
                color: var(--color-main);
                background: var(--bg-white);
                padding: 4px 8px;
            }
        }

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

.mv-flex {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    align-items: center;

    .mv-inner-img {
        width: 30%;

        img {
            width: 100%;
            height: auto;
            object-fit: cover;

            @media (max-width: 768px) {
                max-width: 400px;
            }
        }

        @media screen and (max-width: 768px) {
            width: 70%;
            margin-top: 40px;
        }
    }

    @media screen and (max-width: 768px) {
        flex-direction: column;
    }
}


/*コンテンツのブロック*/
#service {
    .section-area {
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        padding-top: 120px;

        @media screen and (max-width: 1200px) {
            position: inherit;
            padding-top: 0;
        }
    }

    .service-flex {
        display: flex;
        justify-content: space-between;
        position: relative;

        .contents {

            @media screen and (max-width: 1200px) {
                padding: 50px 0;
            }
        }
    }

    .contents {
        display: grid;
        /* gap: 40px; */
        padding: 240px 0 0 40px;

        h3 {
            font-size: 22px;
            font-weight: 400;
        }

        .scroll-box {
            margin-bottom: -240px;
        }

        .bg-box {
            background: #F8F7F6;
            padding: 32px;
            transition: all 0.3s;

            &>p:first-of-type {
                font-size: 1.15rem;
                line-height: 1.6;
                margin-top: 16px;

                @media screen and (max-width: 768px) {
                    font-size: 16px;
                    margin-top: 8px;
                }
            }

            h3 {
                font-weight: 600;

                @media screen and (960px <=width < 1200px) {
                    font-size: 22px;
                }
            }
        }

        a:hover .bg-box {
            opacity: 0.6;
        }
    }

    /*画像のブロック*/
    .images {
        width: 40vw;
        height: 100vh;
        display: flex;
        align-items: center;
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        padding-right: 64px;

        @media screen and (max-width: 1200px) {
            width: 60vw;
            padding-right: 0;
            display: none;
        }

        /* @media screen and (max-width: 768px) {
            display: none;
        } */
    }

    .images p {
        height: auto;
        margin: auto;
        display: block;
        visibility: hidden;
        /* 画像が透過pngの時は背景色が必要 */
        background: var(--bg-white);
        position: absolute;
        top: 280px;
        bottom: 0;
        /* フェード速度 */
        transition: .5s;
        opacity: 0;
    }

    .images p:first-child,
    .images p.active {
        visibility: visible;
        opacity: 1;
    }


    .homepage-section01 {
        padding-top: 0 !important;
    }

    .homepage-section {
        padding: 35vh 0 0 40px;

        /* text-align: center; */
        /* background: var(--bg-gray); */
        @media screen and (max-width: 1200px) {
            padding: 0 0 32px 0;
        }
    }

    .homepage-section04 {
        padding-bottom: 400px;

        @media screen and (max-width: 768px) {
            padding-bottom: 0;
        }
    }

    .homepage-section h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .homepage-section p {
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;

        @media screen and (max-width: 1200px) {
            grid-template-columns: 1fr;
        }
    }

    .grid-item {
        display: flex;
        justify-content: start;
        align-items: center;
        /* border: 1px solid var(--bg-gray); */
        border-radius: 4px;
        padding: 20px;
        background: #FFF;
    }

    .grid-item img {
        color: #25B07B;
        max-width: 40px;
        margin-right: 16px;
    }

    .grid-item svg.lucide,
    .service-item svg.lucide {
        width: 40px;
        height: 40px;
        margin-right: 16px;
        stroke: #25B07B;
        stroke-width: 1.5;
        flex-shrink: 0;
    }

    .grid-item p {
        margin: 0;
        font-size: 1em;
    }


}

/* エムアールピーの強み */
#strong-point {
    padding-top: 80px;
    padding-bottom: 80px;
    margin:  80px calc(50% - 50vw);
    width: 100vw;
    /* 全幅に設定 */
    background: #f3f3f3;
    max-width: 100%;
    /* margin: 0; */

    .inner {
        margin: 0 auto;
        width: 80%;

        @media screen and (max-width: 768px) {
            width: 90%;
        }

        @media (375px <=width < 768px) {
            width: 90%;
        }

        .section-area {
            margin-top: 0;
        }
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        gap: 24px;
        /* カード間の隙間 */
        margin-top: 40px;
    }

    .card {
        display: grid;
        grid-template-rows: subgrid;
        /* ここでSubgridを使用 */
        grid-row: span 4;
        /* 4行分のスペースを占めるように調整 */
        gap: 16px;
        /* カード間の隙間も親要素を継承しているので上書き */
        border: 1px solid #D9D9D9;
        overflow: hidden;
        min-width: 200px;
        background: #fff;
        padding: 32px;

        span {
            font-size: 50px;
            font-weight: bold;
        }

        &:nth-child(1) {
            span {
                color: #458CA8;
            }
        }

        &:nth-child(2) {
            span {
                color: #E08081;
            }
        }

        &:nth-child(3) {
            span {
                color: #DDC354;
            }
        }

        &:nth-child(4) {
            span {
                color: #6D709D;
            }
        }
    }

    img {
        max-width: 100%;
        width: 50%;
        margin: 0 auto;
    }

    .card h4 {
        margin: 0;
        line-height: 1.2;
        color: var(--color-body);
        font-size: 22px;
        font-weight: 500;

    }

    .card p {
        margin: 0;
        line-height: 1.5;
        color: var(--color-body);
        font-size: 17px;
        word-break: normal;
    }

    .decoration_img {
        position: relative;

        .deco-right {
            position: absolute;
            /* transform: scale(-1, 1); */
            right: 2%;
            top: -1150px;
            max-width: 150px;
            width: 10%;
        }

        .deco-left {
            position: absolute;
            left: 64px;
            top: -110px;
            max-width: 150px;
            width: 10%;
        }
    }

    @media screen and (max-width: 768px) {
        .grid-container {
            grid-template-columns: 1fr;
        }

        .card h4 {
            font-size: 20px;
        }

        .card p {
            font-size: 16px;
        }
    }

    @media screen and (max-width: 768px) {
        .grid-container {
            gap: 16px;
        }

        .card {
            padding: 16px;
        }
    }
}

/* 実績 */
#works {
    /* padding-top: 80px; */

    .grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        gap: 64px;
        /* カード間の隙間 */
        margin-top: 40px;
    }

    .card {
        display: grid;
        grid-row: span 3;
        /* 4行分のスペースを占めるように調整 */
        gap: 8px;
        /* カード間の隙間も親要素を継承しているので上書き */
        overflow: hidden;
        min-width: 200px;
        background: #fff;
        transition: all 0.3s;

        span {
            font-size: 50px;
            font-weight: bold;
        }

        &:hover {
            /* transform: scale(1.1); */
            opacity: 0.6;
        }

        .show {
            display: grid;
            opacity: 1;
            transform: translateY(0);
        }

        .card-gap {
            display: grid;
            gap: 8px;
        }
    }

    img {
        max-width: 100%;
        background: var(--bg-gray);
        transition: transform 0.3s ease-in-out;
    }

    .card h4 {
        margin: 0;
        line-height: 1.2;
        color: var(--color-body);
        font-size: 22px;
        font-weight: 500;
    }

    .card p {
        margin: 0;
        line-height: 1.5;
        color: var(--color-body);
        font-size: 17px;
    }

    @media screen and (max-width: 1200px) {
        .filter-item {
            flex-direction: row;
        }

        .grid-container {
            grid-template-columns: repeat(1, 1fr);
        }

        .card h4 {
            font-size: 18px;
        }
    }
}



/* 会社概要＆お問い合わせ */
.box_aboutus-contact {
    margin-top: 80px;
    width: 100%;
    height: 400px;
    background-image: url(../img/img_bg.png);
    background-repeat: no-repeat;
    /* 画像の繰り返しを指定  */
    background-position: center center;
    /* 画像の表示位置を指定  */
    background-size: cover;


    .grid-container {
        display: flex;
        place-content: center;
        place-items: center;
        height: inherit;
        gap: 160px;
        /* background-color: #FFFFFF66; */
        background-color: #FFFFFF8C;

        @media screen and (max-width: 768px) {
            flex-direction: column;

        }

        @media (max-width: 768px) {
            gap: 0;
        }

        .aboutus {
            position: relative;

            &::before {
                content: "";
                /* 縦線の色・形 */
                width: 2px;
                height: 100%;
                border-radius: 2px;
                background-color: #FFF;
                /* 配置場所 */
                position: absolute;
                right: -100px;
                /* ポイント３ */
                /* @media screen and (max-width: 768px) {
                    display: none;
                } */
            }
        }

        /* 線を消す */
        @media screen and (max-width: 768px) {
            .aboutus::before {
                display: none;
            }
        }

        /* .box-contact {
            width: 280px;
            margin-left: 200px;
        } */

        @media screen and (max-width: 1200px) {
            .grid-container {
                flex-direction: column;
            }

        }
    }
}

@media screen and (max-width: 768px) {
    .box_aboutus-contact {
        height: 600px;
    }

    .box-aboutus {
        width: 70%;
    }

    .box-contact {
        margin-left: 0;
        margin-top: 56px;
        width: 70%;
    }
}

/* フッター */
#footer {
    margin-top: 40px;
    margin-bottom: 40px;

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

        img {
            height: 55px;
        }

        ul {
            display: grid;
            gap: 16px;
            /* grid-template-columns: 1fr 1fr 1fr 1fr 1fr; */
            grid-template-columns: auto auto auto auto auto;
            place-content: center;
            place-items: center;

            @media screen and (max-width: 768px) {
                margin-top: 16px;
                grid-template-columns: 1fr 1fr;
            }
            /* li:last-child {
                @media screen and (max-width: 768px) {
                    display: none;
                }
            } */
            
            a {
                &:hover {
                    opacity: 0.8;
                }
            }
        }
        .pc-none {
            display: none;
            @media screen and (max-width: 768px) {
                display: block;
            }
        }

        @media screen and (max-width: 768px) {
            flex-direction: column;
        }
    }

    .flex02 {
        margin-top: 32px;
        margin-bottom: 24px;
        display: flex;
        align-items: end;
        justify-content: space-between;

        .address {
            display: grid;
            gap: 4px;

            @media (max-width: 768px) {
                text-align: center;
                gap: 16px;
            }

            .cp-link {
                margin-bottom: 8px;
            }

            a {
                &:hover {
                    opacity: 0.8;
                }
                &:last-child {
                    @media (max-width: 768px) {
                        margin-top: 8px;
                    }
                }
            }
        }

        .sns {
            display: flex;
            gap: 24px;

            a {
                &:hover {
                    opacity: 0.6;
                    transition: 0.4;
                }
            }
        }

        @media screen and (max-width: 768px) {
            flex-direction: column;
            align-items: center;
            gap: 24px;
        }
    }

    .copyright {
        text-align: center;
    }
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
    a {
        &:hover {
            opacity: 0.8;
        }
    }
    li {
        margin: 0 0.6em;
        &:not(:last-child) {
            color: #575757;
        }
        &:first-child {
            margin-left: 0;
        }
        &:last-child {
            @media screen and (max-width: 768px) {
            margin-left: 0;
            margin-top: 5px;
            }
        }
    }
    li.two {
        @media screen and (max-width: 768px) {
            margin-left: 0.6em;
            margin-top: 0;
            }
    }
    i {
        color: #8a8a8a;
        padding-top: 2px;
    }
    @media screen and (max-width: 768px) {
    margin-top: 16px;
    margin-bottom: 16px;
    }
}

/* TOP戻るボタン */
#page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    line-height: 1;
    z-index: 99;
  }
  #page-top a {
    background: var(--color-main);
    text-decoration: none;
    color: #fff;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    display: block;
    border-radius: 50%;
    opacity: 0.9;
    transition: all .3s ease;
  }
  @media (any-hover: hover) {

      #page-top a:hover {
          text-decoration: none;
          opacity: .5;
        }
    }

/*
ボタンデザイン
 */
.btn {
    margin: 0 auto;
    margin-top: 56px;
    width: 100%;
    max-width: 280px;
    height: 60px;
    padding: 0 20px;
    position: relative;
    text-decoration: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid var(--color-main);
    color: var(--color-main);
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 矢印アイコン */
.btn span {
    position: relative;
    display: block;
    width: 20px;
    height: 1px;
    border-radius: 10px;
    background-color: var(--color-main);
    transition: all 0.3s ease;
}

.btn span::before,
.btn span::after {
    content: "";
    position: absolute;
    right: -3px;
    display: block;
    width: 10px;
    height: 1px;
    border-radius: 10px;
    background-color: var(--color-main);
    transition: all 0.3s ease;
}

.btn span::before {
    top: 3px;
    transform: rotate(-45deg);
}

.btn span::after {
    bottom: 3px;
    transform: rotate(45deg);
}

/* ホバーアニメーション */
.btn:hover {
    color: #fff;
    background-color: var(--color-main);
}

.btn:hover span {
    background-color: #fff;
}

.btn:hover span::before,
.btn:hover span::after {
    background-color: #fff;
}

/* 丸ボタン */
.arrow {
    position: relative;
    display: inline-block;
    padding: 0 0 0 16px;
    color: #000;
    vertical-align: middle;
    text-decoration: none;
    font-size: 15px;
}

.arrow::before,
.arrow::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    content: "";
    vertical-align: middle;
}

.sample5-6::before {
    box-sizing: border-box;
    width: 25px;
    height: 25px;
    border: 1px solid var(--color-main);
    -webkit-border-radius: 50%;
    border-radius: 50%;
}

.sample5-6::after {
    left: 7px;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--color-main);
    border-right: 1px solid var(--color-main);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* serviceボタン */
.btn-service {
    display: block;
    text-align: center;
    text-decoration: none;
    width: 240px;
    padding: 1rem 1rem;
    /* font-weight: bold; */
    border: 1px solid var(--color-main);
    color: var(--color-main);
    background-color: #FFF;
    border-radius: 100vh;
    transition: 0.3s;
    position: relative;
    z-index: 8;

    @media (max-width: 768px) {
        display: grid;
        text-align: center;
        width: 100%;
        height: 100%;
        align-items: center;
        padding: 0.5rem 0.65rem;
        border: 1px solid var(--color-main);
        color: var(--color-main);
        background-color: #FFF;
        border-radius: 100vh;
        transition: 0.3s;
        position: relative;
        font-size: 0.9rem;
    }
}

.btn-service:hover {
    color: #fff;
    background-color: var(--color-main);
}

/* カテゴリボタン・業種ボタン */
.btn-category,
.btn-industry {
    display: block;
    text-align: center;
    text-decoration: none;
    /* width: 240px; */
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-main);
    color: var(--color-main);
    background-color: #FFF;
    border-radius: 100vh;
    transition: 0.3s;
    position: relative;
    z-index: 8;

    @media (max-width: 768px) {
        display: grid;
        text-align: center;
        width: 100%;
        height: 100%;
        align-items: center;
        padding: 0.5rem 0.65rem;
        border: 1px solid var(--color-main);
        color: var(--color-main);
        background-color: #FFF;
        border-radius: 100vh;
        transition: 0.3s;
        position: relative;
        font-size: 0.9rem;
    }
}

.btn-category:hover,
.btn-industry:hover {
    color: #fff;
    background-color: var(--color-main);
}

/* アクティブ状態 */
.btn-category.active,
.btn-industry.active {
    color: #fff;
    background-color: var(--color-main);
    font-weight: 600;
}

.btn-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    @media screen and (max-width: 768px) {
        flex-direction: column;
        justify-content: center;
    }

    li a {
        margin: 0 auto;
    }
}


/* 
レスポンシブ
*/
@media screen and (max-width: 1200px) {
    .grid-container {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .card {
        flex: 0 0 auto;
        /* カードが横に並ぶように設定 */
    }
}

@media screen and (max-width: 768px) {
    .grid-container {
        flex-direction: column;
    }
}

/*
下層ページ
 */

/* サービスページ */
.service .flex {
    display: flex;
    margin-top: 80px;
    font-weight: 500;

    h2 {
        font-size: 30px;
        margin-bottom: 24px;
    }
}

.service .container section {
    h3 {
        font-size: 1.8em;
        font-weight: 500;
        margin-bottom: 16px;
    }
}

.section-area {
    margin-top: 120px;
}

.service {
    .service-flex {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 32px;

        @media (max-width: 768px) {
            flex-direction: column;
        }

        img {
            width: 25%;
            max-width: 300px;
            flex-shrink: 0;
            align-self: center;

            @media (max-width: 768px) {
                display: none;
            }
        }

        .flex-contents {
            flex: 1;
            margin-top: 64px;

            @media screen and (max-width: 768px) {
                width: 100%;
                margin-top: 32px;
                margin-bottom: 64px;
            }

            h3 {
                font-size: 1.6rem;
                font-weight: 500;
                margin-bottom: 16px;
            }

            p {
                font-size: 18px;
                letter-spacing: 0.01em;
                line-height: 1.4;
            }
        }
    }

    .service-content {
        position: relative;
        overflow: visible;
        /* 親要素のoverflowをvisibleに設定 */
        padding: 40px 300px 40px 40px;
        background: var(--bg-gray);
        margin-bottom: 80px;

        @media screen and (max-width: 768px) {
            padding: 20px;
        }

        h4 {
            font-size: 1.7rem;
            font-weight: 600;
            margin-bottom: 8px;

            @media (max-width: 768px) {
                font-size: 1.4rem;
            }
        }

        p {
            font-size: 1.1rem;
            letter-spacing: 0.01em;
            line-height: 1.4;

            @media (max-width: 768px) {
                font-size: 1rem;
            }
        }

        .service-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-top: 24px;

            @media screen and (max-width: 1200px) {
                grid-template-columns: 1fr;
            }

            .service-item {
                display: flex;
                justify-content: start;
                align-items: center;
                border-radius: 4px;
                padding: 20px;
                background: #FFF;
            }

            .service-item img {
                color: #38EF7D;
                max-width: 40px;
                margin-right: 16px;
            }

            .service-item svg.lucide {
                width: 40px;
                height: 40px;
                margin-right: 16px;
                stroke: #25B07B;
                stroke-width: 1.5;
                flex-shrink: 0;
            }

            .service-item p {
                margin: 0;
                font-size: 1.05em;
                letter-spacing: 0;
            }

        }

        .service-img {
            max-width: 250px;
            position: absolute;
            top: -50px;
            right: 0;

            @media (max-width: 768px) {
                display: none;
            }
        }
    }

    .btn-list {
        margin-top: 24px;
        margin-bottom: 96px;

        @media screen and (max-width: 1200px) and (min-width: 769px) {
            /* タブレット: 2列グリッド */
            /* display: grid;
            grid-template-columns: 1fr 1fr; */
        }

        @media screen and (max-width: 768px) {
            /* モバイル: 1列の縦並び */
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }
    }

}

/* SPのみ出現 */
.sp-img {
    display: none;

    @media (max-width: 768px) {
        display: flex;
        justify-content: center;
        margin-top: 16px;

        img {
            max-width: 50%;
        }
    }
}

/* 実績ページ */
#works {
    .works-flex-container {
        display: flex;
        justify-content: space-between;
        /* align-items: center; */
        gap: 24px;
        margin-bottom: 24px;
        margin-top: 60px;

        @media screen and (max-width: 768px) {
            flex-direction: column;
        }

        .works-flex-item {
            width: 50%;

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

            h5 {
                font-size: 22px;
                font-weight: 500;
                margin-bottom: 16px;
            }

            p {
                font-size: 18px;
                letter-spacing: 0.05em;
                line-height: 1.4;

                @media screen and (max-width: 768px) {
                    font-size: 1rem;
                }
            }
        }
    }

    .btn-service {
        width: 100%;
    }

    .works-img {
        width: 100%;
        background: var(--bg-gray);
        text-align: center;
        margin-top: 64px;
    }

    .customer {
        margin-top: 32px;

        p {
            font-size: 22px;
        }

        h4 {
            font-size: 35px;
            font-weight: 600;
            margin: 8px 0 8px 0;

            @media screen and (max-width: 768px) {
                font-size: 1.7rem;
            }
        }

        a {
            &:hover {
                opacity: 0.8;
            }
        }
    }

    .filter-item {
        display: grid;
        /* grid-template-columns: 1fr auto; */
        /* gap: 32px; */
        align-items: center;
        margin-top: 24px;
        gap: 16px;

        @media screen and (max-width: 1200px) {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        p {
            font-weight: 500;
        }
    }

    .works-flex {
        display: flex;
        justify-content: space-between;
        margin-top: 72px;

        @media screen and (max-width: 768px) {
            flex-direction: column;
        }

        img {
            object-fit: cover;
        }

        .pc-works-img {
            width: 55%;

            @media screen and (max-width: 768px) {
                width: 100%;
                margin-bottom: 24px;
            }

            img {
                box-shadow: 0 5px 5px 0 rgb(0 0 0 / 10%);
                border: solid 1px #c1c1c1;
            }
        }

        .sp-works-img {
            /* width: 45%; */
            width: 30%;
            display: flex;
            gap: 8px;
            justify-content: space-between;

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

            img {
                box-shadow: 0 5px 5px 0 rgb(0 0 0 / 10%);
                border: solid 1px #c1c1c1;
            }
        }
    }

    /* table01 */
    table {
        width: 100%;
    }

    #table01 tr {
        border-bottom: 1px solid #b5b1b1;
    }

    #table01 th,
    #table01 td {
        padding: 16px 0;
        border: none;

        a {
            &:hover {
                opacity: 0.8;
            }
        }
    }

    #table01 th {
        width: 35%;
    }

    @media screen and (max-width: 1200px) {

        .filter-item {
            flex-direction: column;
        }

        .btn-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* sp */
    @media only screen and (max-width: 480px) {


        #table01 th,
        #table01 td {
            width: 100%;
            display: block;
        }

        #table01 th {
            width: 100%;
        }

        #table01 td {
            padding-top: 0;
        }
    }
}

.aboutus {
    position: relative;

    .sticky-area {
        width: 20%;

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

}

.aboutus-flex {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    margin-bottom: 160px;
    /* height */
    /* height: 2500px; */

    @media screen and (max-width: 768px) {
        flex-direction: column;
        width: 100%;
    }

    .fixed-area {
        position: sticky;
        top: 120px;

        .fixed-item {
            margin-top: 40px;

            ul {
                display: grid;
                gap: 8px;
                    
                    a {
                        font-size: 21px;
                        display: flex;
                        align-items: center;
                        &::before {
                                content: "";
                                width: 10px;
                                height: 2px;
                                background-color: #333333;
                                display: block;
                                margin-right: 8px;
                        }
                        
                        @media screen and (max-width: 768px) {
                            font-size: 1.2rem;
                        }
                    }
            }
        }
    }

    .scroll-area {
        width: 75%;
        margin-top: 120px;

        border-left: 1px solid #dedede;
        padding-left: 64px;

        @media screen and (max-width: 768px) {
            border-left: none;
            padding-left: 0;
            width: 100%;
            margin-top: 80px;
        }

        .company {
            .aboutus-img {
                max-width: 250px;
                position: absolute;
                top: -50px;
                right: 64px;

                @media screen and (max-width: 768px) {
                    max-width: 200px;
                    top: -24px;
                    right: 24px;
                    z-index: -1;
                }
            }

            /* table01 */
            table {
                width: 100%;
                margin-top: 64px;
                margin-bottom: 120px;
                line-height: 1.5;

                @media screen and (max-width: 768px) {
                    margin-top: 24px;
                    margin-bottom: 64px;
                }
            }

            #table01 tr {
                border-bottom: 1px solid #b5b1b1;
            }

            #table01 th,
            #table01 td {
                padding: 32px 0;
                border: none;

                @media screen and (max-width: 768px) {
                    padding: 16px 0;
                }
            }

            #table01 th {
                width: 35%;
            }

            /* sp */
            @media only screen and (max-width: 480px) {

                #table01 th,
                #table01 td {
                    width: 100%;
                    display: block;
                }

                #table01 th {
                    width: 100%;
                }

                #table01 td {
                    padding-top: 0;
                }
            }
        }

        .access {
            .access-flex {
                display: flex;
                justify-content: space-between;
                margin-top: 40px;

                @media screen and (max-width: 768px) {
                    flex-direction: column;
                }

                .address {
                    p {
                        margin-bottom: 24px;
                    }
                }

                .map {
                    width: 60%;

                    @media screen and (max-width: 768px) {
                        width: 100%;
                        margin-top: 24px;
                    }
                }
            }
        }
    }
}

.second-heading {
    display: block;

    p {
        font-size: 23px;

        @media screen and (max-width: 768px) {
            font-size: 1.1rem;
        }
    }

    h3 {
        font-size: 34px;
        font-weight: 600;

        @media screen and (max-width: 768px) {
            font-size: 1.7rem;
        }

    }

    .dot {
        /* color: var(--gradation-main); */
        color: var(--color-main);
    }
}

.consultation {
    .consultation-area {
        border-bottom: solid 3px #00965366;
        position: relative;
        display: inline-block;
        font-size: 33px;
        font-weight: 600;
        padding-bottom: 8px;

        @media (max-width: 768px) {
            font-size: 23px;
        }
    }

    .consultation-area:after {
        position: absolute;
        content: " ";
        display: block;
        border-bottom: solid 3px var(--color-main);
        bottom: -3px;
        width: 20%;
    }

    .consultation-flex {
        display: flex;
        margin-top: 24px;
        gap: 24px;
        align-items: center;
        /* position: relative; */

        /* @media (max-width: 1200px) {
        } */
        
        @media (max-width: 1000px) {
            margin-top: 32px;
            flex-direction: column;
        }

        .consultation-item {
            width: 60%;

            h4 {
                font-size: 28px;
                font-weight: 500;
                margin-bottom: 24px;
                line-height: 1.3;
                @media (max-width: 768px) {
                    font-size: 18px;
                }
                span {
                    font-size: 31px;
                    color: var(--color-main);
                    @media (max-width: 768px) {
                        font-size: 20px;
                    }
                }
            }

            p {
                letter-spacing: 0.05em;
                line-height: 1.5;
                font-size: 1.05rem;
            }

            @media (max-width: 1000px) {
                width: 100%;
            }
        }

        .img-box {
            margin: 0 auto;
            width: 40%;
            /* img {
                max-width: 400px;
            } */
            @media (max-width: 1000px) {
                width: 80%;
            }
        }

        /* img {
            max-width: 300px;
            position: absolute;
            top: -100px;
            right: 0;
            background: var(--bg-gray);

            @media (max-width: 768px) {
                display: none;
            }
        } */
    }
}

/* お問い合わせフォーム */
form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    margin-top: calc(var(--header) + 30px);
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table.tbl {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table.tbl th,
table.tbl td {
    padding: 10px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ddd;
}

table.tbl th {
    width: 30%;
    background-color: #f1f1f1;
}

table.tbl td {
    width: 70%;
}

input.textbox,
select.select,
textarea.textbox {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="file"] {
    padding: 5px;
}

span.required {
    color: red;
    font-weight: bold;
}

.policy_box {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.policy_box h5 {
    margin-top: 0;
}

.center {
    text-align: center;
}

p.button {
    margin-top: 20px;
}

input.submit {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input.submit:hover {
    background-color: #45a049;
}

@media screen and (max-width: 768px) {
    form {
        padding: 10px;
    }

    table.tbl th,
    table.tbl td {
        display: block;
        width: 100%;
    }

    table.tbl th {
        background-color: transparent;
    }

    table.tbl td {
        border-bottom: none;
    }

    .policy_box {
        max-height: 150px;
    }
}


.drawer_button * {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    font: inherit;
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: left;
    text-decoration: none;
    list-style: none;
}

.drawer_button {
    display: block;
    padding: 0;
    width: 42px;
    height: 26px;
    position: relative;
    background: none;
    border: none;
    text-align: center;
    letter-spacing: 0.1em;
    cursor: pointer;
    outline: none;
}

.drawer_button .drawer_bar {
    display: block;
    width: 42px;
    height: 2px;
    transition: all 0.2s;
    transform-origin: 0% 0%;
    transform: translateY(-50%);
    position: absolute;
    left: 0;
    border-radius: 10px;
}

.drawer_button .drawer_bar1 {
    top: 0;
}

.drawer_button .drawer_bar2 {
    top: 50%;
}

.drawer_button .drawer_bar3 {
    top: 100%;
}

.drawer_button.active .drawer_bar {
    width: 36.77px;
    left: 8px;
}

.drawer_button.active .drawer_bar1 {
    transform: rotate(0.7853981634rad) translateY(-50%);
    top: 0px;
}

.drawer_button.active .drawer_bar2 {
    opacity: 0;
}

.drawer_button.active .drawer_bar3 {
    transform: rotate(-0.7853981634rad) translateY(-50%);
    top: calc(100% - 0px);
}

.drawer_button.active .drawer_menu_text {
    display: none;
}

.drawer_button.active .drawer_close {
    display: block;
}

.drawer_text {
    width: 100%;
    position: absolute;
    bottom: -20px;
    left: 0;
    text-align: center;
    font-size: 10px;
}

.drawer_close {
    letter-spacing: 0.08em;
    display: none;
}

/*+++ Default Button Color +++*/
.drawer_button {
    color: var(--color-main);
}

.drawer_button .drawer_bar {
    background-color: var(--color-main);
}

/* === Hambuerger Button's Style End === */
.drawer_menu .drawer_button {
    /*+++ Hamburger Button Position +++*/
    position: fixed;
    top: 20px;
    right: 32px;
    z-index: 1001;
}

.drawer_menu a {
    color: inherit;
    text-decoration: none;
    padding: 9px 15px 10px 0;
    display: block;
}

.drawer_menu a:hover {
    color: #1ca775;
}

.drawer_menu .drawer_bg {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999;
    background-color: rgba(51, 51, 51, 0.5);
    display: none;
    top: 0;
    left: 0;
}

.drawer_menu .drawer_nav_wrapper {
    width: 312px;
    height: 100%;
    transition: all 0.5s;
    transform: translate(312px);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
}

.drawer_menu .drawer_nav_wrapper.open {
    transform: translate(0);
}

.drawer_menu.left .drawer_button {
    right: auto;
    left: 32px;
}

.drawer_menu.left .drawer_nav_wrapper {
    transform: translate(-312px);
    right: auto;
    left: 0;
}

.drawer_menu.left .drawer_nav_wrapper.open {
    transform: translate(0);
}

/*+++ Default Navigation CSS +++*/
.drawer_menu .drawer_nav {
    padding: 100px 30px;
    flex-direction: column;
}

.drawer_menu .drawer_nav li {
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-main);
    position: relative;
}

.drawer_menu .drawer_nav li ::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: solid 2px var(--color-main);
    border-right: solid 2px var(--color-main);
    transform: rotate(45deg);
    position: absolute;
    right: 11px;
    top: 16px;
}

/* お問い合わせフォーム */
.form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 40px;
}

.form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);

    @media screen and (max-width: 768px) {
        padding: 24px;
    }
}

.form-group {
    margin-bottom: 32px;

    @media screen and (max-width: 768px) {
        margin-bottom: 24px;
    }
}

.form-heading {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-body);

    @media screen and (max-width: 768px) {
        font-size: 16px;
    }
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--bg-white);
    transition: border-color 0.3s;
    font-family: 'Noto Sans JP', sans-serif;

    &:focus {
        outline: none;
        border-color: var(--color-main);
    }

    @media screen and (max-width: 768px) {
        font-size: 14px;
        padding: 10px 12px;
    }
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.form-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 40px auto 0;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: var(--bg-white);
    background-color: var(--color-main);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
        opacity: 0.85;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 150, 83, 0.3);
    }

    @media screen and (max-width: 768px) {
        font-size: 16px;
        padding: 14px 28px;
    }
}

/* 確認画面 */
.confirmation {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);

    > p:first-child {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 32px;
        text-align: center;

        @media screen and (max-width: 768px) {
            font-size: 16px;
            margin-bottom: 24px;
        }
    }

    @media screen and (max-width: 768px) {
        padding: 24px;
    }
}

.confirmation-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;

    &:last-of-type {
        border-bottom: none;
    }

    h3 {
        font-size: 16px;
        font-weight: 600;
        color: var(--color-body);
        margin-bottom: 8px;
    }

    p {
        font-size: 16px;
        line-height: 1.6;
        color: var(--color-body);
        white-space: pre-wrap;
        word-break: break-word;
    }

    @media screen and (max-width: 768px) {
        margin-bottom: 20px;
        padding-bottom: 20px;

        h3 {
            font-size: 14px;
        }

        p {
            font-size: 14px;
        }
    }
}

/* 個人情報リンク */
.privacy-link {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 0;

    a {
        color: var(--color-main);
        text-decoration: underline;
        font-size: 14px;
        transition: opacity 0.3s;

        &:hover {
            opacity: 0.7;
        }

        @media screen and (max-width: 768px) {
            font-size: 13px;
        }
    }
}

.confirmation-btn-wrapper {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;

    @media screen and (max-width: 768px) {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
}

.confirm-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;

    @media screen and (max-width: 768px) {
        width: 100%;
        font-size: 15px;
        padding: 12px 28px;
    }
}

#confirm-submit {
    color: var(--bg-white);
    background-color: var(--color-main);

    &:hover {
        opacity: 0.85;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 150, 83, 0.3);
    }
}

#confirm-back {
    color: var(--color-main);
    background-color: var(--bg-white);
    border: 2px solid var(--color-main);

    &:hover {
        background-color: var(--bg-gray);
    }
}

/* フォーム冒頭メッセージ */
.form-intro {
    max-width: 800px;
    margin: 0 auto 32px;
    padding: 32px;
    background-color: var(--bg-gray);
    border-radius: 8px;
    text-align: center;

    h3 {
        font-size: 24px;
        font-weight: 600;
        color: var(--color-main);
        margin-bottom: 16px;

        @media screen and (max-width: 768px) {
            font-size: 20px;
        }
    }

    p {
        font-size: 16px;
        line-height: 1.8;
        color: var(--color-body);
        margin-bottom: 0;

        @media screen and (max-width: 768px) {
            font-size: 14px;
        }
    }

    .required-note {
        margin-top: 16px;
        font-size: 14px;
        color: var(--color-main);
        font-weight: 600;
    }

    @media screen and (max-width: 768px) {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
}

/* フォームセクション */
.form-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 2px solid var(--bg-gray);

    &:last-of-type {
        border-bottom: none;
        margin-bottom: 0;
    }

    @media screen and (max-width: 768px) {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }
}

.form-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-main);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-main);

    @media screen and (max-width: 768px) {
        font-size: 18px;
    }
}

.form-section:last-of-type .form-section-title {
    border-bottom: none;
}

/* 必須バッジ */
.required-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-white);
    background-color: var(--color-main);
    border-radius: 4px;
    vertical-align: middle;
}

/* チェックボックスグループ */
.checkbox-group {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-auto-flow: column;
    gap: 12px;
    margin-top: 12px;

    @media screen and (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 4px;
    position: relative;

    input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    /* カスタムチェックボックス */
    input[type="checkbox"] + span::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-right: 10px;
        border: 2px solid #d1d1d1;
        border-radius: 3px;
        background-color: white;
        vertical-align: middle;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    /* ホバー時 */
    input[type="checkbox"]:hover + span::before {
        border-color: var(--color-main);
    }

    /* チェック時のボックス */
    input[type="checkbox"]:checked + span::before {
        background-color: var(--color-main);
        border-color: var(--color-main);
    }

    /* チェックマーク */
    input[type="checkbox"]:checked + span::after {
        content: '';
        position: absolute;
        left: 11px;
        /* top: 14px; */
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    span {
        font-size: 16px;
        color: var(--color-body);
        display: flex;
        align-items: center;

        @media screen and (max-width: 768px) {
            font-size: 15px;
        }
    }

    @media screen and (max-width: 768px) {
        padding: 6px 2px;

        input[type="checkbox"]:checked + span::after {
            left: 9px;
            top: 12px;
        }
    }
}

/* ラジオボタングループ */
.radio-group {
    display: grid;
    gap: 0;
    margin-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 16px 8px;
    transition: all 0.2s;
    border-bottom: 1px solid #e0e0e0;

    &:hover {
        background-color: rgba(0, 150, 83, 0.02);
    }

    input[type="radio"] {
        margin-right: 12px;
        width: 20px;
        height: 20px;
        cursor: pointer;
        accent-color: var(--color-main);
        flex-shrink: 0;
    }

    input[type="radio"]:checked + span {
        font-weight: 600;
        color: var(--color-body);
    }

    span {
        font-size: 16px;
        color: var(--color-body);
        transition: font-weight 0.2s;

        @media screen and (max-width: 768px) {
            font-size: 15px;
        }
    }

    @media screen and (max-width: 768px) {
        padding: 14px 6px;
    }
}

/* 補足入力欄（その他） */
.form-supplement {
    margin-top: 12px !important;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--bg-white);
    font-family: 'Noto Sans JP', sans-serif;

    @media screen and (max-width: 768px) {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* 注釈テキスト */
.form-note {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;

    @media screen and (max-width: 768px) {
        font-size: 12px;
    }
}

/* 文字数カウント */
.char-count {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: right;

    #project-detail-count {
        color: var(--color-main);
        font-weight: 600;
    }

    @media screen and (max-width: 768px) {
        font-size: 12px;
    }
}

/* エラーメッセージ */
.error-message {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #d32f2f;
    font-weight: 600;

    &:empty {
        display: none;
    }

    @media screen and (max-width: 768px) {
        font-size: 12px;
    }
}

/* エラー時のフィールドスタイル */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #d32f2f !important;
}