@charset "utf";

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;700&display=swap');

html {
    font-size: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    font-family: "Zen Maru Gothic", serif;
}

/* 初期設定 */
img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: #000;
}

/* 枠 */
.wrapper {
    width: 100%;
    max-width: 1100px;
    text-align: center;
    margin: 0 auto;
}

/* ヘッダー */
#header {
    background-image: url(../img/name_nav-pc.png);
    background-repeat: no-repeat;
    background-position: center;
    height: 133px;
    margin-top: 50px;
}

/* グローバルナビ */
#global-menu ul {
    display: flex;
    justify-content: right;
    list-style: none;
    font-size: 1.125rem;
    position: relative;
    padding-top: 42px;

}

#global-menu .nav-about a {
    background-image: url(../img/nav_bg-about.png);
    background-repeat: no-repeat;
    background-position: center;
    padding: 30px;
    position: absolute;
    top: 10px;
    right: 350px;
}

#global-menu .nav-skill a {
    background-image: url(../img/nav_bg-skill.png);
    background-repeat: no-repeat;
    background-position: center;
    padding: 30px;
    position: absolute;
    top: 10px;
    right: 230px;
}

#global-menu .nav-works a {
    background-image: url(../img/nav_bg-works.png);
    background-repeat: no-repeat;
    background-position: center;
    padding: 30px;
    position: absolute;
    top: 10px;
    right: 100px;
}

#global-menu .nav-contact a {
    position: absolute;
    top: 64px;
    right: 18px;
    transform: rotate(-8deg);
}

#global-menu a:hover {
    opacity: 0.8;
}


/* タイトル */
#title {
    margin: 80px auto;
}

/*=== プロフィール ===*/
#profile .name {
    font-size: 1.25rem;
}

#profile p {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* スクロールテキスト */
#movie {
    width: 600px;
    height: 120px;
    margin: 50px auto 0;
    overflow: hidden;
    position: relative;
}

.roll-text {
    position: absolute;
    animation: anim-scroll-up 30s linear forwards;
}

.roll-text p {
    color: #666;
    text-align: left;
}

@keyframes anim-scroll-up {
    from {
        top: auto;
    }

    to {
        bottom: 100%;
    }
}



/* セクションの見出し */
h2 {
    background-image: url(../img/h2-bg.png);
    background-repeat: no-repeat;
    background-position: center;
    font-size: 1.5rem;
    margin-bottom: 100px;
    color: #fff;
}

/* セクション共通 */
section {
    padding: 100px 0;
    border-bottom: solid 2px #fff;
}

/*=== アバウト　セクション ===*/
#about {
    position: relative;
    z-index: 0;
}

#about::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #CCC;
    /* ストライプの背景 */
    background: repeating-linear-gradient(135deg, #CECECE, #CECECE 10px, #D4D4D4 10px, #D4D4D4 20px);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#about.active::before {
    opacity: 1;
    z-index: -1;
}

#about-cont {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: start;
    margin: 50px 0;
    z-index: 2;
}

#about-cont div {
    width: 25%;
}

#about-cont img {
    width: 100px;
}

#about-cont img.zoom {
    transition-duration: 1s;
}

#about-cont img.zoom:hover {
    transform: scale(1.2);
}

.about-cont-title {
    font-weight: bold;
    text-align: center;
    margin: 0 auto 20px;
    width: fit-content;
}

#about-cont p {
    text-align: left;
}

/*=== スキル　セクション ===*/
#skill {
    position: relative;
    z-index: 0;
}

#skill::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #E9D3D3;
    /* ドットの背景 */
    background-image: radial-gradient(#E5CCCC 30%, transparent 33%),
        radial-gradient(#E5CCCC 30%, transparent 33%);
    background-size: 20px 20px;
    background-position: 0 0, 30px 30px;
    background-repeat: repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#skill.active::before {
    opacity: 1;
    z-index: -1;
}

#skill-cont {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    z-index: 2;
}

#skill-cont .skill-item p {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    width: 200px;
}

#skill-cont p {
    text-align: left;
    line-height: 2;

}

#quali {
    border-left: solid 3px #fff;
    padding-left: 30px;
}

/*=== ワークス　セクション ===*/
#works {
    position: relative;
    z-index: 0;
}

#works::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #CCCCD6;
    /* ギンガムの背景 */
    background-image: repeating-linear-gradient(45deg,
            rgba(190, 190, 203, .3),
            rgba(190, 190, 203, .3) 10px,
            transparent 0,
            transparent 20px),
        repeating-linear-gradient(313deg,
            rgba(190, 190, 203, .3),
            rgba(190, 190, 203, .3) 10px,
            transparent 0,
            transparent 20px);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#works.active::before {
    opacity: 1;
    z-index: -1;
}

#works-cont {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    gap: 50px;
    z-index: 2;
}

#works-cont p {
    font-size: 0.75rem;
}

.works-wrap {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
}

.cont-title {
    position: relative;
    top: -40px;
}

.works-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
    align-items: center;
}

.web-2 img,
.dtp-1 img,
.dtp-2 img {
    border: solid 1px #ccc;
}

.web-1 img {
    max-width: 80%;
}

.web-1 div,
.web-2 div {
    margin-bottom: 50px;
}

.dtp-1 img {
    width: 450px;
}

.dtp-1 p {
    margin-bottom: 50px;
}

.dtp-2 img {
    width: 100%;
    max-width: 200px;
}

.dtp-2 p {
    margin-bottom: 50px;
}

.note {
    margin-top: auto;
}

.note img {
    margin-right: 1rem;
}

/*=== モーダル表示 ===*/

body.modal-scroll {
    overflow: hidden;
}

.modal-open {
    cursor: pointer;
}

