@charset "UTF-8";

/* カスタムプロパティ */
:root {
    --text-color: #333;
    --profile-line-color: red;

    --rainbow-color-red: #FF9AA2;
    --rainbow-color-orange: #FFB347;
    --rainbow-color-yellow: #FFF176;
    --rainbow-color-lightgreen: #B2FF59;
    --rainbow-color-lightblue: #81D4FA;
    --rainbow-color-blue: #AECBFA;
    --rainbow-color-purple: #B39DDB;
}

html {
    font-size: 62.5%;

    /* ページ内リンクのスクロールをなめらかにする */
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    /* = Regular */

    background-color: #fff;

    /* 固定するヘッダー領域分の padding */
    padding-top: 88px;
}

html,
body {
    overflow-x: hidden;
    /* 横スクロールを完全に無効化 */
    max-width: 100vw;
    width: 100%;
}

a {
    /* 親要素から文字色を継承する */
    color: inherit;

    /* 下線を消す */
    text-decoration: none;
}

li {
    list-style: none;
}

.category {
    padding-top: 80px;
}

.wrapper {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 4%;
}

.flex {
    display: flex;
}

.center {
    text-align: center;
}

h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 7.2rem;
    font-weight: 400;
    /* = Regular */
}

.container {
    display: flex;
    flex-wrap: wrap;

    .column {
        width: 100%;

        @media (min-width: 960px) {
            width: 50%;
        }
    }
}

.more-button-area {
    padding-top: 25px;

    .more-button {
        width: 200px;

        transition: transform .5s,
            filter .5s;

        &:hover {
            /* 拡大 */
            transform: scale(1.2);

            /* 白っぽく光る演出 */
            filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
        }
    }

}

.category-title-en-left,
.category-title-jp-left {
    text-align: left;
}

.category-title-en-right,
.category-title-jp-right {
    text-align: right;
}


/******************************
 * ローディング画面
 ******************************/
.loading {
    /* 初期状態では非表示 */
    display: none;

    /* activeクラスが付与されたときのスタイル */
    &.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;

        color: #fff;
        background: #000;

        display: grid;

        /* コンテンツを画面中央に配置 */
        place-items: center;

        overflow: hidden;

        /* クリックイベントを無効化 */
        pointer-events: none;

        /* 3.5秒後に1.5秒かけてフェードアウトするアニメーション */
        animation: loading 1.5s 3.5s linear forwards;

        /* フェード効果の設定 */
        transition: opacity 1s ease;
        opacity: 1;
    }
}

/* ローディングバーのコンテナ */
#loading-bar-container {
    width: 300px;
    height: 20px;
    background: #444;

    /* 角を丸く */
    border-radius: 10px;

    /* はみ出した部分を非表示 */
    overflow: hidden;

    margin-top: 20px;
}

/* ローディングバー本体 */
#loading-bar {
    height: 100%;

    /* 初期幅は0% */
    width: 0%;

    background: #09f;

    /* 左側のみ角を丸く */
    border-radius: 10px 0 0 10px;

    /* 幅の変化をなめらかに */
    transition: width 0.3s ease;
}


/* * * * * * * * * * * * * * *
 * ヘッダー
 * * * * * * * * * * * * * * */
