/* font-family: "DM Serif Display", serif; */
/* font-family: "Zen Kaku Gothic New", serif; */
/* font-family: "Baskervville", serif; */

/* ***************************
共通
*************************** */
html{
    scroll-behavior: smooth;
}

body{
    font-family: "Zen Kaku Gothic New", serif;
    letter-spacing: 0.1em; /* 文字の間隔を10%に設定 */
    font-size: clamp(0.875rem, 0.833rem + 0.21vw, 1rem);
}

.flex {
    display: flex;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

img {
    display: block;
    max-width: 100%;
}

.green-text{
    color: #3a9373;
    font-weight: 700;
    padding: 0 0.25em;
}

.dark-bg{
    background-color: #3f3f3f;
    color: #ffffff;
    margin-top: 64px;
    padding-bottom: 64px;
}

.title{
    font-family: "DM Serif Display", serif;
    font-size: clamp(1.563rem, 1.25rem + 1.56vw, 2.5rem);
    border-bottom: 0.75px solid #333333;
    width: fit-content;
    margin-bottom: 64px;
    padding-left: max(15%, 64px);
}

.dark-bg .title{
    border-color: #ffffff;
}

.title::first-letter{
    font-size: 1.5em;
    color: #3a9373;
}

.dark-bg .title::first-letter{
    color: #66cdaa;
}

.sub-title{
    font-family: "Zen Kaku Gothic New", serif;
    font-size: 0.4em;
    margin-left: 2em;
}

.wrapper{
    max-width: 960px;
    margin: 0 auto;
    padding: 0 64px;
    box-sizing: content-box;
}

section{
    padding: 64px 0 0;
}

p{
    line-height: 1.75; /* 行の高さ */
}

/* ***************************
ヘッダー
*************************** */
#hamburger{
    display: none;
}

.mv{
    position: relative;
    padding: 7.5vw;
    display: grid;
    align-items: center;
}

.mv .flex{
    align-items: center;
    justify-content: space-between;
}

.mv-title{
    white-space: nowrap; /* 文字を折り返さない */
    font-size: max(2.81vw, 20px);
    position: relative;
    animation: opening 3.3s ease-out forwards;
}

