/* shineアニメーションを無効化 - 通り過ぎるアニメーションのみを削除 */
@keyframes shine {
  0%, 100% {
    left: -150%;
  }
}/* gabimaru-past.css */
/* 基本カラー設定 */
:root {
  --main-color: #7c8a8e; /* 画眉丸のイメージカラー - グレーがかった白 */
  --accent-color: #d8cab7; /* 過去の雰囲気の色 */
  --dark-color: #505a5d; /* より濃いグレー */
  --light-color: #f5f5f5; /* 白っぽい色 */
  --background-color: #2d3436; /* 暗めの背景色 */
  --text-color: #f0f0f0;
  --section-bg: rgba(45, 52, 54, 0.8);
}

/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Shippori Mincho", "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "HGS明朝E", serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  /* 石隠れをイメージする和風チェックパターン */
  background-image:
    linear-gradient(45deg, var(--background-color) 25%, transparent 25%, transparent 75%, var(--background-color) 75%),
    linear-gradient(45deg, var(--background-color) 25%, transparent 25%, transparent 75%, var(--background-color) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  background-attachment: fixed;
  position: relative;
}

/* インクの飛び散りエフェクト */
body:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><circle cx="20" cy="30" r="4" fill="%237c8a8e" opacity="0.3"/><circle cx="40" cy="80" r="8" fill="%237c8a8e" opacity="0.2"/><circle cx="90" cy="40" r="6" fill="%237c8a8e" opacity="0.4"/><circle cx="130" cy="90" r="10" fill="%237c8a8e" opacity="0.3"/><circle cx="160" cy="20" r="5" fill="%237c8a8e" opacity="0.2"/><circle cx="180" cy="160" r="8" fill="%237c8a8e" opacity="0.3"/><circle cx="30" cy="130" r="7" fill="%237c8a8e" opacity="0.2"/><circle cx="80" cy="180" r="9" fill="%237c8a8e" opacity="0.4"/><circle cx="140" cy="140" r="6" fill="%237c8a8e" opacity="0.3"/></svg>');
  background-repeat: repeat;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
header {
  padding: 40px 0 20px;
  text-align: center;
  position: relative;
}

header:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--main-color), transparent);
}

h1 {
  font-family: "Noto Serif JP", "筑紫明朝", "游明朝", YuMincho, serif;
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  color: white;
  margin: 40px 0 50px;
  padding: 15px 20px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: relative;
}

/* 下線装飾のみ残す */
h1:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    var(--main-color) 20%,
    var(--accent-color) 50%,
    var(--main-color) 80%,
    transparent);
  transform: scaleX(0);
  animation-name: lineReveal;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-delay: 0.7s;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: forwards;
  animation-play-state: running;
}

@keyframes lineReveal {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

/* 斬撃エフェクトのようなアニメーション */
@keyframes slashIn {
  0% {
    transform: translateX(-100%) skewX(-20deg);
    opacity: 0;
    filter: blur(5px);
  }
  60% {
    transform: translateX(5%) skewX(-10deg);
    opacity: 1;
    filter: blur(0);
  }
  80% {
    transform: translateX(-2%) skewX(0deg);
  }
  100% {
    transform: translateX(0) skewX(0deg);
    opacity: 1;
    filter: blur(0);
  }
}

/* タイトルの装飾 */
h1:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent); */
  /* animation: shine 1s ease-in-out infinite;
  animation-delay: 1.5s; */
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* 忍者の手裏剣をイメージした装飾 */
h1:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    var(--main-color) 20%,
    var(--accent-color) 50%,
    var(--main-color) 80%,
    transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineSlash 0.8s ease-out 1.2s forwards;
}

@keyframes underlineSlash {
  to {
    transform: scaleX(1);
  }
}

