/* ===================================================
  File:        top.css
  Description: トップページのスタイルシート
  Author:      H.Y
  Version:     1.0.0
  Last Update: 2025-10-12 : H.Y
  Log:
    - 2025-10-12: 初版　: H.Y
==================================================== */
@charset "UTF-8";

html, body {
  /* overflow-x: hidden; */
}

/* =============================
header
===============================*/


/* =============================
Article header
===============================*/
.article__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 20px 16px 28px 16px; */
    padding: 20px 4% 28px 4%;
    width: 100%;
    height: 85vh;
    /* 20251026追加 Start */
    min-height: 800px;
    /* 20251026追加 End */
    background-color: var(--primary-white);
}

.mainVisual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: auto;
    /* margin-bottom: 8px; */
    margin: auto 0;
}

.mainVisual__text {
    font-family: "Playfair Display";
}

.mainVisual__text--left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 幅を親要素の幅に広げる */
    align-self: stretch;
    position: relative;
}

.mainVisual__text--left p {
    writing-mode: vertical-rl; /* 右から左へ縦書き */
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.88px;
    transform: rotate(180deg);
}

.mainVisual__text--right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}

.mainVisual__text--right p {
    writing-mode: vertical-lr; /* 縦書き（左→右へ進む） */
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.88px;
}

.mainVisual__icon {
    display: flex;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* gap: 24px; */
    bottom: 12px;
}

.mainVisual__icon a {
    display: block;
}

.mainVisual__icon img {
    width: 15px;
    height: auto;
    margin-top: 80%;
}

.mainVisual__img {
    width: 80%;
    max-width: 350px;
    height: auto;
}

.mainVisual__sp {
    width: 100%;
}

.mainVisual__pc {
    display: none;
}

.scroll__text {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0 5%;
    width: 100%;
    font-family: "Playfair Display";
    font-size: 12px;
}

.scroll {
    position: absolute;
    top: 0;
    right: calc(50% - 13.5px);
    width: auto;
    height: auto;
    writing-mode: vertical-rl;
}


/* 丸の描写 */
.scroll:before {
    content: "";
    /*描画位置*/
    position: absolute;
    bottom:-52px;
    left:50%;
    transform: translateX(-50%);
    /*丸の形状*/
	width:5px;
	height:5px;
	border-radius: 50%;
	background:#0099AC;
    z-index: 100;
    /*丸の動き1.6秒かけて透過し、永遠にループ*/
	animation:
		circlemove 1.6s ease-in-out infinite,
		cirlemovehide 1.6s ease-out infinite;
}

/*下からの距離が変化して丸の全体が上から下に動く*/
@keyframes circlemove{
    0%{
        bottom:-5px;
    }
    100%{
        bottom:-57px;
    }
 }

/*上から下にかけて丸が透過→不透明→透過する*/
@keyframes cirlemovehide{
    0%{
        opacity:0
    }
    50%{
        opacity:1;
    }
    80%{
        opacity:0.9;
    }
    100%{
        opacity:0;
    }
}

/* 線の描写 */
.scroll:after{
	content:"";
    /*描画位置*/
	position: absolute;
	bottom:-55px;
	left: calc(50% - 0.5px);
    z-index: 50;
    /*線の形状*/
	width:1px;
	height: 50px;
	background:#fff;
    mix-blend-mode: difference;
}


