/* 英語フォントの読み込み */
@font-face {
    font-family: 'Kano'; /* 英語用フォント */
    src: url('_fonts/Kano.otf') format('opentype');
}

/* 日本語フォントの読み込み */
@font-face {
    font-family: 'JapaneseFont'; /* 日本語用フォント */
    src: url('_font/font/jp/jp-font.ttf') format('truetype');
    font-display: swap;
}

/* 日本語テキスト用スタイル */
.name-kanji, /* 漢字の名前 */
.profile-description {
    font-family: 'JapaneseFont', sans-serif; /* 日本語フォントを適用 */
}

/* ローマ字用スタイル（英語フォント適用） */
.name-roman {
    font-family: 'Kano', sans-serif; /* 英語フォントを適用 */
}


#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 動画を画面全体にフィット */
    z-index: -2; /* 背景に配置 */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'kano', 'CustomFont', sans-serif;
    color: white;
    position: relative;
    height: 110vh; /* ページ全体の高さを設定 */
    overflow-y: scroll; /* 縦方向のスクロールを許可 */
    --dark-opacity: 0; /* 初期状態では透明 */
    --dark-speed: 0.5s; /* 暗さの変化速度 */
    --footer-speed: 0.5s; /* フッターの表示速度 */
}

body::before {
    content: ""; /* 擬似要素を作成 */
    position: fixed; /* 背景画像を固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('_movies/Reel_v03.mp4') no-repeat center center; /* 背景画像を設定 */
    background-size: cover; /* 背景画像を画面全体にフィット */
    z-index: -2; /* 背景を最背面に配置 */
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポートの幅をカバー */
    height: 100vh; /* ビューポートの高さをカバー */
    background: rgba(0, 0, 0, var(--dark-opacity)); /* 暗さの調整 */
    z-index: -1; /* 動画の上に配置 */
    transition: background var(--dark-speed) ease-in-out; /* 暗さの変化速度 */
}



header {
    position: fixed;
    width: 100%;
    height: 130px; /* ← これで高さが明確に */
    z-index: 10;
}



/* ヘッダーロゴ（UMAART） */
header .logo {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 15;
    font-family: 'Kano', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
  }

@media screen and (max-width: 768px) {
  header .logo {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Kano', sans-serif;
    z-index: 15;
    line-height: 1;
  }
}

nav {
    width: 100%;
    height: 130px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    position: absolute;
    top: 0;
    z-index: 1;
}

nav ul {
    display: flex;
    justify-content: flex-end; /* 右揃え */
    align-items: center; /* 縦方向の中央揃え */
    list-style: none;
    margin: 0;
    padding: 0 20px; /* 内側に余白を設定 */
}

nav ul li.logo {
    margin-right: auto; /* 左揃え */
}

nav ul li {
    margin: 50px 15px;
}

nav ul li a {
    text-decoration: none; /* 下線を削除 */
    color: white; /* テキストの色 */
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase; /* テキストを大文字に */
    padding: 2px 5px; /* クリック範囲を小さく */
    position: relative; /* 擬似要素の基準位置 */
    transition: background-color 0.3s ease, color 0.3s ease; /* スムーズな変化 */
}

/* ホバー時の背景色効果 */
nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* 背景を少し暗く */
    color: white; /* テキストの色は白を維持 */
}

/* アンダーラインのデザイン */
nav ul li a.active::after,
nav ul li a:hover::after {
    content: ""; /* 擬似要素を使用 */
    position: absolute;
    bottom: 0px; /* アンダーラインの位置を調整 */
    left: 0;
    width: 100%; /* 初期幅を文字幅と同じに */
    height: 1.5px; /* アンダーラインの太さ */
    background-color: white; /* アンダーラインの色 */
    transition: width 0.3s ease; /* スムーズに広がる効果 */
}

/* ホバー時と現在のページでアンダーラインを表示 */
nav ul li a.active::after {
    width: 100%; /* 文字幅と同じ */
}

nav ul li a:hover::after {
    width: 100%; /* ホバー時も同じ効果 */
}