/* 目次 */
.toc {
  background-color: var(--section-bg);
  border-left: 5px solid var(--main-color);
  margin: 30px 0;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.toc:before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%237c8a8e" stroke-width="2" opacity="0.3"/><path d="M50,10 L50,90 M10,50 L90,50" stroke="%237c8a8e" stroke-width="2" opacity="0.3"/></svg>');
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.toc ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.toc li {
  margin: 8px 0;
  width: 100%;
}

.toc a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.toc a:before {
  content: '→';
  margin-right: 8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.toc a:hover:before {
  opacity: 1;
  transform: translateX(0);
}

.toc a:hover {
  color: var(--light-color);
  transform: translateX(5px);
}

/* セクション共通 */
section {
  margin: 50px 0;
  padding: 25px;
  background-color: var(--section-bg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(124, 138, 142, 0.3);
  border-bottom: 1px solid rgba(124, 138, 142, 0.3);
}

section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--main-color), var(--accent-color));
}

h2 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30%;
  height: 2px;
  background-color: var(--main-color);
}

h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  position: relative;
  padding-left: 15px;
}

h3:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background-color: var(--accent-color);
}

h4 {
  color: var(--main-color);
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* 通常のテキストリンク */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #e6dbc9; /* より明るい色 */
  text-decoration: underline;
}

/* SVGリンクの特別なホバー効果 */
a.sv:hover {
  opacity: 0.7;
}

/* 画像 */
figure {
  margin: 20px 0 30px;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--main-color);
  transition: all 0.3s ease;
}

figure:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--accent-color);
  position: relative;
  display: inline-block;
  padding: 5px 10px;
}

figcaption:before, figcaption:after {
  content: '';
  position: absolute;
  width: 10px;
  height: 2px;
  background-color: var(--main-color);
  opacity: 0.7;
}

figcaption:before {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}

figcaption:after {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}

/* プロフィール */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.profile-item {
  background-color: rgba(45, 52, 54, 0.7);
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid var(--main-color);
  position: relative;
  overflow: hidden;
}

.profile-item:before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background-color: var(--main-color);
  opacity: 0.3;
  transform: rotate(45deg);
}

.profile-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  background-color: rgba(45, 52, 54, 0.9);
}

.profile-item h4 {
  color: var(--accent-color);
  margin-bottom: 8px;
  position: relative;
}

.profile-item h4:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 50%;
  height: 1px;
  background-color: var(--main-color);
}

.profile-item p {
  margin-bottom: 0;
}

/* エピソードテーブル */
.episode-table {
  margin: 30px 0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--main-color);
}

.episode-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  background-color: var(--main-color);
  padding: 15px;
}

.episode-header h4 {
  color: var(--light-color);
  margin-bottom: 0;
}

.episode-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid rgba(124, 138, 142, 0.3);
  transition: all 0.3s ease;
}

.episode-row:last-child {
  border-bottom: none;
}

.episode-row:hover {
  background-color: rgba(45, 52, 54, 0.9);
}

.episode-cell {
  padding: 15px;
}

.episode-row .episode-cell:first-child {
  border-right: 1px solid rgba(124, 138, 142, 0.3);
  font-weight: bold;
  color: var(--accent-color);
}

/* フッター */
footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
  border-top: 3px solid var(--main-color);
}

footer p {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ナビゲーションボタン */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 10px;
  width: 100%;
}

.nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 25px;
  background: linear-gradient(135deg, var(--main-color), rgba(45, 52, 54, 0.9));
  color: var(--light-color);
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--main-color);
}

.nav-button:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.6s ease;
}

.nav-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.4);
}

.nav-button:hover:before {
  left: 100%;
}

.nav-button.disabled {
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.5), rgba(80, 80, 80, 0.5));
  cursor: not-allowed;
  opacity: 0.7;
}

.nav-button.disabled:hover {
  transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-to-toc:before {
  content: "↑ ";
}

.related-link:before {
  content: "→ ";
}

/* パンくずリスト */
.breadcrumb-nav {
  margin: 20px 0 30px;
  background-color: var(--section-bg);
  padding: 12px 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--main-color);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  margin-right: 5px;
  font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  color: var(--main-color);
  margin-left: 5px;
  font-size: 18px;
  line-height: 1;
}

.breadcrumb-link {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 8px;
}

.breadcrumb-link:hover {
  background-color: rgba(124, 138, 142, 0.2);
  color: var(--light-color);
}

.current-page {
  color: var(--main-color);
  font-weight: bold;
  padding: 4px 8px;
}

