/* タコピーの原罪 - キャラクター一覧ページ CSS */

/* フォントインポート */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@700;900&family=Noto+Sans+JP:wght@400;700&family=Bebas+Neue&display=swap');

/* CSS変数定義 */
:root {
  --takopi-pink: #ff69b4;
  --takopi-light-pink: #ffb6e0;
  --takopi-yellow: #ffd700;
  --takopi-dark-pink: #ff1493;
  --text-dark: #333;
  --text-gray: #666;
  --bg-white: #fff;
  --bg-light: #fffafc;
  --max-width: 1200px;

  /* キャラクターキーカラー */
  --color-takopi: #ff69b4;
  --color-shizuka: #6495ed;
  --color-marina: #dc143c;
  --color-naoki: #32cd32;
  --color-chappy: #8b4513;
  --color-junya: #ff8c00;
  --color-shizuka-mother: #9370db;
  --color-shizuka-father: #778899;
  --color-marina-mother: #4b0082;
  --color-marina-father: #2f4f4f;
  --color-azuma-mother: #20b2aa;
  --color-happymama: #ffd700;
}

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ベース設定 */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.8;
  background-image:
    /* 星のパターン */
    radial-gradient(circle at 10% 20%, var(--takopi-yellow) 0%, transparent 2%),
    radial-gradient(circle at 80% 80%, var(--takopi-yellow) 0%, transparent 2%),
    radial-gradient(circle at 40% 40%, var(--takopi-yellow) 0%, transparent 1.5%),
    radial-gradient(circle at 90% 10%, var(--takopi-yellow) 0%, transparent 1.5%),
    radial-gradient(circle at 30% 70%, var(--takopi-yellow) 0%, transparent 2%),
    /* タコのパターン - SVGをインラインで埋め込み */
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="%23ffb6e0" opacity="0.2" d="M24.74,22.39l-1.53-1.27c1.51-1.72,2.43-3.98,2.43-6.45,0-5.4-4.39-9.8-9.8-9.8S6.05,9.27,6.05,14.67c0,2.69,1.09,5.12,2.85,6.9l-1.45,1.2c-.81.67-.92,1.86-.25,2.66.37.45.92.69,1.46.69.42,0,.85-.14,1.2-.43l2.33-1.92c.05.02.11.04.16.06l-.51,1.08c-.45.94-.04,2.07.9,2.52.26.12.54.18.81.18.71,0,1.39-.4,1.71-1.08l.98-2.06c.07,0,.15,0,.22-.01l1.01,2.13c.32.68,1,1.08,1.71,1.08.27,0,.55-.06.81-.18.94-.45,1.35-1.58.9-2.52l-.65-1.38,2.09,1.73c.35.29.78.43,1.2.43.55,0,1.09-.23,1.46-.69.67-.81.55-2-.25-2.66Z"/></svg>');
  background-position:
    10% 20%, 80% 80%, 40% 40%, 90% 10%, 30% 70%,
    0 0;
  background-size:
    100px 100px, 100px 100px, 100px 100px, 100px 100px, 100px 100px,
    80px 80px;
  background-repeat: repeat;
}

/* ヘッダー */
header {
  background-color: var(--takopi-pink);
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  font-size: 14px;
  color: var(--bg-white);
}

.breadcrumb a {
  color: var(--bg-white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumb a:hover {
  opacity: 0.8;
}

/* メインコンテンツ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px 40px;
  background-color: var(--bg-white);
  box-shadow: 0 0 20px rgba(255,105,180,0.1);
  border-radius: 20px;
  margin-top: 20px;
  margin-bottom: 40px;
  overflow: visible;
}

/* タイトル */
h1 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--takopi-dark-pink);
  text-align: center;
  margin: 20px 0 60px;
  text-shadow: 4px 4px 0 var(--takopi-yellow), 8px 8px 0 var(--takopi-light-pink);
  line-height: 1.3;
  letter-spacing: 0.05em;
  animation: title-pop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: visible;
}

/* タイトルアニメーション */
@keyframes title-pop {
  0% {
    transform: scale(0.5) translateY(-20px);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) translateY(5px);
  }
  70% {
    transform: scale(0.98) translateY(-2px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* タイトルの装飾アニメーション */
h1::before,
h1::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="%23ff69b4" d="M24.74,22.39l-1.53-1.27c1.51-1.72,2.43-3.98,2.43-6.45,0-5.4-4.39-9.8-9.8-9.8S6.05,9.27,6.05,14.67c0,2.69,1.09,5.12,2.85,6.9l-1.45,1.2c-.81.67-.92,1.86-.25,2.66.37.45.92.69,1.46.69.42,0,.85-.14,1.2-.43l2.33-1.92c.05.02.11.04.16.06l-.51,1.08c-.45.94-.04,2.07.9,2.52.26.12.54.18.81.18.71,0,1.39-.4,1.71-1.08l.98-2.06c.07,0,.15,0,.22-.01l1.01,2.13c.32.68,1,1.08,1.71,1.08.27,0,.55-.06.81-.18.94-.45,1.35-1.58.9-2.52l-.65-1.38,2.09,1.73c.35.29.78.43,1.2.43.55,0,1.09-.23,1.46-.69.67-.81.55-2-.25-2.66Z"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255,105,180,0.5));
}

h1::before {
  top: -20px;
  left: -40px;
  animation: tako-appear 0.6s ease-out 0.8s forwards, tako-gentle-float 4s ease-in-out 1.4s infinite;
}

h1::after {
  bottom: -20px;
  right: -40px;
  animation: tako-appear 0.6s ease-out 1s forwards, tako-gentle-float 4s ease-in-out 1.6s infinite reverse;
}

@keyframes tako-appear {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes tako-gentle-float {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

/* 見出し */
h2 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--takopi-dark-pink);
  margin: 60px 0 20px;
  padding: 15px 25px;
  background: linear-gradient(135deg, var(--takopi-yellow) 0%, var(--takopi-light-pink) 50%, transparent 100%);
  border-radius: 10px;
  border-left: 8px solid var(--takopi-dark-pink);
  position: relative;
  text-shadow: 2px 2px 0 var(--bg-white);
  letter-spacing: 0.05em;
}

