:root {
    /* フォント設定 */
    --font-family_notosans: 'Noto Sans JP', 'Helvetica Neue', 'Helvetica', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Arial', 'Yu Gothic', 'Meiryo', sans-serif;
    --font-family_notoserif: 'Noto Serif JP', serif;
    --font-family_outfit: 'Outfit', sans-serif;
    --font-family_zenmarugothic: 'Zen Maru Gothic', serif;

    /* カラー設定（HTML内で使用されている可能性が高いもの） */
    --color_white: #ffffff;
    --color_black: #000000;
    --color_txt_black: #000000;
    --color_txt_white: #ffffff;
    --color_bg_white: #ffffff;

    /* イージング設定 */
    /* アニメーションの「加速・減速の動き」を定義 */
    /* cubic-bezier(...): 数値で動きのグラフを指定しています。これを変数にしておくことで、ボタンのホバー時やメニューの開閉時など、すべての動きに同じ「質感」を持たせることができます。 */
    --easing_easeOutCubic: cubic-bezier(0.215, 0.61, 0.355, 1);

    /* レスポンシブ計算用基準値 */
    /* 画面の横幅や高さ、デザインの基準サイズを数値化。これらは計算式（calc()関数）の中で使われることが多い */
    --vw: 100vw;
    --vh: 100vh;
    --base-width: 1500;
}

/* 画面幅が 799px以下（主にスマホ・タブレット） になったら、デザインの基準値を 1500 から 375 に上書き */
@media screen and (max-width: 799px) {
    :root {
        --base-width: 375;
    }
}


/* =========================================
   2. リセット & ベーススタイル (Base)
   ========================================= */