/* 著作権表記 & フッター強化 */
.copy {
  background-color: rgba(35, 40, 42, 0.9);
  border-top: 4px solid;
  border-image: linear-gradient(to right, var(--main-color), var(--accent-color)) 1;
  padding: 30px 25px;
  margin-top: 60px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
  position: relative;
}

.copy:before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background-color: var(--background-color);
  border: 3px solid var(--main-color);
  box-shadow: 0 0 10px rgba(124, 138, 142, 0.5);
  transform: translateX(-50%) rotate(45deg);
}

.copy p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--light-color);
}

.copy strong {
  color: var(--accent-color);
  font-weight: bold;
}

.contact-info {
  background-color: rgba(45, 52, 54, 0.7);
  padding: 15px;
  margin: 20px 0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--main-color);
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: #e6dbc9;
  text-decoration: underline;
}

.usage-terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding-top: 15px;
  border-top: 1px dashed rgba(124, 138, 142, 0.3);
}

.usage-terms p {
  margin-bottom: 10px;
}

.usage-terms a {
  color: var(--accent-color);
  text-decoration: none;
  padding: 4px 8px;
  transition: all 0.3s ease;
}

.usage-terms a:hover {
  background-color: var(--main-color);
  color: var(--light-color);
}

.copyright {
  text-align: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(124, 138, 142, 0.3);
  font-size: 13px;
  color: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright img {
  vertical-align: middle;
  margin-right: 5px;
}

.copyright a {
  color: var(--accent-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  transition: all 0.3s ease;
}

.copyright a:hover {
  background-color: rgba(124, 138, 142, 0.2);
  color: var(--light-color);
}

.push0 {
  position: relative;
  overflow: hidden;
}

.push0:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--main-color), var(--accent-color));
  transform: translateX(-100%);
  transition: all 0.3s ease;
}

.push0:hover:after {
  transform: translateX(0);
}

/* おすすめセクション */
#recommendations {
  margin: 50px 0;
  position: relative;
  padding-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

#recommendations:before {
  content: "おすすめ記事";
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--main-color), var(--accent-color));
  color: var(--light-color);
  padding: 8px 20px;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
  grid-column: 1 / -1;
}

#recommendations:after {
  content: "";
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--main-color), var(--accent-color), transparent);
  grid-column: 1 / -1;
}

.recommendation-item {
  display: block;
  background-color: var(--section-bg);
  margin: 20px 0;
  padding: 20px;
  text-decoration: none;
  color: var(--light-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-left: 5px solid var(--main-color);
}

.recommendation-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  background-color: rgba(45, 52, 54, 0.8);
  border-left-color: var(--accent-color);
}

.recommendation-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: all 0.6s ease;
}

.recommendation-item:hover:before {
  left: 100%;
}

.recommendation-item img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
}

.recommendation-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.recommendation-title {
  font-weight: bold;
  font-size: 16px;
  color: var(--light-color);
  display: block;
  position: relative;
  padding-bottom: 10px;
}

.recommendation-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30%;
  height: 2px;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
}

.recommendation-item:hover .recommendation-title:after {
  width: 70%;
}

/* 記事情報・更新日時・SNSボタン */
.info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background-color: var(--section-bg);
  padding: 15px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.info-container:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--main-color), var(--accent-color));
}

/* 更新情報 */
.update-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-icon {
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%237c8a8e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>') no-repeat center center;
  flex-shrink: 0;
}

.time {
  margin: 0;
  font-size: 14px;
  color: var(--light-color);
}

.time time {
  color: var(--accent-color);
  font-weight: bold;
}

/* シェアボタン */
.share-buttons {
  display: flex;
  align-items: center;
}

.share-group {
  display: flex;
  gap: 15px;
  align-items: center;
  position: relative;
}

.share-group:before {
  content: "シェア:";
  color: var(--main-color);
  font-size: 14px;
  margin-right: 10px;
}

