@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Marck+Script&display=swap'); */

/*全体の設定*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-style: normal;

}

html {
    background-color: #fff;
    scroll-padding-top: 70px;
    scroll-behavior: smooth;
    /* ブラウザ可変に対応できるらしく、一応入れてる 
    fz67.5%*/
}


header {
    position: fixed;
    top: 0;
    left: 0;
    /* top,leftだけでなくright値もないと横幅取得できないため */
    right: 0;
    background-color: rgba(255, 255, 255, .98);
    z-index: 200;
}


a {
    text-decoration: none;
}

/* リンクホバー時の下線実装 */
.uLine {
    text-decoration: none;
    color: #2C3333;
}

.uLine-text {
    position: relative;
    /* font-size: 2rem; */
    font-family: "Red Hat Display", sans-serif;
    ;
}

.uLine-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0%;
    height: 1px;
    background: #2C3333;
    transition: all 0.5s;

}

/* .uLine:hover  */
.uLine-text:hover::after {
    width: 100%;

}

/* リンクホバー時の実装ここまで */

/* 横幅調整のためのクラス */
.wrapper {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 140px;
    /* section h2 の水平方向中央揃え（inline-blockのため） */
    text-align: center;

}

#about {
    padding-top: 2rem;
    padding-bottom: 4rem;
    background-color: #eee;
    max-width: none;

}

#about.wrapper {
    padding-left: 5%;
    padding-right: 5%;
    margin-bottom: 0;

}

#about .content {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    text-align: center;
}

.sp-br {
    display: none;
}

/* ヘッダー部分の横並び 2段階（header.wrapperとul） */
header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    margin-bottom: 0;
}

.nav-list {
    display: flex;
    list-style: none;
}

h1 a {
    /* background-color: #2C3333; 1105変更*/
    font-family: 'Dancing Script', cursive;
    font-weight: 500;
    color: #2C3333;
    letter-spacing: 0.05em;
    line-height: 1.6;
    font-size: 1.6rem;
    /* 微調整 */
    /* margin: 1rem; */
    /* padding-right: 10px;
    padding-left: 10px; */
    padding: 0 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* スクロール後に表示 */
h1 a.is-visible {
    opacity: 1;
}

header li {
    margin-left: 30px;
}

header li a {
    color: #2C3333;
    font-weight: bold;
}

main {
    margin-top: 66px;
    color: #2C3333;
}

#mainvisual {
    margin-bottom: 80px;
    overflow: hidden;
    position: relative;
}

.mv_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 0.5s forwards;
}

.mv_title {
    font-family: 'Dancing Script', cursive;
    /* font-family: "Red Hat Display", sans-serif; */
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.6;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    animation: fadeIn 2s ease-out 1.5s forwards;
    opacity: 0;
}

.scroll-indicator__text {
    font-size: 0.75rem;
    color: #fff;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
}

.scroll-indicator__line {
    display: block;
    width: 1px;
    height: 40px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.scroll-indicator__line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollLineAnimation 2s ease-in-out infinite;
}

@keyframes scrollLineAnimation {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* レスポンシブ対応 */
@media screen and (max-width:599px) {
    .mv_title {
        font-size: 2.5rem;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-indicator__line {
        height: 30px;
    }
}

@media screen and (max-width:885px) {
    .mv_title {
        font-size: 3rem;
    }
}


#mainvisual img {
    /* 微調整 画像下に余白が生じるため */
    display: block;
    /* max-widthでは枠が横幅いっぱいに広がらない */
    width: 100%;
    /* 微調整 */
    /* height: 500px; */
    height: 600px;
    object-fit: cover;
    /* animation: zoomUp;
    animation-duration: 10s;
    animation-fill-mode: forwards; */
}

@keyframes zoomUp {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.12);
    }
}



/* mainvisual矢印 */

.scroll_arrow {
    position: absolute;
    bottom: 17%;
    left: 5%;
    width: 3em;
    height: 1em;
    cursor: pointer;
    text-decoration: none;
    color: #f5f5f5;
    z-index: 100;

    span {
        font-size: 12px;
        color: #F5F5F5;
        text-align: center;
    }
}

