﻿@charset "utf=8";

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

li {
    list-style: none;
}

h1,
h2,
h3,
h4,
p,
a,
option,
select,
button,
input {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

html {
    font-size: 10px;
    /* 1rem = 10px に変更 */
}

.font-size-S {
    font-size: 1.5rem;
}
.font-size-M-top {
    font-size: 2rem;
}

.font-size-M {
    font-size: 3rem;
}

.font-size-L{
    font-size: 4rem;
}

/* ナビゲーション */
#g-nav_area {
    width: 100%;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
}

.protech_logo-set {
    width: 26rem;
    position: absolute;
    top: 2rem;
    left: 5rem;
}

.protech_logo-set-mf {
    width: 26rem;
    position: absolute;
    top: 2rem;
    left: 5rem;
}

#g-nav_area nav {
    display: flex;
}

.g-nav_ul {
    display: flex;
    align-items: center;
}

.g-nav_ul li a {
    padding: 0.8rem 4.8rem;
    color: #2f5597;
}

.contact_box {
    height: 8rem;
    font-size: 2rem;
    padding: 2.4rem 5.2rem 3.2rem 5.2rem;
    background: linear-gradient(90deg, #E78E1A 54%, #EB6818 87%, #DD571F 100%);
}

.g-nav_ul li+li::before {
    content: "";
    display: block;
    height: 2.4rem;
    border-left: 1px solid #2f5597;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
}

.contact_box a {
    color: #F9F3E8;
}

.g-nav_ul .nav-active {
    display: flex;
    z-index: 10;
    position: absolute;
    top: 0;
    right: 0px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: transparent;
    font-weight: 700;
    opacity: 1;
    transition: 0.6s;
    background-color: palevioletred;
}

/* ハンバーガー */
.c-hamburger {
    position: relative;
    width: inherit;
    height: inherit;
    margin: 0;
    border: 1px solid #005885;
    background: #005885;
    cursor: pointer;
    border-radius: 4px;
}


.c-hamburger span {
    display: block;
    position: relative;
    left: 50%;
    width: 30px;
    height: 2px;
    transform: translateX(-50%);
    background: #fff;
    transition: all 0.4s;
}


.c-hamburger span:nth-of-type(1) {
    top: -4px;
}

.c-hamburger span:nth-of-type(2) {
    top: 1px;
}


.c-hamburger span:nth-of-type(3) {
    top: 6px;
}

.c-hamburger.is-active span:nth-of-type(1) {
    top: 0;
    transform: translateX(-50%) rotate(225deg);
}

.c-hamburger.is-active span:nth-of-type(2) {
    opacity: 0;
}

.c-hamburger.is-active span:nth-of-type(3) {
    top: -4px;
    transform: translateX(-50%) rotate(-225deg);
}

/* ハンバーガー用メディクリ設定 */
/*スクリーンサイズが420px以上の場合に適用  */
@media screen and (min-width:420px) {

    .p-header__hamburger,
    .protech_mark {
        display: none;
    }
}


/* トップエリア */
#top-area {
    padding-top: 11rem;
    background-image: url(./FoodVer4-img/FoodVer4-top-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: auto;
    display: flex;
}

.top-area-box {
    display: flex;
    width: 100%;
    justify-content: center;
}

.title-box {
    display: flex;
    flex-direction: column;
}

.top-main-copy-pc {
    margin-top: 3.2rem;
    width: 88rem;
    height: auto;
}

.top-main-copy-sp{
 display: none;
}

/*↑ SPで入替 */

.Food-logo {
    margin-top: 6rem;
    width: 52rem;
    height: auto;
}

.top-sub-copy-box {
    margin-top: 3.5rem;
}

.top-sub-copy {
    line-height: 1.5;
    font-size: 2.5rem;
}

.top-content-img{
    margin-top: 2.5rem;
    height: auto;
}

.top-pc-img {
    width: 64rem;
    height: auto;
    object-fit: contain;
    object-position: bottom;
}

/* お問い合わせボタン */
.contact-widget {
    border-radius: 1.8rem;
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(90deg, rgba(13, 86, 166, 1) 0%, rgba(0, 42, 104, 1) 100%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 24px 32px;
    display: block;
    /* 初期状態で表示 */
    box-shadow: 5px 5px 3px 0px rgba(0, 0, 0, 0.3);
    z-index: 99;
}

.contact-widget h2,
.contact-widget p {
    margin: 0;
    color: #f9f3e8;
}

.contact-widget h2{
    font-size: 2.5rem;
}
.contact-widget p {
    padding-top: 1.6rem;
    position: relative;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    cursor: pointer;
    background: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 5px 3px 0px rgba(0, 0, 0, 0.3);
}

.close-btn span {
    display: block;
    position: absolute;
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: #002a68;
}

.close-btn span:nth-of-type(1) {
    transform: rotate(225deg);
}

.close-btn span:nth-of-type(2) {
    transform: rotate(-225deg);
}

/* コピー：そんな勤怠の手間をどうにかしたい！ */
.Food-copy {
    padding-top: 11rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    background-color: #F9F3E8;
}

.Food4-copy-box {
    display: flex;
    justify-content: center;
}

.Food4-copy-h3 {
    line-height: 1.5;
    color: #F69229;
    text-align: center;
    margin-bottom: 11rem;
}

.top-content-box{
    display: flex;
    justify-content: start;
}


.answer,
.recomend,
.introduction {
    text-align: center;
}

/* 4つのメリット */
#merit {
    margin-left: auto;
    margin-right: auto;
    background-color: #F9F3E8;
    padding-bottom: 11rem;
}

#merit h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 800px; /* ここが重要！！ */
    gap: 1rem; /* お好みで間隔調整 */
}