header {
    height: 88px;
    font-family: 'Josefin Sans', sans-serif;

    padding-block: 8px;
    padding-inline: 24px;

    background-color: #333;

    /* ヘッダー固定 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    /* フッター手前でfixedを解除するクラス */
    &.header-scrollable {
        /* JavaScriptで動的に計算されたtop値が設定される */
        position: absolute;
    }

    .flex {
        justify-content: space-between;

        .logo {
            height: 72px;
            width: auto;

            transition: transform .5s, filter .5s;

            &:hover {
                /* 拡大 */
                transform: scale(1.1);

                /* 白っぽく光る演出 */
                filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
            }
        }

        .header-nav {
            font-size: 1.6rem;
            line-height: 1;
            color: #fff;

            margin-block: auto;

            gap: 16px;

            /* 視覚的な調整：2px上に移動して調整 */
            transform: translateY(-2px);

            li {
                transition: transform .5s, filter .5s;

                &:hover {
                    /* 拡大 */
                    transform: scale(1.2);

                    /* 白っぽく光る演出 */
                    filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
                }
            }
        }

        /******************************
         * ナビゲーションメニュー
         ******************************/
        .nav-menu {
            display: none;

            /* レスポンシブ対応：960px以上では表示 */
            @media (min-width: 960px) {
                display: flex;
            }

            gap: 20px;

            .header-nav {
                display: flex;

                li {
                    transition: transform .5s, filter .5s;

                    &:hover {
                        /* 拡大 */
                        transform: scale(1.2);

                        /* 白っぽく光る演出 */
                        filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
                    }

                    a {
                        font-size: 1.6rem;
                        color: #FFF;
                    }
                }
            }
        }

        /******************************
         * ハンバーガーメニュー全体
         ******************************/
        .ham-menu {
            /* グリッドレイアウト */
            display: grid;

            /* レスポンシブ対応：960px以上では非表示 */
            @media (min-width: 960px) {
                display: none;
            }

            /* コンテンツを中央配置 */
            place-items: center;

            /* 画面右側に固定配置 */
            position: fixed;

            /* 画面上端から */
            top: 0;
            /* 画面右端から */
            right: 0;

            /* 画面の高さいっぱい */
            height: 100vh;
            /* 幅400px */
            width: 400px;

            /* レスポンシブ対応：959px以下では全画面幅 */
            @media (max-width: 959px) {
                width: 100%;
            }

            background-color: #005;

            /* 初期状態では画面外（右側）に隠す */
            transform: translateX(100%);
            /* スライドアニメーション */
            transition: transform 0.5s ease;
            /* 非表示時はクリック無効 */
            pointer-events: none;

            /* メニューカテゴリのスタイル */
            .nav-category {
                /* リストマーカーを非表示 */
                list-style: none;
                /* グリッドレイアウト */
                display: grid;


                /* フェードイン/アウトの設定 */
                transition: opacity 0.5s ease;
                /* 非表示時は遅延なし */
                transition-delay: 0s;
                /* 初期状態では透明 */
                opacity: 0;

                /* メニュー項目のスタイル */
                li {
                    padding-top: 10px;
                    margin-top: 10px;

                    /* メインリンクのスタイル */
                    a {
                        /* 太字 */
                        font-weight: bold;
                        /* やや大きめのフォント */
                        font-size: 1.1em;
                    }

                    /* ホバー時の効果 */
                    a:hover {
                        /* 赤色に変更 */
                        color: red;
                        /* 透明度を下げる */
                        opacity: 0.8;
                    }
                }

                /* 最後の項目には下線を付けない */
                li:last-child {
                    border-bottom: none;
                }

                /* サブカテゴリのスタイル */
                .sub-category {
                    li {
                        /* インデント */
                        padding-left: 1.5em;

                        /* サブリンクのスタイル */
                        a {
                            /* 通常の太さ */
                            font-weight: normal;
                            /* やや小さめのフォント */
                            font-size: 0.95em;
                        }

                        /* ホバー時の効果 */
                        a:hover {
                            opacity: 0.8;
                        }
                    }
                }
            }

            /* 全てのリンクの基本スタイル */
            a {
                color: white;

                /* 下線なし */
                text-decoration: none;
            }

            /* メニューが開いている時のスタイル */
            &.nav-open {
                /* 画面内にスライドイン */
                transform: translateX(0);

                /* メニュー項目をフェードイン */
                ul {
                    opacity: 1;
                    /* 0.3秒遅延してフェード開始 */
                    transition-delay: 0.3s;
                    /* クリック有効化 */
                    pointer-events: auto;
                }
            }
        }

        /******************************
         * ハンバーガーボタン
         ******************************/
        .ham-btn {
            position: fixed;

            /* レスポンシブ対応：960px以上では非表示 */
            @media (min-width: 960px) {
                display: none;
            }

            /* 上から 30px の位置 */
            top: 35px;
            /* 右から 30px の位置 */
            right: 30px;

            width: 30px;
            height: 22px;

            /* 透明背景 */
            background-color: transparent;
            /* ボーダーなし */
            border: none;
            /* アウトラインなし（iOS対策） */
            outline: 0;

            /* ハンバーガーの線（3本） */
            span {
                /* ボタン幅いっぱい = 30px */
                width: 100%;
                /* 線の幅は 2px */
                height: 2px;

                background: #fff;
                display: block;
                position: absolute;
                left: 0;

                /* 0.8秒のアニメーション */
                transition: all .8s;

                /* 1本目の線：上端 */
                &:nth-child(1) {
                    top: 0;
                }

                /* 2本目の線：中央 */
                &:nth-child(2) {
                    top: 8px;
                }

                /* 3本目の線：下端 */
                &:nth-child(3) {
                    top: 16px;
                }
            }

            /* メニューを開く際の×マークのスタイル */
            &.nav-open {
                span {
                    /* 白色に変更 */
                    background: #fff;

                    /* 1本目：右下がりの斜線 */
                    &:nth-child(1) {
                        /* 中央に移動 */
                        translate: 0 8px;
                        /* 45度回転 */
                        rotate: 45deg;
                    }

                    /* 2本目：非表示 */
                    &:nth-child(2) {
                        opacity: 0;
                    }

                    /* 3本目：右上がりの斜線 */
                    &:nth-child(3) {
                        /* 中央に移動 */
                        translate: 0 -8px;
                        /* -45度回転 */
                        rotate: -45deg;
                    }
                }
            }
        }
    }
}