h2::before {
  content: "★";
  color: var(--takopi-yellow);
  font-size: 1.5rem;
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  animation: star-twinkle 2s infinite;
}

h2::after {
  content: "★";
  color: var(--takopi-yellow);
  font-size: 1.2rem;
  position: absolute;
  right: 20px;
  top: 10px;
  transform: rotate(15deg);
  animation: star-twinkle 2s infinite;
  animation-delay: 1s;
}

@keyframes star-twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1) rotate(15deg);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9) rotate(15deg);
  }
}

h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-gray);
  margin-bottom: 30px;
  padding-left: 20px;
  position: relative;
}

h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: var(--takopi-yellow);
  border-radius: 50%;
}

/* 目次 */
.table-of-contents {
  background-color: var(--bg-light);
  border: 3px solid var(--takopi-light-pink);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  animation: gentle-fade-in 0.8s ease-out 0.5s forwards;
  opacity: 0;
}

@keyframes gentle-fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-of-contents::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background-color: var(--takopi-yellow);
  border-radius: 50%;
  opacity: 0.3;
}

.table-of-contents h2 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1.5rem;
  margin: 0 0 20px;
  padding: 0;
  background: none;
  border: none;
  text-align: center;
  text-shadow: none;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
}

.table-of-contents li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.table-of-contents li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="%23ff1493" d="M24.74,22.39l-1.53-1.27c1.51-1.72,2.43-3.98,2.43-6.45,0-5.4-4.39-9.8-9.8-9.8S6.05,9.27,6.05,14.67c0,2.69,1.09,5.12,2.85,6.9l-1.45,1.2c-.81.67-.92,1.86-.25,2.66.37.45.92.69,1.46.69.42,0,.85-.14,1.2-.43l2.33-1.92c.05.02.11.04.16.06l-.51,1.08c-.45.94-.04,2.07.9,2.52.26.12.54.18.81.18.71,0,1.39-.4,1.71-1.08l.98-2.06c.07,0,.15,0,.22-.01l1.01,2.13c.32.68,1,1.08,1.71,1.08.27,0,.55-.06.81-.18.94-.45,1.35-1.58.9-2.52l-.65-1.38,2.09,1.73c.35.29.78.43,1.2.43.55,0,1.09-.23,1.46-.69.67-.81.55-2-.25-2.66Z"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
}

.table-of-contents a {
  color: var(--takopi-pink);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
}

.table-of-contents a:hover {
  color: var(--takopi-dark-pink);
  padding-left: 5px;
}

/* 画像 */
.main-image {
  margin: 30px 0;
  text-align: center;
  animation: gentle-fade-in 0.8s ease-out 0.8s forwards;
  opacity: 0;
}

.main-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-image figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* キャラクターグリッド - ボタンスタイルに変更 */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,182,224,0.1) 100%);
  border-radius: 20px;
  position: relative;
}

.character-grid::before {
  content: "★";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 2rem;
  color: var(--takopi-yellow);
  transform: rotate(-15deg);
  opacity: 0.5;
}

/* キャラクターボタン */
.character-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: linear-gradient(145deg, var(--bg-white) 0%, #f0f0f0 100%);
  border: 3px solid var(--takopi-light-pink);
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.character-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--takopi-yellow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.character-button:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255,105,180,0.4);
  border-color: var(--takopi-pink);
}

.character-button:hover::before {
  opacity: 0.3;
}

.character-button:active {
  transform: translateY(-3px) scale(1.02);
}

.character-button img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--takopi-pink);
  box-shadow: 0 0 15px rgba(255,105,180,0.3);
  transition: all 0.3s;
  margin-bottom: 10px;
}

.character-button:hover img {
  box-shadow: 0 0 25px rgba(255,105,180,0.6);
  border-color: var(--takopi-dark-pink);
  transform: scale(1.1);
}

.character-button span {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

/* キャラクターカード - より魅力的なデザインに */
.character-cards {
  margin-top: 40px;
}

/* キャラクターごとのテーマカラー適用 */
#takopi { --theme-color: var(--color-takopi); }
#shizuka { --theme-color: var(--color-shizuka); }
#marina { --theme-color: var(--color-marina); }
#naoki { --theme-color: var(--color-naoki); }
#chappy { --theme-color: var(--color-chappy); }
#junya { --theme-color: var(--color-junya); }
#shizuka-mother { --theme-color: var(--color-shizuka-mother); }
#shizuka-father { --theme-color: var(--color-shizuka-father); }
#marina-mother { --theme-color: var(--color-marina-mother); }
#marina-father { --theme-color: var(--color-marina-father); }
#azuma-mother { --theme-color: var(--color-azuma-mother); }
#happymama { --theme-color: var(--color-happymama); }

.character-card {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255,255,255,0.8) 100%);
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
  border: 4px solid transparent;
  background-clip: padding-box;
  transition: all 0.3s;
  animation: card-slide-in 0.6s ease-out forwards;
  opacity: 0;
}

/* キャラクターカードの背景グラデーション */
.character-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--theme-color) 0%, transparent 30%);
  opacity: 0.1;
  z-index: 0;
}

.character-card::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--theme-color), var(--takopi-pink), var(--theme-color));
  border-radius: 30px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.character-card:hover::after {
  opacity: 1;
}

