.fv {
    min-height: 100svh;
}

.pc_fv {
    font-family: "scotch-display", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 12.5vw;
    transform: scaleX(0.94);
    position: absolute;
    top: 121px;
    line-height: 0.7;
    white-space: nowrap; /* テキストを折り返さないように設定 */
    overflow-wrap: normal; /* テキストがボックスの境界を超える場合は折り返さないように設定 */
}

/* scrolldown全体の場所 */
.scrolldown {
    /*描画位置※位置は適宜調整してください*/
    position: absolute;
    left: 11%;
    top: 524px;
    /*全体の高さ*/
    height: 321px;
}

/*scrollテキストの描写*/
.scrolldown p {
    border-top: solid 1px var(--accent-color);
    padding-top: 13px;
    color: var(--accent-color);
    font-family: "scotch-display", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 12px;
    position: absolute;
    left: 9.8%;
    top: 13px;
    writing-mode: vertical-rl;
    margin-left: 19px;
}

/* 線の描写 */
.scrolldown::after {
    content: "";
    /* 描画位置*/
    position: absolute;
    top: 123px;
    /* 線の形状 */
    width: 1px;
    height: 321px;
    background: var(--accent-color);
    /* 線の動き何秒かけて動く。永遠にループ */
    animation: pathmove 2.2s ease-in-out infinite;
    opacity: 0;
}

/* 高さ・位置・透過が変化して線が上から下に動く */
@keyframes pathmove {
    0% {
        height: 0;
        top: 0;
        opacity: 0;
    }
    30% {
        height: 193px;
        opacity: 1;
    }
    100% {
        height: 0;
        top: 321px;
        opacity: 1;
    }
}

/* about */
.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 0 197px 0;
    width: 100%;
    padding-left: 3%;
    position: relative;
    box-sizing: border-box;
}

.square {
    width: 50vw;
    height: 50vw;
    border-radius: 50px;
    background-color: var(--accent-color);
    transition: 5s;
}

.square.is-active {
    border-radius: 99rem;
    transform: rotate(-90deg);
}

.about_heading {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 60%;
}

.about_heading h2 {
    font-weight: 500;
    font-style: normal;
    font-size: 7.3vw;
    font-family: "scotch-display", sans-serif;
    color: #ffffff;
}

.about_heading h3 {
    font-family: "shippori-mincho", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.7vw;
    color: #ffffff;
}

.about_text {
    padding: 0 6% 0 2%;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ",
        "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    width: 45%;
    box-sizing: border-box;
}

.about_text h2 {
    font-size: 24px;
    padding-bottom: 40px;
    color: var(--accent-color);
}

.about_text h3 {
    font-size: 24px;
    padding: 35px 0 40px 0;
    color: var(--accent-color);
}

.about_text p {
    font-size: 16px;
    line-height: 1.8;
}

/* family */
.family {
    position: relative;
    margin-bottom: 358px;
    overflow: hidden;
}

.family_heading {
    display: flex;
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
}

.family_heading span {
    color: #f3f5fa;
    font-family: "scotch-display", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 46vw;
    line-height: 0.75;
}

.family_heading span:first-child {
    animation: loop 50s -25s linear infinite;
}

.family_heading span:last-child {
    animation: loop2 50s linear infinite;
}

.family_photo {
    display: flex;
}

.family li img {
    max-width: 100%;
}

@keyframes loop {
    0% {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes loop2 {
    0% {
        transform: translateX(0);
    }
    to {
        transform: translateX(-200%);
    }
}

.works {
    padding-top: 100px;
    overflow-x: hidden;
}

.works_title {
    align-items: flex-end;
    display: flex;
    justify-content: center;
    position: relative;
    padding-bottom: 103px;
}

.works_title h2 {
    color: var(--accent-color);
    font-family: "shippori-mincho", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    writing-mode: vertical-lr; /* 縦方向に配置 */
}

.works_title h3 {
    color: var(--accent-color);
    font-family: "scotch-display", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 100px;
    text-orientation: sideways; /* テキストの向きを指定 */
    writing-mode: vertical-lr; /* 縦方向に配置 */
}

.works ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-left: 2.4%;
}

.works ul li {
    margin-right: 34px;
    width: 100%;
    overflow: hidden;
    border-radius: 9.7%;
}

.works img {
    transition: 1s all;
}

.works img:hover {
    transform: scale(1.2, 1.2);
    transition: 1s all;
    border-radius: 9.7%;
}

/* works右矢印調整 */
.slick-next {
    width: 12rem;
    height: 12rem;
    background-color: black;
    border-radius: 50%;
    opacity: 0.5;
    transform: translate(50%, -50%);
    right: 0px;
}

.slick-next:before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    position: relative;
    left: 10%;
}

