/* resetCSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
* {
    box-sizing: border-box;
}
/* -----ここから下に記述してください----- */

html{
    font-size: 20px;
}
body{
    font-family: europa,"Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
}

/* header --------------------------------------- */
.header{
    position: fixed;
    width: 100vw;
    left: 0;
    top: 0;
    z-index: 100;
    background-color: rgba(000, 000, 000, .5);
}
.header-bg{
    padding: 30px;
}
.header-logo a{
    font-family: cursive;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}
.header-cat{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* hamburger menu */
.header-cat input,
.header-cat label{
    display: none;
}

/* nav ホバーで下線つき */
.header-nav-list{
    display: flex;
}
.header-nav-item a{
    text-decoration: none;
    padding-left: 20px;
    padding-right: 20px;
    color: #fff;
    font-size: 1rem;
}

.header-nav-item span{
    position: relative;
}
.header-nav-item span:after{
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #fff;
    opacity: 0;
    transition: all .8s cubic-bezier(.19,1,.22,1);
    transition-timing-function: cubic-bezier(.19,1,.22,1);
}
.header-nav-item:hover span:after{
    opacity: 1;
    left: 0;
    width: 100%;
}


/* keyvisual --------------------------------------- */
.keyvisual{
    position: relative;
    background-image: url(../../assets/images/kv.jpg);
    background-position: center right;
    background-repeat: no-repeat;
    width: 100%;
    height: 80vh;
    min-height: 660px;
}
.main-title{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: fantasy;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 10px 10px 5px #000;

}

/* main --------------------------------------- */
.inner{
    max-width: 1080px;
    margin: 0 auto;
    padding: 120px 0 0;
}
.main-contents-cat{
    margin-bottom: 120px;
}
.main-contents-title{
    font-family: fantasy;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}
.main-contents-title:after{
    position: absolute;
    content: "";
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    border-bottom: 2px solid;
}
.main-contents-subtitle{
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
}
.main-contents-subtitle::before,
.main-contents-subtitle::after{
    display: inline-block;
    content: "";
    vertical-align: 5px; /* baselineから5px上に表示 */
    width: 32px;
    height: 2px;
    background-color: #000;
}
.main-contents-subtitle::before{
    margin-right: 8px;
}
.main-contents-subtitle::after{
    margin-left: 8px;
}

/* concept ------------------------------------ */
.concept-cat{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.concept-img{
    width: calc(50% - 40px);
}
.concept-img img{
    width: 100%;
}
.concept-text-cat{
    width: calc(50% - 40px);
    height: 630px;
    overflow-y: auto;
}
.concept-text p{
    margin-bottom: 16px;
}

/* application ---------------------------------- */
.application.main-contents-cat{
    margin-bottom: 220px;
}
.application-cat{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end; /* 行の下揃え */
}
.application-img{
    width: 60%;
}
.application-bgimg{
    background-image: url(../images/main_02.jpg);
    width: 100%;
    height: 580px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow-x: hidden;
}
.application-text-cat{
    width: 40%;
}
.application-text-inner{
    padding-left: 60px;
    position: relative;
}
.application-text-inner::before{
    position: absolute;
    content: "";
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    background-color: #f4f4f4;
    right: 0;
    bottom: -100px;
    z-index: -1;
}
.application-text-cat .main-contents-subtitle{
    text-align: left;
}
.application-text p{
    line-height: 2;
}
.application-text p:first-letter{
    font-weight: 700;
    font-size: 1.2rem;
}

/* gallery ---------------------------------- */
.gallery-cat{
    background-image: url(../images/main_03.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 400px;
}
.gallery-mask{
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
}
.gallery-container{
    padding: 70px 0;
    width: 70%;
    margin: auto;
}
.gallery-text p{
    line-height: 2;
    font-weight: 700;
    word-break: break-all;
}

/* card --------------------------------------- */
.card-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.card-item{
    width: calc((100% / 3) - 16px);
    padding-right: 16px;
    margin-bottom: 60px;
}
.card-item:nth-child(3n){
    padding-right: 0;
}
.card-item:nth-child(n+4){
    margin-bottom: 0;
}
.card-item-title{
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.card-item-img{
    border: 2px solid;
    margin-bottom: 16px;
}
.card-item-img img{
    width: 100%;
    height: 600px;
    padding: 4px;
    object-fit: cover;
    display: block;
}

/* contact ----------------------------------- */
.contact > .inner{
    padding: 0;
}
.contact-item{
    margin-bottom: 40px;
}
.contact-item dt{
    margin-bottom: 8px;
}
.contact-item-label:after{
    content: "*";
    color: #ff0000;
}
.contact-item input,
.contact-item textarea{
    width: 100%;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.4;
    color: #555;
    background-color: #fff;
    padding: 12px;
}
.contact-item input::placeholder,
.contact-item textarea::placeholder{
    font-weight: 400;
}
.contact-btn{
    cursor: pointer;
    color: #555;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
    font-weight: 700;
    font-size: 18px;
    width: 300px;
    height: 60px;
    padding: 15px 40px;
    display: block;
    margin: 60px auto 0;
    transition: all 0.25s ease-in-out;
}
.contact-btn:hover{
    color: #fff;
    background-color: #555;
}

.contact .info{
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
}
.contact .info a{
    text-decoration: underline;
    cursor: pointer;
}
.contact .info a:hover{
    color: #108de8;
}

/* FAQ ------------------------------------ */
.faq-cat{
    margin: 0 auto;
    padding: 60px 90px;
    background-color: rgba(194,194,208,.1);
}
.faq-checkbox{
    display: none;
}
.faq-label{
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
    background-color: #fff;
    font-size: 16px;
    padding: 24px;
    box-shadow: 0 10px 55px rgba(0,0,0,.05);
    position: relative;
}
.faq-label::after{
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    background: url(../images/faq_off.svg) no-repeat 50%;
    background-size: contain;
    width: 25px;
    height: 25px;
}
.faq-checkbox:checked + .faq-label::after{
    background: url(../images/faq_on.svg) no-repeat 50%;
}
.faq-accordion{
    max-height: 0;
    overflow-y: hidden;
    transition: all 0.5s;
}
.faq-checkbox:checked + .faq-label + .faq-accordion{
    max-height: 120px;
    visibility: visible;
}
.faq-answer{
    background-color: rgba(37,117,252,.8);
    padding: 40px 24px;
    padding-left: 3rem;
    color: #fff;
    font-size: 16px;
    text-indent: -1rem;
}

.faq-modal-checkbox{
    display: none;
}
[data-modal="trigger"]{
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    margin-top: 24px;
    color: #108de8;
}
[data-modal="trigger"]::after{
    content: "75portfolioとは";
}
.faq-modal-checkbox:checked ~ [data-modal="trigger"]::after{
    content: "モーダルを閉じる";
}
.faq-modal-checkbox:checked ~[data-modal="trigger"]{
    z-index: 1;
    position: fixed;
    bottom: 130px;
}
.faq-modal{
    display: none;
}
.faq-modal-checkbox:checked ~ .faq-modal{
    display: block;
}
.faq-modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.faq-modal-bg{
    width: 100%;
    height: 100%;
    background-color: rgba(30,30,30,0.9);
}
.faq-modal-content{
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 70%;
    height: 400px;
    padding: 20px 30px;
    background-color: #fff;
}
.faq-modal-content h2{
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 16px 0 32px;
}

/* footer -------------------------------- */
.footer p{
    font-size: .8rem;
    text-align: center;
    padding: 16px;
}


/* === レスポンシブ ========================= */
@media screen and (max-width: 768px) {

    html{
        font-size: 16px;
    }

/* header --------------------------------------- */
    .header-bg{
        padding: 10px;
    }
    .header-logo a{
        font-size: 1.2rem;
    }

/* hamburger menu */
    .header-cat input,
    .header-cat label{
        display: block;
    }
    .header-cat input{
        display: none;
    }
    .header-cat label{
        position: absolute;
        right: 10px;
        clear: both;
    }
    span.hamburger-icon{
        display: inline-block;
        width: 35px;
        height: 25px;
    }
    span.hamburger-icon i{
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #fff;
        display: block;
        transition: all .3s ease-in-out;
    }
    span.hamburger-icon i:nth-child(1){
        top: 0;
    }
    span.hamburger-icon i:nth-child(2){
        margin: auto;
        top: 0;
        bottom: 0;
    }
    span.hamburger-icon i:nth-child(3){
        bottom: 0;
    }
    .header-cat input:checked + label span.hamburger-icon i:nth-child(1){
        transform: rotate(45deg);
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        margin: auto;
    }
    .header-cat input:checked + label span.hamburger-icon i:nth-child(2){
        transform: rotateX(90deg);
        top: 0;
        bottom: 0;
        margin: auto;
    }
    .header-cat input:checked + label span.hamburger-icon i:nth-child(3){
        transform: rotate(-45deg);
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        margin: auto;
    }

    .header-cat input:checked ~ .header-nav{
        z-index: 99;
        opacity: 1;
        transform: translateX(0);
    }
    .header-nav{
        position: fixed;
        opacity: 0;
        background-color: rgba(255, 255, 255, 0.7);
        top: 50px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: -1;
        transform: translateX(100%);
        transition: all 1s ease-out;
    }
    .header-nav-list{
        width: 100%;
        background-color: #fff;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        transition-duration: 1s;
        transition-property: right;
        overflow-y: scroll;
        display: block;
        justify-content: inherit;
    }
    .header-nav-item{
        border-bottom: 1px solid #000;
    }
    .header-nav-item a{
        color: #000;
        font-size: 24px;
        font-weight: 700;
        display: block;
        padding: 20px 50px;
        line-height: 1;
        transition: background-color .3s ease-in-out;
    }



    /* keyvisual --------------------------------------- */
    .main-title{
        font-size: 2.6rem;
        width: 100%;
        text-align: center;
    }

    /* main --------------------------------------- */
    .inner{
        padding: 60px 24px 0;
    }
    .main-contents-cat{
        margin-bottom: 80px;
    }

    /* concept ------------------------------------ */
    .concept-cat{
        display: block;
    }
    .concept-img{
        width: 100%;
        margin-bottom: 30px;
    }
    .concept-text-cat{
        width: 100%;
        height: 400px;
    }

    /* application ---------------------------------- */
    .application.main-contents-cat{
        margin-bottom: 80px;
    }
    .application-cat{
        display: block;
    }
    .application-img{
        width: 100%;
    }
    .application-bgimg{
        height: 500px;
    }
    .application-text-cat{
        width: 100%;
    }
    .application-text-inner{
        padding: 30px 24px;
        background-color: #f4f4f4;
    }
    .application-text-inner .main-contents-subtitle{
        text-align: center;
    }

    .application-text-inner::before{
        content: none;
    }

    /* gallery ---------------------------------- */
    .gallery-container{
        padding: 30px;
        width: auto;
        height: calc(100% - 60px);    
    }

    /* card --------------------------------------- */
    .card-list{
        display: block;
    }
    .card-item{
        width: 100%;
        padding-right: 0;
        margin-bottom: 60px;
    }
    .card-item:nth-child(n+4){
        margin-bottom: 60px;
    }
    .card-item-title{
        font-size: 1.3rem;
    }
    .card-item-img img{
        height: 500px;
    }

    /* contact ----------------------------------- */
    .contact > .inner{
        padding: 0 24px;
    }


    /* FAQ ------------------------------------ */
    .faq-cat{
        margin: 0 auto;
        padding: 60px 24px;
    }
    .faq-label{
        padding: 24px 36px 24px 24px;
    }
    .faq-label::after{
        right: 12px;
        width: 18px;
        height: 18px;
    }
    .faq-checkbox:checked + .faq-label + .faq-accordion{
        max-height: 240px;
    }

    .faq-modal-checkbox:checked ~[data-modal="trigger"]{
        bottom: 72px;
    }
    .faq-modal-content{
        overflow-y: auto;
    }

/* footer -------------------------------- */
.footer p{
    font-size: .8rem;
    text-align: center;
    padding: 16px;
}

    
}