@keyframes card-slide-in {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.character-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* ホバー時のテキスト色変更 */
.character-card:hover .character-name {
  -webkit-text-fill-color: var(--bg-white);
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.character-card:hover .character-name::after {
  background: linear-gradient(90deg, var(--bg-white), transparent);
}

.character-card:hover .character-cast {
  color: var(--bg-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.character-card:hover .character-reading {
  color: var(--bg-white);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.character-card:hover .character-catchphrase {
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
  color: var(--bg-white);
  border: 2px solid var(--theme-color);
  box-shadow: 0 5px 20px var(--theme-color);
}

.character-card:hover .character-description {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
  border-left-width: 8px;
}

.card-number {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: conic-gradient(from 0deg, var(--theme-color), var(--takopi-yellow), var(--theme-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  color: var(--bg-white);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 2;
  transform: rotate(-10deg);
  transition: all 0.3s;
}

.character-card:hover .card-number {
  transform: rotate(360deg) scale(1.2);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.card-content {
  display: flex;
  padding: 40px;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.card-image {
  flex-shrink: 0;
  position: relative;
}

.card-image::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, var(--theme-color) 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.1;
  }
}

.card-image img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 10px solid var(--theme-color);
  box-shadow: 0 0 40px rgba(0,0,0,0.2), 0 0 80px var(--theme-color);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.character-card:hover .card-image img {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 60px rgba(0,0,0,0.3), 0 0 120px var(--theme-color);
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.character-name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  background: linear-gradient(45deg, var(--theme-color), var(--takopi-dark-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.character-name::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-color), transparent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.character-reading {
  font-size: 1rem;
  color: var(--text-gray);
  margin: 0;
  font-style: italic;
  transition: all 0.3s ease;
}

.character-cast {
  font-size: 1.2rem;
  color: var(--theme-color);
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.character-cast::before {
  content: "🎤";
  font-size: 1.5rem;
}

.character-catchphrase {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--bg-white);
  background: linear-gradient(135deg, var(--theme-color) 0%, var(--takopi-pink) 100%);
  padding: 10px 25px;
  border-radius: 30px;
  display: inline-block;
  margin: 15px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.character-catchphrase::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.character-description {
  margin-top: 20px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  border-radius: 20px;
  border-left: 5px solid var(--theme-color);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
  position: relative;
  transition: all 0.3s ease;
}

.character-description::before {
  content: "📝";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  opacity: 0.3;
}

.character-description p {
  line-height: 2;
  color: var(--text-dark);
  font-weight: 500;
}

/* 動画コンテナ */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* セクション */
section {
  margin-bottom: 60px;
}

/* 段落 */
p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* リンク */
a {
  color: var(--takopi-pink);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: var(--takopi-dark-pink);
  text-decoration: underline;
}

/* フッター */
footer {
  background-color: var(--takopi-pink);
  color: var(--bg-white);
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

footer a {
  color: var(--bg-white);
}

footer a:hover {
  opacity: 0.8;
}

.contact-info,
.usage-terms,
.copyright {
  margin-top: 20px;
}

/* レスポンシブデザイン */
@media screen and (max-width: 1024px) {
  /* タブレット用 */
  main {
    padding: 40px 20px;
  }

  .card-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .card-image img {
    width: 180px;
    height: 180px;
  }

  .character-name {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  /* スマホ用調整 */
  main {
    padding: 30px 15px 20px;
    margin: 10px;
    border-radius: 10px;
  }

  h1 {
    font-size: 1.6rem;
    text-shadow: 2px 2px 0 var(--takopi-yellow), 4px 4px 0 var(--takopi-light-pink);
    margin: 10px 0 40px;
    padding: 0 5px;
  }

  /* モバイルではタコアイコンを非表示 */
  h1::before,
  h1::after {
    display: none;
  }

  h2 {
    font-size: 1.3rem;
    padding: 8px 10px;
    margin: 30px -5px 15px;
  }

  h2::before,
  h2::after {
    font-size: 1rem;
  }

  h2::before {
    left: -3px;
  }

  h2::after {
    right: 10px;
    top: 5px;
  }

  h3 {
    font-size: 1.05rem;
    padding-left: 15px;
    margin-bottom: 20px;
  }

  h3::before {
    left: 0;
    width: 8px;
    height: 8px;
  }

  .table-of-contents {
    padding: 15px 10px;
    margin: 0 -5px 30px;
  }

  /* キャラクターグリッド */
  .character-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px 10px;
  }

  .character-button {
    padding: 10px 5px;
    border-width: 2px;
  }

  .character-button img {
    width: 60px;
    height: 60px;
    border-width: 2px;
    margin-bottom: 5px;
  }

  .character-button span {
    font-size: 0.75rem;
  }

  /* キャラクターカード */
  .character-card {
    margin: 0 -5px 20px;
    border-radius: 15px;
    border-width: 3px;
  }

  .card-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    top: -12px;
    left: -12px;
  }

  .card-content {
    padding: 60px 15px 20px;
    gap: 20px;
  }

  .card-image::before {
    display: none;
  }

  .card-image img {
    width: 140px;
    height: 140px;
    border-width: 6px;
  }

  .character-name {
    font-size: 1.5rem;
  }

  .character-reading {
    font-size: 0.85rem;
  }

  .character-cast {
    font-size: 1rem;
  }

  .character-cast::before {
    font-size: 1.2rem;
  }

  .character-catchphrase {
    font-size: 1.1rem;
    padding: 6px 15px;
  }

  .character-description {
    margin-top: 15px;
    padding: 15px;
    font-size: 0.9rem;
  }

  .character-description::before {
    font-size: 1.5rem;
    top: 5px;
    right: 5px;
  }

  /* 動画コンテナ */
  .video-container {
    margin: 20px -5px;
  }

  /* フッター */
  footer {
    padding: 30px 10px;
    font-size: 0.85rem;
  }

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

/* アニメーションの軽量化 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* アクセシビリティ */
.sneak {
  /* 画像の遅延読み込み用クラス */
  opacity: 1;
  transition: opacity 0.3s;
}

/* プリント用スタイル */
@media print {
  body {
    background: none;
    color: #000;
  }

  header,
  footer,
  .table-of-contents,
  .video-container {
    display: none;
  }

  main {
    box-shadow: none;
    padding: 0;
  }

  h1, h2, h3 {
    color: #000;
    text-shadow: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .character-card {
    page-break-inside: avoid;
    border: 1px solid #000;
  }

  .card-number,
  .character-catchphrase::before,
  .character-description::before {
    display: none;
  }

  .character-name,
  .character-cast,
  .character-catchphrase {
    color: #000;
    background: none;
    -webkit-text-fill-color: #000;
  }
}
/* 相関図ページ専用スタイル */

/* 相関図メイン画像 */
.soukanzu-main {
  margin: 40px 0;
  position: relative;
  animation: soukanzu-fade-in 1s ease-out 0.5s forwards;
  opacity: 0;
}

.soukanzu-main img {
  border: 4px solid var(--takopi-pink);
  box-shadow: 0 10px 30px rgba(255,105,180,0.3);
  transition: all 0.3s;
}

.soukanzu-main:hover img {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(255,105,180,0.4);
}

@keyframes soukanzu-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 凡例テーブル */
.legend-table {
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(255,215,0,0.1) 100%);
  border-radius: 20px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.legend-table::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--takopi-yellow) 0%, transparent 70%);
  opacity: 0.3;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: 15px;
  border-left: 5px solid var(--takopi-pink);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

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

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

.legend-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(255,105,180,0.2);
  border-left-color: var(--takopi-dark-pink);
}

.legend-item:nth-child(odd) {
  animation: legend-slide-left 0.8s ease-out forwards;
  opacity: 0;
}

.legend-item:nth-child(even) {
  animation: legend-slide-right 0.8s ease-out forwards;
  opacity: 0;
}

.legend-item:nth-child(1) { animation-delay: 0.1s; }
.legend-item:nth-child(2) { animation-delay: 0.2s; }
.legend-item:nth-child(3) { animation-delay: 0.3s; }
.legend-item:nth-child(4) { animation-delay: 0.4s; }
.legend-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes legend-slide-left {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes legend-slide-right {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.legend-image {
  flex-shrink: 0;
  width: 128px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,182,224,0.1) 100%);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.legend-item:hover .legend-image {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 5px 15px rgba(255,105,180,0.3);
}

.legend-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.legend-text {
  flex: 1;
  line-height: 1.8;
}

.legend-text strong {
  color: var(--takopi-dark-pink);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.legend-text strong::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--takopi-yellow);
  font-size: 1rem;
  animation: star-rotate 3s linear infinite;
}

@keyframes star-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .soukanzu-main {
    margin: 20px -15px;
  }

  .soukanzu-main img {
    border-width: 2px;
  }

  .legend-table {
    padding: 15px;
    margin: 20px -10px;
  }

  .legend-item {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
  }

  .legend-item:hover {
    transform: translateX(5px);
  }

  .legend-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 2/1;
  }

  .legend-text {
    text-align: center;
  }

  .legend-text strong {
    font-size: 1.1rem;
    padding-left: 20px;
  }

  .legend-text strong::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* 見どころセクションのh3スタイル追加 */
#midokoro h3 {
  color: var(--takopi-dark-pink);
  background: linear-gradient(90deg, rgba(255,182,224,0.3) 0%, transparent 100%);
  padding: 10px 20px;
  margin: 40px 0 20px;
  border-radius: 30px;
  display: inline-block;
  position: relative;
  font-size: 1.4rem;
}

#midokoro h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle cx="16" cy="16" r="8" fill="%23ff69b4"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.5;
}

/* アニメーション最適化 */
@media (prefers-reduced-motion: reduce) {
  .soukanzu-main,
  .legend-item {
    animation: none !important;
    opacity: 1 !important;
  }

  .legend-text strong::before {
    animation: none !important;
  }
}
/* アニメページ専用スタイル */

/* キャラクターダイアログ */
.character-dialogue {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dialogue-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  animation: dialogue-fade-in 0.8s ease-out forwards;
  opacity: 0;
}

.dialogue-item.left {
  flex-direction: row;
  animation-delay: 0.2s;
}

.dialogue-item.right {
  flex-direction: row-reverse;
  animation-delay: 0.4s;
}

@keyframes dialogue-fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.dialogue-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--takopi-pink);
  box-shadow: 0 5px 15px rgba(255,105,180,0.3);
  flex-shrink: 0;
  transition: all 0.3s;
}

.dialogue-item:hover img {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(255,105,180,0.5);
}

.dialogue-bubble {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255,182,224,0.2) 100%);
  border: 3px solid var(--takopi-light-pink);
  border-radius: 20px;
  padding: 15px 20px;
  position: relative;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.dialogue-item:hover .dialogue-bubble {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,105,180,0.2);
  border-color: var(--takopi-pink);
}

/* 吹き出しの三角形 */
.dialogue-item.left .dialogue-bubble::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 15px 10px 0;
  border-color: transparent var(--takopi-light-pink) transparent transparent;
}

.dialogue-item.right .dialogue-bubble::before {
  content: "";
  position: absolute;
  right: -13px;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent var(--takopi-light-pink);
}

/* アニメ情報テーブル */
.anime-info-table {
  width: 100%;
  margin: 30px 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255,105,180,0.2);
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255,215,0,0.05) 100%);
  animation: table-slide-up 0.8s ease-out 0.5s forwards;
  opacity: 0;
}