/* * * * * * * * * * * * * * *
 * 【メインビジュアル】
 * * * * * * * * * * * * * * */
#top {
    height: 800px;

    padding: 40px 5vw 0 25vw;

    /* 初期背景：#333 */
    background-color: #333;

    /* 疑似要素の基準点にする */
    position: relative;

    /* 画像のはみ出し部分をトリミング */
    overflow: hidden;

    .main-visual-img {
        height: 140vh;
        width: auto;

        top: -100px;
        left: -200px;

        /* レスポンシブ対応：959px以下では60% */
        @media (max-width: 959px) {
            height: 100vh;
            left: -400px;
        }

        /* 初期状態：左に隠して透明 */
        transform: translateX(-100px);
        opacity: 0;

        transition: transform 1.5s ease-out,
        opacity 1.5s ease-out;

        /* 疑似要素より前面に配置 */
        position: relative;
        z-index: 1;

        /* 画像に下部ぼかしを適用 */
        mask: linear-gradient(to bottom,
            black 0%, black 85%, transparent 100%);
        -webkit-mask: linear-gradient(to bottom,
            black 0%, black 85%, transparent 100%);

        &.slide-in {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

/* 背景画像を疑似要素で制御 */
#top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url(../img/main-visual-back.webp);
    background-size: cover;

    /* 初期状態では背景画像を非表示にする */
    opacity: 0;
    transition: opacity 1.0s ease-in-out;

    /* 画像より後ろに配置 */
    z-index: 0;
}

/* 背景画像フェードインクラス */
#top.bg-fade-in::before {
    opacity: 1;
}

/* * * * * * * * * * * * * * *
 * 【プロフィール】セクション
 * * * * * * * * * * * * * * */
#profile-section {
    padding-top: 120px;

    position: relative;
    /* 疑似要素(::before)の基準位置として設定。子要素の絶対位置の起点になる */

    .profile-name {
        font-size: 3.5rem;
        margin-top: 50px;
    }

    .profile-name-eng {
        font-size: 2rem;
        margin-top: 20px;
    }

    .profile-text-area {


        .profile-text {
            font-size: 1.6rem;

            margin-top: 20px;

            line-height: 3rem;
        }

        .profile-list {
            width: 100%;
            margin-top: 20px;
            margin-inline: auto;
            padding: 0 2rem;
            border-spacing: 0;

            th,
            td {
                border-bottom: 1px solid var(--profile-line-color);
            }

            th {
                text-align: left;
                font-weight: normal;
                padding: 1.5rem;
            }

            td {
                padding: 1.5rem 0;
            }

            /* 最後の項目には下線を付けない */
            li:last-child {
                border-bottom: none;
            }
        }
    }

    .profile-img {
        width: 90%;
        /* プロフィール画像の幅をビューポート幅の25%に設定（画面サイズに応じて可変） */
        height: auto;
        /* 画像の高さを幅に比例して自動調整（アスペクト比を維持） */

        /* レスポンシブ対応：959px以下では60% */
        @media (max-width: 959px) {
            margin: 0 auto;
            width: 80%;
            display: block;
        }
    }

    &::before {
        /* 疑似要素を表示するために必須（空の内容でも指定が必要） */
        content: '';
        /* 親要素(#profile)を基準とした絶対位置で配置 */
        position: absolute;

        /* 親要素の上端から 10vh 離れた位置に配置 */
        top: 11vh;
        /* 親要素の中央（50%の位置）に左端を配置 */
        left: 60%;

        transform: translateX(-50%);
        /* 要素自身の幅の50%分左に移動して完全に中央配置 */
        width: 90vw;
        /* 幅をビューポート幅（画面幅）の90%に設定 */
        height: 92%;
        /* 高さを親要素の90%に設定 */

        /*background-image: url(../img/background-profile-orange.webp);*/
        /* 背景画像を指定 */

        background-color: var(--rainbow-color-orange);
        opacity: 50%;

        background-size: cover;
        /* 画像を要素全体を覆うようにリサイズ（アスペクト比維持、はみ出し部分はトリミング） */
        background-position: center;
        /* 背景画像を中央に配置 */
        background-repeat: no-repeat;
        /* 背景画像の繰り返しを無効にする */
        z-index: -1;
        /* 重なり順序を-1に設定してテキストや画像の後ろに配置 */
    }
}


/* * * * * * * * * * * * * * *
 * 【活動内容】セクション
 * * * * * * * * * * * * * * */