.arrow {
    position: absolute;
    top: 1.25em;
    left: 1em;
    animation: 2s arrow-animation infinite ease-in-out;
    width: 0;
    height: 5em;
    border: .5px solid #F5F5F5;
    z-index: 100;

    &::after {
        content: '';
        display: block;
        position: absolute;
        top: 100%;
        left: -2px;
        width: 1px;
        height: 10px;
        border-top: 10px solid #F5F5F5;
        border-left: 2px solid transparent;
        border-right: 2px solid transparent;
    }
}

@keyframes arrow-animation {
    0% {
        height: 1em;
    }

    66% {
        height: 5em;
    }
}


/* mainvisual矢印ここまで */

/* scrollボタン */

.scroll-button {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: solid 1px #6f8fa0;
    color: #6f8fa0;
    background: #fff;
    transition: .3s;
    cursor: pointer;
    /* 非表示にする */
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.scroll-button::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-left: 2px solid #6f8fa0;
    border-top: 2px solid #6f8fa0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -25%) rotate(45deg);
}

.scroll-button:hover {
    background: #ddd;
}


.is-active {
    /* 表示する */
    opacity: 1;
    visibility: visible;
}


h2 {
    /* font-family: "Red Hat Display", sans-serif; */
    font-family: 'Dancing Script', cursive;
    font-weight: 500;
    margin: 0 auto;
    font-size: 2rem;
    display: inline-block;
    margin-bottom: 60px;
    letter-spacing: 0.05em;
    line-height: 1;
}

.sub-title {
    font-size: 1rem;
    color: #999;

}

/* .heading {
    position: relative;
    padding-bottom: 30px;
    font-size: 26px;
    text-align: center;
    background-image: linear-gradient(90deg,
            rgba(0 0 0 / 0) 0%,
            rgba(0 0 0 / 0) 35%,
            #e5c046 35%, #e5c046 65%,
            rgba(0 0 0 / 0) 65%, rgba(0 0 0 / 0) 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: center bottom;
}

.heading::before {
    content: attr(data-en);
    display: block;
    margin-bottom: 10px;
    color: #e5c046;
    font-size: 20px;
    font-style: italic;
    font-family: 'Montserrat', san-serif;
    text-transform: uppercase;
} */

.content {
    display: flex;
    align-items: center;
}

.content img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin-right: 100px;

}

#about .text {
    text-align: left;
}

h3 {
    font-size: 1.1rem;
    margin: 10px 0px 5px 0px;
    /* margin-bottom: 10px; */
}

.works .works-card p {
    font-size: 0.9em;
    color: #6f8fa0;
}


.works img {
    width: 100%;
    height: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.works .works-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 2%;
    /* position: relative; */
}

.works .works-thumb a img:hover {
    opacity: 0.5;
    transform: scale(1.1);
    transition: 0.6s;
}

.works .works-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin-left: 5%;
    margin-right: 5%;
}

.works li {
    width: 100%;
}

/* .works h3 {
    margin: 10px 0;
} */

.works .content-text {
    text-align: center;
}

.content-title-sub {
    padding: 0.01rem 0.8rem;
    border-left: 3px solid #6f8fa0;
    text-align: left;
}


footer {
    text-align: center;
    background-color: #eee;
}

footer.wrapper {
    max-width: none;
    margin-bottom: 0;
    padding: 10px 0;
}

.site-header-navbtn {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    z-index: 1;
}

.site-header-navbtn span,
.site-header-navbtn::before,
.site-header-navbtn::after {
    width: 30px;
    height: 2px;
    background-color: #999;
    position: absolute;
    top: 50%;
    left: 5px;
    transition: transform .4s;
}

.site-header-navbtn::before {
    transform: translateY(-8px);
}

.site-header-navbtn::after {
    transform: translateY(8px);
}

.site-header-navbtn::before,
.site-header-navbtn::after {
    content: "";
}

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);
}

body.is-nav-open .site-header-nav {
    transform: translateY(0)
}


@media screen and (max-width:599px) {

    .works-list li:nth-of-type(3) .works-card,
    .works-list li:nth-of-type(4) .works-card,
    .works-list li:nth-of-type(5) .works-card,
    .works-list li:nth-of-type(6) .works-card {
        transition-delay: 0s;
    }

}


/* Modaal */
.modaal {
    display: none;
}