@keyframes table-slide-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.anime-info-table th,
.anime-info-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 2px solid var(--takopi-light-pink);
}

.anime-info-table th {
  background: linear-gradient(135deg, var(--takopi-pink) 0%, var(--takopi-light-pink) 100%);
  color: var(--bg-white);
  font-weight: 700;
  font-size: 1.1rem;
  width: 35%;
  position: relative;
  overflow: hidden;
}

.anime-info-table th::before {
  content: "★";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--takopi-yellow);
  font-size: 1.2rem;
  animation: star-twinkle 2s infinite;
}

.anime-info-table td {
  background: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.anime-info-table tr:last-child th,
.anime-info-table tr:last-child td {
  border-bottom: none;
}

.anime-info-table tr:hover td {
  background: rgba(255,182,224,0.1);
  transition: background 0.3s;
}

/* 配信サイトグリッド */
.streaming-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 30px 0;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,182,224,0.1) 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.streaming-sites-grid::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--takopi-yellow) 0%, transparent 70%);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.site-item {
  background: var(--bg-white);
  padding: 15px 20px;
  border-radius: 15px;
  border: 2px solid var(--takopi-light-pink);
  text-align: center;
  font-weight: 700;
  color: var(--takopi-dark-pink);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.site-item::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg, transparent, rgba(255,215,0,0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.site-item:hover::before {
  top: -150%;
  left: -150%;
}

.site-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255,105,180,0.3);
  border-color: var(--takopi-pink);
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255,182,224,0.1) 100%);
}

