@charset "UTF-8";

body {
    font-family: sans-serif;
    line-height: 1.7;
    background: #111;
    color: #fff;
}

body.modal-open {
    overflow: hidden;
}

.inner {
    width: min(100% - 40px, 1100px);
    margin: 0 auto;
}

/* about */
.about {
    background: #7FAFD8;
    padding: 120px 0;
}

.about-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.about-profile {
    width: 58%;
}

.about-name {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.about-name-ja {
    font-size: 16px;
    margin-bottom: 32px;
}

.about-text {
    font-size: 16px;
    line-height: 2;
}

.about-img {
    width: 300px;
    display: block;
    opacity: 1;
}

/* SKILL--------------------------------- */
/* skill */
.skill-section {
    padding: 60px 0;
    background-color: #5793cf;
}

.skill-content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
}

.skill-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.skill-head {
    width: 420px;
    padding-top: 0;
    transform: translateY(-20px);
}

.skill-title {
    font-size: 36px;
    color: #EAF3FF;
}

.skill-lead {
    color: #EAF3FF;
    font-size: 16px;
    line-height: 2;
    width: 460px;
    max-width: none;
}

.skill-diagram {
    position: relative;
    width: 660px;
    height: 360px;
    flex-shrink: 0;
}

.skill-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    transform: translate(-50%, -50%) rotate(33deg);
}

.skill-item-design {
    top: 0px;
    left: 120px;
    text-align: right;
}

.skill-item-front {
    top: 130px;
    right: 10px;
}

.skill-item-back {
    bottom: 0px;
    right: 110px;
}

.skill-item-illust {
    bottom: 120px;
    left: 20px;
    text-align: right;
}

.skill-item {
    position: absolute;
    width: 150px;
}

.skill-card-title {
    margin-bottom: 4px;
    font-size: 20px;
    line-height: 1.2;
    color: #F4F8FF;
}

.skill-card-text {
    font-size: 14px;
    line-height: 1.5;
    color: #DCE8F8;
}



/* WORKS */

.works-section {
    padding: 100px 40px 120px;
    background:
        linear-gradient(90deg, transparent 0 48%, #ffffff 48% 52%, transparent 52% 100%),
        linear-gradient(180deg, transparent 0 48%, #ffffff 48% 52%, transparent 52% 100%),
        #2f7de1;

    background-size: 100% 90%, 90% 100%, auto;
    background-position: center 70px, center 70px, center;
    background-repeat: no-repeat;
    position: relative;
}

.works-section::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 70px;
    bottom: -220px;
    transform: translateX(-50%);
    width: 58px;
    background: #ffffff;
    z-index: 0;
}

.works-title {
    margin-bottom: 56px;
    color: #071a38;
    font-size: 48px;
    letter-spacing: 0.08em;
    text-align: center;
    position: relative;
    z-index: 1;
}

.works-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 400px);
    justify-content: center;
    gap: 72px 96px;
}

.work-card {
    position: relative;
    padding: 24px;
    background: #ffffff;
    border-radius: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.work-card:nth-child(1) {
    margin-right: 30px;
}

.work-card:nth-child(2) {
    margin-left: 30px;
}

.work-card:nth-child(3) {
    margin-top: 100px;
    margin-right: 30px;
}

.work-card:nth-child(4) {
    margin-top: 100px;
    margin-left: 30px;
}

.work-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
}

.work-dot-tl {
    top: -20px;
    left: -20px;
}

.work-dot-tr {
    top: -20px;
    right: -20px;
}

.work-dot-bl {
    bottom: -20px;
    left: -20px;
}

.work-dot-br {
    bottom: -20px;
    right: -20px;
}

.work-card:hover {
    transform: scale(1.04);
    box-shadow: 0 24px 48px rgba(7, 26, 56, 0.24);
}

.work-image {
    height: 220px;
    overflow: hidden;
    border-radius: 20px;
    background: #f4f8ff;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 80%;
}

.work-step {
    margin-top: 18px;
    color: #2f7de1;
    font-size: 14px;
    font-weight: 700;
}