#activity-section {

    position: relative;
    /* 疑似要素(::before)の基準位置として設定。子要素の絶対位置の起点になる */

    &::before {
        /* 疑似要素を表示するために必須（空の内容でも指定が必要） */
        content: '';
        /* 親要素(#profile)を基準とした絶対位置で配置 */
        position: absolute;

        /* 親要素の上端から 10vh 離れた位置に配置 */
        top: 11vh;
        /* 親要素の中央（50%の位置）に左端を配置 */
        left: 40%;

        /* 要素自身の幅の50%分左に移動して完全に中央配置 */
        transform: translateX(-50%);
        /* 幅をビューポート幅（画面幅）の90%に設定 */
        width: 90vw;
        /* 高さを親要素の90%に設定 */
        height: 92%;

        background-color: var(--rainbow-color-yellow);
        opacity: 50%;

        /* 背景画像を指定 */
        background-size: cover;
        /* 画像を要素全体を覆うようにリサイズ（アスペクト比維持、はみ出し部分はトリミング） */
        background-position: center;
        /* 背景画像を中央に配置 */
        background-repeat: no-repeat;
        /* 背景画像の繰り返しを無効にする */
        z-index: -1;
        /* 重なり順序を-1に設定してテキストや画像の後ろに配置 */
    }

    .activity-content {
        margin-bottom: 80px;

        h3 {
            font-size: 2.4rem;

            margin-block: 20px;
        }
    }
}

.activity-content,
.gallery-content {
    margin-bottom: 80px;

    h3 {
        font-size: 2.4rem;

        margin-block: 20px;
    }

    img {
        max-height: 640px;
        max-width: 640px;
    }
}

/* * * * * * * * * * * * * * *
 * 【制作物】セクション
 * * * * * * * * * * * * * * */
#gallery-section {

    position: relative;
    /* 疑似要素(::before)の基準位置として設定。子要素の絶対位置の起点になる */

    &::before {
        /* 疑似要素を表示するために必須（空の内容でも指定が必要） */
        content: '';
        /* 親要素(#profile)を基準とした絶対位置で配置 */
        position: absolute;

        /* 親要素の上端から 10vh 離れた位置に配置 */
        top: 11vh;
        /* 親要素の中央（50%の位置）に左端を配置 */
        left: 60%;

        /* 要素自身の幅の50%分左に移動して完全に中央配置 */
        transform: translateX(-50%);
        /* 幅をビューポート幅（画面幅）の90%に設定 */
        width: 90vw;
        /* 高さを親要素の90%に設定 */
        height: 96%;

        background-color: var(--rainbow-color-lightgreen);
        opacity: 50%;

        /* 背景画像を指定 */
        background-size: cover;
        /* 画像を要素全体を覆うようにリサイズ（アスペクト比維持、はみ出し部分はトリミング） */
        background-position: center;
        /* 背景画像を中央に配置 */
        background-repeat: no-repeat;
        /* 背景画像の繰り返しを無効にする */
        z-index: -1;
        /* 重なり順序を-1に設定してテキストや画像の後ろに配置 */
    }
}


/* * * * * * * * * * * * * * *
 * 【リンク】セクション
 * * * * * * * * * * * * * * */
#link-section {

    position: relative;
    /* 疑似要素(::before)の基準位置として設定。子要素の絶対位置の起点になる */

    &::before {
        /* 疑似要素を表示するために必須（空の内容でも指定が必要） */
        content: '';
        /* 親要素(#profile)を基準とした絶対位置で配置 */
        position: absolute;

        /* 親要素の上端から 10vh 離れた位置に配置 */
        top: 11vh;
        /* 親要素の中央（50%の位置）に左端を配置 */
        left: 40%;

        /* 要素自身の幅の50%分左に移動して完全に中央配置 */
        transform: translateX(-50%);
        /* 幅をビューポート幅（画面幅）の90%に設定 */
        width: 90vw;
        /* 高さを親要素の90%に設定 */
        height: 92%;

        background-color: var(--rainbow-color-lightblue);
        opacity: 50%;

        /* 背景画像を指定 */
        background-size: cover;
        /* 画像を要素全体を覆うようにリサイズ（アスペクト比維持、はみ出し部分はトリミング） */
        background-position: center;
        /* 背景画像を中央に配置 */
        background-repeat: no-repeat;
        /* 背景画像の繰り返しを無効にする */
        z-index: -1;
        /* 重なり順序を-1に設定してテキストや画像の後ろに配置 */
    }


    /* SNSリンク一覧 */
    .sns-link-list {
        list-style: none;
        padding: 0;
        margin: 40px 0 0;
        display: grid;
        gap: 24px;
    }

    /* SNSリンクカード */
    .sns-link-item {
        width: 100%;
    }

    .sns-link-card {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 20px;
        align-items: center;
        padding: 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        text-decoration: none;
        color: inherit;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .sns-link-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    /* SNSロゴ */
    .sns-logo-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 100px;
        background: #f8f9fa;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .sns-logo {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }

    /* SNS情報 */
    .sns-info {
        text-align: left;
    }

    .sns-title {
        font-size: 2.4rem;
        font-weight: bold;
        margin: 0 0 8px;
        color: #333;
    }

    .sns-description {
        font-size: 1.6rem;
        line-height: 1.6;
        color: #666;
        margin: 0;
    }

    /* スマホ版（768px以下） */
    @media (max-width: 768px) {
        .sns-link-card {
            grid-template-columns: 1fr;
            text-align: center;
            padding: 24px 16px;
            gap: 16px;
        }

        .sns-logo-wrapper {
            margin: 0 auto;
        }

        .sns-info {
            text-align: center;
        }

        .sns-title {
            font-size: 2.0rem;
        }
    }

    /* タブレット版（769px〜1024px）でも2カラム維持 */
    @media (min-width: 769px) and (max-width: 1024px) {
        .sns-link-card {
            grid-template-columns: 90px 1fr;
            gap: 16px;
        }

        .sns-logo-wrapper {
            width: 90px;
            height: 90px;
        }

        .sns-logo {
            width: 55px;
            height: 55px;
        }

        .sns-title {
            font-size: 1.4rem;
        }
    }
}


