:root {
    /* カラー定数定義 */
    --base-bg-color: #F5F5F2;
    --base-text-color: #2E2E2E;

    /* メニュー展開時の色 */
    --nav-menu-bg-color: rgba(0, 0, 0, 0.95);
    --nav-menu-text-color: #F5F5F2;

    /* ヘッダーとフッターの透明度 */
    --header-opacity: 1.0;
    --footer-opacity: 0.8;
    --header-icon-opacity: 0.6;
    --footer-icon-opacity: 0.8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--base-bg-color);
    color: var(--base-text-color);
    font-family: 'Montserrat', 'Noto Serif JP', serif;
    overflow-x: hidden;
    line-height: 2.2;
    width: 100%;
    position: relative;
    /* 文字列および画像の選択を禁止 */
    user-select: none;
    /* Safari用 */
    -webkit-user-select: none;
    /* Firefox用 */
    -moz-user-select: none;
    /* IE用 */
    -ms-user-select: none;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--base-bg-color);
    z-index: 9999;
    transition: opacity 1s ease;
    pointer-events: none;
}

body.is-loaded #loader {
    opacity: 0;
}

body.is-loading {
    overflow: hidden;
}



#windCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.title-wrapper {
    z-index: 10;
    position: relative;
    pointer-events: none;
}

.title-line {
    width: 200px;
    height: 1px;
    background-color: var(--base-text-color);
    margin: 4px auto 25px auto;
    opacity: 0.3;
}



.navbar {
    background-color: transparent;
    color: var(--base-text-color);
    opacity: var(--header-opacity);
    position: fixed;
    top: 0;
    width: 100%;
    padding: 35px 50px;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar svg {
    fill: currentColor;
    opacity: var(--header-icon-opacity);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    color: inherit;
}

.nav-logo {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.4em;
}


.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 25px;
    height: 16px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--base-text-color);
    height: 1px;
    width: 100%;
    position: absolute;
    transition: 0.3s ease;
    transform-origin: center;
    /* 描画のブレを抑えるための追加 */
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
}

.nav-toggle-label span {
    top: 50%;
    margin-top: -0.5px;
    /* 1pxの線の半分を上げて真ん中に配置 */
}

.nav-toggle-label span::before {
    content: '';
    top: -8px;
    /* 真ん中の線から上に8px */
}

.nav-toggle-label span::after {
    content: '';
    top: 8px;
    /* 真ん中の線から下に8px */
}

.nav-links a {
    color: var(--base-text-color);
    text-decoration: none;
    margin-left: 45px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    font-weight: bold;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--base-text-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    /* ホバー時にアンダーバーを伸ばす */
    width: 100%;
}

/* ナビゲーション内のQRコード（ハンバーガーメニュー展開時のみ表示） */
.nav-qr {
    display: none;
    text-align: center;
    margin-top: 20px;
    width: 100%;
}
.nav-qr img {
    width: 60px;
    height: auto;
}





#music-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    vertical-align: middle;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 50px;
    z-index: 1000;
    pointer-events: none;
    background-color: transparent;
    color: var(--base-text-color);
    opacity: var(--footer-opacity);
}

.footer svg {
    fill: currentColor;
    opacity: var(--footer-icon-opacity);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-left .copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bar {
    width: 1px;
    height: 28px;
    background-color: currentColor;
}

.footer-icon {
    height: 40px;
    display: flex;
    align-items: center;
}

.camera-svg {
    width: 24px;
    height: 24px;
}

.footer-content {
    color: var(--base-text-color);
    opacity: 0.8;
    height: 40px;
    display: flex;
    align-items: center;
}

.footer-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-align: left;
    color: inherit;
    margin: 0;
}

.js-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: 1.8s ease;
}

.js-fade-up.is-show {
    opacity: 1;
    transform: translateY(0);
}

.section {
    width: 100%;
    min-height: 100vh;
    background-color: var(--base-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.6rem;
    letter-spacing: 0.5em;
    /* margin-top: 50px; */
    margin-bottom: 30px;
    color: inherit;
    text-decoration: none;
    display: block;
    text-align: center;
    line-height: 1.4;
}

.section-sub-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    margin-bottom: 0;
    color: inherit;
    text-decoration: none;
}

.section-sub-container {
    max-width: 700px;
    margin: 0 0 70px 0;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    flex: 1;
}

.section-sub-body {
    max-width: 700px;
    font-size: 0.9rem;
    line-height: 2.2;
    letter-spacing: 0.05em;
    color: var(--base-text-color);
    display: inline-block;
}

.page-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 50px;
    box-sizing: border-box;
}

.page-section-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0;
}

.music-icon:hover svg {
    opacity: 1;
}


#windCanvas {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    /* 下の要素をクリックできるように */
    pointer-events: none;
}

/* アラート内の強調（赤字）用クラス */
.alert-caution {
    color: #e63946;
    font-weight: bold;
}

/* アラート内の参考情報 2サイズ小さいテキスト */
.alert-sub-text {
    /* 標準が0.9rem〜1rem程度の場合、0.75rem前後が「2サイズ下」の目安です */
    font-size: 0.75rem;
    display: block;
    text-align: left;
    padding: 0 20px;
    line-height: 1.4;
    margin: 0 auto 10px auto;
    max-width: 500px;
    width: 100%;
    white-space: normal;
}

.go-to {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--base-text-color);
    text-decoration: none;
    transition: 0.3s;
}

.go-to:hover {
    font-weight: bold;
}


/* 戻るリンクのスタイル */
.back-link-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}


/* モバイル表示時の微調整 */
@media (max-width: 768px) {
    .music-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 900px) {
    .nav-toggle-label {
        display: flex;
        align-items: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--nav-menu-bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 1000;
    }

    .nav-toggle:checked~.nav-links {
        right: 0;
    }

    /* メニュー展開時、ナビゲーション内の全アイコンを白・不透明に固定 */
    .navbar:has(.nav-toggle:checked) svg {
        fill: var(--nav-menu-text-color) !important;
        opacity: 1 !important;
    }

    .nav-toggle:checked+.nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked+.nav-toggle-label span::before,
    .nav-toggle:checked+.nav-toggle-label span::after {
        background: var(--nav-menu-text-color);
    }

    .nav-toggle:checked+.nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
        width: 100%;
    }

    .nav-toggle:checked+.nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
        width: 100%;
    }

    .nav-links a {
        margin: 20px 0;
        font-size: 1.2rem;
        margin-left: 0;
        color: var(--nav-menu-text-color);
    }

    .section-title a {
        font-size: 1.3rem;
    }

    .section-sub-title {
        font-size: 1.1rem;
    }

    .page-inner {
        padding: 30px 30px;
    }

    .footer {
        padding: 25px 30px !important;
    }

    .footer-content p {
        font-size: 0.45rem;
    }

    .footer-right {
        flex-shrink: 0;
        gap: 6px;
    }

    .footer-bar {
        height: 24px;
    }

    .camera-svg {
        width: 20px;
        height: 20px;
        display: inline-block;
        vertical-align: middle;
    }

    .footer-container {
        /* 横並びを維持 */
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
    }

    .footer-left {
        flex: 1;
        min-width: 0;
    }

    .footer-left .copyright {
        font-size: 0.65rem;
        line-height: 1.4;
        white-space: normal;
        text-align: left;
    }

    .footer-right {
        /* 右側の名前やアイコンが潰れないように固定 */
        flex-shrink: 0;
    }

    /* ハンバーガーメニュー展開時のみQRコードを表示するルールをここに移動 */
    #nav-toggle:checked ~ .nav-links .nav-qr {
        display: block;
    }

}
