/* 英語フォントの読み込み */
@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; /* 英語フォントを適用 */
}


body {
    background-color: white;
    margin: 0;
    padding: 0;
    font-family: 'kano', 'CustomFont', sans-serif;
    color: white;
    position: relative;
    overflow-y: scroll; /* 縦方向のスクロールを許可 */

}


header {
    position: relative;
    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)); /* 背景グラデーション */
    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; /* 擬似要素の基準位置 */
}

/* ホバー時の背景色効果 */
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: 3px; /* アンダーラインの位置を調整 */
    left: 0;
    width: 100%; /* 初期幅を文字幅と同じに */
    height: 1.5px; /* アンダーラインの太さ */
    background-color: white; /* アンダーラインの色 */
}

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

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


.video-container {
    position: relative;
    width: 100%;
    max-width: 1100px; /* 動画コンテナの最大幅 */
    margin: 0 auto 4px; /* 自動で中央揃え + 下に4pxの余白 */
    aspect-ratio: 16 / 9; /* 16:9の比率 */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* 枠線をなくす */
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 横4列 */
    gap: 4px; /* 画像間のスペース */
    max-width: 1100px; /* 全体の最大幅 */
    margin: 0 auto; /* 中央揃え */
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 背景を暗くするオーバーレイ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex; /* デフォルトでフレックスレイアウト */
    justify-content: center;
    align-items: center;
    opacity: 0; /* 初期状態は透明 */
    pointer-events: none; /* 初期状態ではクリックを無効化 */
    z-index: 1000;
    transition: opacity 0.2s ease; /* 表示/消滅のアニメーション */
}

/* 表示時 */
.overlay.active {
    opacity: 1; /* フェードイン */
    pointer-events: auto; /* クリックを有効化 */
}

/* 拡大画像 */
.overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease; /* 画像の透明度アニメーション */
    opacity: 0; /* 初期状態は透明 */
}

/* 表示時の画像の透明度 */
.overlay.active img {
    opacity: 1; /* 完全に表示 */
}

/* 矢印スタイル */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.arrow:hover {
    opacity: 1;
}

/* 左矢印：画面の端と画像の間の中間位置 */
.left-arrow {
    left: calc((100% - 90%) / 2 - 10px); /* 90%は画像の最大幅。40pxは矢印の幅を考慮して調整 */
}

/* 右矢印：画面の端と画像の間の中間位置 */
.right-arrow {
    right: calc((100% - 90%) / 2 - 10px);
}

/* 矢印を画像の高さ中央に配置 */
.overlay img {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.title-container {
    text-align: center; /* 中央揃え */
    margin: 60px; /* 上下に適度な余白を追加 */
}

.title-container h2 {
    font-size: 35px; /* フォントサイズを調整 */
    font-weight: normal; /* 必要ならフォントの太さを調整 */
    color: #333; /* 必要なら文字色を設定 */
}





.credit-container {
    max-width: 800px; /* 最大幅 */
    margin: 60px auto; /* 上下の余白と中央揃え */
    font-family: 'Arial', sans-serif;
    color: #333; /* テキスト色 */
    text-align: center; /* 中央揃え */
}

.credit-container h2 {
    font-size: 28px; /* 見出しのサイズ */
    margin-bottom: 20px;
    font-weight: bold; /* 強調 */
    color: #222; /* 見出しの色 */
    text-transform: uppercase; /* 大文字 */
}

.credit-container ul {
    list-style: none; /* リスト記号を非表示 */
    padding: 0;
    margin: 0;
    text-align: center; /* リスト全体を中央揃え */
}

.credit-container li {
    margin-bottom: 10px; /* 各項目の間隔 */
    font-size: 18px; /* フォントサイズ */
    font-weight: bold; /* すべての文字を強調 */
    line-height: 1.6; /* 行間を適切に */
    text-align: center; /* 各項目を中央揃え */
}


.description-container {
    max-width: 800px; /* 最大幅 */
    margin: 30px auto; /* 中央揃え */
    text-align: center; /* テキスト中央揃え */
    font-size: 16px; /* フォントサイズ */
    line-height: 1.8; /* 行間 */
    color: #333; /* テキスト色 */
}

.description-container h2 {
    font-size: 24px; /* 見出しのフォントサイズ */
    font-weight: 600; /* 太さ */
    margin-bottom: 15px; /* 見出しの下に余白 */
    color: #000; /* 見出しの色 */
}

.description-container p {
    font-size: 20px; /* 説明文のフォントサイズ */
    line-height: 1.6; /* 説明文の行間 */
    color: #555; /* 説明文の色 */
}








/* To Top Section */
.to-top-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px auto; /* 上下の余白と中央揃え */
    max-width: 1400px; /* 最大幅を設定 */
    width: 100%; /* 全体幅に応じる */
}

