/* 英語フォントの読み込み */
@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 {
    display: flex; /* フレックスボックスを使用 */
    flex-direction: column; /* コンテンツを縦方向に配置 */
    min-height: 100vh; /* 画面の高さを基準に全体を確保 */
    margin: 0; /* 外側の余白を削除 */
    padding: 0; /* 内側の余白を削除 */
    font-family: 'Kano', sans-serif; /* フォントスタイル */
    color: black; /* 文字色 */
}





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%; /* ホバー時も同じ効果 */
}




/* Contact Form Section */
.contact-form {
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
    font-family: 'Kano', sans-serif;
}

.contact-form h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    color: black;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

/* Label */
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: black;
    margin-bottom: 5px;
}

/* Input Fields */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    font-family: 'Kano', sans-serif;
    color: black;
}

textarea {
    resize: none;
}

/* Name Fields */
.name-fields {
    display: flex;
    gap: 20px; /* First NameとLast Nameの間の隙間 */
    margin-bottom: 20px; /* フィールド全体の間隔 */
}

/* ラベルと入力欄を同じ行に配置 */
.name-fields div {
    flex: 1;
    display: flex;
    flex-direction: column; /* ラベルと入力欄を縦並び */
    gap: 10px; /* ラベルと入力欄の間隔 */
    white-space: nowrap; /* 折り返しを無効にする */
    overflow: hidden; /* 内容があふれる場合は隠す */
    text-overflow: ellipsis; /* 必要に応じて省略記号を表示 */
}

/* ラベルスタイル */
.name-fields div label {
    font-size: 14px; /* 文字サイズ */
    color: black; /* 文字色 */
}


/* Input Fields */
input[type="text"] {
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    font-family: 'Kano', sans-serif;
    color: black;
}

/* Submit Button */
.button-container {
    text-align: center;
}

button[type="submit"] {
    background-color: white;
    border: 1px solid black;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: black;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
    transform: scale(1.025);
}


main {
  flex: 1; /* 残りのスペースを埋める */
}




/* フッター */
footer.icon {
    width: 100%; /* フッターをページ幅全体に */
    height: 120px;
    background-color: white; /* 背景色を白に */
    display: flex; /* フレックスボックスで中央揃え */
    justify-content: center; /* 横方向中央揃え */
    align-items: center; /* 縦方向中央揃え */
    padding: 20px 0; /* 上下の余白を調整 */
    z-index: 1; /* 他の要素よりも前面に表示 */
    position: relative; /* デフォルトの文書フローに従う */
}

/* アイコンのデザイン */
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) {
    .contact-form {
      width: 82%;
      margin: 0 auto;
      box-sizing: border-box;
    }
  
    .form-group {
      width: 100%;
      box-sizing: border-box;
    }
  
    .form-group input,
    .form-group textarea {
      width: 100%;
      box-sizing: border-box;
    }
  
    /* First/Last Name 専用：横並び＋中央寄せ */
    .name-fields {
      display: flex;
      flex-direction: row;
      justify-content: center;
      gap: 12px;
    }
  
    .name-fields > div {
      flex: 1;
      min-width: 0; /* 小さい画面でも縮まるように */
    }
  
    .name-fields input {
      width: 100%;
    }
  }