/* works左矢印調整 */
.slick-prev {
    z-index: 1;
    width: 12rem;
    height: 12rem;
    background-color: black;
    border-radius: 50%;
    opacity: 0.5;
    transform: translate(-50%, -50%);
    left: -2.4%;
}

.slick-prev:before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
    position: relative;
    left: 68%;
}

.slick-next:hover,
.slick-prev:hover {
    background: black;
}

.viewbutton {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    border-radius: 50%;
    color: #ffffff;
    font-family: "scotch-display", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 21px;
    height: 80px;
    width: 80px;
    cursor: none;
}

.viewbutton.is-active {
    opacity: 1;
    cursor: none;
}

.thanks_footer p {
    color: #ffffff;
    font-family: "scotch-display", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 7.3vw;
    transform: scaleX(0.97);
    white-space: nowrap; /* テキストを折り返さないように設定 */
}

.thanks_text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.thanks_text h1 {
    font-family: "scotch-display", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 11.7vw;
    white-space: nowrap; /* テキストを折り返さないように設定 */
    overflow-wrap: normal; /*テキストがボックスの境界を超える場合は折り返さないように設定 */
    padding-top: 148px;
}

.thanks_text p {
    font-size: 3vw;
    line-height: 1.8;
    padding-top: 90px;
    padding-bottom: 90px;
    text-align: center;
}

.sp_fv {
    display: none;
}
.scrolldown p {
    display: block;
}

@media screen and (max-width: 1366px) {
    .scrolldown {
        top: 407px;
    }
}

@media screen and (max-width: 1100px) {
    .scrolldown {
        top: 353px;
    }

    .about {
        display: flex;
        justify-content: center;
        flex-direction: column;
        padding: 100px 0 150px 0;
    }

    .about_text {
        padding-left: 6.5%;
        padding-right: 6.5%;
        width: 100%;
    }

    .about_text h2,
    .about_text h3 {
        padding: 47px 0 47px 0;
    }

    .about_text p {
        line-height: 2;
    }

    .about_heading {
        transform: translateY(-332%);
        right: 0;
        position: static;
    }

    .square {
        width: 82vw;
        height: 82vw;
    }

    .about_heading h2 {
        font-size: 10vw;
    }

    .about_heading h3 {
        font-size: 4vw;
    }

    .works {
        padding-top: 100px;
    }
}

@media screen and (max-width: 768px) {
    .scrolldown {
        top: 291px;
    }

    .works ul {
        margin-left: 4.3%;
    }

    .slick-prev {
        left: -4.3%;
    }

    .works_title h3 {
        font-size: 69px;
    }

    .works_title h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 431px) {
    .scrolldown {
        top: 226px;
    }

    .slick-next,
    .slick-prev {
        width: 7rem;
        height: 7rem;
    }

    .slick-next:before,
    .slick-prev:before {
        width: 30px;
        height: 30px;
    }

    .slick-prev:before {
        left: 59%;
    }

    .works ul {
        margin-left: 7.3%;
    }

    .slick-prev {
        left: -7.3%;
    }

    .square {
        transition: 8s;
    }
}

@media screen and (max-width: 376px) {
    /* fv */
    .pc_fv {
        display: none;
    }

    .sp_fv {
        display: block;
        font-family: "scotch-display", sans-serif;
        font-weight: 600;
        font-style: normal;
        font-size: 19vw;
        transform: scaleX(0.83);
        position: absolute;
        top: 121px;
        left: -5%;
        line-height: 0.7;
        white-space: nowrap; /* テキストを折り返さないように設定 */
        overflow-wrap: normal; /* テキストがボックスの境界を超える場合は折り返さないように設定 */
    }

    .scrolldown {
        top: 295px;
    }

    .about_text h2,
    h3 {
        font-size: 22px;
    }

    .about_text p {
        font-size: 15px;
    }

    .pc_only_photo {
        display: none;
    }

    .family_heading span {
        font-size: 184vw;
    }

    .family_heading span:first-child {
        animation: loop 50s -25s linear infinite;
    }

    .family_heading span:last-child {
        animation: loop2 50s linear infinite;
    }

    /* works */
    .works_title h3 {
        font-size: 38px;
    }

    .works_title h2 {
        font-size: 15px;
    }
}