.horizontal-line {
    flex: 1; /* 横幅を最大化 */
    height: 1px;
    background-color: #ccc; /* ラインの色 */
}

.to-top {
    margin: 0 10px; /* ボタンと横線の間隔 */
    font-size: 11px;
    color: #999;
    text-decoration: none;
    font-weight: normal;
    text-transform: uppercase;
    white-space: nowrap; /* テキストが折り返されないようにする */
    transition: color 0.15s ease;
}

.to-top:hover {
    color: #858585; /* ホバー時に色を濃くする */
}



footer.icon {
    position: relative; /* 通常の文書フローに従う */
    bottom: auto; /* 固定解除 */
    left: auto; /* 固定解除 */
    width: 100%; /* フッターをページ幅全体に */
    height: 120px; /* 高さを自動調整 */
    background-color: white; /* 背景色を白に */
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* アイコンを水平方向で中央揃え */
    align-items: center; /* アイコンを垂直方向で中央揃え */
    padding: 20px 0; /* 上下の余白を調整 */
    z-index: 1; /* 他の要素と同等のスタック順 */
    transform: none; /* 初期位置を画面外に隠さない */
    transition: none; /* アニメーションを無効化 */
}

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: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 15;
    width: 30px;
    height: 24px;
  }
  .hamburger span {
    width: 100%;
    height: 1px;
    background: white;
    margin: 5px 0;
    transition: 0.3s ease;
  }

.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) {
    header {
        position: relative;
        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 {
        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;
      }
    
      nav ul li.logo {
        display: none;
      }
    .work-gallery {
        margin-top: 0px; /* 上部にスペースを空ける（ナビ分） */
         padding: 0 16px;
    }

    /* 追加！モバイルで1列表示に */
    .work-gallery.active {
        grid-template-columns: 1fr;
        gap: 0.1;
    }

    .to-top-container {
        padding: 0 16px; /* .work-gallery と同じ余白に揃える */
        box-sizing: border-box; /* padding込みで幅計算 */
    }

  
    

    @media screen and (max-width: 768px) {
        nav ul li.logo {
          display: block; /* ← 非表示から表示に変更 */
          position: absolute;
          top: 30px;
          left: 20px;
          font-size: 16px;
          font-weight: bold;
          color: white;
        }
      }

    
}

@media screen and (max-width: 768px) {
    /* 1. video-container と image-gallery の横幅を90%に */
    .video-container,
    .image-gallery {
      width: 90%;
      margin: 0 auto;
      margin-bottom: 2px; /* 中央揃え */
    }
  
    /* 2. image-gallery を1列表示に */
    .image-gallery {
      grid-template-columns: 1fr; /* 1列 */
      gap: 2px; /* 隙間調整（好みで変更） */
    }
  
    /* 3. タイトルとクレジットの文字サイズを調整 */
    .title-container h2 {
      font-size: 20px; /* 小さめに調整 */
    }
  
    .credit-container h2 {
      font-size: 18px;
    }
  
    .credit-container li {
      font-size: 14px;
    }
  }