@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* 全体設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
    color: #14171a;
}

html {
    font-size: 100%;
    /* スクロール時に要素の上部にパディング（余白）を自動的に追加してくれるプロパティ */
    scroll-padding-top: 60px;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.wrapper {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 150px;
}

header .wrapper {
    margin-bottom: 0;
}

.section-title {
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 60px;
    border-bottom: 1px solid #383e45;
}

.content-title {
    font-size: 1rem;
    margin: 10px 0;
}


/* ヘッダー設定 */

header {
    position: fixed;
    background-color: rgba(255, 255, 255, .5);
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

header h1 a {
    color: #fafafa;
    background-color: #111;
    padding: 0 1rem;
}

header nav ul {
    display: flex;
    padding: 10px 0;
}

header li {
    margin-left: 30px;
}

header li a {
    color: #24292e;
    font-weight: 700;
}

header li a:hover {
    opacity: 0.7;
}

/* メインビジュアル */
main {
    margin-top: 60px;
}

#mainvisual {
    margin-bottom: 80px;
}

#mainvisual img {
    display: block;
    width: 100%;
    height: 600px;
    /* はみ出た部分はトリミング */
    object-fit: cover;
}

/* ABOUT */
#about .content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#about img {
    width: 250px;
    height: 250px;
    /* 丸く切り抜く */
    border-radius: 50%;
    /* 画像の右側に余白を置き、テキストとの距離を保つ */
    margin-right: 100px;
}

#about .text {
    text-align: left;
}

/* PHOTO */

#photo ul {
    display: flex;
    justify-content: space-between;
}

#photo li {
    width: 32%;
}

/* inViewプラグイン実装 */
/* .service-card  */
.photo-card {
    transition: .6s;
    opacity: 0;
    transform: translateY(50px);
}

/* .service-list.in-view .service-card */
.photo-list.in-view .photo-card {
    opacity: 1;
    transform: translateY(0);
}

/* .service-list li:nth-of-type(2) .service-card */
.photo-list li:nth-of-type(2) .photo-card {
    transition-delay: .4s;
}

/* .service-list li:nth-of-type(3) .service-card */
.photo-list li:nth-of-type(3) .photo-card {
    transition-delay: .8s;
}


/* フッター */
footer {
    padding: 10px 0;
    text-align: center;
}

/* PC - hamburgerメニュー実装 navbtn と is-nav-open */

.site-header-navbtn {
    /* メディアクエリ外での記載 - 初期状態では非表示 */
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    z-index: 1;
    /* background-color: #eee; */
}

.site-header-navbtn span,
.site-header-navbtn::before,
.site-header-navbtn::after {
    width: 30px;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 50%;
    left: 5px;
    transition: transform .4s;
}

.site-header-navbtn::before,
.site-header-navbtn::after {
    content: '';
}

.site-header-navbtn::before {
    transform: translateY(-8px);
}

.site-header-navbtn::after {
    transform: translateY(8px);
}

body.is-nav-open .site-header-navbtn span {
    transform: scaleX(0);
}

body.is-nav-open .site-header-navbtn::before {
    transform: translateY(0) rotate(45deg);
}

body.is-nav-open .site-header-navbtn::after {
    transform: translateY(0) rotate(-45deg);
}



/* SP */
@media screen and (max-width:599px) {
    .wrapper {
        margin-bottom: 100px;
    }

    header .wrapper,
    .wrapper p {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    #mainvisual img {
        height: calc(100vh - 60px);
    }

    #about .content {
        flex-direction: column;
    }

    #about img {
        margin-right: 0;
        margin-bottom: 3rem;
    }

    #about .text {
        text-align: center;
    }

    #photo ul {
        flex-direction: column;
    }

    #photo li {
        width: 100%;
        margin-bottom: 2rem;
    }

    /* SP - hamburgerメニュー実装 */
    .site-header-nav {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: #fff;
        transform: translateX(-100%);
        transition: transform .6s;
    }

    body.is-nav-open .site-header-nav {
        transform: translateX(0);
    }

    .site-header-nav ul {
        height: 100%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .site-header-nav ul li {
        margin-left: 0;
    }

    .site-header-nav ul li:not(:last-child) {
        /* margin-left: 0; */
        margin-bottom: 1.5em;
    }

    .site-header-nav ul li a {
        font-size: 1.5rem;
    }

    .site-header-navbtn {
        display: block;
    }
}