/* モーダルにだけ表示させる項目 */
.modal-text {
    display: none;
}

.modal-text.show {
    display: block;
}

.modal-text dl {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    margin: 50px auto;
}

.modal-text dt {
    width: 20%;
    border-top: dotted 1px #ccc;
    padding: 5px 0;
}

.modal-text dd {
    width: 80%;
    text-align: left;
    border-top: dotted 1px #ccc;
    padding: 5px 0;
}

/* モーダル本体 */
#modal {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1000;
}

#modal.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

#modal .modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1000;
}

#modal.show .modal-wrapper {
    opacity: 1;
}

#modal .modal-content {
    width: 60%;
    height: fit-content;
    background-color: #fff;
    padding: 50px;
    border-radius: 20px;
    margin: 50px auto;
    overflow-y: scroll;
    /*ふわっと表示*/
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    /*スクロールバーを消す*/
    /* overflow-y: scroll;
    scrollbar-width: none; Firefox用 */
}

/* Chrome, Edge用 */
/* #modal .modal-content::-webkit-scrollbar {
    display: none;
} */

/* ふわっと表示 */
#modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

#modal .modal-open img.web-img {
    max-width: 500px;
}

#modal .modal-open img {
    max-width: 100%;
    max-height: 80vh;
}

/* モーダルを閉じるボタン */
#modal .modal-close {
    font-size: 1.5rem;
    color: #fff;
    background-color: #000;
    width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}


/*=== コンタクト　セクション ===*/
#contact h2 {
    color: #000;
}

#contact dl {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 50%;
    margin: 50px auto;
}

#contact dt {
    width: 30%;
    margin-top: 2rem;
}

#contact dd {
    width: 70%;
    text-align: left;
}

#contact input,
#contact textarea {
    border: solid 1px #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 2rem;
}

#contact textarea {
    width: 100%;
    height: 10rem;
}

#contact input[type="submit"] {
    background-color: #E5CCCC;
    margin-right: 20px;
}

#contact input[type="reset"] {
    background-color: #ededed;
}


/*=== フッター ===*/
footer {
    background-color: #000000;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    font-size: 0.75rem;
}

/* トップへ戻るボタン */
#pagetop {
    display: inline-block;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    text-align: center;
    line-height: 3rem;
    position: fixed;
    right: 10px;
    bottom: 10px;
    transform: rotate(90deg);
}

#pagetop a {
    color: #fff;
}


/*===== レスポンシブ =====*/
@media (max-width:1100px) {

    html,
    body {
        overflow-x: hidden;
    }

    .wrapper {
        width: 100%;
    }

    /* ヘッダー */
    #header {
        background-image: url(../img/name_nav-sp.png);
        background-repeat: no-repeat;
        background-position: center;
        height: 223px;
        margin-top: 0;
    }

    /* グローバルナビ */
    #global-menu ul {
        justify-content: center;
        padding-top: 50px;
    }

    #global-menu .nav-about a {
        position: static;
        margin-left: 0;
    }

    #global-menu .nav-skill a {
        position: static;
        margin-left: 10px;
    }

    #global-menu .nav-works a {
        position: static;
        margin-left: 10px;
    }

    #global-menu .nav-contact a {
        position: static;
        margin-left: 12px;
        margin-right: 20px;
        font-size: 0.75rem;
    }


    /* タイトル */
    #title {
        margin: 100px auto 50px;
    }

    .cont-title {
        top: -60px;
    }

    /* プロフィール */
    #profile {
        width: 80%;
    }

    /* スクロールテキスト */
    #movie {
        width: 80%;
    }

    /* アバウト　セクション */
    #about-cont {
        flex-direction: column;
        gap: 10px;
    }

    #about-cont div {
        width: 80%;
        margin: 0 auto;
    }

    #about-cont .arrow {
        transform: rotate(90deg);
        text-align: center;
        margin: 0 auto;
    }

    /* スキル　セクション */
    #skill-cont {
        flex-direction: column;
        width: 95%;
        margin: 0 auto;
    }

    #skill-cont .skill-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    #skill-cont .skill-item p {
        width: 100%;
        margin-bottom: 0;
    }

    #quali {
        border-left: none;
        border-top: solid 3px #fff;
        margin: 20px 0;
        padding: 10px;
    }



    /* ワークス　セクション */
    #works-cont {
        flex-direction: column;
        width: 95%;
        margin: 50px auto;
    }

    .works-wrap {
        padding: 40px 10px;
    }

    .web-1 {
        margin-bottom: 50px;
    }

    .web-1 img {
        width: 100%;
    }

    .web-1 p,
    .web-2 p {
        margin-bottom: 20px;
    }

    .dtp-1 img {
        width: 90%;
    }

    .note {
        font-size: 0.75rem;
        margin-top: 50px;
    }

    /* コンタクト　セクション */
    #contact dl {
        width: 90%;
        flex-direction: column;
    }

    #contact dt {
        width: 100%;
        text-align: left;
    }

    #contact dd {
        width: 100%;
    }

    #contact input,
    #contact textarea {
        margin-top: 1rem;
    }


    /* モーダル表示 */
    #modal .modal-wrapper {
        max-height: 100%;
        overflow-y: auto;
    }

    #modal .modal-content {
        width: 95%;
        margin: 80px auto;
    }

    .modal-content img {
        width: 100%;
    }

    .modal-text dl {
        width: 100%;
        flex-direction: column;
    }

    .modal-text dt {
        width: 100%;
        text-align: left;
    }

    .modal-text dd {
        width: 100%;
        border-top: none;
    }

    /* トップへ戻るボタン */
    #pagetop {
        font-size: 1.25rem;
        width: 2rem;
        height: 2rem;
        line-height: 2rem;
    }


}