/* * * * * * * * * * * * * * *
 * フッター
 * * * * * * * * * * * * * * */
footer {
    margin-top: 100px;
    padding-bottom: 20px;

    background-color: #333;

    text-align: center;

    .logo {
        margin-top: 20px;

        height: 120px;
        width: auto;
    }

    #footer-sns {
        justify-content: center;
        margin-top: 20px;

        gap: 8px;

        /* PC版のみ表示 */
        @media (min-width: 961px) {
            display: flex;
        }

        /* スマホ版では非表示 */
        @media (max-width: 959px) {
            display: none;
        }

        a {
            height: 48px;
            width: auto;

            img {
                transition: transform .5s, filter .5s;

                &:hover {
                    /* 拡大 */
                    transform: scale(1.2);

                    /* 白っぽく光る演出 */
                    filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
                }
            }
        }
    }

    .footer-category {
        padding-block: 20px;
        gap: 50px;

        justify-content: center;

        /* PC版は横並び */
        @media (min-width: 961px) {
            display: flex;
        }

        /* スマホ版は縦並び */
        @media (max-width: 959px) {
            display: block;
            margin-top: 2.0rem;
            padding-block: 1.0rem;
        }

        li {
            font-family: 'Josefin Sans', sans-serif;

            transition: transform .5s, filter .5s;

            /* スマホ版のスタイル */
            @media (max-width: 959px) {
                padding: 12px 0;
                border-bottom: 1px solid #666;

                &:first-child {
                    border-top: 1px solid #666;
                }
            }

            &:hover {
                /* 拡大 */
                transform: scale(1.2);

                /* 白っぽく光る演出 */
                filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
            }
        }

        a {
            font-size: 1.6rem;
            color: #FFF;
        }

    }

    /* スマホ版SNSセクション */
    .footer-sns-mobile {

        /* PC版では非表示 */
        @media (min-width: 960px) {
            display: none;
        }

        /* スマホ版のみ表示 */
        @media (max-width: 959px) {
            display: block;
            margin-top: 2.0rem;
            padding: 2.0rem;
        }

        .sns-item {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 10px 0;
            gap: 12px;

            img {
                height: 32px;
                width: auto;
                transition: transform .5s, filter .5s;
            }

            span {
                color: #FFF;
                font-size: 1.6rem;
                text-align: left;
            }

            &:hover img {
                transform: scale(1.2);
                filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
            }
        }

        .sns-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 15px;
        }

        .sns-blog {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 10px 0;

            img {
                height: 32px;
                width: auto;
            }

            span {
                color: #FFF;
                font-size: 1.4rem;
            }
        }
    }

    p {
        color: #FFF;
        font-size: 1.6rem;
        margin-block: 1.6rem;

        /* スマホ版では少し小さく */
        @media (max-width: 959px) {
            font-size: 1.2rem;
            margin-block: 1.2rem;
        }
    }

    small {
        font-size: 1.6rem;
        color: #FFF;

        /* スマホ版では少し小さく */
        @media (max-width: 959px) {
            font-size: 1.2rem;
        }
    }
}


/* * * * * * * * * * * * * * *
 * 画面内に入るとフェードイン
 * * * * * * * * * * * * * * */
/* ターゲット用のclass */
.fade-l-to-r {
    transform: translateX(-100px);
    /* 表示位置を100px左にズラす */
}

.fade-r-to-l {
    transform: translateX(100px);
    /* 表示位置を100px右にズラす */
}

.fade-l-to-r,
.fade-r-to-l {
    opacity: 0;
    /* 透明度を設定 */
    transition: transform 1.5s, opacity 1.5s;
    /* 表示位置と透明度の解除を1.5秒で変化 */
}

/* 画面に表示された時に追加されるclass */
.fade-l-to-r.active,
.fade-r-to-l.active {
    transform: translateX(0);
    /* 表示位置を本来の場所に戻す */
    opacity: 1;
    /* 透明を解除 */
}