.work-name {
    margin-top: 6px;
    color: #071a38;
    font-size: 24px;
}


/* 美容室 */
.work-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.72);
    padding: 48px;
    overflow-y: auto;
}

.work-modal.is-open {
    display: block;
}

body.modal-open .hamburger {
    display: none;
}

.work-modal-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 48px;
}

.work-modal-close {
    display: grid;
    place-items: center;
    margin-left: auto;
    margin-right: -30px;
    position: sticky;
    top: 10px;
    z-index: 10;

    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #071a38;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(7, 26, 56, 0.28);
}

.work-modal-close::before {
    content: "←CLOSE";
    position: absolute;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);

    writing-mode: vertical-rl;
    text-orientation: mixed;

    color: #071a38;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.work-modal-tab {
    padding: 10px 24px;
    border: none;
    border-radius: 999px;
    background: #e5e5e5;
    color: #222;
    cursor: pointer;
}

.work-modal-single {
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.work-modal-tabs {
    display: none;
}

.work-modal-view {
    display: none;
}

.work-modal-view.is-active {
    display: block;
}

.work-modal-pair {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.work-modal-pair img:first-child {
    width: 74%;
}

.work-modal-pair img:last-child {
    width: 22%;
}

.works-blank {
    height: 220px;
    background: #2f7de1;
}

.python-section {
    height: 150vh;
    margin-top: -100vh;
}

.python-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(90deg, transparent 0 48%, #fff 48% 52%, transparent 52%),
        #2f7de1;
    background-size: 100% 100%, auto;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
}

.python-sticky.is-active {
    opacity: 1;
    pointer-events: auto;
}

.pv {
    position: absolute;
    top: 0;
    width: 4%;
    height: 100%;
    background: #fff;
    z-index: 2;
    transition: left 0.05s linear;
}

.pv.left {
    left: 50%;
    transform: translateX(-50%);
}

.pv.right {
    left: 50%;
    transform: translateX(-50%);
}

.pbg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 100%;
    background: #ffffff;
    z-index: 1;
}

.python-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 400px;
    padding: 24px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(7, 26, 56, 0.18);
    opacity: 0;
    z-index: 3;
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
}

.python-card .work-image {
    height: 240px;
}

.python-card .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.python-card.is-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/*  */
.business-modal-pair {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.business-modal-pair img {
    width: 50%;
}

.lp-work-image {
    height: 220px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    background: #f4f8ff;
}

.lp-img {
    width: 100%;
    height: auto;
    display: block;
}

.work-detail-jump {
    display: block;
    margin: 0 auto 32px;
    padding: 12px 32px;
    border: none;
    border-radius: 999px;
    background: #071a38;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.work-detail {
    margin-top: 80px;
    padding-top: 56px;
    border-top: 1px solid #d9e2f0;
    color: #071a38;
}

.work-detail-title {
    margin-bottom: 32px;
    font-size: 32px;
}

.work-detail-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #e5edf7;
}

.work-detail-row dt {
    font-weight: 700;
}

.work-detail-row dd {
    line-height: 1.8;
}

.work-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.work-link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    background: #071a38;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.work-link-sub {
    background: #4b6f9f;
}

/* LIKE */
.like-section {
    background: #020b18;
    color: #d8f4ff;
}

.like-driver {
    height: 700vh;
    position: relative;
}

.like-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 80%, rgba(16, 80, 130, 0.55), transparent 55%),
        linear-gradient(180deg, #061b35 0%, #020b18 100%);
}

.like-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(216, 244, 255, 0.22);
}

.like-line01 {
    top: 33.333%;
}

.like-line02 {
    top: 66.666%;
}