/* ブラウザが最初から持っている余計な余白（margin/padding）をゼロにし、border-box を指定することで、**「パディングやボーダーを含めたサイズで要素の幅を計算する」**ようにしています */
* {
    margin: 0px;
    padding: 0px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* 
通常、ブラウザの標準フォントサイズは 16px です。
そこに 62.5% を掛けると、16 × 0.625 = 10px になります。

なぜ10pxにするのか？: 1rem = 10px と計算しやすくするためです。
（例：2.4rem と書けば 24px になるので、直感的にコーディングできます）*/
html {
    font-size: 62.5%;
}

/* 
min-width や max-width に合わせて、font-size に vw（画面幅に対するパーセント） を使っています。
謎の数値（.52056...vwなど）: これは「デザインカンプ（元図）」の横幅に対して、10pxが何%にあたるかを緻密に計算した結果*/
@media screen and (min-width: 1920px) {
    html {
        font-size: .5205622072vw;
    }
}

@media screen and (min-width: 800px) and (max-width: 1200px) {
    html {
        font-size: .834028357vw;
    }
}

@media screen and (max-width: 374px) {
    html {
        font-size: 2.6595744681vw;
    }
}

body {
    display: block;
    font-family: var(--font-family_notosans);
    font-style: normal;
    font-weight: 400;
    color: var(--color_txt_black);
    line-height: 1;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-font-smoothing: antialiased;
    /*MacやiPhoneなどのブラウザで、文字の輪郭を滑らかに（綺麗に）見せるための隠し味のような設定*/
}

/* ローディング時の挙動 */
body.is-loading {
    overflow-y: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* リンクタグの初期化 */
a {
    background-color: rgba(0, 0, 0, 0);
    /* 透明 */
    text-decoration: none;
    /* 下線を消す */
    color: inherit;
    /* 親の色を引き継ぐ */
}


/* =========================================
   3. レイアウトユーティリティ (Utilities)
   ========================================= */



/* レスポンシブ表示切り替え（HTMLで使用されているもの） */
@media screen and (max-width: 799px) {
    .hidden-small-less {
        display: none !important;
    }

    .visible-small-less {
        display: block !important;
    }
}

@media screen and (min-width: 800px) {
    .visible-small-less {
        display: none !important;
    }
}



/* =========================================*/


/* バッジ (BOOKS & AWARDSセクションで使用) */
.c-badge {
    position: absolute;
    z-index: 2;
}

@media screen and (min-width: 800px) {
    .c-badge {
        width: 6.8rem;
    }
}

@media screen and (max-width: 799px) {
    .c-badge {
        width: 4.4rem;
    }
}

/* 緑色のバッジ */
.c-badge.-badge-green path {
    fill: var(--color_bg_green2);
}

/* その他色のバッジ（登壇など） */
.c-badge.-badge-etc path {
    fill: #506ee6;
}

/* メダル型バッジのテキスト */
.c-badge.-badge-medal .c-badge__txt {
    color: var(--color_txt_white);
    text-align: center;
    font-weight: 700;
    position: absolute;
    top: calc(50% - .1rem);
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 3;
}

.-badge-green .c-badge.-badge-medal .c-badge__txt {
    line-height: 1.2;
}

@media screen and (min-width: 800px) {
    .c-badge.-badge-medal .c-badge__txt {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 799px) {
    .c-badge.-badge-medal .c-badge__txt {
        font-size: .9rem;
    }
}

/* メダル型バッジの紐（ひも） */
.c-badge.-badge-medal .c-badge__string {
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
}

@media screen and (min-width: 800px) {
    .c-badge.-badge-medal .c-badge__string {
        width: 2.7rem;
        top: -1.3rem;
    }
}

@media screen and (max-width: 799px) {
    .c-badge.-badge-medal .c-badge__string {
        width: 1.8rem;
        top: -0.8rem;
    }
}

/* メダル型バッジの背景 */
.c-badge.-badge-medal .c-badge__bg {
    width: 100%;
    position: relative;
    z-index: 2;
}




/* =========================================
   共通セクションヘッダー (Rich Section Header)
   ========================================= */

/* ヘッダーコンテナ */
.c-section-header {
    position: relative;
    margin-bottom: 6rem;
    /* PCでは左側にタイトル用のスペースを空ける */
    padding-left: 100px;
    min-height: 160px;
    /* 縦書きタイトルの高さを確保 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 背景の巨大な透かし文字 */
.c-section-header__bg {
    position: absolute;
    top: -20px;
    left: -20px;
    font-family: var(--font-family_outfit, sans-serif);
    /* おしゃれな英字フォント */
    font-weight: 900;
    font-size: 12rem;
    line-height: 1;
    color: #f0f0f0;
    /* 非常に薄いグレー */
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    white-space: nowrap;
}

/* 背景の巨大な透かし文字（APPLY） */
.c-section-header__bg_02 {
    position: absolute;
    top: -20px;
    left: -20px;
    font-family: var(--font-family_outfit, sans-serif);
    /* おしゃれな英字フォント */
    font-weight: 900;
    font-size: 12rem;
    line-height: 1;
    color: #ffffff;
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
}

/* メインタイトル（英語・縦書き） */
.c-section-header__main {
    writing-mode: vertical-rl;
    /* 縦書き指定 */
    text-orientation: mixed;
    position: absolute;
    top: 0;
    left: 0;

    font-family: var(--font-family_monbran, sans-serif);
    font-weight: 700;
    font-size: 2.8rem;
    letter-spacing: 0.1em;
    color: #333;
    line-height: 1.2;

    /* アクセントライン（左側のグラデーション線） */
    padding-left: 15px;
}

.c-section-header__main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, rgb(255, 89, 238), rgb(238, 255, 46));
}

/* サブタイトル（日本語） */
.c-section-header__sub {
    font-family: var(--font-family_notosans, sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

/* サブタイトル（日本語）※視聴者参加企画 */
.c-section-header__sub_02 {
    font-family: var(--font-family_notosans, sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-align: left;
}


/* --- スマホ対応（レスポンシブ） --- */
@media screen and (max-width: 799px) {
    .c-section-header {
        padding-left: 0;
        /* 左のスペースをリセット */
        margin-bottom: 4rem;
        min-height: auto;
        text-align: center;
        /* 中央揃えに戻す */
        align-items: center;
    }

    /* スマホでは背景文字を少し小さく */
    .c-section-header__bg {
        font-size: 6rem;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* スマホでは横書きに戻す */
    .c-section-header__main {
        writing-mode: horizontal-tb;
        position: relative;
        left: auto;
        top: auto;
        font-size: 2.2rem;
        padding-left: 0;
        padding-bottom: 15px;
        display: inline-block;
    }

    /* アクセントラインを下に移動 */
    .c-section-header__main::before {
        width: 60px;
        height: 4px;
        top: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(to right, rgb(255, 89, 238), rgb(238, 255, 46));
    }

    .c-section-header__sub {
        font-size: 1.2rem;
    }
}

/* =========================================
   スクロールアニメーション (Fade Up)
   ========================================= */
.u-fade-up {
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
    /* 40px下からスタート */

    /* サイト共通の心地よいイージング（動きのカーブ）を使用 */
    transition: opacity 0.8s var(--easing_easeOutCubic),
        transform 0.8s var(--easing_easeOutCubic),
        visibility 0.8s;
    will-change: transform, opacity;
}

/* ScrollTriggerが画面内に入ったと判定し、.is-visible が付与されたら表示 */
.u-fade-up.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================
   ローディング完了後にフワッと表示する汎用クラス
   ========================================= */
.u-show-after-loading {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    /* 少し下から浮かび上がる */
    /* デフォルトの遅延時間をCSS変数で定義（1.2秒） */
    --delay-after-loading: 1.2s;

    transition: opacity 0.8s var(--easing_easeOutCubic),
        transform 0.8s var(--easing_easeOutCubic),
        visibility 0.8s;
}

/* 漫画→実写への切り替わり(op4)のタイミングで表示 */
body.is-home-op4 .u-show-after-loading {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* 漫画が消えるアニメーション(0.5s〜)より少し遅れて表示させる */
    transition-delay: var(--delay-after-loading);
}



/* 2. ダーウィンのヘッダーが、新しいコンテンツの裏に隠れないように最前面に出す */
#pageHead.fixed {
    z-index: 9999 !important;
}

/* ローディング画面を完全に無かったことにする */
.t-home__loading {
    display: none !important;
