@charset "UTF-8";

html {
  scroll-padding-top: 90px;
}

:root {
  --bg-color: #fcf9f2;
  /* 温かみのある和紙調生成り色 */
  --card-bg: #ffffff;
  --text-main: #332222;
  /* 柔らかい墨色 */
  --accent-red: #800000;
  /* 深みのあるエンジ */
  --accent-soft-red: #fff0f3;
  /* 薄紅 */
  --border-color: #f0e6df;
  --shadow-soft: 0 8px 24px rgba(128, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ヘッダー（ステッキー） */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(252, 249, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.05em;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

/* タブナビゲーション */
.nav-tabs {
  display: flex;
  list-style: none;
  gap: 12px;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.25s ease;
  user-select: none;
  background-color: transparent;
}

.tab-btn:hover {
  background-color: var(--accent-soft-red);
  color: var(--accent-red);
}

.tab-btn.active {
  background-color: var(--accent-red);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

/* メインコンテンツ */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
  flex: 1;
  width: 100%;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --------------------------------------------------
   和風×もこもこ セクションタイトル
   -------------------------------------------------- */
.section-title {
  font-size: 1.5rem;
  color: var(--accent-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 6px;
  position: relative;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* 和風エンジグラデーション柱 */
.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 1.2em;
  background-color: var(--accent-red);
  border-radius: 4px;
}

/* もこもこ波線下線 */
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: radial-gradient(circle, var(--accent-red) 40%, transparent 45%) repeat-x;
  background-size: 8px 4px;
  opacity: 0.6;
}

.section-block {
  margin-bottom: 40px;
}

/* ルビ（フリガナ）スタイル調整 */
ruby {
  ruby-position: over;
}

rt {
  font-size: 0.4em;
  color: var(--accent-red);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------
   ヒーローセクション
   -------------------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background-color: var(--accent-soft-red);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.6;
}

.hero-text {
  z-index: 1;
}

.hero-text h1 {
  font-size: 2.6rem;
  color: var(--accent-red);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.25s ease;
}

/* LIVE/次回配信ボタン */
.btn-live {
  background-color: #d32f2f;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
  animation: pulseLive 2s infinite;
}

.btn-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.35);
}

@keyframes pulseLive {
  0% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
  }
}

.btn-yt {
  background-color: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
}

.btn-yt:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(128, 0, 0, 0.3);
}

.btn-x {
  background-color: var(--text-main);
  color: #ffffff;
}

.btn-x:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.hero-image {
  z-index: 1;
  text-align: center;
}

.tachie-img {
  max-height: 460px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

/* --------------------------------------------------
   共通カードスタイル（すっきり綺麗に統一）
   -------------------------------------------------- */
.about-card {
  background-color: var(--card-bg);
  padding: 36px 40px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.about-bio {
  flex: 2;
  min-width: 260px;
  line-height: 1.9;
  font-size: 1.05rem;
}

.about-details {
  flex: 1;
  min-width: 220px;
  background-color: var(--bg-color);
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px dashed var(--border-color);
  font-size: 0.95rem;
}

.about-details p {
  margin-bottom: 8px;
}

.about-details p:last-child {
  margin-bottom: 0;
}

.link-pills,
.archive-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-block;
  padding: 10px 22px;
  background-color: var(--card-bg);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  font-weight: 500;
  transition: all 0.25s ease;
}

.pill:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background-color: var(--accent-soft-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.08);
}

/* --------------------------------------------------
   Guidelines サブタブ
   -------------------------------------------------- */