/* キャストテーブル */
.cast-table {
  width: 100%;
  margin: 30px 0;
  border-collapse: separate;
  border-spacing: 0 10px;
  background: transparent;
}

.cast-table thead th {
  background: linear-gradient(135deg, var(--takopi-dark-pink) 0%, var(--takopi-pink) 100%);
  color: var(--bg-white);
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cast-table thead th:first-child {
  border-radius: 20px 0 0 20px;
}

.cast-table thead th:last-child {
  border-radius: 0 20px 20px 0;
}

.cast-table thead th::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 3s infinite;
}

.cast-table tbody tr {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255,182,224,0.05) 100%);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
  border-radius: 20px;
}

.cast-table tbody tr:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(255,105,180,0.3);
}

.cast-table td {
  padding: 20px;
  vertical-align: middle;
  border: none;
}

.cast-table td:first-child {
  border-radius: 20px 0 0 20px;
}

.cast-table td:last-child {
  border-radius: 0 20px 20px 0;
}

.cast-image {
  text-align: center;
  width: 100px;
}

.cast-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--takopi-pink);
  box-shadow: 0 5px 15px rgba(255,105,180,0.3);
  transition: all 0.3s;
}

.cast-table tbody tr:hover .cast-image img {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(255,105,180,0.5);
}

.cast-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.cast-name a {
  color: var(--takopi-dark-pink);
  text-decoration: none;
  position: relative;
  transition: all 0.3s;
}

.cast-name a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--takopi-pink);
  transition: width 0.3s;
}

.cast-name a:hover::after {
  width: 100%;
}

.cast-voice {
  font-size: 1.05rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* リンクボタン */
.link-buttons {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--takopi-pink) 0%, var(--takopi-light-pink) 100%);
  color: var(--bg-white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(255,105,180,0.3);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.link-button::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.link-button:hover::before {
  top: -150%;
  left: -150%;
}

.link-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255,105,180,0.5);
  background: linear-gradient(135deg, var(--takopi-dark-pink) 0%, var(--takopi-pink) 100%);
}

.button-icon {
  font-size: 1.5rem;
}

/* 公式リンクボタン */
.official-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 40px 0;
  align-items: center;
}

.official-link-button {
  display: inline-block;
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--takopi-yellow) 0%, var(--takopi-pink) 100%);
  color: var(--bg-white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
  max-width: 500px;
}

.official-link-button::after {
  content: "→";
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: all 0.3s;
}

.official-link-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255,105,180,0.4);
  background: linear-gradient(135deg, var(--takopi-pink) 0%, var(--takopi-dark-pink) 100%);
}

.official-link-button:hover::after {
  transform: translateY(-50%) translateX(5px);
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  /* キャラクターダイアログ */
  .character-dialogue {
    margin: 20px 0;
    gap: 15px;
  }

  .dialogue-item {
    gap: 10px;
  }

  .dialogue-item img {
    width: 60px;
    height: 60px;
    border-width: 3px;
  }

  .dialogue-bubble {
    font-size: 0.95rem;
    padding: 10px 15px;
    max-width: calc(100vw - 100px);
  }

  /* テーブル調整 */
  .anime-info-table th,
  .anime-info-table td {
    padding: 12px 10px;
    font-size: 0.9rem;
  }

  .anime-info-table th {
    width: 40%;
    font-size: 0.85rem;
  }

  /* 配信サイトグリッド */
  .streaming-sites-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 15px;
  }

  .site-item {
    padding: 10px 5px;
    font-size: 0.85rem;
  }

  /* キャストテーブル */
  .cast-table {
    font-size: 0.9rem;
  }

  .cast-table thead {
    display: none;
  }

  .cast-table tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 15px;
    text-align: center;
  }

  .cast-table td {
    padding: 10px;
    width: 100%;
    border-radius: 0;
  }

  .cast-image {
    width: 100%;
  }

  .cast-name {
    font-size: 1rem;
    margin: 10px 0 5px;
  }

  .cast-voice {
    font-size: 0.95rem;
  }

  /* リンクボタン */
  .link-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .link-button {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 12px 20px;
  }

  /* 公式リンクボタン */
  .official-link-button {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .official-link-button::after {
    right: 20px;
  }
}

/* アニメーション最適化 */
@media (prefers-reduced-motion: reduce) {
  .dialogue-item,
  .anime-info-table,
  .streaming-sites-grid::before {
    animation: none !important;
    opacity: 1 !important;
  }

  .site-item::before,
  .link-button::before,
  .cast-table thead th::after {
    animation: none !important;
  }
}
/* アニメページ専用の追加スタイル */

/* アニメ情報テーブル - より魅力的なデザイン */
.anime-info-table {
  width: 100%;
  margin: 30px 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255,105,180,0.2);
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255,215,0,0.05) 100%);
  animation: table-slide-up 0.8s ease-out 0.5s forwards;
  opacity: 0;
  position: relative;
}

.anime-info-table::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--takopi-yellow) 0%, transparent 70%);
  opacity: 0.2;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes table-slide-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.anime-info-table th,
.anime-info-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 2px solid var(--takopi-light-pink);
  position: relative;
  z-index: 1;
}

.anime-info-table th {
  background: linear-gradient(135deg, var(--takopi-pink) 0%, var(--takopi-light-pink) 100%);
  color: var(--bg-white);
  font-weight: 700;
  font-size: 1.1rem;
  width: 35%;
  position: relative;
  overflow: hidden;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.anime-info-table th::before {
  content: "★";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--takopi-yellow);
  font-size: 1.2rem;
  animation: star-twinkle 2s infinite;
}

.anime-info-table th::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine-slow 6s infinite;
}

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

.anime-info-table td {
  background: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-dark);
  transition: all 0.3s;
}