.box > .item {
    width: calc(50% - 0.5rem); /* gapがある場合は調整 */
}

.merit-img {
    width: 25rem;
    height: 21rem;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.in-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
    margin: 4.8rem 1.8rem;
    background: #fff;
    border-radius: 1.6rem;
    box-shadow: 0.7rem 0.7rem 0.5rem 0 rgba(0, 0, 0, 0.3);
    width: 32rem;
    height: 44rem;
    justify-content: center;
}

.in-box-content {
    flex: 1 1 auto;
    /* 必要に応じて広がるし縮む（初期サイズはコンテンツ依存） */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.num-box {
    position: relative;
    display: flex;
    justify-content: center;
}

.merit-num {
    color: #F69229;
    position: absolute;
    top: 1.2rem;
    left: 4.2rem;
    font-size: 5rem;
}

.merit-text {
    /* flex-grow: 1; */
    /* flex-grow「余っているスペースを、子要素がどれくらい広がって使うか」 */
    margin: 0 3.2rem;
    font-size: 1.6rem;
    line-height: 1.5;
}

.in-box h3 {
    text-align: center;
}

/* 機能詳細 */
#function {
    padding: 11rem 0;
    background-image: url(./FoodVer4-img/FoodVer4-bg-b.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #fff;
}

.line {
    width: 40rem;
}

.function-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8rem;
}

.answer h4 {
    padding-bottom: 2rem;
}

.function-img-l,
.function-img-r {
    width: 47rem;
    height: auto;
    box-shadow: 0.7rem 0.7rem 0.5rem 0 rgba(0, 0, 0, 0.3);
}

.function-img-l {
    margin-right: 7.2rem;
}

.function-img-r {
    margin-left: 7.2rem;
}


.function-title-box {
    display: flex;
}

.function-title-box img {
    width: 7.8rem;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin-right: 1.7rem;
}

.function-title {
    margin-bottom: 1.6rem;
    color: #F69229;
    font-weight: bold;
    font-size: 3.2rem;
    line-height: 1.5;
}

.function-text {
    font-size: 1.6rem;
    line-height: 2;
}

.box-2 {
    display: flex;
    flex-direction: row-reverse;
}

.function-text-box {
    width: 47rem;
}

.text-r {
    padding-left: 0;
    padding-right: 4%;
}

/* 導入 */
#introduction {
    background-color: #FBDCC0;
    padding: 11rem 3rem;
}

.introduction-line{
    width: 40rem;
}

.introduction-box {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    width: 100rem;
}

.introduction h4 {
    margin-bottom: 2rem;
}

.introduction-in-box {
    margin-top: 3.6rem;
    width: 25rem;
    height: 25rem;
    background-color: #fff;
    border-radius: 1.6rem;
    padding: 2rem;
    position: relative;
    margin-right: 3rem;
    display: flex;
    flex-direction: column;
}

.introduction-in-box:nth-child(4) {
    margin-right: 0;
}

.step {
    margin-bottom: 3rem;
}

.intro-text-title {
    margin-bottom: 2rem;
}

.step,
.intro-text-title {
    color: #002a68;
    font-size: 1.8rem;
}

.intro-text {
    flex-grow: 1;
    line-height: 1.5;
    font-size: 1.6rem;
}

.card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.introduction-in-box:not(:last-child):after {
    content: '';
    border: 0;
    border-top: solid 2px #fb3c3c;
    border-right: solid 2px #fb3c3c;
    display: inline-block;
    transform: rotate(45deg);
    width: 1rem;
    height: 1rem;
    position: absolute;
    top: 50%;
    right: -8%;
}

/* フッター */
footer {
    margin: 0 auto;
}

.footer_area {
    margin: 11rem auto 6rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #2f5597;
    padding-bottom: 4.2rem;
}

.footer_img {
    width: 20rem;
}

.footer_text {
    margin-left: 3rem;
    font-size: small;
}

