@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Jersey+15&&family=Jersey+10&isplay=swap');

html {
    scroll-behavior: smooth;
    background-color: black;
}

header {
    font-family: "Jersey 10", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    font-variation-settings:
        "wdth" 100;
    letter-spacing: 0.1em;
    position: fixed;
    width: 100%;
    height: 10%;
    top: 0;
    z-index: 10000;
}

body {
    color: white;
    font-size: 18px;
    font-family: "DotGothic16", sans-serif;
    font-style: normal;
    font-feature-settings: "palt" 1;
    font-weight: 400;
    letter-spacing: 0.075em;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

nav {
    color: black;
    height: 100%;
    width: 92.5%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

footer {
    display: white;
}

h2 {
    font-size: 70px;
    font-family: "Jersey 15", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

h3 {
    font-size: 48px;
    font-family: "Jersey 15", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

h4 {
    font-size: 32px;
    font-family: "Jersey 15", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.header-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

.icon {
    width: auto;
    height: 100%;
}

.icon img {
    margin-top: 40%;
    margin-left: 40%;
    width: auto;
    height: 60%;
    transition: opacity 0.2s ease-in-out;
}

.icon img:hover {
    animation: fadeOpacity 0.4s ease-in-out;
}

.nav-link {
    position: relative;
    text-decoration: none;
    font-weight: bold;
    color: white;
    padding: 20px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0%;
    bottom: 10px;
    width: 0%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
    transform: scaleX(1);
}

.first-visual {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.visual-image {
    object-fit: contain;
    position: absolute;
    width: 60%;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.external-link {
    z-index: 2;

    width: auto;
    height: 90px;

    position: absolute;
    left: 0;
    right: 0;
    bottom: 7.5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.external-link img {
    height: 90px;
    width: 90px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid white;
    border-radius: 17px;
    padding: 0px;
}

.external-link img:hover {
    transform: scale(1.1);
}

.external-link li {
    position: relative;
    list-style-type: none;
    display: inline-block;
    margin-right: 70px;
}

.external-link li:last-child {
    margin-right: 0px;
}

.container {
    width: 80vw;
    margin: 0 auto;
}

.position {
    font-size: 36px;
    text-align: center;
    font-weight: 400px;
    color: rgb(200, 200, 200);
    margin: 0%;
    font-family: "Jersey 15", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.name p {
    font-family: "Jersey 15", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
    font-size: 72px;
    font-weight: 400;
    margin-top: -20px;
    text-shadow: 3px 3px 0px rgba(100, 100, 100, 1);
}

.introduction {
    width: 100%;
    max-width: 60vw;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.profile,
.history {
    margin-top: 70px;
    width: 100%;
}

.profile h3,
.history h3 {
    position: relative;
    padding: 12px;
    margin-bottom: 5px;
    text-align: left;
    width: fit-content;

    border: 2px solid white;
    border-radius: 15px;
}

.history p,
.profile p {
    margin: 0;
    padding: 3% 3%;
    box-sizing: border-box;

    border: 2px solid white;
    border-radius: 15px;
}

.skills {
    width: 100%;
    max-width: 60vw;
    margin-top: 100px;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-size: 24px;
}


.skills h3 {
    position: relative;
    padding: 12px;
    margin-bottom: 5px;
    text-align: left;
    width: fit-content;

    border: 2px solid white;
    border-radius: 15px;
}

.skills h4 {
    margin: 0;
    padding: 0;
}

.skills h4:first-child {
    margin-top: 30px;
    margin-bottom: 0px;
    padding: 0;
}

.skills-list {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    background-color: black;
    border-radius: 15px;
    border: 2.5px solid white;
}

.skills-container {
    width: 100%;
    max-width: 60vw;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0 80px;
    justify-content: center;
}

.skills ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    margin: 0 0 30px 0;
    list-style: none;
}

.skills li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    width: 280px;
}

.skill-name {
    flex: 1;
    font-size: 18px;
}

.skill-level {
    text-align: right;
    white-space: nowrap;
    font-size: 16px;
}

.work-list {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    margin: 0 auto;
    max-width: 80vw;
    padding: 20px;
}

.work {
    width: 416px;
    height: 525px;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    background-color: black;
    border-radius: 15px;
    border: 2.5px solid white;
    overflow: hidden;
}

.work a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.work p {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.4;
    gap: 10px;
}

.work p span {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.2;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.small-text {
    font-size: 0.8em;
    line-height: 1.4;
}

.copyright {
    padding-top: 50px;
    padding-bottom: 20px;
    text-align: center;
    font-size: 12px;
}

.contact-title {
    width: 100vw;
    height: 40vh;
    margin: 100px auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Jersey 10", sans-serif;
    font-size: 100px;
}

.contact-iframe {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 14px;
    border: 2.5px solid white;
}

/* 透明度のアニメーション */
@keyframes fadeOpacity {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@media (orientation: portrait) {
    .name {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .introduction {
        padding: 0 10px;
    }

    .name img {
        width: 150px;
        height: auto;
    }

    .visual-image {
        object-fit: contain;
        object-position: center;
    }

    .external-link {
        bottom: 15%;
    }
}