.like-card {
    position: absolute;
    left: 50%;
    width: min(760px, 68vw);
    height: 24vh;
    padding: 28px 36px;
    display: grid;
    grid-template-columns: 1fr 210px;
    align-items: center;
    gap: 32px;
    background: rgba(4, 20, 42, 0.88);
    border: 1px solid rgba(120, 220, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    filter: blur(8px);
    transition:
        transform 0.8s ease,
        opacity 0.8s ease,
        filter 0.8s ease;
    z-index: 2;
}

.like-card01 {
    top: 4.666%;
    transform: translateX(120vw);
}

.like-card02 {
    top: 38%;
    transform: translateX(-120vw);
}

.like-card03 {
    top: 71.333%;
    transform: translateX(120vw);
}

.like-card.is-show {
    transform: translateX(-50%);
    opacity: 1;
    filter: blur(0);
}

.like-card01.is-out,
.like-card03.is-out {
    transform: translateX(120vw);
    opacity: 0;
    filter: blur(8px);
}

.like-card02.is-out {
    transform: translateX(-120vw);
    opacity: 0;
    filter: blur(8px);
}

.like-label {
    color: #4dd9f0;
    letter-spacing: 0.22em;
    font-size: 13px;
    margin-bottom: 10px;
}

.like-card h2 {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1;
    margin-bottom: 14px;
}

.like-card p {
    line-height: 1.8;
    color: rgba(216, 244, 255, 0.72);
}

.like-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
}

.like-card01 img {
    object-fit: cover;
    object-position: left center;
}

.like-soshite {
    position: absolute;
    left: 50%;
    top: 120%;
    transform: translate(-50%, -50%);
    writing-mode: vertical-rl;
    white-space: nowrap;
    letter-spacing: 0.35em;
    color: #d8f4ff;
    font-size: 36px;
    opacity: 0;
    z-index: 5;
    text-shadow: 0 0 24px rgba(77, 217, 240, 0.7);
    transition:
        top 0.8s ease,
        opacity 0.8s ease;
}

.like-soshite.is-show {
    top: 50%;
    opacity: 1;
}

.final-section {
    position: relative;
    height: 260vh;
    background: #020b18;
}

.contact-anchor {
    position: absolute;
    top: 120vh;
    left: 0;
    width: 1px;
    height: 1px;
}

.final-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.final-illust-copy {
    position: absolute;
    left: 64px;
    bottom: 64px;
    z-index: 3;

    padding: 20px 28px;
    border-radius: 24px;

    background: rgba(7, 26, 56, 0.52);
    backdrop-filter: blur(10px);
    opacity: 0.8;
    color: #F2F7FF;
    opacity: 0;
    transition: opacity 0.6s ease;
}


.final-illust-copy.is-show {
    opacity: 0.8;
}

.final-illust-num {
    font-size: 16px;
    margin-bottom: 12px;
}

.final-illust-title {
    font-size: 56px;
}

.final-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.final-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 28, 70, 0.78);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.final-overlay.is-show {
    opacity: 1;
}



.scroll-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.3em;
    color: rgba(77, 217, 240, 0.6);
    animation: scrollGlow 3s linear infinite;
}

/* 外側の大円 */
.scroll-hint::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -140px;
    width: 500px;
    height: 500px;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(77, 217, 240, 0.12);
    opacity: 0.5;
}

/* 中円＋スキャン */
.scroll-hint::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -140px;
    width: 500px;
    height: 500px;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(77, 217, 240, 0.08) 0%, transparent 70%),
        conic-gradient(rgba(77, 217, 240, 0.0) 0deg,
            rgba(77, 217, 240, 0.0) 300deg,
            rgba(77, 217, 240, 0.5) 360deg);
    filter: blur(4px);
    animation: radar 3s linear infinite;
}

.scroll-hint span {
    position: absolute;
    left: 50%;
    top: -90px;
    width: 140px;
    height: 140px;
    transform: translateX(-50%);

}

/* 中央点 */
.scroll-hint span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #4dd9f0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #4dd9f0;
    animation: dotGlow 3s linear infinite;
}

@keyframes radar {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes scrollGlow {

    0%,
    2%,
    100% {
        color: rgba(77, 217, 240, 0.6);
        text-shadow: none;
    }

    6%,
    11% {
        color: rgba(210, 250, 255, 0.95);
        text-shadow:
            0 0 8px rgba(77, 217, 240, 0.9),
            0 0 20px rgba(77, 217, 240, 0.7);
    }
}

@keyframes dotGlow {

    0%,
    2%,
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 10px #4dd9f0;
    }

    6%,
    11% {
        transform: translateX(-50%) scale(1.8);
        box-shadow:
            0 0 12px #4dd9f0,
            0 0 28px rgba(77, 217, 240, 0.9),
            0 0 48px rgba(77, 217, 240, 0.5);
    }
}

