/* 英語フォントの読み込み */
@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%; /* ホバー時も同じ効果 */
}

/* Profileセクション全体 */
.profile-section {
    max-width: 800px;
    margin: 50px auto; /* 上下中央揃え */
    text-align: center; /* セクション全体を中央揃え */
}

/* タイトル部分 */
.profile-section h1 {
    font-size: 30px; /* フォントサイズ */
    font-weight: bold; /* 太字 */
    margin-top: 50px;
    margin-bottom: 40px; /* 下の余白 */
    color: black; /* 色を指定 */
}

/* コンテナ */
.profile-container {
    display: flex;
    flex-direction: column; /* 子要素を縦並びに */
    align-items: center; /* 横方向の中央揃え */
    text-align: center; /* テキストの中央揃え */
}

/* プロフィール画像 */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 3%; /* 丸くする */
    object-fit: cover;
    margin-bottom: 20px; /* 画像と説明文の間に余白 */
}

/* 名前部分のスタイル */
.profile-name {
    margin-bottom: 15px; /* 名前と説明文の間に余白 */
    text-align: left; /* 名前部分を中央揃え */
}
.number {
    margin-bottom: 0px; /* 名前と説明文の間に余白 */
    font-size: 16px;
    font-weight: lighter;
    text-align: left; /* 名前部分を中央揃え */
}

.name-kanji {
    font-size: 22px; /* 漢字の名前の文字サイズ */
    font-weight: bold; /* 太字 */
    margin: 0; /* 余白を削除 */
    color: black; /* 色を指定 */
}

.name-roman {
    font-size: 16px; /* ローマ字の名前の文字サイズ */
    margin: 0; /* 余白を削除 */
    color: black; /* 色を指定 */
}

/* 説明文 */
.profile-description {
    font-size: 14px; /* 文字サイズ */
    line-height: 1.6; /* 行間を調整 */
    color: black; /* テキストカラー */
    text-align: left; /* テキストの中央揃え */
    max-width: 600px; /* 説明文の幅を調整 */
}



/* Participated Works セクション */
.works-section {
    max-width: 600px; /* Profileセクションと横幅を合わせる */
    margin: 50px auto; /* 上下中央揃え */
    text-align: left; /* 左揃え */
    font-family: 'Kano', sans-serif; /* 英語フォント */
    color: black; /* テキストカラー */
}

/* タイトル */
.works-section h2 {
    font-size: 28px; /* タイトルのフォントサイズ */
    font-weight: bold; /* 太字 */
    margin-bottom: 40px; /* 下の余白 */
    text-align: center; /* 左揃え */
    padding-left: 0; /* 左余白をリセット */
}

/* 年セクション */
.work-year {
    margin-bottom: 30px; /* 年ごとのセクション間に余白 */
}

.work-year h3 {
    font-size: 16px; /* 年見出しのフォントサイズ */
    color: black; /* 年の色 */
    margin-bottom: 10px; /* 年とリストの間に余白 */
}

.work-year ul {
    list-style: disc; /* 項目記号をディスク型に */
    padding-left: 20px; /* 左の余白 */
    margin: 0; /* 外側の余白を削除 */
}

.work-year ul li {
    font-size: 14px; /* リスト項目のフォントサイズ */
    line-height: 1.6; /* 行間を調整 */
    color: black; /* リスト項目の文字色 */
    margin-bottom: 10px; /* 各項目の間に余白 */
}


/* Contactセクション */
.contact {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center; /* 中央揃え */
    font-family: 'Kano', sans-serif; /* フォントスタイル */
    color: black; /* テキストカラー */
}

.contact-discription {
    color: black; /* テキストの色を黒に設定 */
    text-align: center; /* 中央揃え */
    font-size: 15px; /* 少し大きめのフォントサイズ */
    line-height: 1.8; /* 行間を広げる */
    margin-bottom: 90px; /* 下の余白 */
    font-family: 'Arial', sans-serif; /* 読みやすいフォント */
}

.contact-discription a {
    color: black; /* リンクの色を黒に設定 */
    text-decoration: underline; /* 下線を維持 */
}

.contact-discription a:hover {
    color: #555; /* ホバー時に少し明るい色に */
}



.contact h1 {
    font-size: 28px; /* フォントサイズ */
    font-weight: bold; /* 太字 */
    margin-bottom: 20px; /* 下の余白 */
}

.contact h1 a {
    text-decoration: none;
    color: black;
    font-size: 28px;
    font-weight: bold;
    display: inline-block; /* ブロックレベルで拡大を確実に適用 */
    transition: transform 0.3s ease, color 0.3s ease;
}




/* 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;
      }
    }


    @media screen and (max-width: 768px) {
        section,
        .contact-discription,
        .to-top-container {
          width: 100%;
          max-width: 90vw;
          margin: 0 auto;
          box-sizing: border-box;
        }
      
        .profile-container,
        .works-container {
          width: 100%;
          max-width: 80vw;
          margin: 0 auto;
          box-sizing: border-box;
        }
      }