body {
    margin: 0;
    font-family: 'HuiFont', sans-serif;
    padding-top: 40px;
    background-color: #e0dcd8; /* ヘッダーと同じ色にする */
    background-image: url('image/noise.png');
    background-repeat: repeat;
    background-size: auto;
}

@font-face {
  font-family: 'HuiFont';
  src: url('fonts/HuiFontP29.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
.welcome-container {
  position: relative;
  width: 100%;
  margin: 10px auto 40px;
  display: flex;
  justify-content: center;
  user-select: none;
  cursor: pointer;
}

.welcome-inner {
  position: relative; /* 吹き出しの絶対位置基準にする */
  width: 300px;        /* 画像の幅に合わせて固定 */
  height: 400px;       /* 高さも画像と揃える */
}

.welcome-inner img {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.welcome-text {
  position: absolute;
  bottom: 100px;      /* 画像の下の方に配置 */
  background: white;
  color: #333;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 1rem; /* 少し大きく */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  max-width: 240px;
  z-index: 2;
  user-select: none;
}


@keyframes poyon {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.poyon-animation {
  animation: poyon 0.3s ease;
  display: inline-block;
}



.speech-bubble {
  background: #fff;
  border-radius: 12px;
  padding: 10px 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 1rem;
  max-width: 250px;
  text-align: left;
  user-select: none;
  position: absolute;
  top: 20px;     /* 画像の中でのY位置 */
  right: -30px;  /* 画像の右側に被せる形で表示 */
}



footer {
  padding: 20px;
  text-align: center;
  background-color: #f0f0f0;
}

/* 「© 2025 kacchi〜」は元のフォントのまま */
.footer-note {
  font-family: sans-serif; /* 必要に応じてサイトの標準フォントに変更してね */
  margin-bottom: 10px;
  display: block;
}


/* リンク訪問後も色を変えない */
.footer-links a:visited {
  color: inherit;
}

/* リンク共通設定 */
.footer-links a {
  text-decoration: underline;
  font-family: "HuiFont", sans-serif;
  margin: 0 10px;
}

/* 各リンクの色指定 */
.footer-links a.x-link {
  color: #1DA1F2;
}

.footer-links a.youtube-link {
  color: #FF0000;
}

.footer-links a.nicovideo-link {
  color: #888888;
}

.footer-links a.booth-link {
  color: #FF8080;
}

.footer-links a.utaloader-link {
  color: #3a63b4;
}


/* ヘッダーのスタイル */
.main-header {
    background-color: #000000;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between; /* ロゴとハンバーガーを左右に配置 */
    align-items: center; /* 垂直方向中央揃え */
    position: fixed; /* ヘッダーを固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* ハンバーガーメニューより上に表示 */
    box-sizing: border-box; /* paddingを含めてwidth:100%にする */
    z-index: 1000; /* ハンバーガーメニューとサイドメニューの親要素 */
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

/* ロゴリンクのスタイル（style.cssに追加） */
.logo-link {
    text-decoration: none; /* 下線をなくす */
    color: inherit; /* 親要素（header）の文字色を継承 */
    /* 必要であれば、ここに文字色を直接指定することもできます */
    /* color: #fff; */
}

/* ハンバーガーメニューボタンのスタイル */
.hamburger-menu {
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 9999;
}

.hamburger-menu .line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff; /* 白い3本線 */
    transition: all 0.3s ease; /* 変形のアニメーション */
    border-radius: 2px;
}

/* ハンバーガーメニューがアクティブ（開いている）時のスタイル */
.hamburger-menu.is-active .line-top {
    transform: translateY(10.5px) rotate(45deg); /* 真ん中に移動して回転 */
}

.hamburger-menu.is-active .line-middle {
    opacity: 0; /* 真ん中の線を非表示 */
}

.hamburger-menu.is-active .line-bottom {
    transform: translateY(-10.5px) rotate(-45deg); /* 真ん中に移動して回転 */
}

/* サイドメニューのスタイル */
.side-menu {
    position: fixed; /* 固定表示 */
    top: 0;
    right: -30%; /* 初期状態では画面外（右から30%分隠す） */
    width: 30%; /* 画面の30%を覆う */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 70%透明度の黒 */
    transition: right 0.3s ease; /* スライドイン/アウトのアニメーション */
    padding-top: 80px; /* ヘッダーの高さ分下げる (header padding-top: 80px と合わせる) */
    box-sizing: border-box; /* paddingを含めてwidth:30%にする */
    display: flex; /* メニュー項目を中央揃えにするため */
    flex-direction: column; /* 縦並び */
    justify-content: center; /* 垂直方向中央揃え */
    align-items: center; /* 水平方向中央揃え */
    z-index: 900; /* ★ここを修正: ハンバーガーメニュー(1002)より低くする */
}

.side-menu.is-open {
    right: 0; /* 開いた時に画面内にスライドイン */
}

.side-menu ul {
    width: 100%; /* ulの幅を親要素に合わせる */
    list-style: none;
}

.side-menu li {
    margin-bottom: 20px; /* メニュー項目間の余白 */
    text-align: center;
}

.side-menu li a {
    color: #fff; /* 白い文字 */
    font-size: 20px;
    display: block; /* リンク全体をクリックできるように */
    padding: 10px 0; /* リンクのクリック範囲を広げる */
    text-decoration: none;
}

.side-menu li a:hover {
    color: #7BC3D1; /* ホバー時の色 */
}

/* メインコンテンツの調整 */
.content {
    margin-top: 80px; /* ヘッダーの高さ分、コンテンツを下にずらす */
    padding: 20px; /* コンテンツ自体の余白 */
    text-align: center;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em;
}

.top-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3em;
  width: 100%;
  max-width: 1000px;
}

.latest-videos,
.update-log {
  width: 45%;
}

.latest-videos h2,
.update-log h2 {
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 1em;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.video-list iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.update-log ul {
  list-style: none;
  padding: 0;
}

.update-log li {
  margin-bottom: 0.5em;
  font-size: 0.95em;
  line-height: 1.4;
}

.external-links {
  margin-top: 3em;
  text-align: center;
}

.external-links img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s;
}

.external-links img:hover {
  transform: scale(1.05);
}



.kv-section {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.kv-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none; /* クリックなどを画像に通す場合 */
}

.kv-title-main {
  color: white;
  font-size: 3rem; /* 大きな文字 */
  font-weight: bold;
  margin: 0;
}

.kv-subtitle {
  color: white;
  font-size: 1.5rem; /* 少し小さな文字 */
  margin-top: 0.5em;
}

.update-log {
  text-align: left; /* セクション全体は左揃えのままでOK */
}

.update-log ul {
  margin-left: 2em;
}


.nav {
  display: none;
  flex-direction: column;
  background: #444;
  position: absolute;
  top: 60px;
  right: 20px;
  padding: 10px;
  border-radius: 8px;
}

.nav a {
  color: white;
  text-decoration: none;
  margin: 5px 0;
}

.nav.show {
  display: flex;
}

.character-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 1rem 3rem;
}

/* 各キャラカード */
.character-card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 180px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.character-card:hover {
  transform: translateY(-4px);
}

/* カード内の画像 */
.character-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
}

/* 名前部分 */
.character-card p {
  margin: 0;
  padding: 1rem 0;
  font-size: 1rem;
  color: #333;
  background: none; /* ← ここで白背景を消す */
}



/* レスポンシブ対応 */
@media (max-width: 600px) {
  .character-card {
    width: 45%;
  }
}

@media (max-width: 400px) {
  .character-card {
    width: 100%;
  }
}
main h1 {
  text-align: center;
  margin-top: 40px;
}


.character-card:hover {
  transform: scale(1.05);
}

/* キャラ紹介レイアウト（左右配置） */
.character-detail-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* 立ち絵を左側に小さめに */
.character-left {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}

/* 💡 修正: position: relative;を追加してボタンの配置基準にする */
.character-image-wrapper {
  position: relative;
}

.character-image-wrapper img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 1rem;
  background-color: #fff;
  padding: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-top: 0rem;
  
}