/* * * * * * * * * * * * * * *
 * 画像スライダー
 * * * * * * * * * * * * * * */
.slider {
    width: 100vw;
    margin: 0 auto;

    position: relative;
    left: 50%;
    transform: translateX(-50%);

    .slide-item {
        position: relative;
        display: block !important;

        img {
            width: 100%;

            display: block;
            margin: 0 auto;
            border-radius: 8px;

            transition: transform 0.5s ease, opacity 0.3s ease;
        }

        /* キャプションのスタイル */
        .slide-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: white;
            padding: 20px 15px 15px;
            border-radius: 0 0 8px 8px;

            /* アニメーション */
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.4s ease, transform 0.4s ease;

            h4 {
                font-size: 1.6rem;
                font-weight: 600;
                margin: 0 0 5px 0;
                line-height: 1.3;
            }

            p {
                font-size: 1.2rem;
                margin: 0;
                opacity: 0.9;

                text-align: center !important;
            }
        }
    }

    .slick-slide {
        height: auto !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        /* デフォルト（左右の画像）: 小さくして透明度を下げる */
        .slide-item {
            transform: scale(0.8);
            opacity: 0.6;
            transition: transform 0.5s ease, opacity 0.3s ease;
        }
    }

    /* 中央の画像（アクティブ）: 通常サイズで完全に不透明 */
    .slick-center .slide-item {
        transform: scale(1.0);
        opacity: 1.0;

        /* 中央の画像でキャプションを表示 */
        .slide-caption {
            opacity: 1.0;
            transform: translateY(0);
        }
    }

    .slick-arrow {
        z-index: 2 !important;
    }

    .slick-next {
        right: 0 !important;
    }

    .slick-prev {
        left: 0 !important;
    }

    .slick-slide {
        margin-right: 2vw !important;
        margin-left: 2vw !important;
    }

    .slick-track {
        display: flex !important;
        align-items: center !important;
    }

    /* ホバー効果（オプション）*/
    .slick-slide:not(.slick-center):hover .slide-item {
        transform: scale(0.9);
        /* ホバー時に少し大きく */
        opacity: 0.8;

        /* ホバー時にもキャプションを少し表示 */
        .slide-caption {
            opacity: 0.7;
            transform: translateY(0);
        }
    }
}


/* * * * * * * * * * * * * * *
 * YouTube Swiper
 * * * * * * * * * * * * * * */
/* コンテナのサイズ調整 */
.swiper-container {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
}

/* ページネイションをinlineで中央に */
.swiper-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
    display: inline-block;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
}



/* * * * * * * * * * * * * * *
 * 【活動内容】ページ
 * * * * * * * * * * * * * * */
#activity {

    position: relative;
    /* 疑似要素(::before)の基準位置として設定。子要素の絶対位置の起点になる */

    &::before {
        /* 疑似要素を表示するために必須（空の内容でも指定が必要） */
        content: '';
        /* 親要素(#profile)を基準とした絶対位置で配置 */
        position: absolute;

        /* 親要素の上端から 10vh 離れた位置に配置 */
        top: 11vh;
        /* 親要素の中央（50%の位置）に左端を配置 */
        left: 40%;

        /* 要素自身の幅の50%分左に移動して完全に中央配置 */
        transform: translateX(-50%);
        /* 幅をビューポート幅（画面幅）の90%に設定 */
        width: 90vw;
        /* 高さを親要素の90%に設定 */
        height: 92%;

        background-color: var(--rainbow-color-yellow);
        opacity: 50%;

        /* 背景画像を指定 */
        background-size: cover;
        /* 画像を要素全体を覆うようにリサイズ（アスペクト比維持、はみ出し部分はトリミング） */
        background-position: center;
        /* 背景画像を中央に配置 */
        background-repeat: no-repeat;
        /* 背景画像の繰り返しを無効にする */
        z-index: -1;
        /* 重なり順序を-1に設定してテキストや画像の後ろに配置 */
    }
}

/* * * * * * * * * * * * * * *
 * 【制作物】ページ
 * * * * * * * * * * * * * * */
#gallery {

    position: relative;
    /* 疑似要素(::before)の基準位置として設定。子要素の絶対位置の起点になる */

    &::before {
        /* 疑似要素を表示するために必須（空の内容でも指定が必要） */
        content: '';
        /* 親要素(#profile)を基準とした絶対位置で配置 */
        position: absolute;

        /* 親要素の上端から 10vh 離れた位置に配置 */
        top: 11vh;
        /* 親要素の中央（50%の位置）に左端を配置 */
        left: 60%;

        /* 要素自身の幅の50%分左に移動して完全に中央配置 */
        transform: translateX(-50%);
        /* 幅をビューポート幅（画面幅）の90%に設定 */
        width: 90vw;
        /* 高さを親要素の90%に設定 */
        height: 96%;

        background-color: var(--rainbow-color-lightgreen);
        opacity: 50%;

        /* 背景画像を指定 */
        background-size: cover;
        /* 画像を要素全体を覆うようにリサイズ（アスペクト比維持、はみ出し部分はトリミング） */
        background-position: center;
        /* 背景画像を中央に配置 */
        background-repeat: no-repeat;
        /* 背景画像の繰り返しを無効にする */
        z-index: -1;
        /* 重なり順序を-1に設定してテキストや画像の後ろに配置 */
    }
}


