* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(102, 217, 255, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(102, 217, 255, 0.08), transparent 30%),
        #111111;
    color: #ffffff;
    font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    padding: 40px 20px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.35;
}

a {
    color: inherit;
}

#content {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
}

/* ヘッダー */

.site-header {
    text-align: center;
    margin-bottom: 28px;
}

.header-image {
    width: 720px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 28px;
    filter: drop-shadow(0 0 22px rgba(102, 217, 255, 0.28));
}

/* ナビ */

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(102, 217, 255, 0.85);
    border-radius: 999px;
    padding: 10px 30px;
    background: rgba(31, 31, 31, 0.72);
    box-shadow:
        0 0 14px rgba(102, 217, 255, 0.08),
        inset 0 0 12px rgba(102, 217, 255, 0.04);
    transition: 0.25s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #66d9ff;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(102, 217, 255, 0.5);
}

/* 共通 */

main {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.label {
    margin: 0 0 10px;
    color: #66d9ff;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-box,
.profile-card,
.link-card {
    background: rgba(31, 31, 31, 0.78);
    border: 1px solid rgba(102, 217, 255, 0.55);
    border-radius: 28px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(102, 217, 255, 0.08),
        inset 0 0 28px rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(10px);
}

/* TOP */

.hero-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.profile-card,
.link-card {
    padding: 36px 30px;
    text-align: center;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 22px;
    border: 2px solid rgba(102, 217, 255, 0.8);
    box-shadow: 0 0 26px rgba(102, 217, 255, 0.32);
}

.profile-text h1 {
    margin: 0;
    font-size: 36px;
    letter-spacing: 0.08em;
    text-shadow: 0 0 16px rgba(102, 217, 255, 0.32);
}

.profile-text p {
    margin: 12px 0;
    line-height: 1.9;
}

.sub {
    color: #66d9ff;
}

.links,
.sub-links {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.sub-links {
    margin-top: 18px;
}

.links a,
.sub-links a,
.event-button {
    text-decoration: none;
    color: #ffffff;
    background: rgba(17, 17, 17, 0.78);
    border: 1px solid rgba(102, 217, 255, 0.75);
    border-radius: 16px;
    padding: 14px 18px;
    text-align: center;
    transition: 0.25s;
    box-shadow: inset 0 0 14px rgba(102, 217, 255, 0.04);
}

.links a {
    font-size: 19px;
}

.sub-links a {
    font-size: 15px;
}

.links a:hover,
.sub-links a:hover,
.event-button:hover {
    background: #66d9ff;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(102, 217, 255, 0.48);
}

.marshmallow-text {
    text-align: center;
    margin-top: 24px;
    color: #d5d5d5;
    font-size: 14px;
    line-height: 1.8;
}

.marshmallow-text p {
    margin: 0;
}

/* 受付中依頼 */

.commission,
.notes {
    padding: 42px 28px;
    text-align: center;
}

.commission h2,
.notes h2,
.gallery h1,
.event-area h1 {
    margin: 0 0 26px;
    font-size: 30px;
    letter-spacing: 0.08em;
    text-shadow: 0 0 14px rgba(102, 217, 255, 0.28);
}

.commission-card {
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(102, 217, 255, 0.75);
    background: rgba(17, 17, 17, 0.72);
    font-size: 21px;
    box-shadow: 0 0 18px rgba(102, 217, 255, 0.12);
}

/* ご依頼について */

.notes {
    line-height: 2;
}

.notes p {
    max-width: 560px;
    margin: 20px auto;
    color: #eeeeee;
    line-height: 2;
}

.mail a {
    color: #66d9ff;
    text-decoration: none;
    word-break: break-all;
}

.mail a:hover {
    text-decoration: underline;
}

/* Gallery */

.gallery {
    padding: 42px 28px 52px;
    text-align: center;
}

.gallery-lead {
    color: #d6d6d6;
    line-height: 2;
    margin: 0 0 24px;
}

.gallery-note {
    margin-bottom: 38px;
    color: #66d9ff;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.gallery-category {
    margin: 50px 0 22px;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    color: #ffffff;
}

.gallery-category::before,
.gallery-category::after {
    content: "✦";
    color: #66d9ff;
    margin: 0 10px;
    font-size: 0.9em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 220px));
    justify-content: center;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-item {
    background: rgba(17, 17, 17, 0.74);
    border: 1px solid rgba(102, 217, 255, 0.6);
    border-radius: 22px;
    padding: 16px;
    transition: 0.25s;
    box-shadow: 0 0 18px rgba(102, 217, 255, 0.08);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 26px rgba(102, 217, 255, 0.22);
}

.gallery-link {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
}

.gallery-thumb {
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.04);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    background: transparent;
}

.gallery-popup-button {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.gallery-link img {
    transition: 0.25s;
    cursor: pointer;
}

.gallery-link:hover img {
    transform: scale(1.03);
    filter: brightness(1.08);
}

.gallery-item p {
    margin: 14px 0 2px;
    font-size: 14px;
    line-height: 1.7;
    color: #dddddd;
}

.character-grid {
    grid-template-columns: minmax(0, 240px);
}

.character-thumb {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
}

.character-thumb img {
    width: 170px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}

/* Event */

.event-area {
    padding: 42px 28px 52px;
    text-align: center;
}

.event-card {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    background: rgba(245, 250, 252, 0.96);
    color: #333333;
    border-radius: 26px;
    padding: 58px 32px 42px;
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(102, 217, 255, 0.18);
}

.event-label {
    position: absolute;
    top: 22px;
    left: 28px;
    display: inline-block;
    margin: 0;
    padding: 6px 16px;
    border-radius: 999px;
    background-color: #66d9ff;
    color: #111111;
    font-size: 13px;
    font-weight: bold;
}

.event-card h2 {
    font-size: 24px;
    margin: 0 0 24px;
    color: #222222;
}

.event-card p {
    line-height: 1.9;
    margin: 0 0 18px;
    color: #444444;
}

.event-notes {
    display: inline-block;
    text-align: left;
    margin: 26px auto 32px;
    padding-left: 1.2em;
    line-height: 1.9;
    font-size: 14px;
    color: #444444;
}

.event-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 14px 34px;
    border-radius: 999px;
    background-color: #111111;
    color: #ffffff;
    font-weight: bold;
}

/* モーダル */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-card {
    width: min(100%, 340px);
    padding: 30px 24px;
    text-align: center;
    background: rgba(31, 31, 31, 0.95);
    border: 1px solid rgba(102, 217, 255, 0.75);
    border-radius: 24px;
    box-shadow: 0 0 30px rgba(102, 217, 255, 0.28);
}

.modal-title {
    margin: 0 0 12px;
    font-size: 22px;
    color: #66d9ff;
}

.modal-text {
    margin: 0 0 24px;
    color: #eeeeee;
    line-height: 1.8;
}

.modal-close {
    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid rgba(102, 217, 255, 0.8);
    background: #66d9ff;
    color: #111111;
    cursor: pointer;
    font-weight: bold;
}

/* ローディング */

#loading {
    position: fixed;
    inset: 0;
    background-color: #111111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    z-index: 9999;
    transition: opacity 0.8s;
}