/* テキスト部分右側 */
.character-right {
  flex: 1 1 400px;
  max-width: 600px;
}

/* 全体中央配置 */
.character-name {
  text-align: center;
  font-size: 2.8rem;
  margin: 2rem 0 1rem;
  font-weight: bold;
}



.first-letter {
  color: #e53935; /* ごごたろうのイメージカラー：赤 */
}
.gogo-s {
  color: #e53935;
}
.nemu-s {
  color: #4ba0a3;
}
.kokoro-s {
  color: #bc9947;
}
.reon-s {
  color: #547443;
}
.rico-s {
  color: #766197;
}
.koharu-s {
  color: #b68f34;
}

/* 各情報ブロック（プロフィールなど） */
.profile,
.voice-info,
.sample-audio,
.jam_link,
.download {
  background-color: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.profile h2,
.voice-info h2,
.sample-audio h2,
.jam_link h2,
.download h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid #e12d2d;
  padding-left: 0.5rem;
}

/* ダウンロードボタン（薄い赤） */
.download-button {
  display: inline-block;
  background-color: #f28b82;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.download-button:hover {
  background-color: #e57373;
}



/* 音声プレイヤー */
.sample-audio audio {
  width: 100%;
}
/* サンプルオーディオのコンテナ（横並び用） */
.sample-audio .audio-container {
  display: flex; /* Flexboxを有効にして子要素を横並びにする */
  flex-wrap: wrap; /* 画面幅が狭い場合に折り返す */
  gap: 1.5rem; /* 各オーディオ間の隙間 */
  justify-content: space-between; /* 左右に均等に配置（中央寄せなど調整可能） */
  align-items: flex-start; /* 上揃え */
}