/* Twitterボタンカスタマイズ */
.twitter-share-button {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.twitter-share-button:hover {
  transform: translateY(-3px);
}

/* Facebookボタンカスタマイズ */
.fb-share-button {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.fb-share-button:hover {
  transform: translateY(-3px);
}

.fb-share-button a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 10px;
  border: 1px solid var(--main-color);
  background-color: rgba(45, 52, 54, 0.7);
  transition: all 0.3s ease;
  display: inline-block;
}

.fb-share-button a:hover {
  background-color: var(--main-color);
  color: var(--light-color);
}

/* 過去編・能力編タブ切り替え */
.character-edition-tabs {
  display: flex;
  justify-content: center;
  margin: 30px auto 40px;
  width: 100%;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.edition-tab {
  flex: 1;
  text-align: center;
  padding: 15px 20px;
  color: var(--light-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  position: relative;
  transition: all 0.3s ease;
  background: linear-gradient(to bottom, rgba(124, 138, 142, 0.9), rgba(124, 138, 142, 0.7));
  border-bottom: 3px solid transparent;
}

.edition-tab:hover:not(.disabled) {
  transform: translateY(-3px);
  background: linear-gradient(to bottom, rgba(124, 138, 142, 1), rgba(124, 138, 142, 0.8));
}

.edition-tab.current {
  background: linear-gradient(to bottom, rgba(216, 202, 183, 0.9), rgba(216, 202, 183, 0.7));
  color: #333;
  border-bottom: 3px solid var(--accent-color);
  pointer-events: none;
}

.edition-tab.disabled {
  background: rgba(100, 100, 100, 0.5);
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
  pointer-events: none;
}

.edition-tab:not(.current):not(.disabled):after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.edition-tab:not(.current):not(.disabled):hover:after {
  background-color: var(--accent-color);
}

/* 単独のおすすめ記事 */
.single-recommendation {
  max-width: 800px;
  margin: 50px auto;
  text-align: center;
}

.single-recommendation a {
  display: block;
  text-decoration: none;
  background-color: var(--section-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--main-color);
}

.single-recommendation a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.single-recommendation img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.single-recommendation a:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.single-recommendation-title {
  padding: 20px;
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  background-color: rgba(45, 52, 54, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  border-top: 3px solid var(--accent-color);
}

/* 死罪人一覧 */
#death-row-prisoners {
  margin: 50px 0;
  padding: 25px;
  background-color: var(--section-bg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(124, 138, 142, 0.3);
  border-bottom: 1px solid rgba(124, 138, 142, 0.3);
}

#death-row-prisoners:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--main-color), var(--accent-color));
}

.prisoners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.prisoner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 15px;
  background-color: rgba(45, 52, 54, 0.7);
  border: 1px solid var(--main-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prisoner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background-color: rgba(45, 52, 54, 0.9);
}

.prisoner-item img {
  border: 2px solid var(--accent-color);
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.prisoner-item:hover img {
  transform: scale(1.1);
  border-color: #e6dbc9;
}

.prisoner-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-top: 5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 24px;
    animation-duration: 1.2s;
  }

  section {
    padding: 20px 15px;
  }

  .toc ul {
    flex-direction: column;
  }

  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .episode-header, .episode-row {
    grid-template-columns: 1fr;
  }

  .episode-row .episode-cell:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(124, 138, 142, 0.3);
  }

  .navigation-buttons {
    flex-direction: column;
  }

  .nav-button {
    width: 100%;
  }

  .info-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .share-group {
    width: 100%;
    justify-content: flex-start;
  }

  .character-edition-tabs {
    max-width: 100%;
    margin: 20px auto 30px;
  }

  .edition-tab {
    font-size: 16px;
    padding: 12px 15px;
  }

  #recommendations {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  h1 {
    font-size: 20px;
    margin: 20px 0 30px;
    padding: 10px 15px;
    animation-duration: 1s;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 16px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 15px 10px;
  }

  .copy {
    padding: 20px 10px;
  }

  .copyright {
    flex-direction: column;
  }

  .edition-tab {
    font-size: 14px;
    padding: 10px;
  }

  .prisoners-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
}

/* 画像の不透明度は通常表示に */
.sneak {
  position: relative;
  opacity: 1;
}

/* ページローディング時のフェードイン - 一度だけ実行 */
body {
  opacity: 1;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
}

::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}