/* Article header pc */
@media screen and (min-width:769px){

    .article__header {
        padding: 26px 60px 45px 60px;
        height: auto; 

        /* 20251014追記 */
        height: 85vh;

    }

    .mainVisual {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: auto;

        /* 20251014追記 */
        margin: auto 0;
        /* margin-bottom: 20px; */
        padding-bottom: 20px;
    }

    .mainVisual__text--left p {
        font-size: 1.8rem;
        letter-spacing: 5.52px;
    }

    .mainVisual__icon {
        /* gap: 30px; */
        /* bottom: 20px; */
        bottom: 0;
    }

    .mainVisual__icon img {
        width: 20px;
    }

    .mainVisual__img {
        width: 85%;
        max-width: 1300px;
        height: auto;
    }

    .mainVisual__sp {
        display: none;
    }

    .mainVisual__pc {
        display: flex;
        width: 100%;
        height: auto;
    }

    .mainVisual__text--right p {
        font-size: 1.8rem;
        letter-spacing: 5.52px;
    }


    .scroll__text {
        /* padding: 0 70px; */
        font-size: 1.6rem;
        letter-spacing: 4px;
        padding: 0 39px;

    }
    
    .scroll__text span {
        font-size: 1.2rem;
        letter-spacing: 2px;
        
    }

    /* 丸の描写 */
    .scroll:before {
        content: "";
        /*描画位置*/
        position: absolute;
        bottom:-65px;
        left:50%;
        /* left: calc(50% - 2px); */
        transform: translateX(-50%);
        /*丸の形状*/
        width:5px;
        height:5px;
        border-radius: 50%;
        background:#0099AC;
        z-index: 100;
        /*丸の動き1.6秒かけて透過し、永遠にループ*/
        animation:
            circlemove 1.6s ease-in-out infinite,
            cirlemovehide 1.6s ease-out infinite;
    }

    /*下からの距離が変化して丸の全体が上から下に動く*/
    @keyframes circlemove{
        0%{
            bottom:-15px;
        }
        100%{
            bottom:-70px;
        }
    }

    /*上から下にかけて丸が透過→不透明→透過する*/
    @keyframes cirlemovehide{
        0%{
            opacity:0
        }
        50%{
            opacity:1;
        }
        80%{
            opacity:0.9;
        }
        100%{
            opacity:0;
        }
    }

    /* 線の描写 */
    .scroll:after{
        content:"";
        /*描画位置*/
        position: absolute;
        bottom:-75px;
        /* left:50%; */
        left: calc(50% - 0.5px);
        /*線の形状*/
        width:1.2px;
        height: 65px;
        z-index: 20;
    }
}/* pc 769px */


/* =============================
Works
===============================*/


.overlay {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url(../images/works_background.png);
    background-size: auto 100%;
    z-index: 100;

    /* mask 用 CSS 変数を定義 */
    --hole-size: 90px;

    -webkit-mask: radial-gradient(circle var(--hole-size) at center, transparent var(--hole-size), black calc(var(--hole-size) + 1px));
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: cover;

    mask: radial-gradient(circle var(--hole-size) at center, transparent var(--hole-size), black calc(var(--hole-size) + 1px));
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: cover;

    position: relative;

    /* 背面の要素をクリック可能に */
    pointer-events: none;
}

.overlay--about {
    background: url(../images/about_background.png);
    background-size: auto 100%;
}