/* 各オーディオプレイヤーとそのタイトルをまとめる項目 */
.sample-audio .audio-item {
  flex: 1 1 calc(50% - 0.75rem); /* 2つ並べて、gapの半分を考慮した幅。 */
                                 /* flex-grow: 1, flex-shrink: 1, flex-basis: 50% - gap/2 */
  min-width: 150px; /* 最小幅を設定して、小さくなりすぎないようにする */
  box-sizing: border-box; /* paddingやborderを含めて幅を計算 */
  text-align: center; /* タイトルとプレイヤーを中央揃えにする場合 */
}

/* 音声プレイヤー本体 */
.sample-audio .audio-item audio {
  width: 100%; /* 親要素の.audio-itemの幅いっぱいに広げる */
  max-width: 250px; /* 必要に応じて、プレイヤーの最大幅を制限 */
  display: block; /* 中央寄せのためにブロック要素にする */
  margin: 0.5rem auto 0; /* タイトルとの隙間と中央寄せ */
}

/* サンプルオーディオのタイトル */
.sample-audio .audio-title {
  font-size: 0.9rem; /* 小さめの文字サイズ */
  color: #888; /* 灰色 */
  margin: 0; /* デフォルトの余白をリセット */
  padding-bottom: 0.2rem; /* 必要に応じて調整 */
  text-align: center; /* 中央揃え */
}


  .character-left,
  .character-right {
    max-width: 100%;
  }

  .character-name {
    text-align: center;
  }
 /* ▼▼ キャラクター別カラー設定 ▼▼ */

/* 猫音こころ（パステルパープル系） */
body.kokoro .first-letter {
  color: #bc9947; /* 最初の文字 */
}
body.kokoro .profile h2,
body.kokoro .voice-info h2,
body.kokoro .sample-audio h2,
body.kokoro .download h2 {
  border-left-color: #ffc756; /* セクションの縦線 */
}

body.reon .first-letter {
  color: #547443;
}
body.reon .profile h2,
body.reon .voice-info h2,
body.reon .sample-audio h2,
body.reon .download h2 {
  border-left-color: #547443;
}

body.rico .first-letter {
  color: #766197;
}
body.rico .profile h2,
body.rico .voice-info h2,
body.rico .sample-audio h2,
body.rico .download h2 {
  border-left-color: #A997C6;
}

body.nemutaro .first-letter {
  color: #4ba0a3;
}
body.nemutaro .profile h2,
body.nemutaro .voice-info h2,
body.nemutaro .sample-audio h2,
body.nemutaro .download h2 {
  border-left-color: #5ad0c6;
}

body.koharu .first-letter {
  color: #b68f34;
}
body.koharu .profile h2,
body.koharu .voice-info h2,
body.koharu .sample-audio h2,
body.koharu .jam_link h2,
body.koharu .download h2 {
  border-left-color: #e9b53b;
}

