@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: sans-serif;
}

html {
    scroll-behavior: smooth;
}

img {
    width: 100%;
    vertical-align: bottom;
}
body {
    background-color: rgb(199, 229, 220);
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.123) 50%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.167) 50%, transparent 50%);
    background-size: 40px 40px;
}

@media (min-width: 768px) {
    body {
        width: 100%;
        background-color: rgb(199, 229, 220);
    }
}
.wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
}

h2 {
    text-align: center;
    color: #ffffff;
}
h3 {
    text-align: center;
    color: #5c9877;
    font-family: "Bricolage Grotesque", sans-serif;
}
h4 {
    color: #7d7055;
}

p {
    text-align: center;
    color: #7d7055;
}
ul {
    text-align: center;
}
li {
    color: #7d7055;
}

/* ハンバーガー */
.ham {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10001;
    background-color: rgb(188, 225, 213);
    padding: 4px;
    border: none;
}

.ham span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    display: block;
    transition: 0.7s;
}

/* クリック後のスタイル */
.ham.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: #fffffffa;
}
.ham.active span:nth-child(2) {
    transform: translateY(10px) rotate(45deg);
    opacity: 0;
}
.ham.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background-color: #fffffffa;
}

/* splogo */
.splogo {
    width: 250px;
    margin: 0 auto;
    padding-top: 50px;
}
@media (min-width: 768px) {
    .splogo {
        display: none;
    }
}

/* nav */

.sp-nav {
    width: 100%;
    height: 130vh;
    background: #ffffff67;
    position: fixed;
    top: -15vh;
    left: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 10000;
    opacity: 0;
    transition: 0.7s;
    pointer-events: none;
    font-size: 1.3em;

    overflow: hidden;
}

.sp-nav::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("image/racemenu.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 350px auto;
    pointer-events: none;
    z-index: 0;
}

.sp-nav li {
    margin: 15px 0;
}

.sp-nav a {
    letter-spacing: 0.12em;
}

.sp-nav ul {
    list-style: none;
    text-align: center;
    position: relative;
    z-index: 1;
}

.sp-nav a {
    font-family: "Pacifico", cursive;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgb(203, 174, 143);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.708);
}

.sp-nav li a:hover {
    color: rgb(138, 119, 99);
}

/* navが開いた状態 */
.sp-nav.active {
    opacity: 1;
    pointer-events: all;
}

/* pc-nav */
.pc-nav {
    display: none;
    font-size: 20px;
    margin: 20px;
}
.pc-nav li {
    position: relative;
    padding-left: 1.5em;
}

.pc-nav li::after {
    content: "";
    position: absolute;

    width: 3em;
    height: 3em;

    background-image: url("image/chu-rip1.png");
    background-size: contain;
    background-repeat: no-repeat;

    left: 0.4em; /* padding内に置く */
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
}

.pc-nav li:hover::after {
    opacity: 1;
    transform: translateY(-60%) rotate(-8deg);
}

/* スカラップ */
.header-scallop {
    height: 30px;
    display: block;
    margin-top: -5px;
    line-height: 0;
}

@media (min-width: 768px) {
    .header-scallop {
        display: block;
        width: 100vw;
        height: 150px;
        margin-top: 0;
    }
}

/* header */
header {
    background-color: #bbe1d5;
    margin: 0;
}

.site-header {
    position: relative;
    background-color: #bfe0d6;
}

.header-scallop {
    display: block;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    header {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 0;
        background-color: #bce1d5;
        z-index: 99999;
    }

    .pc-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 50px;
    }

    .pc-nav ul {
        display: flex;
        gap: 30px;
    }

    .pc-nav a {
        color: #ffffff;
        font-weight: 400;
        font-size: 16px;
        font-family: "Bricolage Grotesque", sans-serif;
        letter-spacing: 0.08em;
        position: relative;
    }

    .pc-nav a::after {
        content: "";
        position: absolute;
        width: 18px;
        height: 18px;
        background: url("../portfoliosite/image/chu-rip1.png") no-repeat
            center / contain;
        right: -18px;
        top: 50%;
        transform: translateY(-50%) scale(0.9);
        opacity: 0;
        transition:
            transform 0.25s ease,
            opacity 0.2s ease;
    }

    .pc-nav a:hover {
        color: #5c9877;
    }

    .nav-item img {
        width: 170px;
    }
    .ham {
        display: none;
    }
}