.anime-info-table tr:last-child th,
.anime-info-table tr:last-child td {
  border-bottom: none;
}

.anime-info-table tr {
  transition: all 0.3s;
}

.anime-info-table tr:hover {
  transform: translateX(5px);
}

.anime-info-table tr:hover td {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,182,224,0.2) 100%);
  padding-left: 30px;
}

/* 配信サイトグリッド - カラフルで魅力的なデザイン */
.streaming-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin: 30px 0;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,182,224,0.1) 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.streaming-sites-grid::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--takopi-yellow) 0%, transparent 70%);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.streaming-sites-grid::after {
  content: "🌟";
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 3rem;
  opacity: 0.1;
  animation: rotate-slow 10s linear infinite;
}

@keyframes rotate-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.site-item {
  background: var(--bg-white);
  padding: 15px 20px;
  border-radius: 15px;
  border: 2px solid var(--takopi-light-pink);
  text-align: center;
  font-weight: 700;
  color: var(--takopi-dark-pink);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.site-item::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg, transparent, rgba(255,215,0,0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.site-item::after {
  content: "✨";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1rem;
  opacity: 0;
  transition: all 0.3s;
}

.site-item:hover::before {
  top: -150%;
  left: -150%;
}

.site-item:hover::after {
  opacity: 0.8;
  transform: scale(1.2);
}

.site-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255,105,180,0.3);
  border-color: var(--takopi-pink);
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255,182,224,0.1) 100%);
  color: var(--takopi-pink);
}

/* 各配信サイトに色をつける */
.site-item:nth-child(3n+1) {
  border-color: var(--takopi-pink);
}

.site-item:nth-child(3n+2) {
  border-color: var(--takopi-yellow);
}

.site-item:nth-child(3n) {
  border-color: var(--takopi-light-pink);
}

.site-item:nth-child(3n+1):hover {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255,105,180,0.1) 100%);
}

.site-item:nth-child(3n+2):hover {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255,215,0,0.1) 100%);
}

.site-item:nth-child(3n):hover {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255,182,224,0.1) 100%);
}

/* キャストテーブル - キャラクターカード風デザイン */
.cast-table {
  width: 100%;
  margin: 30px 0;
  border-collapse: separate;
  border-spacing: 0 15px;
  background: transparent;
}

.cast-table thead th {
  background: linear-gradient(135deg, var(--takopi-dark-pink) 0%, var(--takopi-pink) 100%);
  color: var(--bg-white);
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cast-table thead th:first-child {
  border-radius: 20px 0 0 20px;
}

.cast-table thead th:last-child {
  border-radius: 0 20px 20px 0;
}

.cast-table thead th::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 3s infinite;
}

.cast-table tbody tr {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255,182,224,0.05) 100%);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.cast-table tbody tr::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.1), transparent);
  transition: left 0.6s;
}

.cast-table tbody tr:hover::before {
  left: 100%;
}

.cast-table tbody tr:hover {
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255,105,180,0.3);
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,105,180,0.1) 100%);
}

.cast-table td {
  padding: 20px;
  vertical-align: middle;
  border: none;
  position: relative;
}

.cast-table td:first-child {
  border-radius: 20px 0 0 20px;
}

.cast-table td:last-child {
  border-radius: 0 20px 20px 0;
}

.cast-image {
  text-align: center;
  width: 100px;
}

.cast-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--takopi-pink);
  box-shadow: 0 5px 15px rgba(255,105,180,0.3);
  transition: all 0.3s;
  position: relative;
}

.cast-table tbody tr:hover .cast-image img {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 20px rgba(255,105,180,0.5);
  border-color: var(--takopi-dark-pink);
}

/* キャラごとの色分け */
.cast-table tbody tr:nth-child(1) .cast-image img {
  border-color: var(--color-takopi);
}

.cast-table tbody tr:nth-child(2) .cast-image img {
  border-color: var(--color-shizuka);
}

.cast-table tbody tr:nth-child(3) .cast-image img {
  border-color: var(--color-marina);
}

.cast-table tbody tr:nth-child(4) .cast-image img {
  border-color: var(--color-naoki);
}

.cast-name {
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
}

.cast-name a {
  color: var(--takopi-dark-pink);
  text-decoration: none;
  position: relative;
  transition: all 0.3s;
  display: inline-block;
}

.cast-name a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--takopi-pink);
  transition: width 0.3s;
}

.cast-name a:hover {
  color: var(--takopi-pink);
  transform: scale(1.05);
}

.cast-name a:hover::after {
  width: 100%;
}

.cast-voice {
  font-size: 1.05rem;
  color: var(--text-gray);
  font-weight: 500;
  position: relative;
}

.cast-voice::before {
  content: "CV: ";
  color: var(--takopi-light-pink);
  font-weight: 700;
}

/* リンクボタン - よりポップなデザイン */
.link-buttons {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--takopi-pink) 0%, var(--takopi-light-pink) 100%);
  color: var(--bg-white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(255,105,180,0.3);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.link-button::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.link-button:hover::before {
  top: -150%;
  left: -150%;
}

.link-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255,105,180,0.5);
  background: linear-gradient(135deg, var(--takopi-dark-pink) 0%, var(--takopi-pink) 100%);
}

.link-button:hover .button-icon {
  animation: icon-bounce 0.6s;
}

@keyframes icon-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.button-icon {
  font-size: 1.5rem;
}

/* 公式リンクボタン - 大きく目立つデザイン */
.official-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 40px 0;
  align-items: center;
}

.official-link-button {
  display: inline-block;
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--takopi-yellow) 0%, var(--takopi-pink) 100%);
  color: var(--bg-white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
  max-width: 500px;
  border: 3px solid transparent;
}

.official-link-button::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--takopi-pink), var(--takopi-yellow), var(--takopi-light-pink), var(--takopi-pink));
  border-radius: 50px;
  z-index: -1;
  background-size: 300% 300%;
  animation: gradient-rotate 4s linear infinite;
}