#loading p {
    color: #ffffff;
    letter-spacing: 0.12em;
}

.spinner {
    width: 58px;
    height: 58px;
    border: 4px solid #333333;
    border-top: 4px solid #66d9ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 18px rgba(102, 217, 255, 0.35);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.pc-break {
    display: block;
}

/* スマホ */

@media screen and (max-width: 700px) {

    body {
        padding: 18px 14px;
    }

    #content {
        max-width: 100%;
    }

    .header-image {
        border-radius: 20px;
    }

    .nav-menu {
        gap: 10px;
        margin-bottom: 38px;
    }

    .nav-menu a {
        padding: 9px 20px;
        font-size: 14px;
    }

    main {
        gap: 36px;
    }

    .hero-area {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .profile-card,
    .link-card,
    .section-box {
        border-radius: 22px;
        padding: 30px 20px;
    }

    .icon {
        width: 132px;
    }

    .profile-text h1 {
        font-size: 30px;
    }

    .profile-text p {
        font-size: 15px;
    }

    .links,
    .sub-links {
        max-width: 320px;
    }

    .commission h2,
    .notes h2,
    .gallery h1,
    .event-area h1 {
        font-size: 24px;
    }

    .commission-card {
        font-size: 18px;
        padding: 18px;
    }

    .notes p {
        max-width: 320px;
        font-size: 14px;
    }

    .gallery-lead {
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 24px;
    }

    .character-grid {
        max-width: 260px;
    }

    .character-thumb img {
        width: 130px;
    }

    .event-card {
        padding: 56px 20px 36px;
    }

    .event-label {
        left: 20px;
    }

    .event-card h2 {
        font-size: 21px;
    }

    .event-card p,
    .event-notes {
        font-size: 14px;
    }

    .event-button {
        padding: 13px 28px;
    }

    .pc-break {
        display: none;
    }

}