/* depth meter */
.depth-meter {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    pointer-events: none;
}

.depth-title {
    margin-bottom: 2px;
    color: rgba(77, 217, 240, 0.4);
    font-size: 12px;
    letter-spacing: 0.28em;
}

.depth-zone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(77, 217, 240, 0.25);
    font-size: 11px;
    letter-spacing: 0.18em;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.6s ease, transform 0.6s ease, color 0.5s ease;
}

.depth-zone span {
    width: 12px;
    height: 1px;
    background: rgba(77, 217, 240, 0.22);
}

.depth-zone.is-lit {
    opacity: 1;
    transform: translateX(0);
    color: rgba(77, 217, 240, 0.62);
}

.depth-zone.is-lit span {
    background: rgba(77, 217, 240, 0.58);
}

.depth-track {
    position: relative;
    width: 2px;
    height: 160px;
    margin-top: 4px;
    background: rgba(77, 217, 240, 0.09);
    border-radius: 2px;
}

.depth-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0%;
    background: linear-gradient(to top, #4dd9f0, rgba(77, 217, 240, 0.28));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(77, 217, 240, 0.55);
}

.depth-dot {
    position: absolute;
    left: 50%;
    bottom: 0%;
    width: 6px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #4dd9f0;
    box-shadow: 0 0 10px #4dd9f0, 0 0 20px rgba(77, 217, 240, 0.4);
}

.depth-num {
    margin-top: 2px;
    color: #4dd9f0;
    font-size: 18px;
    letter-spacing: 0.08em;
    line-height: 1;
    text-shadow: 0 0 16px rgba(77, 217, 240, 0.5);
}

.depth-unit {
    color: rgba(77, 217, 240, 0.36);
    font-size: 10px;
    font-style: italic;
    letter-spacing: 0.2em;
}

/* CONTACT */
.air-bubble {
    position: absolute;
    left: 50%;
    bottom: -320px;
    z-index: 3;
    width: 300px;
    height: 300px;
    transform: translateX(-50%);
    border-radius: 50%;

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

    background:
        radial-gradient(circle at 35% 30%,
            rgba(255, 255, 255, 0.45),
            rgba(77, 217, 240, 0.18) 34%,
            rgba(77, 217, 240, 0.06) 68%,
            rgba(77, 217, 240, 0.02) 100%);
    border: 1px solid rgba(180, 245, 255, 0.35);
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.16),
        0 0 40px rgba(77, 217, 240, 0.28);
    backdrop-filter: blur(5px);

    opacity: 0;
    transition:
        bottom 1.6s ease,
        opacity 1s ease;
}

.air-bubble::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    top: -18px;
    right: 28px;

    border-radius: 58% 42% 47% 53% / 43% 57% 49% 51%;

    background: rgba(255, 255, 255, 0.12);
    filter: blur(4px);
}

.air-bubble.is-show {
    bottom: 68%;
    opacity: 1;
}

.air-label {
    color: #d8f4ff;
    font-size: 14px;
    letter-spacing: 0.35em;
    margin-bottom: 14px;
}

.air-mail {
    color: #4dd9f0;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-decoration: none;
}

/* FOOTER */
.footer {
    padding: 12px 10px;
    background: #01060f;
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: rgba(216, 244, 255, 0.4);
    letter-spacing: 0.2em;
}

