@charset "UTF-8";

header{
    width: 100%;
    height: 74px;
    background-color: #FBF7EA;

    nav{
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        padding: 24px 12px 0;
        box-sizing: border-box;

        a{
            display: block;
            width: 160px;
            height: 26px;
            text-indent: -9999px;
            background: url(img/gcLogoG.webp) center center /  contain no-repeat;
        }
    }
}

div.buddycare {

    div.cover{

        width: 100%;
        max-height: 480px;
        /* background: 
            linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
            url(img/top-image.jpg) center center / cover no-repeat; */
        position: relative;

        h1{
            color: #fff;
            font-size: 3.2rem;
            font-weight: bold;
            line-height: 1.5;
            letter-spacing: 0.05em;
            position: absolute;
            text-align: center;
            width: 100%;
            box-sizing: border-box;
            top: 50%;
            transform: translateY(-50%);
            padding: 0 40px;

            @media(max-width:780px){
                padding: 0 24px;
            }

            @media(max-width:480px){
                padding: 0 16px;
            }

            span.main{
                text-indent: -9999px;
                display: block;
                height: 64px;
                background: url(img/logo.svg) center center / contain no-repeat;

                @media(max-width:780px){
                    height: 48px;
                }

                @media(max-width:480px){
                    height: 36px;
                }
    
                @media(max-width:400px){
                    height: 32px;
                }
            }

            span.sub{
                margin-top: 16px;
                display: block;
                font-weight: bold;

                @media(max-width:780px){
                    font-size: 2.6rem;
                }

                @media(max-width:480px){
                    font-size: 2.4rem;
                }
    
                @media(max-width:400px){
                    font-size: 2.1rem;
                }

                span{
                    font-weight: bold;
                    display: inline-block;
                }
            }
        }

        video{
            width: 100%;
            max-height: 480px;
            box-sizing: border-box;
            object-fit: cover;
            object-position: center;
            filter: brightness(0.5);
        }
    }

    div.inner{
        margin: 0 auto ;
        padding-bottom: 120px;
        padding-left: 12px;
        padding-right: 12px;
        background-color: #fff;
        box-sizing: border-box;
        max-width: 800px;

        @media(max-width:780px){
            padding-left: 12px;
            padding-right: 12px;
            width: 100%;
            margin-left: 0;
        }

        h2{
            margin-top: 40px;
        }

        a.calorieScroll{
            margin: 24px auto 0;
            display: block;
            width: fit-content;
            padding: 16px 16px 32px 44px; 
            background: url(img/icon_food.svg) top 10px left 12px / 28px 28px no-repeat,
            url(img/arrow.svg) center bottom 12px / 12px 8px no-repeat,
             #009544;
            border-radius: 4px;
            color: #fff;
            font-size: 1.8rem;
            text-decoration: none;
            transition: .3s;

            &:hover{
                opacity: 0.9;
                background: url(img/icon_food.svg) top 10px left 12px / 28px 28px no-repeat,
                url(img/arrow.svg) center bottom 8px / 12px 8px no-repeat,
                #009544;
            }

            @media(max-width:480px){
                padding-left: 40px;
                background: url(img/icon_food.svg) top 10px left 12px / 24px 24px no-repeat,
                url(img/arrow.svg) center bottom 12px / 12px 8px no-repeat,
                #009544;
                font-size: 1.6rem;

                &:hover{
                    opacity: 0.9;
                    background: url(img/icon_food.svg) top 10px left 12px / 24px 24px no-repeat,
                    url(img/arrow.svg) center bottom 8px / 12px 8px no-repeat,
                    #009544;
                }
            }
        }

        nav {
            display: block;
            border: 1px solid #009544;
            margin-top: 40px;
            margin-bottom: 20px;
            padding: 20px 12px;

            p {
                font-size: 123.1%;
                font-weight: bolder;
                letter-spacing: 1px;
                line-height: 1.5;
            }

            ul {
                li {
                    line-height: 1.2;
                    padding-left: 20px;
                    height: 28px;

                    position: relative;

                    &:before {
                        box-sizing: border-box;
                        border-left: 6px solid transparent;
                        border-right: 6px solid transparent;
                        border-top: 6px solid #66bf8f;
                        content: "";
                        width: 12px;
                        height: 6px;
                        top: 8px;
                        left: 2px;
                        position: absolute;
                    }

                    a {
                        /* display: inline-block; */
                        line-height: 1.2;
                    }
                }
            }
        }

        div#calorie,
        div#about,
        div#feed,
        div#attention,
        div#company,
        div#question {
            margin-top: 72px;

            div.toTop {
                margin-top: 16px;
                text-align: center;

                a {
                    color: #009544;
                    font-size: 1.5rem;
                    font-weight: bold;
                    line-height: 3.5;
                    letter-spacing: 1px;

                    @media(max-width:400px){
                        font-size: 1.2rem;
                        letter-spacing: 0; 
                    }
                }
            }

            ul.cautionList{
                margin-top: 24px;

                li{
                    line-height: 1.5;
                    padding-left: 16px;
                    position: relative;

                    &::before{
                        content: '・';
                        position: absolute;
                        top: 0;
                        left: 0;
                    }
                }
            }
        }

        div#about{

            p.lead{
                color: #009544;
                font-size: 2.1rem;
                font-weight: bold;
            }

            p.sub{
                margin-top: 8px;
            }

            ul.aboutList{
                margin-top: 24px;
                background-color: #fff3e5;
                border-radius: 5px;
                padding: 16px;

                li{
                    margin-top: 8px;
                    padding-left: 40px;
                    font-size: 1.8rem;
                    line-height: 1.5;
                    position: relative;

                    &::before{
                        content: '';
                        display: block;
                        width: 28px;
                        height: 28px;
                        background: url(img/foot.svg) center / contain no-repeat;
                        position: absolute;
                        top: 50%;
                        left: 0;
                        transform: translateY(-50%);
                    }

                    em{
                        color: #56321c;
                        font-style: normal;
                        font-weight: bold;
                    }
                }
            }

            ul.featureList{
                margin-top: 16px;
                display: flex;
                justify-content: space-between;
                flex-wrap: wrap;
                gap: 24px 16px;

                li{
                    width: calc((100% - 32px) / 3);
                    display: flex;
                    flex-direction: column;

                    @media(max-width:780px){
                        width: calc((100% - 16px) / 2);
                    }

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

                    span{
                        order: 2;
                        margin-top: 16px;
                        color: #009544;
                        font-weight: bold;
                    }

                    h4{
                        order: 3;
                        margin-top: 12px;
                        font-size: 1.8rem;
                        font-weight: bold;
                        line-height: 1.25;

                        em{
                            display: block;
                            width: fit-content;
                            font-style: normal;
                            font-weight: bold;
                            background: linear-gradient(0deg, transparent 15%, #ffa900 10%, #ffa900 35%, transparent 24%);

                            @media(max-width:480px){
                                display: inline-block;
                            }
                        }
                    }

                    p{
                        order: 4;
                        margin-top: 16px;
                    }

                    img{
                        order: 1;
                        margin-top: 0;
                        width: 100%;
                        border-radius: 4px;
                    }
                }
            }

            ul.foodList,
            ul.treatsList{
                display: flex;
                justify-content: space-between;
                flex-wrap: wrap;
                gap: 16px;

                li{
                    width: calc((100% - 32px) / 3);
                    display: flex;
                    flex-direction: column-reverse;
                    justify-content: flex-end;
                    padding: 12px;
                    box-sizing: border-box;
                    border-radius: 4px;

                    &.beef{
                        background-color: #d8b1a3;

                        dl{
                            dt{
                                span.num{
                                    background-image: url(img/num_01.svg);
                                }
                            }
                        }
                    }
                    &.chicken{
                        background-color: #f8ce8b;

                        dl{
                            dt{
                                span.num{
                                    background-image: url(img/num_02.svg);
                                }
                            }
                        }
                    }
                    &.saba{
                        background-color: #b5d3e5;

                        dl{
                            dt{
                                span.num{
                                    background-image: url(img/num_04.svg);
                                }
                            }
                        }
                    }
                    &.chickenBreast{
                        background-color: #f49d97;
                    }
                    &.porkThigh{
                        background-color: #f49d97;
                    }
                    &.porkHatsu{
                        background-color: #f49d97;
                    }

                    @media(max-width:780px){
                        width: calc((100% - 16px) / 2);
                    }

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

                    img{
                        margin-top: 0;
                        border-radius: 4px;
                    }
                }
            }

            ul.foodList{
                li{
                    dl{
                        dt{
                            margin-top: 12px;
                            font-size: 1.8rem;
                            font-weight: bold;
                            display: flex;
                            align-items: end;
                            justify-content: center;

                            span.num{
                                text-indent: -9999px;
                                display: inline-block;
                                margin-right: 8px;
                                width: 36px;
                                height: 28px;
                                background-position: center left;
                                background-repeat: no-repeat;
                                background-size: contain;

                                @media(max-width:400px){
                                    width: 30px;
                                    height: 24px;
                                }
                            }

                            span.en{
                                font-size: 1.4rem;
                            }
                        }
                        dd{
                            margin-top: 8px;
                            line-height: 1.5;
                        }
                    }
                }

            }

            ul.treatsList{
                li{
                    p{
                        margin-top: 12px;
                        text-align: center;
                        font-size: 1.8rem;
                        font-weight: bold;

                        span.en{
                            font-size: 1.4rem;
                            display: block;
                        }
                    }
                }
            }

            h3{
                margin-top: 48px;
                margin-bottom: 10px;
                padding: 12px;
                font-size: 1.8rem;
                font-weight: bold;
                line-height: 1.5;

                background-color: #daefe4;

                em{
                    color: #009544;
                    font-style: normal;
                    font-weight: bold;
                }
            }

            h4.h4Lineup{
                margin-top: 32px;
                margin-bottom: 10px;
                padding-left: 24px;
                font-size: 1.8rem;
                position: relative;

                &::before{
                    content: '';
                    display: block;
                    width: 16px;
                    height: 16px;
                    background-color: #66bf8f;
                    position: absolute;
                    top: 2px;
                    left: 0;
                }
            }

            p{
                em{
                    color: #56321c;
                    font-style: normal;
                    font-weight: bold;
                }
            }

            img{
                display: block;
                width: 100%;
                margin-top: 24px;
            }
        }

        div#calorie {

            div.container {
                margin-top: 24px;
                background-color: #f0eeef;
                border-radius: 5px;
                padding: 30px 15px 20px;
                /* height: 520px; */
                box-sizing: border-box;
                overflow: hidden;

                form {

                    div.group {

                        margin-bottom: 24px;

                        div.title {
                            display: flex;
                            align-items: center;
                            flex-wrap: wrap;
                            flex-shrink: 0;
                            padding-left: 24px;
                            margin-bottom: 4px;

                            label,
                            p.text {
                                font-size: 1.6rem;
                                font-weight: bold;
                                margin-right: 16px;
                                position: relative;

                                &:before {
                                    content: "";
                                    width: 14px;
                                    height: 14px;
                                    background-color: #66bf8f;
                                    border-radius: 50%;
                                    position: absolute;
                                    left: -24px;
                                    top: 50%;
                                    transform: translateY(-50%);
                                }
                            }

                            p.modalLink {
                                text-decoration: underline;
                                cursor: pointer;

                                &:hover {
                                    text-decoration: none;
                                }
                            }


                        }

                        input[type="date"],
                        input[type="text"],
                        input[type="number"],
                        select {
                            color: #000;
                            font-size: 1.5rem;
                            box-sizing: border-box;
                            border: 1px solid #d2c1c2;
                            padding: 9px;
                            background-color: #daefe4;
                            line-height: 1.15;
                            height: 40px;

                            &.error {
                                background-color: #FFCCCC;
                                box-shadow: 0px 0px 4px #F04E4E;
                            }

                            &.done {
                                background-color: #fff !important;
                                box-shadow: none;
                            }
                        }

                        input[type="date"],
                        input[type="text"],
                        input[type="number"] {
                            width: 100%;
                            position: relative;
                        }

                        div.radio{
                            display: flex;

                            label.genderLabel{
                                margin-top: 4px;
                                display: flex;
                                align-items: center;
                                width: 80px;
        
                                input[type="radio"] {
                                    height: 28px;
                                    appearance: auto;
                                    -webkit-appearance: radio;
                                    -moz-appearance: radio;
                                    cursor: pointer;
                                }
        
                                span{
                                    padding-left: 6px;
                                }
                            }
                        }

                        div.selectContainer {
                            position: relative;

                            div{
                                @media(max-width:400px){
                                    &:before {
                                        height: 100%;
                                        position: absolute;
                                        right: 40px;
                                        top: 0;
                                        width: 4px;
                                        z-index: 3;
                                    }
                                }
                            }

                            &:after {
                                border-color: #009544 transparent transparent transparent;
                                border-style: solid;
                                border-width: 6px 6px 0 6px;
                                content: "";
                                height: 0;
                                margin-top: -3px;
                                pointer-events: none;
                                position: absolute;
                                right: 13px;
                                top: 50%;
                                width: 0;
                                z-index: 2;
                            }

                            select {
                                width: 100%;
                                position: relative;
                            }
                        }
                    }

                    div.modal {
                        position: fixed;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        text-align: center;
                        background: rgba(0, 0, 0, 0.75);
                        padding: 0 20px;
                        overflow: auto;
                        opacity: 0;
                        visibility: hidden;
                        transition: 0.3s;
                        box-sizing: border-box;
                        z-index: 200;

                        &.active {
                            opacity: 1;
                            visibility: visible;
                        }

                        div.modalContainer {
                            position: relative;
                            left: 50%;
                            top: 50%;
                            transform: translateX(-50%) translateY(-50%);
                            max-width: 730px;

                            background-color: #fff;
                            border-radius: 4px;
                            padding: 20px 15px;
                            width: 100%;
                            text-align: left;
                            box-sizing: border-box;

                            dl {
                                dt {
                                    font-weight: bold;
                                    line-height: 1.5;

                                    &.marginTop {
                                        margin-top: 16px;
                                    }
                                }

                                dd {
                                    ul,ol {
                                        li {
                                            line-height: 1.5;
                                        }
                                    }
                                }
                            }

                            button.modalCloseButton {
                                width: 100%;
                                display: flex;
                                justify-content: center;

                                p {
                                    color: #fff;
                                    font-weight: bold;
                                    background-color: #56321c;
                                    border-radius: 50px;

                                    margin-top: 5px;
                                    padding-bottom: 15px;
                                    padding-left: 15px;
                                    padding-right: 15px;
                                    padding-top: 15px;

                                    border: none;
                                    width: 125px;
                                    text-decoration: none;
                                    margin-left: 0;
                                }
                            }

                            button.modalCloseImage {
                                position: absolute;
                                top: -20px;
                                right: -18px;
                                width: 38px;
                                height: 38px;

                                border: none;
                                padding: 0;
                                background: none;

                                img {
                                    width: 100%;
                                }
                            }
                        }
                    }

                    p.alert {
                        display: none;
                        margin-top: 8px;
                        color: #b4181c;
                        text-align: center;

                        &.error {
                            display: block;
                        }
                    }

                    button.getButton {
                        color: #fff;
                        border-radius: 60px;
                        display: block;
                        font-size: 1.6rem;
                        margin: 8px auto 0;
                        padding: 10px 15px;
                        width: 200px;
                        background-color: #009544;
                        border: none;
                        cursor: pointer;
                    }
                }

                div.load {
                    display: none;
                    overflow: hidden;
                    transition: 0.3s ease;
                    justify-content: center;
                    align-items: center;

                    p {
                        color: #009544;
                        font-size: 2rem;
                        font-weight: bold;
                    }

                    &.active {
                        width: 100%;
                        display: flex;
                        margin: auto;
                    }
                }

                div.result {
                    display: none;
                    opacity: 0;
                    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0s 0.3s;

                    &.active {
                        display: block;
                        opacity: 1;
                        transition: max-height 0.3s ease-in, opacity 0.3s ease-in, visibility 0s;
                    }

                    h3 {
                        color: #009544;
                        font-size: 1.8rem;
                        font-weight: bold;
                    }

                    p.sub {
                        text-align: center;
                        margin-top: 16px;
                        margin-bottom: 24px;
                        font-size: 1.8rem;
                        font-weight: bold;
                        padding: 20px;
                        background-color: #fff;
                        position: relative;

                        &:before {
                            content: '';
                            width: 20px;
                            height: 12px;
                            background-color: #fff;
                            clip-path: polygon(0 0, 100% 0, 50% 100%);
                            position: absolute;
                            bottom: -10px;
                            right: 50%;
                            transform: translateX(-50%);
                        }

                        span.db {
                            display: block;

                            span{
                                font-weight: bold;
                            }
                        }

                        strong {
                            color: #009544;
                            font-size: 2.4rem;
                            font-weight: bold;
                        }
                    }

                    div {
                        margin-top: 16px;

                        p {
                            color: #009544;
                            font-size: 1.5rem;
                            font-weight: bold;
                        }

                        ul {
                            li {
                                padding-left: 16px;
                                line-height: 1.5;
                                position: relative;

                                &::before{
                                    content: '・';
                                    position: absolute;
                                    top: 0;
                                    left: 0;
                                }
                            }
                        }
                    }

                    small {
                        display: block;
                        margin-top: 16px;
                    }

                    button {
                        color: #000;
                        border-radius: 60px;
                        display: block;
                        font-size: 1.6rem;
                        margin: 20px auto 0;
                        padding: 10px 15px;
                        width: 200px;
                        background-color: #d8d8d8;
                        border: none;
                        cursor: pointer;
                    }
                }
            }

            div.summary {
                margin-top: 24px;

                ul {
                    margin-top: 16px;
                    display: flex;
                    justify-content: center;
                    gap: 16px;
                    background-color: #fff3e5;
                    border-radius: 5px;
                    padding: 16px;

                    @media(max-width:780px){
                        padding: 16px 8px;
                        gap: 8px;
                        justify-content: space-between;
                    }

                    li {
                        display: flex;
                        flex-direction: column-reverse;
                        justify-content: center;
                        align-items: center;
                        width: 216px;

                        @media(max-width:780px){
                            width: calc((100% - 16px) / 3);
                        }

                        @media(max-width:400px){
                            width: calc((100% - 4px) / 3);
                        }

                        img {
                            width: 100%;
                            max-width: 200px;
                        }

                        p {
                            text-align: center;
                            letter-spacing: 0;
                            margin-top: 16px;
                            font-weight: bold;
                            padding: 8px;
                            padding-bottom: 4px;
                            border: 2px solid #000;
                            width: fit-content;

                            @media(max-width:780px){
                                padding: 4px;
                                padding-bottom: 2px;

                                &.cal60 {
                                    padding: 4px 9px 2px;
                                }
                            }

                            @media(max-width:400px){
                                padding: 4px;
                                padding-bottom: 2px;
                            }

                            span {
                                display: inline-block;
                                font-weight: bold;
                            }
                        }
                    }
                }
            }
        }

        div#feed{

            ul.ratioList {
                margin-top: 16px;
                display: flex;
                justify-content: center;
                gap: 16px;
                background-color: #fff3e5;
                border-radius: 5px;
                padding: 16px;

                li {
                    display: flex;
                    flex-direction: column-reverse;
                    justify-content: center;
                    align-items: center;
                    width: 216px;

                    img {
                        width: 100%;
                        max-width: 200px;
                    }

                    p {
                        text-align: center;
                        letter-spacing: 0;
                        margin-top: 16px;
                        font-weight: bold;
                        padding: 8px;
                        padding-bottom: 4px;
                        border: 2px solid #000;
                        width: fit-content;

                        span {
                            display: inline-block;
                            font-weight: bold;
                        }
                    }
                }
            }
        }

        div#attention {
            div.figure {
                margin-top: 16px;
                padding: 16px;
                background-color: #fff3e5;

                @media(max-width:780px){
                    margin-top: 16px;
                    padding: 16px;
                    background-color: #fff3e5;
                }

                ul {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 8px;

                    li.image {

                        img {
                            width: 100%;
                            max-width: 160px;
                        }
                    }

                    li.arrow {

                        p {
                            text-indent: -9999px;
                            overflow: hidden;
                            white-space: nowrap;

                            background-color: #3ca21b;
                            clip-path: polygon(0 0, 100% 50%, 0 100%);
                            width: 16px;
                            height: 32px;

                            @media(max-width:400px){
                                width: 10px;
                                height: 20px;
                            }
                        }
                    }
                }
            }

            div.summary {
                margin-top: 24px;
            }
        }

        div#company{
            div.summary{
                p.marginTop{
                    margin-top: 16px;
                }

                strong{
                    font-weight: bold;
                    background: linear-gradient(0deg, transparent 15%, #ffa900 10%, #ffa900 35%, transparent 24%);
                }

                em{
                    color: #56321c;
                    font-style: normal;
                    font-weight: bold;
                }
            }

            dl.companyInfo{
                margin-top: 24px;

                div{
                    display: flex;
                    align-items: center;
                    width: 100%;
                    border-bottom: 1px solid #fff;
                    background-color: #009544;

                    @media(max-width:780px){
                        display: block;
                    }

                    dt{
                        width: 160px;
                        height: 100%;
                        padding: 12px 16px;
                        color: #fff;
                        font-weight: bold;

                        @media(max-width:780px){
                            padding: 12px;
                        }
                    }

                    dd{
                        width: calc(100% - 150px);
                        padding: 12px 16px;
                        line-height: 1.5;
                        background-color: #daefe4;

                        @media(max-width:780px){
                            width: 100%;
                            padding: 12px;
                            box-sizing: border-box;
                        }

                        span{
                            display: inline-block;
                        }
                    }
                }
            }
        }

        div#question {

            dl {
                div {

                    dt.accordion {
                        padding: 12px 15px;
                        padding-right: calc(15px + 1em);
                        min-height: 28px;
                        display: flex;
                        align-items: center;
                        position: relative;
                        border-bottom: 1px solid #f0eeef;

                        &:before {
                            box-sizing: border-box;
                            border-bottom: 2px solid transparent;
                            border-left: 2px solid transparent;
                            border-right: 3px solid #009544;
                            border-top: 3px solid #009544;
                            content: "";
                            height: 12px;
                            margin-top: -9px;
                            position: absolute;
                            right: 14px;
                            top: 50%;
                            -webkit-transform: rotate(135deg) scale(0.7);
                            transform: rotate(135deg) scale(0.7);
                            width: 12px;
                        }

                        &:hover {
                            color: #fff;
                            background-color: #009544;

                            &:before {
                                border-right-color: #fff;
                                border-top-color: #fff;
                            }
                        }

                        &.open {
                            color: #fff;
                            background-color: #009544;

                            &:before {
                                margin-top: -4px;
                                transform: rotate(-45deg) scale(0.7);
                                border-right-color: #fff;
                                border-top-color: #fff;
                            }
                        }
                    }

                    dd {
                        height: 0px;
                        overflow: hidden;
                        transition: 0.3s;
                        padding: 0 10px;
                        background-color: #fdfaeb;

                        &.active {
                            padding: 10px;
                        }
                    }
                }
            }
        }
    }
}

footer{
    padding: 40px 12px;
    width: 100%;
    background-color: #FBF7EA;
    box-sizing: border-box;

    ul{
        padding: 0 12px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;

        li{
            &:nth-child(2){
                
                &::before{
                    content: ' / ';
                }
            }

            a{

            }
        }
    }

    p{
        padding: 0 12px;
        padding-top: 40px;
        text-align: center;

        small{

        }
    }
}