/* --- 変数定義 --- */
:root {
    --primary: #006584;
    --sub-text: #EA608B;
    --bg-color: #F0F9FC;
    --font-base: 'Zen Maru Gothic', sans-serif;
}

/* --- リセット & 基本設定 --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-color);
    color: var(--primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* --- ハンバーガーメニューボタン --- */
.hamburger-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .hamburger-btn {
        width: 48px;
        height: 48px;
        top: 16px;
        right: 16px;
        gap: 5px;
    }
}

.hamburger-btn:hover {
    transform: scale(1.1);
    background-color: #007ba1;
}

.line {
    width: 32px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

@media (max-width: 768px) {
    .line {
        width: 22px;
    }
}

/* --- 全画面メニューオーバーレイ --- */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.threads-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: none;
}

.layer-v {
    z-index: -1;
    flex-direction: row;
}

.thread-v {
    flex: 1;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
}

.layer-h {
    z-index: -1;
    flex-direction: column;
}

.thread-h {
    flex: 1;
    width: 100%;
    background-color: var(--sub-text);
    transform: scaleX(0);
    transform-origin: left;
}

.layer-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-color: var(--bg-color);
    opacity: 0;
}

.menu-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nav-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #006584;
    margin-bottom: 3rem;
    display: block;
    opacity: 0;
}

.nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.nav-links li {
    margin: 0;
    overflow: visible;
}

.nav-link {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    opacity: 0;
}

.nav-link:hover {
    color: var(--sub-text);
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--sub-text);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

@media (max-width: 768px) {
    .nav-link {
        font-size: 1.2rem;
    }

    .nav-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .nav-links ul {
        gap: 2rem;
    }
}

.nav-link:hover {
    color: var(--sub-text);
    transform: scale(1.1);
    transition: transform 0.2s, color 0.2s;
}

/* --- ヒーローセクション --- */
.hero-section {
    position: relative;
    height: 450vh;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-section {
        height: 250vh;
    }
}

.hero-sticky-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title {
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1;

}

@media (max-width: 768px) {
    .title {
        text-align: center;
        font-size: 2rem;
    }
}

.profile-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .profile-group {
        gap: 0.5rem;
    }
}

.profile-circle {
    width: 220px;
    height: 220px;
}

@media (max-width: 768px) {
    .profile-circle {
        width: 200px;
        height: 200px;
    }
}

.spin-slow {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: rotate-frame 20s linear infinite;
}

@keyframes rotate-frame {
    to {
        transform: rotate(360deg);
    }
}

.profile-info {
    text-align: left;
}

.field {
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .profile-info {
        width: 90px;
        height: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .field {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .name {
        font-size: 1.4rem;
    }
}


.hero-initial-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 0;
    transform: translateY(-5vh);
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        width: 100vw;
        height: 100vw;
        top: calc(50vh - 50vw);
        left: 0;
    }
}

.hero-image-inner {
    width: 100%;
    height: 100%;
    transform-origin: center;
}

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

.hero-final-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding-bottom: 2rem;
    padding-top: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
}

@media (max-width: 768px) {
    .hero-final-text {
        padding-bottom: 2rem;
    }
}

/* --- コンテンツエリア --- */
.content-body {
    position: relative;
    z-index: 20;
    background-color: var(--bg-color);
    padding-bottom: 150px;
    margin-top: -50px;
    padding-top: 50px;
}

.image-container {
    width: 65%;
    height: 600px;
    overflow: hidden;
    position: relative;
    margin-bottom: 5rem;
}

@media (max-width: 1024px) {
    .image-container {
        width: 90%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.align-right {
    margin-left: auto;
    border-radius: 20px 0 0 20px;
}

.align-left {
    margin-right: auto;
    border-radius: 0 20px 20px 0;
}

.parallax-img-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    top: -10%;
}

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

/* Q&A セクション */
.qa-container {
    max-width: 700px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
    text-align: left;
}

.qa-item {
    margin-bottom: 4rem;
}

.qa-item:last-child {
    margin-bottom: 0;
}

.qa-q {
    color: var(--sub-text);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;

    line-height: 1.6;
}

@media (max-width: 768px) {
    .qa-q {
        font-size: 1.1rem;
    }
}

.qa-a {
    font-size: 1.1rem;
    line-height: 2.4;
    text-align: justify;
}

@media (max-width: 768px) {
    .qa-a {
        font-size: 1rem;
    }
}

.relative-wrapper {
    position: relative;
}

.decoration-circle {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 160px;
    height: 160px;
    border: 5px solid var(--primary);
    border-radius: 50%;
    border-color: var(--primary) transparent transparent transparent;
    transform: rotate(45deg);
    opacity: 0.3;
    z-index: -1;
}

/* フッター */
.footer {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-color) 0%, #ffffff 50%, #ffffff 100%);
    position: relative;
    z-index: 1;
}

.footer-content {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    width: 320px;
    margin: 0 auto 3.5rem;
}

@media (max-width: 768px) {
    .footer-logo {
        width: 240px;
    }
}

.sponsors {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: fit-content;
    margin: 0 auto 3.5rem;
}

.sponsors li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.label {
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sponsors .name {
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-label {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

address {
    font-style: normal;
    line-height: 2;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 3.5rem;
}

.copyright {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.8;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(5px);
}

/* --- マスク画像とフレームの重ね合わせ --- */
.gallery-card__image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.masked-image {
    position: absolute;
    top: 48%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 73%;
    height: 75%;
    object-fit: cover;
    -webkit-mask-image: url("img/main mask.svg");
    mask-image: url("img/main mask.svg");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    z-index: 1;
}

.frame-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 91%;
    height: 91%;
    pointer-events: none;
    z-index: 2;
}

/* --- 背景装飾レイヤー --- */
.bg-decoration-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-decoration-layer img {
    width: 100%;
    height: auto;
    opacity: 0.6;
}

/* Article 11 Long Title Adjustment */
@media (min-width: 769px) {
    .article11-title {
        font-size: 2.5rem;
        line-height: 1.4;
    }
}

@media (min-width: 1024px) {
    .article11-title {
        font-size: 3.5rem;
    }
}