.overlay--works::after {
    position: absolute;
    content: "";
    right: 15px;
    /* width: 90px; */
    width: 23%;
    /* height: 188px; */
    aspect-ratio: 90/188;
    background: url(../images/works_rainImg_right_sp.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.overlay--works::before {
    position: absolute;
    top: 0;
    left: 15px;
    /* width: 87px; */
    width: 22%;
    /* height: 188px;  */
    aspect-ratio: 87/188;;
    background: url(../images/works_rainImg_left_sp.svg);
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
}

.circle {
    top: 50%;
    left: 50%;
    z-index: 120;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 1.2px solid var(--primary-white);
    background-color: transparent; 
    position: absolute;
    transform: translate(-50%, -50%);
}

.circle_small {
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #0099AC;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.circle_small--white {
    background: #fff;
}

.circle_small--yellow {
    background: #CFD14A;
}

.section--works {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    /* padding: 35px 0 60px 0; */
    /* padding: 0 0 60px 0; */
    padding: 0 0 0 0;
    z-index: 10;
    background-color: var(--primary-gray,#C6D1D1);
}

.topic {
    font-family: "Playfair Display";
    font-size: 2.8rem;
    font-weight: 400;
    line-height: normal;
    z-index:20;
}

.works {
    width: 100%;
}

.works__content {
    width: 100%;
    height: 100%;
    margin-top: -100vh;
}

.works__bg {
    width: 100%;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: -1; /* テキストの背面に置く */
    background: url(../images/works_background_sp.svg);
    background-repeat: no-repeat;
    opacity: 0.65;
    background-size: contain;

}

.works__category {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 35px 0 30px 0;
}

.works__category:last-of-type {
    padding: 35px 0 80px 0;
}

.category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    padding: 0 0 50px 31px;
}

.category__group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.category__num {
    font-family: "Playfair Display";
    font-size: 1.6rem;
    font-weight: 400;
}

.category__title {
    font-family: "Playfair Display";
    font-size: 2rem;
    font-weight: 400;
    line-height: normal;
}

.category__line {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 60%;
    padding-right: 20px;
}

.category__line p {
    width: calc(100% / 3);    
}

.category__line img {
    width: 17px;
    height: auto;
}

.category__line::before {
    position: absolute;
    top: 50%;
    left: 5px;
    z-index: -1;
    width: calc(100% - 5px);
    height: 1px;
    background: var(--primary-black,#313131);
    transform: translateY(-50%); 
    content: '';
}

.works__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 38px;
    width: 100%;
    padding: 0 39px;
}

.works__item {
    position: relative;
    width: 100%;
    max-width: 312px;
    height: auto;

    aspect-ratio: 357/422;
}

.works__img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 1px solid var(--primary-white);
    overflow: hidden;

    /* 20251101 追加 */
    box-shadow: -58px 73px 26px 0 rgba(67, 86, 86, 0.00), -37px 47px 24px 0 rgba(67, 86, 86, 0.01), -21px 26px 20px 0 rgba(67, 86, 86, 0.03), -9px 12px 15px 0 rgba(67, 86, 86, 0.04), -2px 3px 8px 0 rgba(67, 86, 86, 0.05);
}

.works__item img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    transform: scale(1.1);
    object-fit: cover;

    object-position:0 100%;
}

.works__item:hover img {
    transform: scale(1.2);
}

.works__description {
    display: flex;
    flex-direction: column;
    position: absolute;
    align-items: flex-start;
    bottom: 0;
    gap: 6px;
    width: 100%;
    max-width: 312px;
    /* padding: 13px 20px 10px 20px; */
    padding: 13px 5% 10px 5%;
    border-radius: 0 0 15px 15px;
    border: 1px solid var(--primary-white);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.35) 100%);
    backdrop-filter: blur(12.5px);
}

.works__type {
    display: inline-block;
    justify-content: center;
    align-items: flex-start;
    width: auto;
    padding: 2px 14px;
    border-radius: 50px;
    background: #007E8E;
}

.works__type p {
    color: var(--primary-white);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: normal;
}

.works__name {
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 120%; /* 21.6px */
}

.works__scope {
    width: 100%;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: normal;
}