.mv-title div:nth-of-type(2){
    font-size: max(7.81vw, 64px);
    font-family: "Baskervville", serif;
    margin: 2.5vw 0;
    position: relative;
    left: 3.75vw;
    /* ↓ 文字のグラデーション ↓ */
    display: inline-block;
    background: linear-gradient(
        90deg,
        #86b1ae 0.6982%,
        #135e59 7.3034%,
        #eaedee 50%,
        #c4d8d8 61.919%,
        #83afac 80.8989%,
        #2e504f 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.1em;
    /* ↑ 文字のグラデーション ↑ */
}

.mv-title div:nth-of-type(3){
    text-align: right;
    position: relative;
    right: calc(-3.75vw * 2);
}

.mv-circle {
    width: 25.86vw;
    opacity: 0;
    position: relative;
    top: 2.5vw;
    animation: rotate 60s linear infinite, display 3s 3s forwards;
}

.scroll-down {
    rotate: 90deg;
    transform-origin: bottom left;
    position: relative;
    font-size: max(1.17vw, 0.625rem);
    width: fit-content;
    animation: up-down 2.5s ease-in-out infinite, display 3s 3s forwards;
    opacity: 0;
}

.scroll-down::after{
    content: "";
    display: block;
    width: 3.333em;
    height: 1px;
    background-color: #333333;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(100%, -50%);
}

/* ***************************
mvアニメーション
*************************** */
@keyframes opening{
    0%{
        left: calc(50% - (2.81vw * 5 - (-3.75vw * 2)));
    }

    75%{
        left: calc(50% - (2.81vw * 5 - (-3.75vw * 2)));
    }

    100%{
        left: 0;
    }
}

@keyframes rotate {
    0% {
        rotate: 0;
    }

    100% {
        rotate: 360deg;
    }
}

@keyframes display{
    0%{
        opacity: 0;
    }

    100%{
        opacity: 1;
    }
}

@keyframes up-down {
    0%{
        top: 0;
    }

    50%{
        top: 32px;
    }

    100%{
        top: 0;
    }
}

/* ***************************
グロナビ
*************************** */
nav{
    width: fit-content;
    margin: 0 0 0 auto;
}

nav .flex{
    gap: 2em;
}

/* ***************************
about
*************************** */
.about-catchcopy{
    text-align: center;
    position: relative;
}

.about-catchcopy::before{
    content: "";
    background-image: url(../img/about-bg.svg);
    background-size: cover;
    display: block;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 100/21;
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.about-catchcopy h3{
    font-size: clamp(1.375rem, 1.208rem + 0.83vw, 1.875rem);
    margin-bottom: 32px;
    word-break: keep-all;
    padding: 0 32px;
}

.about-profile{
    gap: 5.21%;
    justify-content: center;
    align-items: center;
    margin-top: 96px;
}

.about-profile-img{
    flex-basis: 31.25%;
    flex-shrink: 0;
}

.about-name{
    font-size: clamp(1.375rem, 1.25rem + 0.63vw, 1.75rem);
    margin-bottom: 16px;
}

.about-name span{
    font-size: 0.643em;
    margin-left: 2em;
    vertical-align: middle; /* 英語部分を上下中央に配置 */
    position: relative;
    top: -0.2em; /* 英語部分のズレを微調整 */
}

.about-name span:before,
.about-name span:after{
    content: "-";
}

/* ***************************
biography
*************************** */
.biography{
    padding-bottom: 128px;
}

.biography .wrapper{
    max-width: 640px;
}

.biography .grid{
    grid-template-columns: auto 1fr;
    gap: 2em 0;
    align-items: start;
}

.biography dd{
    display: flex;
    align-items: flex-start;
    position: relative;
}

.biography dd::before{
    content: "";
    display: inline-block;
    width: 1em;
    min-width: 1em;
    max-width: 1em;
    aspect-ratio: 1;
    background-color: #66cdaa;
    border-radius: 50%;
    margin: 0 1em;
    position: relative;
    top: 0.15em;
}

.biography dd::after{
    content: "";
    display: inline-block;
    width: 2px;
    height: calc(100% + 2em);
    background-color: #66cdaa;
    position: absolute;
    left: calc(1.5em - 1px);
    top: 0.2em;
}

/* ***************************
reason
*************************** */
.reason-why{
    font-size: clamp(1.438rem, 1.167rem + 1.35vw, 2.25rem);
    margin-bottom: 32px;
}

.reason-soulfood{
    margin-top: 96px;
    align-items: center;
    gap: 3.33%;
}

.reason-soulfood h4{
    font-size: clamp(1.25rem, 1.083rem + 0.83vw, 1.75rem);
    margin-bottom: 16px;
}

.reason-soulfood-img{
    flex-basis: 31.25%;
    flex-shrink: 0;
}

/* ***************************
skills
*************************** */
.skills .flex{
    gap: 32px;
}

.skill-box{
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 16px 0;
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
}

.skill-box h3{
    font-size: clamp(1.25rem, 1.083rem + 0.83vw, 1.75rem);
    color: #ffffff;
    background-color: #3a9373;
    padding: 0.25em 1em;
    width: calc(100% - 2em);
}

.skill-box .inner{
    padding: 0 16px;
}

.skill-box p{
    margin: 32px 16px;
    flex: 1;
}

.tool-box.flex{
    gap: 8px;
    flex-wrap: wrap;
}

.tool{
    background-color: #333333;
    color: #ffffff;
    display: inline-block;
    border-radius: 2em;
    padding: 0.3em 0.8em;
    margin-bottom: 1em;
    font-size: 0.75rem;
}

/* ***************************
strength
*************************** */
.strength .flex{
    justify-content: center;
    margin-top: -43px;
    position: relative;
    gap: 1px;
}

.strength .flex::before{
    content: "";
    width: 150px;
    aspect-ratio: 1;
    background-image: url(../img/gear.svg);
    position: absolute;
    top: -8px;
    left: calc(50% - (150px / 2));
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.25));
    animation: rotate 15s linear infinite;
}