/* * * * * * * * * * * * * * *
 * グリッド
 * * * * * * * * * * * * * * */
.filter-controls {
    margin: 40px 0;
    padding: 20px;
    background-color: #F5F5F5;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;

    /* 項目を中央配置 */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;

    .control {
        margin-bottom: 15px;
        font-size: 1.4rem;
        font-weight: bold;
        display: inline-block;
        width: 240px;
        margin: 0;

        * {
            box-sizing: border-box;
        }

        .form-control {
            width: 100%;
            height: 40px;
            padding: 10px;
            margin-top: 5px;
            font-size: 1.4rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            background-color: #fff;
            color: #666;
            font-size: 16px;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;

            &:focus {
                outline: none;
                border-color: #09F;
                box-shadow: 0 0 5px rgba(0, 153, 255, 0.3);
            }
        }
    }
}

select.form-control {
    cursor: pointer;
    background-color: white;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .filter-controls {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-items: center;
    }
}

@media (min-width: 1024px) {
    .filter-controls {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid {
    position: relative;
    width: 100%;
    max-width: 100.0rem;
    margin: 0 auto;
    display: block;

    /* タブレット表示（641px〜959px）: 3カラム */
    @media (min-width: 641px) and (max-width: 959px) {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    /* スマホ表示（640px以下）: 2カラム */
    @media (max-width: 640px) {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .item {
        display: block;
        position: absolute;
        margin: 1.0rem;
        z-index: 1;

        /* タブレット表示（641px〜959px）: 3カラム */
        @media (min-width: 641px) and (max-width: 959px) {
            margin: 0.5rem;
        }

        /* スマホ表示（640px以下）: 2カラム */
        @media (max-width: 640px) {
            margin: 0.5rem;
        }

        .item-content {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;

            .custom-content {
                width: 100%;
                height: 100%;
                display: block;
                position: relative;
                background: #fff;
                color: #666;
                border: 2px solid;
                border-radius: 3px;

                .grid-item {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    object-position: center;
                    display: block;
                    transition: opacity 0.3s ease;
                }

                .grid-item[loading="lazy"] {
                    background: #f0f0f0;
                }
            }
        }

        /* 枠の大きさを指定 */
        &.item-movie,
        &.item-live,
        &.item-illust,
        &.item-3d-modeling,
        &.item-thumbnail,
        &.item-obs-overlay,
        &.item-logo,
        &.item-goods {
            width: 30.0rem;
            height: 30.0rem;
        }

        &.item-shorts {
            width: 14.0rem;
            height: 30.0rem;
        }

        /* 2倍サイズ（※PC表示のみ） */
        @media (min-width: 960px) {
            &.wh2-square {
                width: 62.0rem;
                height: 62.0rem;
            }

            &.wh2-1080x1920 {
                width: 30.0rem;
                height: 61.0rem;
            }
        }

        /* タブレット表示（641px〜959px）: 3カラム */
        @media (min-width: 641px) and (max-width: 959px) {

            &.item-movie,
            &.item-live,
            &.item-illust,
            &.item-3d-modeling,
            &.item-thumbnail,
            &.item-obs-overlay,
            &.item-logo,
            &.item-goods,
            &.item-shorts {
                width: calc((100vw - 12.0rem) / 3);
                height: calc((100vw - 12.0rem) / 3);
            }
        }

        /* スマホ表示（640px以下）: 2カラム */
        @media (max-width: 640px) {

            &.item-movie,
            &.item-live,
            &.item-illust,
            &.item-3d-modeling,
            &.item-thumbnail,
            &.item-obs-overlay,
            &.item-logo,
            &.item-goods,
            &.item-shorts {
                width: calc((100vw - 8.0rem) / 2);
                height: calc((100vw - 8.0rem) / 2);
            }
        }

        /* 小型スマホ表示（480px以下）: 1カラム（画面幅の90%） */
        @media (max-width: 480px) {

            &.item-movie,
            &.item-live,
            &.item-illust,
            &.item-3d-modeling,
            &.item-thumbnail,
            &.item-obs-overlay,
            &.item-logo,
            &.item-goods,
            &.item-shorts {
                width: calc(100vw - 4.0rem);
                height: calc(100vw - 4.0rem);
                left: 50%;
                transform: translateX(-50%);
                max-width: 26.0rem;
                max-height: 26.0rem;
            }
        }

        /* 枠の色を指定 */
        &.item-live {
            .custom-content {
                border-color: #E60012;
                color: #E60012;
            }
        }

        &.item-movie {
            .custom-content {
                border-color: #0068B7;
                color: #0068B7;
            }
        }

        &.item-shorts {
            .custom-content {
                border-color: #009944;
                color: #009944;
            }
        }

        &.item-illust {
            .custom-content {
                border-color: #F39800;
                color: #F39800;
            }
        }

        &.item-3d-modeling {
            .custom-content {
                border-color: #86b267;
                color: #86b267;
            }
        }

        &.item-logo {
            .custom-content {
                border-color: #87b5d9;
                color: #87b5d9;
            }
        }

        &.item-goods {
            .custom-content {
                border-color: #920783;
                color: #920783;
            }
        }

        &.item-thumbnail,
        &.item-obs-overlay {
            .custom-content {
                /* 仮 */
                border-color: #000000;
                color: #000000;
            }
        }
    }
}

/* * * * * * * * * * * * * * *
 * 画像モーダル
 * * * * * * * * * * * * * * */
/* モーダルのフェードアウト時も位置を維持 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    padding: 20px;
    /* justify-contentとalign-itemsを追加 */
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

/* モーダル表示中は背景のスクロールを無効化 */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 1000px;
    width: auto;
    max-height: 90vh;
    overflow-y: visible;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.image-modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 12px 12px 0 0;
    max-height: 70vh;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 60vh;
    /* 縦幅を基準に */
    width: auto;
    /* 横幅は自動調整 */
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
    object-fit: contain;
    /* アスペクト比を維持 */
}

.modal-info {
    padding: 30px;
    text-align: center;
}

.modal-info h3 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: #333;
}

.modal-info p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

.modal-info a {
    display: inline-block;
    padding: 12px 30px;
    background: #FF0000;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.6rem;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.modal-info a:hover {
    background: #cc0000;
    transform: scale(1.05);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: 20px auto;
    }

    .modal-image-container {
        max-height: 60vh;
        /* スマホでは少し小さく */
    }

    .modal-image-container img {
        max-height: 60vh;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-info h3 {
        font-size: 2rem;
    }

    .modal-info p {
        font-size: 1.4rem;
    }
}

/* 縦長画像用の追加スタイル */
@media (min-width: 769px) {
    .modal-content {
        max-width: min(1000px, 90vw);
        /* 画面幅の90%まで */
    }
}



/* * * * * * * * * * * * * * *
 * 【ガイドライン】ページ
 * * * * * * * * * * * * * * */
#guideline {

    &::before {
        /* 疑似要素を表示するために必須（空の内容でも指定が必要） */
        content: '';
        /* 親要素(#profile)を基準とした絶対位置で配置 */
        position: absolute;

        /* 親要素の上端から 10vh 離れた位置に配置 */
        top: 11vh;
        /* 親要素の中央（50%の位置）に左端を配置 */
        left: 40%;

        /* 要素自身の幅の50%分左に移動して完全に中央配置 */
        transform: translateX(-50%);
        /* 幅をビューポート幅（画面幅）の90%に設定 */
        width: 90vw;
        /* 高さを親要素の90%に設定 */
        height: 92%;

        background-color: var(--rainbow-color-purple);
        opacity: 50%;

        /* 背景画像を指定 */
        background-size: cover;
        /* 画像を要素全体を覆うようにリサイズ（アスペクト比維持、はみ出し部分はトリミング） */
        background-position: center;
        /* 背景画像を中央に配置 */
        background-repeat: no-repeat;
        /* 背景画像の繰り返しを無効にする */
        z-index: -1;
        /* 重なり順序を-1に設定してテキストや画像の後ろに配置 */
    }

    h3 {
        font-size: 2.4rem;

        padding: 48px 0 16px;

    }

    p {
        font-size: 1.6rem;

        &.guideline-message {
            padding-top: 4.8rem;
        }

        &.guideline-message,
        &.guideline-name {
            font-size: 2.0rem;
        }

        &.guideline-update {
            padding-top: 2.4rem;
        }
    }

    ul {
        font-size: 1.6rem;

        li {
            list-style-type: disc;
            list-style-position: inside;
        }
    }

    .link-blog {
        margin: 0 auto;

        img {
            width: 200px;
            height: auto;

            margin-bottom: 24px;
        }

        p {
            font-size: 2.2rem;
        }
    }

    #link-sns {

        justify-content: center;
        padding-block: 20px;

        gap: 8px;

        a {
            height: 48px;
            width: auto;

            img {
                transition: transform .5s, filter .5s;

                &:hover {
                    /* 拡大 */
                    transform: scale(1.2);

                    /* 白っぽく光る演出 */
                    filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
                }
            }
        }
    }
}