@charset "UTF-8";

html {
  scroll-behavior: smooth;
}

body{
    font-family: "Noto Sans JP", sans-serif;
    background-color: #fff;
    color: #111;
    line-height: 1.7;
}

a{
    text-decoration: none;
}

/* 中央寄せ用コンテナ */
.container{
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
}

/* ヘッダー */
.site-header{
    padding: 16px 0;
    background: linear-gradient(to bottom, #f5faff, #fff);
    /* linear-gradient(線形グラデーション) to bottom(下に向かって色が変わるということ)*/
    border-bottom: 1px solid #e5e5e5;
}

.site-header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
    font-size: 20px;
    font-weight: 700;
    margin: 10px;
}

.logo a{
    color: #000;
}

.nav-toggle{
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    /* 押せるUIにはcursorを書いておく */
    position: fixed;
    top: 20px;
    right: 5%;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-toggle-bar{
    display: block;
    width: 34px;
    height: 2px;
    background-color: #111;
    margin: 5px 0;
    transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1){
    transform: translateY(12px) rotate(225deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2){
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3){
    transform: translateY(-12px) rotate(-225deg);
}

/* SPナビが閉じているときの状態 */
.global-nav{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .2);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 1000;
}

/* 横から出てくるメニューパネル本体 */
.global-nav ul{
    width: 70%;
    max-width: 280px;
    background: #fff;
    padding: 80px 24px 24px;
    box-shadow: -4px 0 16px rgba(0, 0, 0, .06);
    transform: translateX(100%);
    transition: transform .3s ease;
    margin: 0;
    box-sizing: border-box;
    will-change: transform;
}

.global-nav li {
    border-bottom: 1px solid #eee;
}

.global-nav li:last-child{
    border-bottom: none;
}

.global-nav a{
    display: block;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 500;
    color: #111;
    letter-spacing: .5px;
}

/* SPナビが開いているときの状態 */
.global-nav.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.global-nav.is-open ul{
    transform: translateX(0);
}

/* スクリーンリーダー用 */
.sr-only{
    position: absolute;
    /* 要素を通常のレイアウトの流れから外し、他の要素の配置に影響を与えなくする。 */
    width: 1px;
    height: 1px;
    /* 完全に非表示(0px)だとスクリーンリーダーが読まないことがあるため、極小サイズに縮小 */
    margin: -1px;
    /* 要素の位置を画面外方向に1pxずらして消す。視覚的に見えなくする */
    padding: 0;
    /* 余白によってサイズが膨らまないようにする。 */
    overflow: hidden;
    /* 要素内のテキストが枠からはみ出さないように隠す */
    clip: rect(0,0,0,0);
    /* 要素の表示領域を0に切り取る */
    border: 0;
    /* 万が一ブラウザが枠線をつけても見えないようにリセット */
}

/* Hero(SP) */
.hero{
    padding: 80px 24px 80px;
    background: linear-gradient(to bottom, #F3F7FF, #fff);
}

.hero-inner{
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.hero-title{
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
}

.hero-text{
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 80px;
}

.hero-button{
    margin-top: auto;
    align-self: center;
    display: inline-block;
    padding: 14px 32px;
    background-color: #007aff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
}

/* about / owner(SP) */

.about,
.owner{
    padding: 64px 24px;
    background: #FAFAFA;
    margin: 20px 0;
}

.section-title{
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.about-text,
.owner-text{
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}

/* recent(SP) */
.recent{
    background: #fafafa;
    padding: 64px 24px;
    margin: 20px 0;
}

.recent-more-wrap{
    text-align: center;
    padding: 40px 0 80px 0;
}

.recent-more-wrap a{
    background: #007aff;
    padding: 12px 24px;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
}

.recent-works-list{
    display: flex;
    gap: 4px;
}

.recent-works-list img{
    max-width: 100%;
    margin: 20px 0;
    border: #e2e2e2 1px solid;
}

/* blog(SP) */
.blog-inner{
    width: 90%;
    max-width: 720px;
    background-color: #fafafa;
    margin: 24px auto;
    padding: 32px;
}

.blog-box{
    padding: 24px 0;
    border-bottom: 1px solid #e2e2e2;
}

.blog-box:last-child{
    border-bottom: none;
}

.blog-date{
    font-weight: 500;
    color: #777;
}

.blog-text{
    margin-top: 12px;
    font-size: 15px;
}

/* works(SP) */
.works-card{
    padding: 64px 0 30px 0;
    text-align: center;
}

.works-thumb-img{
    max-width: 320px;
    width: 70%;
    border: #777 solid 1px;
    display: block;
    margin: 0 auto;
}

.works-card-btn{
    background-color: #007aff;
    color: #fff;
    padding: 10px 32px;
    margin: 24px auto 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
}

.works-card-btn::after{
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}

/* contact(SP) */
.contact{
    background: #fafafa;
    padding: 64px 24px;
    margin: 20px 0;
}

.contact-inner{
    width: 95%;
    max-width: 720px;
    margin: 0 auto;
    background-color: #fff;
    padding: 32px 24px;
    box-sizing: border-box;
}

.contact-lead{
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 24px;
}

.contact-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field label{
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea{
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    font-size: 16px;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus{
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, .1);
}

.contact-submit{
    background-color: #007aff;
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

.contact-submit:hover{
    opacity: .9;
}

.contact-submit-wrap{
    text-align: center;
}

.contact-note{
    font-size: 12px;
    color: #777;
    margin-top: 8px;
    line-height: 1.6;
    text-align: left;
}

/* Works-banners(SP) */
.banners{
    max-width: 720px;
    width: 90%;
    margin: 0 auto;
}

.banners-inner{
    padding: 0 0 50px;
}

.banners-size1080{
    padding: 50px 0;
}

.parent-box{
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.child-box{
    flex: 0 1 320px;
}

.child-box img{
    display: block;
    width: 100%;
    border: #999 solid 1px;
}

/* フッター */
.footer{
    background: #f8f8f8;
    padding: 40px 20px;
    text-align: center;
    color: #777;
}

.footer-nav ul{
    list-style: none;
    padding: 0;
    margin: 30px;
}

.footer-nav li{
    margin-bottom: 15px;
}

.footer-nav a{
    color: #777;
    text-decoration: none;
    font-size: 16px;
}

.footer-copy{
    font-size: 14px;
}

@media (min-width: 768px){

    /* PCではヘッダーごと追従 */
    .site-header{
        position: sticky;
        top: 0;
        padding: 8px 0;
        z-index: 1000;
    }

    /* ハンバーガーメニュー非表示 */
    .nav-toggle{
        display: none;
    }

    /* グローバルナビゲーションを「普通の表示に戻す」 */
    .global-nav{
        position: static;
        background: none;
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* 横並びにする */
    .global-nav ul{
        width: auto;
        max-width: none;
        padding: 0;
        margin: 0;
        box-shadow: none;
        transform: none;
        display: flex;
        gap: 62px;
        align-items: center;
        background: transparent;
    }

    .global-nav li,
    .global-nav li:last-child{
        border: none;
    }

    .global-nav a{
        position: relative;
        display: inline-block;
        padding: 0 8px;
        font-size: 16px;
        font-weight: 500;
    }

    .global-nav a span{
        display: inline-block;
        transition: transform .2s ease;
    }

    .global-nav a:hover span{
        transform: translateY(-2px);
    }

    .global-nav a::after{
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 0%;
        height: 2px;
        background-color: #e3ebff;
        transition: width .25s ease;
    }

    .global-nav a:hover::after{
        width: 100%;
    }

    /* Hero(PC) */
    .hero{
        padding: 120px 40px 80px;
    }

    .hero-inner{
        max-width: 960px;
        margin: 0 auto;
    }

    .hero-title{
        font-size: 40px;
        margin-bottom: 24px;
    }

    .hero-text{
        font-size: 16px;
    }

    .hero-button{
        font-size: 15px;
        padding: 16px 40px;
    }

    /* about / owner(PC) */
    .about-inner,
    .owner-inner{
        max-width: 960px;
        margin: 0 auto;
    }

    .section-title{
        font-size: 28px;
    }

    .about-text,
    .owner-text{
        font-size: 16px;
    }

    /* recent(SP) */
    .recent-inner{
        max-width: 960px;
        margin: 0 auto;
    }

    .recent-works-list{
        gap: 30px;
    }

    .recent-more-wrap{
        text-align: left;
    }
    
    /* contact(SP) */
    .contact{
        padding: 80px 40px;
    }

    .contact-inner{
        padding: 40px 48px;
    }

    .contact-lead{
        font-size: 15px;
    }

    .contact-note{
        text-align: center;
    }

    /* フッター */
    .footer-nav ul{
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-nav li{
        margin-bottom: 0;
    }
}