.circle{
    background: linear-gradient(
        90deg,
        #e1ebeb 0.6982%,
        #c4d7d5 7.3034%,
        #fafafb 50%,
        #f0f5f5 61.919%,
        #e0ebea 80.8989%,
        #cbd3d3 100%
    );
    border-radius: 50%;
    max-width: 320px;
    width: 50%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 3em;
    color: #135e59;
    margin: 0 auto;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25);
}

.strength .flex .circle{
    margin: 0;
}

.circle h3{
    font-weight: 700;
    font-size: clamp(1.25rem, 1.083rem + 0.83vw, 1.75rem);
}

.circle .sub-title{
    font-weight: 700;
    margin: 0;
    font-size: 0.75rem;
    margin-bottom: 16px;
}

.circle .sub-title::before,
.circle .sub-title::after{
    content: "-";
}

/* ***************************
works
*************************** */
.works .grid{
    gap: 32px;
}

.works article{
    background-color: #ffffff;
    color: #333333;
    padding: 16px 16px 32px;
    border-radius: 8px;
}

.works img{
    width: 100%;
    aspect-ratio: 108/77;
    object-fit: contain;
    filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.3));
}

.works h3{
    margin: 16px 0 0;
    font-size: clamp(1.125rem, 1rem + 0.63vw, 1.5rem);
}

.works p{
    margin-bottom: 16px;
    color: #777777;
    font-size: clamp(0.75rem, 0.708rem + 0.21vw, 0.875rem);

}

.works .detail-btn,
#modal .close-btn{
    background-color: #d0a900;
    color: #ffffff;
    padding: 0.5em 1em 0.5em 2em;
    width: fit-content;
    margin: 32px 0 0 auto;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25);
}

.works .detail-btn::after,
#modal .close-btn::after{
    content: "→";
    margin-left: 1em;
}

.works .details{
    display: none;
}

/* ***************************
postscript
*************************** */
.postscript-border{
    border: 1px solid #000000;
    padding: 32px;
    width: 80%;
    text-align: center;
}

.postscript h3{
    font-size: clamp(1.25rem, 1.083rem + 0.83vw, 1.75rem);
    border-bottom: 1px solid #cccccc;
    padding-bottom: 1em;
    margin: 0 auto 1em;
    width: fit-content;
}

/* ***************************
フッター
*************************** */
footer{
    padding: 16px 0 32px;
}

footer .to-top{
    display: block;
    width: fit-content;
    margin: 0 64px 32px auto;
    font-size: 0.875rem;
}

footer ul{
    justify-content: center;
    gap: 2em;
}

footer .copy{
    text-align: center;
    margin-top: 32px;
}

footer small{
    font-size: 0.75rem;
}

/* ***************************
モーダル
*************************** */
#modal{
    opacity: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    transition: opacity 0.3s ease-in-out, z-index 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 32px 64px;
    width: 100vw;
    height: 100dvh;
}

#modal.active{
    opacity: 1;
    z-index: 97;
}

#modal-inner{
    background-color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 8px;
}

#modal-img{
    width: 100%;
    filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.3));
}

#modal-title{
    margin: 16px 0 0;
    font-size: clamp(1.125rem, 1rem + 0.63vw, 1.5rem);
}

#modal-link{
    margin: 8px 0;
    display: inline-block;
    text-decoration: underline;
    color: #3a9373;
}

#modal-category{
    margin-bottom: 16px;
    color: #777777;
    font-size: clamp(0.75rem, 0.708rem + 0.21vw, 0.875rem);
}

#modal-inner h3{
    font-size: clamp(1rem, 0.917rem + 0.42vw, 1.25rem);
    margin-top: 32px;
    margin-bottom: 8px;
    font-weight: 700;
    padding-bottom: 2px;
    border-bottom: 1px solid #3a9373;
}

#modal-close.close-btn{
    background-color: #999999;
}

