@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(232, 247, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120, 200, 230, 0.2);
    z-index: 100;
}

.fixed-header ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.fixed-header a {
    text-decoration: none;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    border-radius: 4px;
    transition: .25s ease;
    font-weight: 500;
}

.fixed-header a:hover {
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    color: #0B8FB3;
    text-shadow: 0 0 10px rgba(255, 255, 255, .45);
}

.fixed-header a,
.mini-logo {
    color: #084B64;
    text-decoration: none;
}

.mini-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

/* 上部固定メニューを隠す */
.fixed-header {
    opacity: 0;
    pointer-events: none;
    transition: .3s;
}

.fixed-header.show {
    opacity: 1;
    pointer-events: auto;
}

.hero-content {
    min-height: 100vh;
    background: url(images/lagoon.webp) center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 8%;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 120px;
    font-weight: 500;
    color: #fff;
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    margin-bottom: 24px;
}

.menu {
    margin-left: 60px;
}

.menu ul {
    list-style: none;
}

.menu li {
    margin-bottom: 20px;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    letter-spacing: 0.12em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    display: inline-block;
    transition: .3s ease;
    position: relative;
    padding: 4px 12px 4px 18px;
    border-radius: 4px;
}

.menu a:hover {
    color: #fff;
    transform: translateX(4px);
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    text-shadow: 0 0 10px rgba(255, 255, 255, .45);
}

#profile,
#skills,
#portfolio,
#contact {
    padding: 120px 8%;
    background: #fff;
    color: #1F4E63;
}

.profile-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    color: #0B5D7A;
    margin-bottom: 60px;
}

.profile-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

.profile-text {
    max-width: 700px;
    padding-top: 28px;
}

.profile-text h3 {
    font-size: 28px;
    color: #234;
    margin-bottom: 40px;
}

.profile-title {
    font-size: 28px;
    color: #0B5D7A;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: .06em;
}

#profile p,
#skills p {
    line-height: 2;
    color: #555;
}

#profile h2::after,
#skills h2::after,
#portfolio h2::after,
#contact h2::after {
    content: "";
    display: block;
    width: 65px;
    height: 3px;
    background: #B8E9FF;
    margin-top: 16px;
}

.profile-text h3::after {
    content: "";
    display: block;
    width: 65%;
    height: 3px;
    background: #B8E9FF;
    margin-top: 16px;
}

.hobby-list {
    display: flex;
    gap: 24px;
    margin-top: 12px;
}

.hobby-list span {
    padding: 8px 16px;
    background: #DFF6FF;
    border-radius: 999px;
    color: #0B5D7A;
}

.skill-list {
    width: min(700px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 40px;
}

.skill-card {
    padding: 40px;
    min-height: 210px;
    background: rgba(232, 247, 255, .55);
    border: 1px solid #D7F1FF;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .3s ease;
}

#skills h2 {
    margin-bottom: 60px;
}

.skill-title {
    color: #0B5D7A;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(11, 93, 122, 0.12);
    background: rgba(232, 247, 255, .8);
}

.level {
    display: flex;
    gap: 6px;
}

/* バーの初期状態 */
.level span {
    display: block;
    width: 28px;
    height: 10px;
    border-radius: 999px;
    background: #D9EEF7;
    opacity: 0;
    transform: scaleX(0.85);
}

.level .fill {
    background: #0B8FB3;
}

/* アニメーション開始用 */
.level.animate span {
    animation: showBar .35s ease forwards;
}

.level.animate span:nth-child(1) {
    animation-delay: .1s;
}

.level.animate span:nth-child(2) {
    animation-delay: .2s;
}

.level.animate span:nth-child(3) {
    animation-delay: .3s;
}

.level.animate span:nth-child(4) {
    animation-delay: .4s;
}

.level.animate span:nth-child(5) {
    animation-delay: .5s;
}

.portfolio-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.title-web {
    font-size: 28px;
    font-weight: 600;
    color: #0B5D7A;
    margin-top: 40px;
    margin-bottom: 20px;
}

.portfolio-item {
    width: 100%;
    max-width: 700px;
    border-radius: 16px;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.portfolio-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
}

.site-category {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    color: #2B5D7A;
}

.site-info dd {
    margin-left: 1.2em;
}

.site-info dd a {
    text-decoration: none;
    color: #2B5D7A;
}

.site-info dd::before {
    content: "▸";
    color: #0B8FB3;
    font-size: 20px;
    margin-right: 10px;
    font-weight: bold;
}

.site-info a:hover {
    text-decoration: underline;
}

.site-info dd a::after {
    content: "↗";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid #D7F1FF;
    background: rgba(232, 247, 255, .6);
    color: #0B5D7A;
    cursor: pointer;
    transition: .25s;
}

.site-info dd a:hover::after {
    background: rgba(232, 247, 255, .9);
    transform: scale(1.15);
}

.title-banner {
    margin-top: 40px;
    font-size: 26px;
    font-weight: 500;
}

.contact-mail {
    margin-top: 12px;
    display: flex;
    align-items: center;
}

.contact-mail .arrow {
    color: #0B8FB3;
    margin-right: 10px;
    font-size: 20px;
}

.contact-mail a {
    color: #0B5D7A;
    text-decoration: none;
    transition: .3s;
}

.contact-mail a:hover {
    color: #0B8FB3;
    text-decoration: underline;
}

.copy-btn {
    margin-left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid #D7F1FF;
    background: rgba(232, 247, 255, .6);
    color: #0B5D7A;
    cursor: pointer;
    transition: .25s;
}

.copy-btn:hover {
    background: rgba(232, 247, 255, .9);
    transform: scale(1.15);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #0B5D7A;
    font-size: 32px;
    cursor: pointer;
}

@keyframes showBar {
    0% {
        opacity: 0;
        transform: scaleX(0.85);
    }

    60% {
        opacity: 1;
        transform: scaleX(1.12);
        box-shadow: 0 0 10px rgba(11, 143, 179, 0.35);
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
        box-shadow: none;
    }
}

@media(max-width: 768px) {
    .skill-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo {
        font-size: 80px;
    }

    .profile-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-text {
        max-width: 100%;
        padding-top: 0;
    }

    .menu {
        margin-left: 35px;
        margin-top: -10px;
    }

    .menu a {
        font-size: 20px;
    }

    .fixed-header {
        padding: 0 20px;
    }

    .fixed-header a {
        font-size: 14px;
        padding: 4px;
    }

    .mini-logo {
        font-size: 22px;
    }

    .portfolio-list {
        grid-template-columns: 1fr;
    }

    .profile-text h3 {
        font-size: 26px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-nav {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        transition: .5s ease;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(232, 247, 255, .97);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    }

    .header-nav li {
        width: 100%;
        text-align: center;
    }

    .header-nav a {
        color: #0B5D7A;
        font-size: 18px;
        text-shadow: none;
    }

    .header-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);

    }

    .header-nav ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        margin: 20px 0;
    }
}

@media(max-width: 480px) {
    .skill-list {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 60px;
    }

    .menu {
        margin-left: 20px;
    }

    .menu li {
        margin-bottom: 12px;
    }

    .menu a {
        font-size: 18px;
    }

    .mini-logo {
        font-size: 22px;
    }
}