/* ほかのキャラ用のテンプレ
body.○○○○ .first-letter {
  color: #XXXXXX;
}
body.○○○○ .profile h2,
body.○○○○ .voice-info h2,
body.○○○○ .sample-audio h2,
body.○○○○ .download h2 {
  border-left-color: #XXXXXX;
}
*/

.video-section {
  background: #fff;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 700px; /* 横幅制限 */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.video-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center; /* 動画を中央に */
}


.video-list {
  display: flex;
  flex-direction: column;
  align-items: center; /* ←これで中央揃え！ */
  gap: 1.5rem;
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* タイトルもiframeも中央揃え */
  text-align: center;
}
.video-item iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border-radius: 8px;
}


.video-title {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}
.utaloader-section {
  background: #fff;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.utaloader-section h2 {
  margin-bottom: 1rem;
}

.utaloader-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.utaloader-list li {
  margin: 0.5rem 0;
}

.utaloader-list a {
  color: #007acc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.utaloader-list a:hover {
  color: #005fa3;
}


.profile {
  position: relative;
}

.secret-key {
  position: absolute;
  top: 10rem;
  right: 2rem;
  width: 24px;
  height: auto;
  cursor: pointer;
}

.back-to-list {
  position: absolute;
  top: 4rem;
  left: 1rem;
  text-decoration: none;
  color: #333;
  background: #f0f0f0;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
  z-index: 1000;
}

.back-to-list:hover {
  background: #ddd;
}

/* 💡 追加: 画像切り替えボタンのスタイル */

/* 画像切り替えボタンのコンテナ */
.image-nav-buttons {
  position: absolute; 
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between; /* 左右端にボタンを配置 */
  padding: 0 10px; 
  pointer-events: none; /* ボタン以外の場所でマウスイベントを透過させる */
}

/* ボタン自体のスタイル */
.image-nav-buttons button {
  background-color: rgba(0, 0, 0, 0.4); /* 半透明の黒背景 */
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%; /* 丸いボタン */
  font-size: 1.2rem;
  font-weight: bold;
  opacity: 0.7; /* 通常時の透明度 */
  transition: opacity 0.2s, background-color 0.2s;
  z-index: 10;
  pointer-events: auto; /* ボタン上ではマウスイベントを有効に戻す */
}

.image-nav-buttons button:hover {
  opacity: 1; /* ホバーで不透明に */
  background-color: rgba(0, 0, 0, 0.6);
}
/* 画面全体を覆う薄い白のオーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* 薄い白 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease forwards;
}

/* ポップアップのデザイン */
.popup {
  position: relative;
  background: white;
  padding: 20px 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px #aaa;
  font-size: 2rem;
  font-weight: bold;
  user-select: none;
}


/* フェードインアニメーション */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.diary-list {
  display: flex;
  justify-content: center;
  gap: 0px;
  padding: 0px 20px;
  flex-wrap: wrap;
}


.diary-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.diary-card.light:hover .diary-image {
  transform: scale(1.05);
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  text-align: center;
}

.popup h2 {
  margin-bottom: 20px;
}

.popup input {
  font-size: 1.2rem;
  padding: 8px 12px;
  margin-bottom: 20px;
  width: 80%;
}

.popup button {
  padding: 8px 16px;
  font-size: 1rem;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.popup button:hover {
  background-color: #666;
}

body.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* 黒背景のオーバーレイ */
.overlay-dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* ポップアップ本体（白いパネル） */
.popup-dark {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  text-align: center;
  position: relative;
}

/* バツボタン */
.popup-dark .close-btn-dark {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}

/* 入力欄とボタン */
.popup-dark input {
  font-size: 1.2rem;
  padding: 8px;
  width: 80%;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.popup-dark button {
  padding: 8px 16px;
  font-size: 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.popup-dark button:hover {
  background-color: #555;
}
.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.error-message {
  color: red;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 1 / 1; /* ← これで1:1比率に！ */
  object-fit: cover;   /* はみ出しても中央でトリミング */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}


/* モーダル */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  margin-bottom: 15px;
  user-select: none;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  user-select: none;
}

#caption {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-align: center;
  max-width: 90%;
}

#sourceLink {
  color: #80b3ff;
  font-size: 1rem;
  text-decoration: underline;
  margin-bottom: 30px;
  cursor: pointer;
}
#sourceLink:hover {
  color: #aaddff;
}