.center-text {
    position: fixed; /* 常に画面の固定位置 */
    top: calc(50% + 170px); /* 画面中央から100px下 */
    text-shadow: 0 0 5px gray;
    left: 50%; /* 横方向の中央 */
    transform: translate(-50%, -50%); /* 中央揃え */
    color: white; /* 文字色を白に */
    text-align: center; /* テキスト中央揃え */
    font-size: 20px; /* フォントサイズ */
    font-family: 'Arial', sans-serif; /* フォントスタイル */
    background: none; /* 背景はなし */
    padding: 0; /* 余白はなし */
    margin: 0; /* 外側の余白もなし */
    z-index: 5; /* 他の要素より前面に配置 */
}



footer.icon {
    position: fixed; /* フッターを画面下部に固定 */
    bottom: 0;
    left: 0;
    width: 100%; /* フッターを画面幅いっぱいに */
    height: 120px; /* 高さを指定 */
    background-color: white; /* 背景色を白に */
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* アイコンを水平方向で中央揃え */
    align-items: center; /* アイコンを垂直方向で中央揃え */
    padding: 0; /* 上下の余白を調整 */
    transform: translateY(100%); /* 初期状態で画面外に隠す */
    transition: transform 0.5s ease-in-out; /* フッターの動きを滑らかに */
    z-index: 10; /* 他の要素よりも前面に表示 */
}

footer.icon figure {
    display: flex; /* フレックスボックスで要素を中央揃え */
    justify-content: center; /* 横方向の中央揃え */
    align-items: center; /* 縦方向の中央揃え */
    margin: 0 50px; /* アイコン間の余白を調整 */
    cursor: pointer; /* ホバー時にポインタを表示 */
    transition: transform 0.3s ease, opacity 0.3s ease; /* ホバー効果をスムーズに */
}

footer.icon figure img {
    width: 20px; /* アイコン画像の幅 */
    height: 20px; /* アイコン画像の高さ */
    object-fit: contain; /* 画像が縮小・拡大されても比率を維持 */
    filter: grayscale(100%); /* 初期状態で白黒にする */
    opacity: 0.8; /* 初期状態で少し薄くする */
    transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease; /* ホバー時の変化をスムーズに */
}

/* ホバー時の効果 */
footer.icon figure:hover img {
    filter: grayscale(0%); /* カラー画像に切り替える */
    transform: scale(1.1); /* 拡大比率 (10%拡大) */
    opacity: 0.9; /* ホバー時に不透明度を高める */
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: fixed;
    top: 35px;
    right: 30px;
    z-index: 15;
    width: 30px;
    height: 24px;
}
.hamburger span {
    width: 100%;
    height: 1px;
    background: white;
    margin: 5px 0;
    transition: 0.3s ease;
}

@media screen and (max-width: 768px) {
    
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10;
      }
    
      body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 130px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
        pointer-events: none;
        z-index: 5;
        transition: opacity 0.3s ease;
        opacity: 1;
      }
    
      .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        position: absolute;
        top: 50%;
        right: 30px;
        transform: translateY(calc(-50% - 2px));
        z-index: 15;
        width: 30px;
        height: 24px;
      }
    
    nav {
        background-color: transparent;;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;

        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        opacity: 0;
        transition: opacity 0.3s ease;
    }

    nav ul.active {
        opacity: 1;
    }

    nav ul li {
        margin: 20px 0;
        font-size: 24px;

        opacity: 0;
        transition: opacity 0.3s ease;
    }

    nav ul.active li {
        opacity: 1;
    }

    .hamburger {
        display: flex;
    }

    nav ul li.logo {
        display: none;
    }
}

/* フェード用のオーバーレイ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    z-index: 9;
    pointer-events: none;
}

.menu-overlay.active {
    background: rgba(0, 0, 0, 0.85);
    pointer-events: auto;
}

@media screen and (max-width: 768px) {
    .center-text {
        font-size: 12.5px; /* ← 好きなサイズに変えてOK！ */
    }
}

/* モバイルだけで改行させる */
.br-mobile {
    display: none;
}

@media screen and (max-width: 768px) {
    .br-mobile {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    #background-video {
      object-fit: contain; /* ← coverではなくcontainに */
      width: 100%;
      height: 100%;
      transform: scale(3);
      object-position: center center;
    }
    body {
        background-color: black; /* ← ここが重要！背景が白いと透けて白く見える */
      }
  }