/* ヒーロー */
.hero {
    position: relative;
}
.hero img {
    width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 30px;
    margin-top: 5px;
    margin-bottom: 50px;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.307);
    border-radius: 30px;
}
.hero-logo {
    display: none;
}
.pc-hero {
    display: none !important;
}
.hero-copy {
    position: absolute;
    left: 30px;
    bottom: 20px;
    font-size: 15px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 20px;
    letter-spacing: 0.25em;
    line-height: 2;
    font-weight: 400;
    text-shadow:
        0 2px 12px rgb(147, 157, 144),
        0 8px 30px rgb(0, 0, 0);
    transform: translateY(-40px);
    opacity: 0;
    transform: translateY(30px); /* 下から */

    transition:
        opacity 2.4s ease,
        transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);

    will-change: transform;
}
.hero-copy p {
    color: rgb(62, 52, 35);
    text-shadow: 2px 2px 3px #fff;
}
.hero-copy p + p {
    margin-top: 180px;
}

.hero-copy.is-show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUpSoft {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .sp-hero {
        display: none !important;
    }
    .pc-hero {
        display: block !important;
    }
    .hero img {
        margin-bottom: 100px;
        object-fit: contain;
    }
    .hero {
        position: relative;
    }

    .hero-logo {
        display: block;
    }

    h1.hero-logo img {
        width: 400px; /* 好きなサイズで */
    }
    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.307);
        border-radius: 30px;
    }
    .hero {
        position: relative;
    }

    /* コピー */
    @media (min-width: 768px) {
        .hero-copy {
            right: 130px;
            top: 10px;
            left: auto;
            bottom: auto;
            font-size: 30px;
            letter-spacing: 0.25em;
            line-height: 2;
            font-weight: 400;

            transform: translateY(-40px);
        }
        .hero-copy p {
            color: #7d7055;
            text-shadow: 2px 2px 12px #000000b7;
        }

        .hero-copy p + p {
            margin-top: 150px;
        }
    }
}
/* TOP */
#TOP {
    position: relative;
}
#TOP h1 {
    margin: 50px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
}
#TOP h1 img {
    width: 20vw;
}
/* ABOUT */
#ABOUT {
    width: 100%;
    margin: 0;

    background-color: #ffffff66;
    border-radius: 30px;
    box-sizing: border-box;
    padding: 10px 0 30px; /* 上下の余白 */
}
.ABOUT-inner {
    max-width: 250px; /* 中身の幅 */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
#ABOUT p,
#ABOUT li {
    line-height: 2.5;
}
#ABOUT .ABOUT-inner h2 img {
    width: 200px;
}
.pc-img {
    display: none;
}
#ABOUT .ABOUT-inner h3 img {
    width: 150px;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* SKILLS */
.skill-flex {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}
.skill-item img {
    width: 70px;
}

@media (min-width: 768px) {
    #ABOUT {
        background-color: transparent;
        background-image: url("image/race.png");
        background-repeat: no-repeat;
        background-position: calc(50% + 18px) top;
        background-size: 1200px auto;
        padding: 25px 0 230px;
        scroll-margin-top: 70px;
    }
    .ABOUT-inner {
        max-width: 1200px;
    }
    #ABOUT .skill-item img {
        height: 80px;
    }
    .sp-img {
        display: none;
    }
    .pc-img {
        display: block;
    }
    #ABOUT .ABOUT-inner h2 img {
        width: 250px;
    }

    #ABOUT .ABOUT-inner h3 img {
        width: 150px;
        margin-top: 20px;
        margin-bottom: 0;
    }
    .skill-group {
        display: flex;
        justify-content: center;
        gap: 50px;
    }
    .skill-item {
        display: flex;
    }
    .skill-flex {
        align-items: flex-end;
    }
    .works-text a {
        margin-top: 60px;
    }
}

