@charset "utf-8";
/* index.html 専用 */

@media (min-width: 769px) {
    .hero-wrap {
        background: linear-gradient(
            134.9deg,
            rgb(252, 234, 187) 3.95%,
            rgb(248, 181, 0) 98.09%
        );
    }

    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .hero__card {
        width: 95%;
        min-height: 92.5vh;
        padding-top: 140px;
        box-sizing: border-box;
    }

    .hero__avatar {
        margin-top: 0;
    }

    .hero__card::before {
        background: none;
        opacity: 0;
    }

    .header {
        display: none;
    }

    .header__menu-btn {
        display: none;
    }

    .menu-overlay {
        display: none;
    }

    .header.header {
        display: none;
    }
}

/* profile / hero カード */
.hero__card {
    --profile-border: 25px;
    height: 721px;
    position: relative;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-whiteLow, #fffdf8);
}

.hero__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115.73deg,
        rgb(252, 234, 187) 3.95%,
        rgb(248, 181, 0) 98.09%
    );
    z-index: 0;
    pointer-events: none;
}

.hero__card::after {
    content: "";
    position: absolute;
    inset: var(--profile-border);
    background: var(--primary-whiteLow, #fffdf8);
    z-index: 1;
    pointer-events: none;
}

.hero__card > * {
    position: relative;
    z-index: 2;
}

.hero__avatar {
    margin-top: 65px;
}

.hero__name {
    font-size: 2rem;
    font-weight: 500;
    line-height: normal;
    margin-top: 21px;
}

.hero__roles {
    font-size: 1.5rem;
    line-height: normal;
    margin-top: 21px;
}

.hero__bio {
    margin: auto;
    width: 55%;
    font-size: 1.2rem;
    line-height: 2.5rem;
    margin-top: 42px;
}

/* SKILLS */
.skills {
    width: var(--contentWith);
    margin: -25px auto 0;
    position: relative;
    z-index: 2;
}

.skills__list {
    display: grid;
    gap: 18px;
    max-width: 520px;
    margin: 0 auto;
}

.skills__item {
    display: grid;
    gap: 8px;
    text-align: center;
}

.skills__name {
    font-size: 1.7rem;
    font-family: Afacad, sans-serif;
    color: var(--primary-darkblue, #1d2947);
    margin-top: 29px;
}

.skills__bar {
    height: 25px;
    border-radius: 999px;
    background: var(--primary-orangeLow, #ffebc0);
    overflow: hidden;
}

.skills__barFill {
    height: 100%;
    width: 0%;
    background: var(--primary-orange, #ff9d00);
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

.skills__item.is-illu .skills__barFill {
    width: 90%;
}
.skills__item.is-ps .skills__barFill {
    width: 90%;
}
.skills__item.is-html .skills__barFill {
    width: 50%;
}
.skills__item.is-js .skills__barFill {
    width: 30%;
}

@media screen and (min-width: 769px) {
    .skills__item {
        display: flex;
        align-items: center;
        gap: 1px;
        text-align: left;
        margin-top: 28px;
    }

    .skills__name {
        width: 90px;
        margin-top: 0;
        text-align: left;
        flex-shrink: 0;
    }

    .skills__bar {
        flex: 1;
        min-width: 180px;
    }
}

/* EXPERIENCE */
.experience {
    margin-top: 82px;
}

.experience__timeline {
    width: var(--contentWith);
    margin: 33px auto 0;
}

.experience__row {
    display: flex;
    gap: 27px;
    margin-top: 22px;
}

.experience__date {
    color: var(--primary-orange);
    text-align: center;
    font-family: Afacad, sans-serif;
    font-size: 1.6rem;
    line-height: 1.875rem;
}

.experience__company {
    font-size: 1.6rem;
}

.experience__role {
    font-size: 1.2rem;
    line-height: 0.9375rem;
}

.experience__graphic {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.experience__badge {
    width: 330px;
    height: 330px;
}

.experience__badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media screen and (min-width: 769px) {
    .experience {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 0;
        align-items: center;
        max-width: fit-content;
        margin: 0 auto;
        padding-top: 70px;
    }

    .experience > .section-title {
        grid-column: 1 / -1;
    }

    .experience__timeline {
        grid-column: 1;
        margin-top: 5px;
    }

    .experience__graphic {
        grid-column: 2;
        margin-top: 33px;
        justify-content: center;
    }
}

/* SERVICE */
.service {
    background: linear-gradient(
        139.54deg,
        rgb(252, 234, 187) 3.95%,
        rgb(248, 181, 0) 98.09%
    );
    margin-top: 64px;
    width: auto;
    height: 991px;
}

.service__cards {
    margin-top: 31px;
}

.service-card {
    width: var(--contentWith);
    height: 256px;
    background-color: var(--primary-whiteLow);
    border-radius: 20px;
    margin: 17px auto 0;
    padding: 36px 50px 19px;
}

.service-card__icon {
    display: flex;
    justify-content: center;
}

.service-card__title {
    margin-top: 15px;
    color: var(--primary-orange);
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: normal;
}

.service-card__text {
    margin-top: 10px;
    font-size: 1.2rem;
    line-height: 1.7rem;
}

@media screen and (min-width: 769px) {
    .service {
        height: 446px;
        position: relative;
        background: none;
    }

    .service::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -46px;
        bottom: 46px;
        background: linear-gradient(
            139.54deg,
            rgb(252, 234, 187) 3.95%,
            rgb(248, 181, 0) 98.09%
        );
        transform: translateY(46px);
        z-index: 0;
        pointer-events: none;
    }

    .service > * {
        position: relative;
        z-index: 1;
    }

    .service__cards {
        display: flex;
        width: var(--contentWith);
        margin: 0 auto;
        gap: 25px;
    }
}

/* WORKS */
.works__frame {
    width: var(--contentWith);
    margin: 33px auto 0;
    overflow: hidden;
    border: 15px solid var(--primary-whiteLow, #fffdf8);
    background-color: var(--primary-whiteLow, #fffdf8);
    box-shadow: 0 4px 7px 1px rgba(29, 41, 71, 0.18);
    border-radius: 16px;
}

.works__slider {
    width: 100%;
}

.works__track {
    display: flex;
    gap: 0;
    transform: translateX(0);
    transition: transform 350ms ease;
    will-change: transform;
}

.works__slide {
    flex: 0 0 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--primary-whiteLow, #fffdf8);
}

.works__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.works__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.works__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(29, 41, 71, 0.35);
    border: 0;
    padding: 0;
    cursor: pointer;
}

.works__dot.is-active {
    background: var(--primary-orange, #ff9d00);
}

.works__dot:focus-visible {
    outline: 2px solid var(--primary-orange, #ff9d00);
    outline-offset: 3px;
}

@media screen and (min-width: 769px) {
    .works {
        width: auto;
        overflow-x: clip;
    }

    .works__frame {
        overflow: visible;
        border: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .works__track {
        gap: clamp(12px, 2vw, 20px);
    }

    .works__slide {
        flex: 0 0 min(400px, 54%);
        box-sizing: border-box;
        border: 15px solid var(--primary-whiteLow, #fffdf8);
        border-radius: 16px;
        box-shadow: 0 4px 7px 1px rgba(29, 41, 71, 0.18);
    }
}

/* 見出し縦線の位置調整（index） */
.section-title::before {
    transform: translateY(-25px);
}

#skills-heading::before {
    margin-top: 25px;
}