.footer_ul {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.footer_ul li a {
    padding: 0.8rem 2rem;
    color: #2f5597;
}

.footer_ul li+li::before {
    content: "";
    display: block;
    height: 2.4rem;
    border-left: 1px solid #2f5597;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
}

.copyright {
    text-align: center;
    color: #2f5597;
    margin-top: 2.4rem;
    margin-bottom: 10rem;
    font-size: small;
}

.Btn-A {
    margin-top: 6.4rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    letter-spacing: 0.1rem;
    text-align: center;
    width: 32rem;
    min-width: 300px;
    padding: 2rem;
    background: linear-gradient(90deg, #E78E1A 54%, #EB6818 87%, #DD571F 100%);
    border-radius: 9999px;
    color: #fff;
    border: none;
    font-size: 2rem;
}

@media (max-width: 1000px) {
    .introduction-box {
        width: auto;
    }
}

/* タブレット */
@media (max-width: 1000px) and (max-width: 1024px) {
    html {
        font-size: 50%;
        /* 1rem = 5px に変更 */
    }

    .g-nav_ul li a {
        padding: 0.8rem 2rem;
        color: #2f5597;
    }

    .top-pc-img {
        width: 51rem;
    }

    .title-box {
        margin-left: 5rem;
    }

    .function-box {
        flex-direction: column;
        margin-top: 3rem;
    }

    .function-img-l {
        margin-right: 0;
    }

    .function-img-r {
        margin-left: 0;
    }
}

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

    .introduction-box {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: center;
    }

    .introduction-in-box {
        margin-right: 0;
    }
    
    .introduction-in-box:not(:last-child):after{
        transform: rotate(135deg);
        position: absolute;
        top: 105%;
        right: 50%;
    }
}


/* スクリーンサイズが420px以下の場合に適用 */
@media screen and (max-width: 420px) {

    body {
        min-width: auto;
    }

    .title-box {
        margin-left: 0;
    }

    .p-header__hamburger,
    .protech_mark {
        display: block;
    }

    .contact_box {
        font-size: 16px;
        padding: 13px 16px 16px 16px;
        background: linear-gradient(90deg, #e6332c 0%, #ee6664 50%, #f69229 100%);
        position: absolute;
        top: 16px;
        right: 72px;
        height: 48px;
        border-radius: 4px;
    }

    .protech_logo-set {
        width: 200px;
        position: absolute;
        top: 15px;
        left: 3vw;
    }

    .protech_logo-set-mf {
        width: 200px;
        position: absolute;
        top: 15px;
        left: 3vw;
    }

    .protech_mark {
        display: block;
    }

    #g-nav_area {
        width: 100%;
        position: fixed;
        overflow: hidden;
    }

    .p-header__hamburger {
        z-index: 9999;
        position: absolute;
        display: block;
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .g-nav_ul {
        display: none;
        /* 初期状態ではナビゲーションメニューを非表示に */
    }

    .nav-active {
        text-align: center;
        width: 100%;
        background-color: #fff;
        display: block;
        z-index: 99;
        display: flex;
        height: 80px;
        align-items: center;
        justify-content: center;
        /* .nav-active クラスが追加された場合、ナビゲーションメニューを表示 */
    }

    #g-nav_area {
        display: block;
    }

    .nav-ul li+li::before {
        display: none;
    }

    .footer_ul li+li::before {
        display: none;
    }

    /* 追従ナビ */
    .contact-widget h2{
        font-size: 2.5rem;
    }
    .contact-widget p {

        font-size: 1.5rem;
        letter-spacing: 0.2rem;
    }

    /* トップレイアウト変更 */
    #top-area {
        background-image: none;
        background-color: #fff;
    }
    
    .top-area-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .title-box{
        align-items: center;
    }

    .top-pc-img {
        width: 40rem;
        margin-top: 3rem;
    }

    .font-size-M-top {
        font-size: 2rem;
        text-align: center;
    }

    .top-main-copy-sp{
        display:block;
        width: 85vw;
        height: auto;
        object-fit: contain;
        object-position: center;
        margin-top: 5px;
       }

    .top-main-copy-pc {
        display: none;
    }

    .top-sub-copy {
        font-size: 2rem;
    }

    .Food-logo {
        margin-top: 5rem;
        width: 40rem;
        height: auto;
    }

    .top-content-box{
        display: flex;
        justify-content: center;
    }

    .top-content-img{
        margin-top: 3.2rem;
        height: auto;
        width: 90%;
    }

    .Food4-copy-h3 {
        font-size: 2.5rem;
    }

/* 機能詳細 */
.function-title-box {
    margin-top: 3rem;
}

/* ポイントを１列に */
    .box > .item {
        width: calc(50% - 0.5rem); /* PCサイズ以上で2列に */
    }

}