@media(max-width: 640px){
    .flex{
        flex-direction: column;
    }

    .grid{
        grid-template-columns: 1fr;
    }

    .wrapper,
    .biography .wrapper{
        padding: 0 16px;
        max-width: 400px;
    }
    
    .title{
        padding-left: 32px;
        margin-bottom: 32px;
    }

    /* ***************************
    グロナビ
    *************************** */
    nav{
        overflow: hidden;
    }

    nav .wrapper{
        position: fixed;
        right: -100vw;
        top: -100vh;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        width: 100vw;
        height: 100dvh;
        background-color: #ffffff;
        max-width: none;
        padding: 0;
    }

    nav .flex{
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    #hamburger:checked ~ nav .wrapper{
        right: 0;
        top: 0;
        z-index: 98;
        opacity: 1;
    }

    #hamburger-btn{
        z-index: 99;
        position: fixed;
        top: 16px;
        right: 16px;
        width: 32px;
        aspect-ratio: 1;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        flex-direction: column;
        gap: 8px;
    }

    #hamburger-btn span{
        display: block;
        height: 2px;
        background-color: #3a9373;
        border-radius: 1px;
        transition: transform 0.3s ease-in-out;
    }

    #hamburger-btn span:nth-of-type(1){
        width: 75%;
    }

    #hamburger-btn span:nth-of-type(2){
        width: 50%;
    }

    #hamburger:checked ~ #hamburger-btn span{
        background-color: #999999;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 75%;
    }

    #hamburger:checked ~ #hamburger-btn span:nth-of-type(1){
        transform: translate(-50%, -50%) rotate(45deg);
    }

    #hamburger:checked ~ #hamburger-btn span:nth-of-type(2){
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    
    /* ***************************
    ヘッダー
    *************************** */
    .mv{
        padding: 8dvh 16px;
    }

    .mv .flex{
        gap: 32px;
    }

    .mv-title{
        animation: opening 3.3s ease-out forwards;
        font-size: max(2.81vw, 16px);
    }

    @keyframes opening{
        0%{
            top: 15dvh;
        }
    
        75%{
            top: 15dvh;
        }
    
        100%{
            top: 0;
        }
    }

    .mv-title div:nth-of-type(2){
        font-size: max(16.81vw, 48px);
        margin: 32px 0;
        left: 0;
    }

    .mv-title div:nth-of-type(3){
        right: 0;
    }

    .mv-circle{
        width: 50%;
        max-width: 170px;
    }
    
    /* ***************************
    about
    *************************** */
    .about-catchcopy p{
        padding: 0 16px;
        word-break: keep-all;
    }

    .about-profile{
        margin-top: 64px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        gap: 16px;
        flex-direction: column-reverse;
    }

    .about-catchcopy::before{
        top: 10%;
    }

    /* ***************************
    reason
    *************************** */
    .reason-why{
        word-break: keep-all;
    }

    .reason-soulfood{
        margin-top: 32px;
    }

    /* ***************************
    skills
    *************************** */
    .skill-box p{
        margin: 16px;
    }

    .tool-box.flex{
        flex-direction: row;
    }

    /* ***************************
    strength
    *************************** */
    .strength .flex{
        margin-top: 0;
        display: block;
    }

    .strength .flex::before{
        display: none;
    }

    .strength .flex .circle{
        margin: 0 auto 16px;
    }

    .circle{
        width: 100%;
        margin-bottom: 16px;
        max-width: 240px;
    }

    /* ***************************
    postscript
    *************************** */
    .postscript-border{
        padding: 32px 16px;
    }

    .postscript p{
        word-break: keep-all;
    }
    
    /* ***************************
    フッター
    *************************** */
    footer .to-top {
        display: block;
        width: fit-content;
        margin: 0 16px 32px auto;
        font-size: 0.875rem;
    }

    footer .flex{
        padding: 0 16px;
        align-items: center;
    }

    footer.dark-bg{
        padding-bottom: 16px;
    }

    footer .copy{
        margin-top: 64px;
    }
    
    /* ***************************
    モーダル
    *************************** */
    #modal,
    #modal-inner{
        padding: 24px;
    }
}