/* works pc */
@media screen and (min-width:769px){

    .overlay {
        position: relative;
        width: 100%;
        height: 100vh;
        background-size: cover;
        z-index: 100;

        /* mask 用 CSS 変数を定義 */
        --hole-size: 150px;

        -webkit-mask: radial-gradient(circle var(--hole-size) at center, transparent var(--hole-size), black calc(var(--hole-size) + 1px));
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        -webkit-mask-size: cover;

        mask: radial-gradient(circle var(--hole-size) at center, transparent var(--hole-size), black calc(var(--hole-size) + 1px));
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: cover;

        position: relative;
    }

    .overlay--works {
        position: relative;
        
    }

    .overlay--works::after {
        position: absolute;
        content: "";
        background: url(../images/works_rainImg_right.svg);
        background-repeat: no-repeat;
        background-size: contain;
        /* width: 230px;   */
        width: 14%; 
        /* height: 340px;  */

        aspect-ratio: 230/340;
        top: 0;
        right: 100px;
    }

    .overlay--works::before {
        position: absolute;
        content: "";
        background: url(../images/works_rainImg_left.svg);
        background-repeat: no-repeat;
        background-size: contain;
        /* width: 215px;  */
        width: 15%; 
        /* height: 340px;  */

        aspect-ratio: 215/340;
        top: 0;
        left: 100px;
    }

    .circle {
        width: 350px;          /* 幅 */
        height: 350px;         /* 高さを幅と同じに */
        border-radius: 50%;    /* 円形にする */
        border: 1.2px solid var(--primary-white); /* 線の太さと色 */
        background-color: transparent; /* 背景を透明に */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 120;
    }

    .circle_small {
        position: absolute;
        top: 0;
        left: 50%;
        width: 16px;
        height: 16px;
    }

    .section--works {
        /* padding: 100px 0 60px 0; */
        /* padding: 0 0 60px 0; */
        padding: 0 0 0 0;
    }
    
    .works__content {
        width: 100%;
        height: 100%;
        margin-top: -100vh;
    }
    
    .works__bg {
        width: 100%;
        /* height: 100vh; */
        position: sticky;
        top: 0;
        height: 100vh;
        background: url(../images/works_background.svg);
        background-repeat: no-repeat;
        z-index: -1; /* テキストの背面に置く */
    }
    

    .topic {
        font-size: 4.8rem;
    }

    .works__category {
        padding: 35px 0 100px 0;
    }

    .works__category:last-of-type {
        padding: 35px 0 180px 0;
    }

    .category__header {
        /* ★ToDo:パーセンテージに直す */
        /* padding: 0 0 50px 195px; */
        /* padding: 0 0 50px 10%; */
        padding: 0 0 55px 10%;
    }

    .category__group {
        gap: 20px;
    }

    .category__num {
        font-size: 2.8rem;
    }

    .category__title {
        font-size: 3.2rem;
    }

    .category__line {
        width: 75%;
    }

    .category__line img {
        /* width: 25px; */
        width: 23px;
    }

    .works__list {
        display: grid;
        /* grid-template-columns: repeat(2, 30%);  */
        grid-template-columns: repeat(2, minmax(250px, 35%));
        /* grid-template-columns: repeat(2, 40%);  */
        justify-content: center; 
        padding: 0 0;
        padding-left: 25%;
        gap:46px
    }

    .works__item {
        position: relative;
        justify-self: left; 
        width: 100%;
        /* width: 80%; */
        /* max-width: 400px; */
        max-width: 350px;
        /* max-width: none; */
        /* min-width: 250px; */
        height: auto;
        /* max-height: 422px; */

        /* 20251101 修正 */
        aspect-ratio: 316/422;
    }


    .works__item img{
        /* 20251101 修正 */
        /* object-position:0 100%; */
        object-position:0 150%;
    }

    .item--left {
        justify-self: end;
    }

    .works__description {
        gap: 10px;
        max-width: none;
        /* padding: 13px 20px 7px 20px; */
        /* padding: 15px 28px 15px 23px; */
        padding: 15px 7.4% 15px 7.4%;
    }

    .works__type {
        padding: 3px 14px;
    }

    .works__type p {
        font-size: 1.2rem;
    }
}



/* =============================
About
===============================*/

.overlay--about::after {
    position: absolute;
    content: "";
    background: url(../images/about_starImg_right_sp.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 37%; 
    aspect-ratio: 146/206;
    top:0;
    right: 0;
}

.overlay--about::before {
    position: absolute;
    content: "";
    background: url(../images/about_starImg_left_sp.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 31%;
    aspect-ratio: 121/203;
    bottom:0;
    left: 0;
}


.section--about {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    /* gap: 41px; */
    /* padding: 35px 39px; */
    /* padding: 35px 10%; */
    padding: 0 0 80px 0;
    background: var(--primary-white);
}

.about {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 41px 10% 0 10%;
}

.about__img{
    margin: 0 auto;
    margin-bottom: 41px;
    width: 209px;
    height: auto;
    position: relative;
    z-index: 1;;
}

.about__img::before {
    position: absolute;
    content: "";
    background: url(../images/about_img_line.svg);
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 300px;
    width: 200%;
    /* height: 479px; */
    aspect-ratio: 220/150;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    align-self: stretch;
    gap: 38px;
}

.about__profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    align-self: stretch;
}

.about__name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 10px;
}