.guideline-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.g-tab-btn {
  padding: 8px 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.g-tab-btn:hover {
  background-color: var(--accent-soft-red);
  color: var(--accent-red);
}

.g-tab-btn.active {
  background-color: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
  font-weight: 700;
}

.guideline-content {
  background-color: var(--card-bg);
  padding: 32px 36px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.gtab-pane {
  display: none;
}

.gtab-pane.active {
  display: block;
}

.gtab-pane h3 {
  font-size: 1.1rem;
  color: var(--accent-red);
  margin-bottom: 14px;
}

.gtab-pane ul {
  padding-left: 20px;
}

.gtab-pane li {
  margin-bottom: 8px;
}

/* --------------------------------------------------
   Assets / 三面図
   -------------------------------------------------- */
.assets-card-center {
  text-align: center;
}

.sanmenzu-wrapper {
  margin: 20px auto;
  cursor: pointer;
  text-align: center;
}

.zoomable-img-large {
  width: 100%;
  max-width: 750px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.zoomable-img-large:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 24px rgba(128, 0, 0, 0.1);
}

.creator-info-center {
  margin-top: 15px;
  text-align: center;
}

.creator-info-center p {
  margin-top: 6px;
}

/* --------------------------------------------------
   Games / アーカイブリスト
   -------------------------------------------------- */
.search-box-container {
  margin-bottom: 24px;
}

.search-box-container label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-red);
}

#game-search-input {
  width: 100%;
  max-width: 450px;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#game-search-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-soft-red);
}

.char-index-block {
  background-color: var(--card-bg);
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
}

.index-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #776666;
  margin-bottom: 10px;
}

.char-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.char-index a,
.char-index span {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
}

.char-index a {
  background-color: var(--bg-color);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.char-index a:hover {
  background-color: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.char-index .disabled {
  color: #ccc;
  cursor: default;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.game-group {
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.group-char {
  font-size: 1.2rem;
  color: var(--accent-red);
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.game-list {
  list-style: none;
}

.game-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  position: relative;
  padding-left: 14px;
}

.game-list li::before {
  content: "•";
  color: var(--accent-red);
  position: absolute;
  left: 0;
}

.game-list a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.game-list a:hover {
  color: var(--accent-red);
  text-decoration: underline;
  padding-left: 4px;
}

/* --------------------------------------------------
   Store / グッズ
   -------------------------------------------------- */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.goods-card {
  background-color: var(--card-bg);
  border-radius: 22px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.goods-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(128, 0, 0, 0.1);
  border-color: var(--accent-red);
}

.goods-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.goods-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.goods-info {
  padding: 14px 16px;
  text-align: center;
}

.goods-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.goods-card:hover .goods-info h3 {
  color: var(--accent-red);
}

.btn-outline {
  border: 2px solid var(--accent-red);
  color: var(--accent-red);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--accent-red);
  color: #ffffff;
}

/* --------------------------------------------------
   スクロールアニメーション (Fade-in Up)
   -------------------------------------------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------
   モーダル / ライトボックス
   -------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
}


/* --------------------------------------------------
   レスポンシブ (スマホ表示の調整)
   -------------------------------------------------- */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 24px;
  }

  .hero-links {
    justify-content: center;
  }

  .tachie-img {
    max-height: 320px;
  }

  .nav-container {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  /* ロゴの文字サイズを調整して収まり良く */
  .logo {
    font-size: 1.15rem;
  }

  /* タブメニューをスマホでスッキリ2列または綺麗に収まるようにする */
  .nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .tab-btn {
    padding: 6px 14px;
    font-size: 0.9rem;
  }

  /* クリエイター名などで途中で変な改行が起きないようにする */
  .creator-info-center p,
  .about-bio,
  .about-details {
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}

/* スマホ表示 (画面幅768px以下) */
@media (max-width: 768px) {

  body,
  main.main-content {
    overflow-x: hidden;
    width: 100%;
  }

  /* 非アクティブなタブは非表示にして高さを詰め、軽量化する */
  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 検索入力欄と✕ボタンの配置 */
.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
  padding-right: 2.5rem;
  /* ✕ボタンと被らないように右側にスペースを確保 */
  box-sizing: border-box;
}

/* ✕ボタン */
.clear-btn {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #999;
  cursor: pointer;
  display: none;
  padding: 0.2rem 0.5rem;
  line-height: 1;
}

.clear-btn:hover {
  color: #333;
}

/* 該当なしメッセージのスタイル */
.no-results {
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  margin: 1.5rem 0;
}

.no-results p {
  margin: 0.4rem 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.no-results a {
  color: #e05466;
  font-weight: bold;
  text-decoration: underline;
}

/* 通常（PC画面）ではスマホ用改行タグを無効化 */
.sp-only {
  display: none;
}

/* スマホ表示 (画面幅768px以下) のときだけ改行タグを有効化 */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}