@keyframes gradient-rotate {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.official-link-button::after {
  content: "→";
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: all 0.3s;
}

.official-link-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255,105,180,0.4);
  background: linear-gradient(135deg, var(--takopi-pink) 0%, var(--takopi-dark-pink) 100%);
}

.official-link-button:hover::after {
  transform: translateY(-50%) translateX(5px);
}

/* レスポンシブデザイン（アニメページ用） */
@media screen and (max-width: 768px) {
  /* テーブル調整 */
  .anime-info-table th,
  .anime-info-table td {
    padding: 12px 10px;
    font-size: 0.9rem;
  }

  .anime-info-table th {
    width: 40%;
    font-size: 0.85rem;
  }

  .anime-info-table tr:hover td {
    padding-left: 15px;
  }

  /* 配信サイトグリッド */
  .streaming-sites-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 15px;
  }

  .site-item {
    padding: 10px 5px;
    font-size: 0.85rem;
  }

  /* キャストテーブル */
  .cast-table {
    font-size: 0.9rem;
  }

  .cast-table thead {
    display: none;
  }

  .cast-table tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 15px;
    text-align: center;
  }

  .cast-table tbody tr:hover {
    transform: translateX(0) scale(1);
  }

  .cast-table td {
    padding: 10px;
    width: 100%;
    border-radius: 0;
  }

  .cast-image {
    width: 100%;
  }

  .cast-name {
    font-size: 1rem;
    margin: 10px 0 5px;
  }

  .cast-voice {
    font-size: 0.95rem;
  }

  /* リンクボタン */
  .link-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .link-button {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 12px 20px;
  }

  /* 公式リンクボタン */
  .official-link-button {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .official-link-button::after {
    right: 20px;
  }
}

/* アニメーション最適化 */
@media (prefers-reduced-motion: reduce) {
  .anime-info-table,
  .streaming-sites-grid::before {
    animation: none !important;
    opacity: 1 !important;
  }

  .site-item::before,
  .link-button::before,
  .cast-table thead th::after,
  .official-link-button::before {
    animation: none !important;
  }
}
/* アニメ基本情報テーブル - タコピーテーマの特別デザイン */
.anime-info-table {
  width: 100%;
  margin: 40px 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  position: relative;
  animation: table-pop-in 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

@keyframes table-pop-in {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  50% {
    transform: scale(1.02) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* テーブル全体の装飾 */
.anime-info-table::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,105,180,0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,215,0,0.2) 0%, transparent 40%),
    radial-gradient(circle at 60% 10%, rgba(255,182,224,0.2) 0%, transparent 40%);
  border-radius: 40px;
  z-index: -1;
  animation: bg-pulse 4s ease-in-out infinite;
}

@keyframes bg-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

/* タコピーアイコン装飾 */
.anime-info-table::after {
  content: "";
  position: absolute;
  top: -40px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="%23ff69b4" d="M24.74,22.39l-1.53-1.27c1.51-1.72,2.43-3.98,2.43-6.45,0-5.4-4.39-9.8-9.8-9.8S6.05,9.27,6.05,14.67c0,2.69,1.09,5.12,2.85,6.9l-1.45,1.2c-.81.67-.92,1.86-.25,2.66.37.45.92.69,1.46.69.42,0,.85-.14,1.2-.43l2.33-1.92c.05.02.11.04.16.06l-.51,1.08c-.45.94-.04,2.07.9,2.52.26.12.54.18.81.18.71,0,1.39-.4,1.71-1.08l.98-2.06c.07,0,.15,0,.22-.01l1.01,2.13c.32.68,1,1.08,1.71,1.08.27,0,.55-.06.81-.18.94-.45,1.35-1.58.9-2.52l-.65-1.38,2.09,1.73c.35.29.78.43,1.2.43.55,0,1.09-.23,1.46-.69.67-.81.55-2-.25-2.66Z"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 0 10px rgba(255,105,180,0.5));
  animation: tako-bounce 3s ease-in-out infinite;
}

@keyframes tako-bounce {
  0%, 100% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-10px) rotate(10deg);
  }
}