#searchCharacters {
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;         /* 画面幅いっぱいに広げる */
  max-width: 400px;    /* 最大幅を400pxに設定 */
  padding: 10px;       /* 内側の余白を増やす */
  font-size: 1.1rem;   /* 文字を少し大きく */
  box-sizing: border-box; /* 幅にpaddingを含める */
  margin: 20px auto;   /* 上下20px、左右は中央寄せ */
  display: block;
}

#searchCharacters:focus {
  border-color: #80b3ff;
  box-shadow: 0 0 5px #80b3ff;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0 20px;
  z-index: 1100;
}
#prevArrow { left: 10px; }
#nextArrow { right: 10px; }

.modal-arrow:hover {
  color: #80b3ff;
}


.hero {
  background: #f0f0f0;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.2rem;
  color: #555;
}

.main-menu {
  padding: 40px 20px;
  text-align: center;
}

.menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.menu-item {
  display: inline-block;
  padding: 12px 24px;
  background-color: #444;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.menu-item:hover {
  background-color: #666;
}

.latest-video {
  text-align: center;
  padding: 40px 20px;
}

.video-wrapper iframe {
  max-width: 100%;
  height: auto;
}

.friends-banner {
  padding: 40px 20px;
  text-align: center;
}

.banner-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.banner-wrapper img {
  height: 100px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.banner-wrapper img:hover {
  transform: scale(1.05);
}

.friends-banner {
  padding: 40px 20px;
  text-align: center;
}

.banner-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.banner-list a img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.banner-list a img:hover {
  transform: scale(1.05);
}

/* 中央揃え */
.contact-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

/* リンク訪問後も色を変えない */
.contact-links a:visited {
  color: inherit;
}

/* リンク共通設定 */
.contact-links a {
  text-decoration: underline;
  font-family: "HuiFont", sans-serif;
  margin: 0 10px;
}

/* 各リンクの色指定 */
.contact-links a.x-link {
  color: #1DA1F2;
}

.contact-links a.youtube-link {
  color: #FF0000;
}

.contact-links a.nicovideo-link {
  color: #888888;
}

.contact-links a.booth-link {
  color: #FF8080;
}

.contact-links a.utaloader-link {
  color: #3a63b4;
}

.contact-main a.mail-link {
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #000000; 
  padding-bottom: 0.2em; 
  margin-bottom: -1px; 
  display: inline-block; 
}

/* 中央揃え */
.rules-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

/* 通常の本文 */
.rules-main p,
.rules-main ul,
.rules-main li {
  text-align: left;
  line-height: 1.7;
  font-size: 1em;
}

/* リンクカラー固定＋下線削除 */
.rules-main a {
  color: #2c599d;
  text-decoration: none;
}

.rules-main a:visited {
  color: #2c599d;
}

/* 各見出しカラー設定 */
.rules-main h3 {
  margin-top: 2em;
  font-size: 1.2em;
}

.rules-main h3.prohibit {
  color: #b33c3c; /* 落ち着いた赤 */
}

.rules-main h3.disclaimer {
  color: #993333; /* さらに抑えた赤 */
}

.rules-main h3.allow,
.rules-main h3.contact {
  color: #5ca8d9; /* 落ち着いた水色 */
}



/* ③ 拡大表示（entry-detail）の背景が白い → 黒くする */
.dark-mode .entry-detail {
  background-color: #000 !important;
  color: #fff;
  box-shadow: none;
  border: 1px solid #000000;
}

/* ④ ＜＞ナビゲーションボタンの色調整 */
.dark-mode .nav-buttons button {
  background: transparent;
  color: #fff;
  border: 1px solid #000000;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
.dark-mode .nav-buttons button:hover {
  background-color: #000000;
}

body.dark-mode {
  background-color: #000000;
  color: #e0e0e0;
}

.dark-mode .entry-box {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.dark-mode .entry-box:hover {
  background-color: #000000;
}

.dark-mode .entry-content {
  background-color: #000000;
  color: #fff;
}

.dark-mode .back-button {
  color: #ffffff;
}

/* フッターの横幅を画面全体に広げる（親の制約を無視して） */
.dark-mode footer {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  background-color: #000;
  color: #fff;
}