/* WORKS */

#WORKS h2 img {
    width: 200px;
    margin-bottom: 5px;
    margin-top: 60px;
}
@media (min-width: 768px) {
    #WORKS {
        scroll-margin-top: 90px;
    }
    #WORKS h2 img {
        width: 250px;
        margin-top: 0px;
    }
}
#WORKS .sectionimg img {
    width: 150px;
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
    margin-top: 20px;
}
.works-item {
    background-color: #ffffff69;
    border-radius: 30px;
    text-align: center;

    width: 100%;
    max-width: 580px;
    margin-bottom: 50px;
    padding-top: 20px;
}
#WORKS ul li {
    margin-bottom: 8px;
}
.works-text {
    padding: 10px 40px 30px;
}

/* WORKS btn */
.btn-next {
    margin-top: 10px;
    position: relative;
    display: inline-block;
    padding: 12px 40px;
    border-radius: 30px;
    background-color: #e9b6c3;
    color: #fff;
    text-decoration: none;
}
.btn-next:hover {
    background-color: #d99aaa;
}

/* お花 */
.flower {
    position: absolute;
    top: -15px;
    right: -10px;
    opacity: 1;
    transform: rotate(0deg);
    transition: transform 0.4s ease;
}

.flower img {
    width: 60px;
    display: block;
}

/* hoverで傾げる */
.btn-next:hover .flower {
    transform: rotate(15deg);
}

/* ボタン色も変えるなら */
.btn-next:hover {
    background-color: #d99aaa;
}

/* footer */
footer p {
    color: #ffffff;
    text-align: center;
}

.footer-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: center;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-item img {
    width: 200px;
}
.footer-item a img {
    width: 50px;
}
footer {
    background-image: url("../image/footeryou.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
}
.footer-flex a {
    margin-bottom: 50px;
}
@media (min-width: 768px) {
    footer {
        background-image: url("../image/footeryou.png");
        background-repeat: repeat;
        height: 300px;
        margin-top: 100px;
        background-position: center top;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    .footer-item img {
        width: 250px;
        margin-bottom: 5px;
    }
}

/* fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.fade-in.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* スライダー */
.swiper img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: contain;
    object-position: top;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 30px !important;
}
.swiper-button-next,
.swiper-button-prev {
    color: #5c9877 !important;
}
@media (min-width: 768px) {
    .works-flex {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }
    .works-item {
        flex: 0 0 48%;
        min-width: 0;
        box-sizing: border-box;
    }
    .works-text h3 {
        font-size: 1.5em;
    }
    .works-text p {
        margin-bottom: 40px;
    }
    .works-text ul {
        text-align: left;
    }
    .swiper,
    .swiper-wrapper {
        width: 100%;
    }
    .swiper-slide img {
        max-width: 100%;
        display: block;
    }
}
/* ***************************** */
.swiper-wrapper {
    align-items: center;
}
.swiper img {
    padding: 3vw;
    aspect-ratio: 2/1.2;
}
@media (min-width: 767px) {
    .swiper-slide {
        display: flex;
        align-items: center;
    }
    .swiper img {
        padding: 0 3vw;
    }
    .works-item {
        padding: 50px 20px;
    }
}

.top-btn {
    position: fixed;
    right: 16px;
    bottom: 35px;
    width: 90px;
    height: 64px;
    z-index: 1000;
}

.top-btn img {
    width: 100%;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.3s ease;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

.top-btn:hover img {
    transform: scale(1.12);
}

@media (min-width: 768px) {
    .top-btn {
        right: 30px;
        bottom: 30px;
        width: 120px;
        height: 120px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px);
        transition:
            opacity 0.4s ease,
            transform 0.4s ease;
    }

    .top-btn.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* 浮遊 */
    .top-btn .float {
        display: block;
        animation: float 3s ease-in-out infinite;
    }

    /* PCホバーぷよ＋影 */
    .top-btn:hover img {
        transform: scale(1.2) rotate(-6deg);
        filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.28));
    }

    @keyframes float {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-8px);
        }
        100% {
            transform: translateY(0);
        }
    }
}