/* githubの文字レイアウト */
.final-github {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

.final-github:hover {
    color: #fff;
}

/* スマホ */
@media screen and (max-width: 767px) {

    /* LIKE SP */
    .like-driver {
        height: auto;
    }

    .like-sticky {
        position: static;
        height: auto;
        overflow: visible;
        padding: 80px 24px;
    }

    .depth-meter,
    .scroll-hint,
    .like-line,
    .like-soshite {
        display: none;
    }

    .like-card {
        position: static;
        width: 100%;
        height: auto;
        min-height: 0;
        margin-bottom: 40px;
        padding: 28px;
        display: block;
        opacity: 1;
        filter: none;
        transform: none;
    }

    .like-card:last-of-type {
        margin-bottom: 0;
    }

    .like-card h2 {
        font-size: 40px;
    }

    .like-card img {
        width: 100%;
        height: auto;
        max-height: none;
        margin-top: 24px;
        object-fit: contain;
    }

    .like-card.is-show,
    .like-card.is-out,
    .like-card01.is-out,
    .like-card02.is-out,
    .like-card03.is-out {
        transform: none;
        opacity: 1;
        filter: none;
    }

    .final-img {
        height: 100%;
        object-position: 65% center;
        opacity: 0.28;
    }

    .final-overlay {
        opacity: 1;
        background: rgba(0, 28, 70, 0.62);
    }

    .final-illust-copy {
        left: 24px;
        top: 12px;
        bottom: auto;
        transform: none;
        width: auto;
        max-width: 250px;
        text-align: left;
        opacity: 0.8;
    }

    .final-illust-title {
        font-size: 36px;
        line-height: 1;
        letter-spacing: -0.03em;
    }

    .air-bubble {
        left: 50%;
        bottom: auto;
        top: 50%;
        width: auto;
        height: auto;
        padding: 0;
        transform: translate(-50%, -50%);
        border: none;
        background: none;
        box-shadow: none;
        backdrop-filter: none;
        opacity: 1;
    }

    .air-bubble::before {
        display: none;
    }



    .final-section {
        height: 100vh;
        overflow: hidden;
    }

    .final-sticky {
        height: 100%;
    }

    .footer {
        margin-top: -44px;
        position: relative;
        z-index: 5;
        height: 44px;
        background: transparent;
        padding: 0;
    }

    .final-github {
        position: absolute;
        left: 50%;
        bottom: 44px;
        z-index: 5;
        transform: translateX(-50%);

        color: rgba(255, 255, 255, 0.35);
        font-size: 1.2rem;
        text-decoration: none;

        transition: color 0.3s;
    }

    .final-github:hover {
        color: #fff;
    }

    .final-copy {
        position: absolute;
        left: 50%;
        bottom: 20px;
        z-index: 5;
        transform: translateX(-50%);

        font-size: 12px;
        color: rgba(216, 244, 255, 0.4);
        letter-spacing: 0.2em;

        white-space: nowrap;
        width: max-content;
    }
}

/* SKILLタブレット表示 */
@media screen and (max-width: 1140px) {
    .skill-section {
        padding: 80px 0;
        /* 独立した描画空間 */
        isolation: isolate;
    }

    .skill-content {
        display: block;
        position: relative;
        z-index: 2;
    }

    .skill-head {
        width: 100%;
        transform: none;
    }

    .skill-lead {
        width: 100%;
    }

    .skill-diagram {
        width: 100%;
        margin-top: 40px;
        position: relative;
        transform: none;
    }

    .skill-item {
        position: static;
        width: 100%;
        text-align: center;
        margin-bottom: 24px;
    }

    .skill-visual {
        position: absolute;
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%) rotate(33deg);
        width: 170px;
        opacity: 0.18;
        z-index: 0;
    }

    .skill-visual img {
        width: 100%;
        display: block;
    }

    /* WORKS */
    .works-section {
        padding: 80px 20px;
        background:
            linear-gradient(90deg, transparent 0 49%, #ffffff 49% 51%, transparent 51% 100%),
            #2f7de1;
    }

    .works-title {
        margin-bottom: 40px;
        font-size: 34px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 80px;
        justify-items: center;
    }

    .work-card:hover {
        transform: none;
        box-shadow: none;
    }

    .work-image {
        height: 220px;
    }

    .work-name {
        font-size: 21px;
    }

    .work-card {
        width: min(90%, 380px);
    }

    .work-card:nth-child(1),
    .work-card:nth-child(2),
    .work-card:nth-child(3),
    .work-card:nth-child(4) {
        margin: 0;
    }

    .work-modal {
        padding: 24px 16px;

    }

    .work-modal-inner {
        padding: 32px 20px;
    }

    .work-modal-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 24px;
    }

    .work-modal-tab.is-active {
        background: #222;
        color: #fff;
    }

    .work-modal-pair {
        display: block;
    }

    .work-modal-pair img:first-child {
        width: 100%;
    }

    .work-modal-pair img:last-child {
        display: none;
    }

    body.modal-open .hamburger {
        display: none;
    }

    .work-modal-close {
        position: sticky;
        top: 12px;
        margin-left: auto;
        margin-right: 0;
        font-size: 28px;
        margin-bottom: 8px;
    }

    .work-modal-close::before {
        display: none;
    }

    .work-modal-inner {
        padding-top: 8px;
    }

    .business-modal-pair img {
        width: 45%;
    }

}