.name__alpha {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: normal;
}

.name__kana {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: normal;
}

.about__text {
    text-align: left;
    margin-top: 30px;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 190%;

    text-align: justify;   /* 両端揃え */
    text-justify: inter-ideograph; /* 日本語用の調整（推奨） */

}

.about__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    height: 40px;
    padding: 6px 30px;
    border-radius: 50px;
    border: 1px solid var(--primary-black,#313131);
}

.about__btn img {
    transform: translateX(0);
    transition: transform 0.5s ease; /* ← 移動をスムーズにする */
}

.about__btn:hover img {
    transform: translateX(20px); /* hover中の移動 */
}

.about__btn p {
    font-family: "Playfair Display";
    font-size: 1.8rem;
    font-weight: 500;
    line-height: normal;
}


/* about pc */
@media screen and (min-width:769px){

    .overlay--about::after {
        position: absolute;
        content: "";
        background: url(../images/about_starImg_right.svg);
        background-repeat: no-repeat;
        background-size: auto;
        width: 367px;   /* 画像の幅を指定 */
        height: 539px;
        top:0;
        right: 0;
    }

    .overlay--about::before {
        position: absolute;
        content: "";
        background: url(../images/about_starImg_left.svg);
        background-repeat: no-repeat;
        background-size: auto;
        width: 318px;   /* 画像の幅を指定 */
        height: 517px;
        bottom:0;
        left: 0;
    }

    .section--about {
        /* gap: 42px; */
        gap: 0;
        /* padding: 100px 171px; */
        /* padding: 100px 8%; */
        padding: 0 0 180px 0;
    }

    .about {
        display: flex;
        /* justify-content: center; */
        justify-content: space-between;
        align-items: flex-end;
        /* gap: 60px; */
        gap: 6%;
        align-self: stretch;

        /* padding: 42px 8% 0 8%; */
        padding: 42px 10% 0 10%;
    }

    .about__img {
        margin-bottom: 0;
        /* width: 318px; */
        width: 27%;
        max-width: 350px;
        height: auto;
        /* margin: 0 105px; */
        margin: 0 10%;

        position: relative;
        z-index: 1;
    }

    .about__img::before {
        position: absolute;
        content: "";
        background: url(../images/about_img_line.svg);
        background-repeat: no-repeat;
        background-size: contain;
        /* width: 590px; */
        width: 180%;
        /* height: 479px; */
        aspect-ratio: 220/150;
        max-width: 550px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

    .about__content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 46px;
        flex: 1 0 0;
        align-self: stretch;
        width: 100%;
    }

    .about__profile {
        justify-content: flex-end;
        align-items: flex-start;
        gap: 38px;
    }

    .name__alpha {
        font-size: 1.6rem;
    }

    .name__kana {
        font-size: 2.8rem;
    }

    .about__text {
        margin-top: 0;
        font-size: 1.6rem;
        line-height: 170%;
    }

    .about__btn {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        height: 40px;
        padding: 7px 35px;
        border-radius: 50px;
        border: 1px solid var(--primary-black,#313131);
    }

    .about__btn p {
        font-size: 2rem;
    }
}    





#works {
  scroll-margin-top: 51px;
}

#about {
  scroll-margin-top: 51px;
}


/* about pc */
@media screen and (min-width:769px){
    
    #works {
      scroll-margin-top: 64px;
    }
    
    #about {
      scroll-margin-top: 64px;
    }

}