.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before {
    background: #383e45;
    opacity: 0.8;
    ;
}

/* 以下WORKS MODAAL部分 */

.modaal-container {
    border-radius: 15px;
    padding: 2rem;
}

#works-modaal .content-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

#works-modaal article {
    display: flex;
    justify-content: space-between;
    align-items: start;
    text-align: center;
}

#works-modaal article .works-img,
#works-modaal article .text {
    width: 48%;
}

#works-modaal article .text p {
    margin-top: 2em;
    text-align: left;
    line-height: 1.6em;
}

#works-modaal article img {
    margin-bottom: 1em;
    max-width: 380px;
}

/* #works-modaal article a::after {
    content: "\e89e";
    font-family: "Material Symbols Rounded";
    vertical-align: middle;
} */

#works-modaal article .works-data,
#works-modaal article .content-title {
    text-align: center;
}

#works-modaal article .content-title {
    font-size: 1.5rem;
}

#works-modaal article .content-title {
    margin-bottom: 0.5em;
}

#works-modaal article .works-data::before,
#works-modaal article .works-data::after {
    content: "";
    display: inline-block;
    width: 3rem;
    height: 1px;
    background: #6f8fa0;
    margin: 0 1em;
    vertical-align: middle;
}

#works-modaal article .works-data {
    margin-bottom: 1em;
    color: #6f8fa0;
}

#works-modaal article ul.category {
    margin-bottom: 1.5em;
}

#works-modaal article ul.category li {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
}

/* 
#works-modaal article .data-list {
    margin-bottom: calc(80px / 2);
} */

#works-modaal article .data-list::after {
    /* display: block;
    content: "";
    background-color: #6f8fa0;
    height: 0.1rem;
    width: 10rem; */
    margin: calc(80px / 2) auto 0;
}

#works-modaal article dl {
    /* width: 90%; */
    display: flex;
    /* justify-content: space-between; */
    align-items: start;
    font-size: 1rem;
    text-align: left;
    margin: 0.5em auto;
}

#works-modaal article dl dt {
    width: 24%;
    color: #6f8fa0;
    /* margin-right: 1em; */
}


/* モーダル内ボタンを作りたい */
#works-modaal .website-btn {
    display: inline-block;
    margin: 0 auto;
    color: #383e45;
    font-weight: 700;
    background: #F5F5F5;
    border: 1px solid #2C3333;
    border-radius: 0.5rem;
    padding: 1.5rem 4rem;
    position: relative;
}

/* ↓線を二重にしたい */
/* #works-modaal .website-btn::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-right: 1px solid #383e45;
    border-bottom: 1px solid #383e45;
    border-radius: 0.5rem;
    position: absolute;
    right: -0.5rem;
    bottom: -0.5rem;
} */

#works-modaal .website-btn:hover {
    color: #F5F5F5;
    background: #383e45;
}

/* 以上Works */