/* スマホ */
@media screen and (max-width: 767px) {
    .about {
        padding: 80px 24px;
    }

    .about-inner {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }

    .about-profile {
        width: 100%;
    }

    .about-name {
        font-size: 34px;
    }

    .about-img {
        width: 320px;
        height: auto;
        margin: 40px auto 0;
    }

    /* SKILL */
    .skill-section {
        padding: 80px 0;
        isolation: isolate;
    }

    .skill-content {
        position: relative;
        z-index: 2;
        display: block;
    }

    .skill-head {
        width: 100%;
        transform: none;
    }

    .skill-lead {
        width: 100%;
    }

    .skill-inner {
        display: block;
    }

    .skill-diagram {
        width: 100%;
        margin-top: 40px;
        position: relative;
        transform: none;
    }

    .skill-visual {
        position: absolute;
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%) rotate(33deg);
        width: 170px;
        opacity: 0.18;
        z-index: 0;
    }

    .skill-visual img {
        width: 100%;
        display: block;
    }

    .skill-item {
        position: static;
        width: 100%;
        text-align: center;
        margin-bottom: 24px;
    }

    /*  */
    .works-section {
        height: auto;
        margin-top: 0;
        padding: 80px 20px;
        background:
            linear-gradient(90deg, transparent 0 49%, #ffffff 49% 51%, transparent 51% 100%),
            #2f7de1;
    }

    .works-section::after {
        display: none;
    }

    .works-title {
        margin-bottom: 40px;
        font-size: 34px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 80px;
        justify-items: center;
    }

    .work-card:hover {
        transform: none;
        box-shadow: none;
    }

    .work-image {
        height: 180px;
    }

    .work-name {
        font-size: 21px;
    }

    .work-card {
        width: min(90%, 380px);
    }

    .work-card:nth-child(1),
    .work-card:nth-child(2),
    .work-card:nth-child(3),
    .work-card:nth-child(4) {
        margin: 0;
    }

    .work-modal {
        padding: 24px 16px;
    }

    .work-modal-inner {
        padding: 32px 20px;
    }

    .work-modal-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 24px;
    }

    .work-modal-tab.is-active {
        background: #222;
        color: #fff;
    }

    .work-modal-pair {
        display: block;
    }

    .work-modal-pair img:first-child {
        width: 100%;
    }

    .work-modal-pair img:last-child {
        display: none;
    }

    .work-modal-close {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .work-modal-inner {
        padding-top: 8px;
    }

    /* 名刺のレイアウト調整 */
    .business-modal-pair {
        display: block;
    }

    .business-modal-pair img {
        width: 100%;
        margin-bottom: 16px;
    }

    /* スペースだけに作られたセッション消し */
    .works-blank {
        display: none;
    }

    /* ------------------------------ */
    .python-section {
        height: auto;
        margin-top: -1px;
    }

    .python-sticky {
        position: static;
        height: auto;
        opacity: 1;
        pointer-events: auto;
        background: #2f7de1;
    }

    .pv,
    .pbg {
        display: none;
    }

    .python-card {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        opacity: 1;
        width: min(90%, 380px);
        margin: 0 auto 80px;
        overflow: hidden;
    }

    .python-card.is-show {
        transform: none;
        opacity: 1;
    }

    .python-card .work-image {
        height: 200px;
    }

}