/* 各行のスタイル */
.anime-info-table tr {
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.anime-info-table tr:nth-child(1) { --row-color: var(--takopi-pink); --row-bg: rgba(255,105,180,0.05); }
.anime-info-table tr:nth-child(2) { --row-color: var(--takopi-yellow); --row-bg: rgba(255,215,0,0.05); }
.anime-info-table tr:nth-child(3) { --row-color: var(--takopi-light-pink); --row-bg: rgba(255,182,224,0.05); }
.anime-info-table tr:nth-child(4) { --row-color: #ff8c00; --row-bg: rgba(255,140,0,0.05); }
.anime-info-table tr:nth-child(5) { --row-color: #9370db; --row-bg: rgba(147,112,219,0.05); }
.anime-info-table tr:nth-child(6) { --row-color: #32cd32; --row-bg: rgba(50,205,50,0.05); }
.anime-info-table tr:nth-child(7) { --row-color: #ff69b4; --row-bg: rgba(255,105,180,0.05); }
.anime-info-table tr:nth-child(8) { --row-color: #ffd700; --row-bg: rgba(255,215,0,0.05); }

/* thのスタイル */
.anime-info-table th {
  padding: 20px 25px;
  text-align: left;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--bg-white);
  background: linear-gradient(135deg, var(--row-color) 0%, var(--takopi-pink) 100%);
  position: relative;
  border-radius: 20px 0 0 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
}

/* thの装飾 */
.anime-info-table th::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-wave 5s infinite;
  animation-delay: calc(var(--row-index, 0) * 0.2s);
}

.anime-info-table tr:nth-child(1) th::before { --row-index: 1; }
.anime-info-table tr:nth-child(2) th::before { --row-index: 2; }
.anime-info-table tr:nth-child(3) th::before { --row-index: 3; }
.anime-info-table tr:nth-child(4) th::before { --row-index: 4; }
.anime-info-table tr:nth-child(5) th::before { --row-index: 5; }
.anime-info-table tr:nth-child(6) th::before { --row-index: 6; }
.anime-info-table tr:nth-child(7) th::before { --row-index: 7; }
.anime-info-table tr:nth-child(8) th::before { --row-index: 8; }

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

/* thのアイコン */
.anime-info-table th::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  opacity: 0.8;
}

.anime-info-table tr:nth-child(1) th::after { content: "📺"; }
.anime-info-table tr:nth-child(2) th::after { content: "📅"; }
.anime-info-table tr:nth-child(3) th::after { content: "⏰"; }
.anime-info-table tr:nth-child(4) th::after { content: "✏️"; }
.anime-info-table tr:nth-child(5) th::after { content: "🎬"; }
.anime-info-table tr:nth-child(6) th::after { content: "🎞️"; }
.anime-info-table tr:nth-child(7) th::after { content: "🎨"; }
.anime-info-table tr:nth-child(8) th::after { content: "🎵"; }

/* tdのスタイル */
.anime-info-table td {
  padding: 20px 25px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  background: var(--row-bg);
  position: relative;
  border-radius: 0 20px 20px 0;
  border: 3px solid transparent;
  transition: all 0.3s;
  overflow: hidden;
}

/* 各行の装飾 */
.anime-info-table tr {
  margin-bottom: 10px;
  display: block;
  position: relative;
}

.anime-info-table tr::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
  z-index: -1;
}

/* ホバー効果 */
.anime-info-table tr:hover {
  transform: translateX(10px) scale(1.02);
}

.anime-info-table tr:hover::before {
  box-shadow: 0 8px 25px rgba(255,105,180,0.3);
}

.anime-info-table tr:hover td {
  background: linear-gradient(135deg, var(--row-bg) 0%, rgba(255,255,255,0.8) 100%);
  border-color: var(--row-color);
  padding-left: 35px;
}

/* 特定の行の強調 */
.anime-info-table tr:nth-child(1) td,
.anime-info-table tr:nth-child(2) td {
  font-weight: 700;
  font-size: 1.1rem;
}

/* キラキラエフェクト */
.anime-info-table td::before {
  content: "✨";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.anime-info-table tr:hover td::before {
  opacity: 0.6;
  animation: sparkle 0.6s ease-in-out;
}

@keyframes sparkle {
  0%, 100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.2);
  }
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  .anime-info-table::after {
    width: 40px;
    height: 40px;
    top: -25px;
    right: 10px;
  }

  .anime-info-table th,
  .anime-info-table td {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .anime-info-table th {
    font-size: 0.85rem;
    border-radius: 15px 0 0 15px;
  }

  .anime-info-table td {
    border-radius: 0 15px 15px 0;
    font-size: 0.85rem;
  }

  .anime-info-table tr {
    margin-bottom: 8px;
  }

  .anime-info-table tr:hover {
    transform: translateX(5px) scale(1.01);
  }

  .anime-info-table tr:hover td {
    padding-left: 20px;
  }

  .anime-info-table th::after {
    font-size: 1rem;
    right: 10px;
  }

  .anime-info-table td::before {
    display: none;
  }
}

/* アニメーション無効化 */
@media (prefers-reduced-motion: reduce) {
  .anime-info-table,
  .anime-info-table::before,
  .anime-info-table::after {
    animation: none !important;
    opacity: 1 !important;
  }

  .anime-info-table th::before {
    animation: none !important;
  }
}
/* ハッピー道具一覧ページ専用追加CSS */

/* ハッピー道具一覧ページ専用追加CSS */

/* リンクリスト */
.link-list {
    list-style: none;
    padding: 20px;
    background: rgba(255, 192, 203, 0.1);
    border-radius: 15px;
    margin: 20px 0;
}

.link-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.link-list li::before {
    content: "☆";
    position: absolute;
    left: 0;
    color: var(--takopi-yellow);
    font-size: 1.2rem;
}

/* ハッピー道具グリッド */
.happy-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 192, 203, 0.1);
    border-radius: 15px;
}

.happy-tool-item {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.3);
    transition: all 0.3s;
    position: relative;
}

.happy-tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.5);
}

.happy-tool-item::before {
    content: "☆";
    position: absolute;
    top: -10px;
    right: -10px;
    color: var(--takopi-yellow);
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.happy-tool-item a {
    color: var(--takopi-pink);
    text-decoration: none;
    font-weight: bold;
    display: block;
}

.happy-tool-item:hover a {
    color: var(--takopi-dark-pink);
}

/* ハッピー道具テーブル */
.tools-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(255, 182, 193, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.tools-table th {
    background: linear-gradient(135deg, var(--takopi-pink), var(--takopi-light-pink));
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.tools-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
}

.tools-table tr:last-child td {
    border-bottom: none;
}

.tools-table tr:hover {
    background: rgba(255, 192, 203, 0.1);
}

.tool-number {
    background: var(--takopi-yellow);
    color: var(--takopi-pink);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
}

/* セクションタイトル */
.section-title {
    background: linear-gradient(135deg, var(--takopi-pink), var(--takopi-light-pink));
    color: white;
    padding: 15px 25px;
    margin: 40px -20px 20px;
    border-radius: 50px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    font-weight: 900;
    text-align: center;
    font-size: 1.5rem;
}

.section-title::before,
.section-title::after {
    content: "☆";
    color: var(--takopi-yellow);
    font-size: 1.5em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.section-title::before {
    left: -30px;
}

.section-title::after {
    right: -30px;
}

/* YouTube埋め込み */
iframe[src*="youtube"] {
    max-width: 100%;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* フッターコンテンツ */
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.footer-content h3 {
    color: var(--takopi-yellow);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.footer-content div {
    text-align: left;
}

.footer-content .copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .happy-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .happy-tool-item {
        padding: 10px;
        font-size: 0.85rem;
    }

    .tools-table {
        font-size: 0.9em;
    }

    .tools-table th,
    .tools-table td {
        padding: 10px;
    }

    .section-title {
        margin: 30px -10px 20px;
        padding: 10px 20px;
        font-size: 1.1em;
    }

    iframe[src*="youtube"] {
        width: 100%;
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content div {
        text-align: center;
    }
}