@media screen and (max-width:599px) {
    .wrapper {
        margin-bottom: 75px;
    }

    /* header li {
        margin-right: 1rem;
    } */

    header .wrapper {
        margin-right: 1rem;
        margin-left: 1rem;
    }

    #about.wrapper {
        margin-bottom: 0;
    }

    #mainvisual img {
        height: calc(100vh - 60px);
    }

    .sp-br {
        display: block;
    }



    .content {
        flex-direction: column;
    }

    .content .content-text {
        margin-left: 10%;
        margin-right: 10%;
        font-size: 0.8em;
    }

    .content img {
        margin-right: 0;
        margin-bottom: 3rem;
    }

    .wrapper p {
        text-align: justify;

    }

    h2:after {

        bottom: -90px;
    }

    h3 {
        margin: 10px 0px 5px 0px;
    }

    .works .works-card p {
        text-align: center;
        font-size: 0.6em;

    }

    /* .works .works-card .content-title {
        font-size: 1rem;
    } */

    /* モーダルコンテナの幅を制限 */
    .modaal-container {
        padding: 1.4rem;
    }


    #works-modaal article {
        /* flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center; */
        /* 左右の余白を減らす */
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }



    #works-modaal article .works-img {
        max-width: 100%;
        height: auto;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    #works-modaal article .text {
        text-align: justify;
        width: 100%;
        padding: 0;
    }

    /* 詳細度で #about .text(1,1,0) に負けるので .text(0,1,0) だけではセレクタ不足 */
    #about .text {
        text-align: center;
    }

    .content-title-sub {
        margin-left: 10%;
        margin-right: 10%;
    }


    .uLine-text::after {
        background: #F5F5F5;
    }

    span.uLine-text {
        color: #fff;
    }

    .works .works-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        align-items: center;
        margin-left: 5%;
        margin-right: 5%;
    }

    #works-modaal .website-btn {
        margin-bottom: 24px;
    }

    /* 段落のテキスト */
    #works-modaal article .text p {
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 0.9rem;
        margin: 0;
        padding: 0;
    }

    /* .works li {
        /* width: 100%; */
    /* margin-bottom: 2rem; */



    .works.wrapper {
        margin-bottom: 4rem;
    }

    span.uLine-text {
        color: #fff;
    }

    .site-header-nav {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: #383e45;
        opacity: 1;
        transform: translateY(-100%);
        transition: transform .6s;
    }

    .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-bottom: 4em;
    }

    .site-header-nav ul li a {
        font-size: 1.5rem;
    }

    .site-header-navbtn {
        display: block;
    }

    /* works modal sp */

    #works-modaal .tab-panel span,
    #works-modaal .tab-panel a span:hover {
        width: 7rem;
        line-height: 7rem;
    }

    #works-modaal ul.works-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: calc(40px / 2);
        column-gap: 8px;
    }


    #works-modaal article .data-list {
        margin-bottom: calc(24px / 2);
    }

    #works-modaal article .data-list::after {
        margin: calc(24px / 2) auto 0;
    }

    #works-modaal article dl {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 0.9rem;
        /* フォントサイズを小さく */
    }

    #works-modaal article dl dt {
        width: 30%;
        /* min-width: 70px; */
        /* 最小幅を確保 */
    }

    #works-modaal article dl dd {
        width: 70%;
    }

    /* works-modaal全体 */
    #works-modaal article img {
        max-width: 100%;
        width: 100%;
        height: auto;
        margin-bottom: 1em;
        margin-left: auto;
        margin-right: auto;
        display: block;
        box-sizing: border-box;
    }

    #works-modaal article .content-title {
        font-size: 1.2rem;
    }




}

@media screen and (max-width:885px) {

    #about.wrapper {
        margin-bottom: 0;
    }

    .sp-br {
        display: block;
    }

    .sub-title {
        font-size: 0.8rem;
    }

    .mv_title {
        font-size: 36px;
    }

    .mv_description {
        font-size: 13px;
    }

    #mainvisual img {
        height: 400px;
    }

    h3 {
        margin: 10px 0px 5px 0px;
    }

    .works .works-card p {
        text-align: center;
        font-size: 0.8em;

    }

    .content .content-text {
        font-size: 0.9em;
    }

    #works-modaal article {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        /* margin: 16px 8px; */
        /* 左右の余白を最小限に */
        padding: 0;
        max-width: 100%;
        box-sizing: border-box;
    }


    #works-modaal article .works-img {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #works-modaal article .works-img img {
        margin-bottom: 24px;

    }



    #works-modaal article .works-img,
    #works-modaal article .text {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }


    #works-modaal article .text {
        text-align: justify;
    }

    #works-modaal article .works-data::before,
    #works-modaal article .works-data::after {
        width: 2rem;
    }

    #works-modaal article .data-list {
        margin-bottom: calc(24px / 2);
    }

    #works-modaal article .data-list::after {
        margin: calc(24px / 2) auto 0;
    }

    #works-modaal .website-btn {
        padding: 1rem 2rem;
        /* パディングを減らす */
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        box-sizing: border-box;
        margin-bottom: 24px;

    }

    /* モーダルのインナーラッパー */
    .modaal-inner-wrapper {
        box-sizing: border-box;
    }

    .works .works-card .content-title {
        font-size: 0.9em;
    }
}

/* さらに小さい画面用 */
@media screen and (max-width:375px) {
    #works-modaal article dl {
        font-size: 0.85rem;
    }

    #works-modaal .website-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* モーダル内外部リンク */

.link-outer {
    list-style-type: none;
    color: #2C3333;
}

.link-outer:hover {
    color: #6DB69A;
}