/* 全体設定 */
:root {
  --primary-color: #6a0dad; /* 基本の紫色 */
  --secondary-color: #9932cc; /* 薄い紫色 */
  --accent-color: #b19cd9; /* アクセントの薄紫色 */
  --background-color: #faf0ff; /* 背景色（非常に薄い紫） */
  --text-color: #333; /* テキスト色 */
  --border-color: #d8bfd8; /* ボーダー色 */
  --link-color: #800080; /* リンク色 */
  --link-hover-color: #9370db; /* ホバー時のリンク色 */
  --header-bg: #4b0082; /* ヘッダー背景色 */
  --footer-bg: #4b0082; /* フッター背景色 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M95,45 C85,55 75,95 50,95 C25,95 15,55 5,45 C15,35 25,-5 50,-5 C75,-5 85,35 95,45 Z" fill="none" stroke="%23e6d7ff" stroke-width="0.5"/></svg>');
  background-size: 100px 100px;
  position: relative;
}

/* 蝶のデコレーション - 画面の左右に配置 */
body::before, body::after {
  content: "";
  position: fixed;
  width: 50px;
  height: 50px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50,15 C70,5 90,15 90,35 C90,55 70,65 50,50 C30,65 10,55 10,35 C10,15 30,5 50,15 Z" fill="%23d8bfd880" stroke="%236a0dad" stroke-width="1"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

body::before {
  top: 150px;
  left: 20px;
  animation: flutter 15s infinite ease-in-out;
}

body::after {
  top: 200px;
  right: 20px;
  transform: scaleX(-1);
  animation: flutter 18s infinite ease-in-out reverse;
}

@keyframes flutter {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, 5px) rotate(5deg); }
  50% { transform: translate(0, 10px) rotate(0deg); }
  75% { transform: translate(-10px, 5px) rotate(-5deg); }
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ヘッダー */
.site-header {
  background-color: var(--header-bg);
  background-image: linear-gradient(to bottom, var(--header-bg), rgba(75, 0, 130, 0.9));
  color: white;
  padding: 1rem 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  position: relative;
}

.site-title a {
  color: white;
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  text-shadow: 0 0 5px var(--accent-color);
  transition: all 0.3s;
}

.site-title a:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(177, 156, 217, 0.5);
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.site-nav a {
  color: white;
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s;
}

.site-nav a:hover::after {
  width: 100%;
}

/* パンくずリスト */
.breadcrumb-nav {
  background: linear-gradient(to right, rgba(106, 13, 173, 0.1), rgba(153, 50, 204, 0.1));
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: ">";
  margin: 0 0.5rem;
  color: var(--secondary-color);
}

.breadcrumb-link {
  color: var(--link-color);
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.current-page {
  color: var(--primary-color);
  font-weight: bold;
}

/* メインコンテンツ */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.article {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(106, 13, 173, 0.1);
  overflow: hidden;
  position: relative;
}

/* フリルの装飾 - 記事の上部に配置 */
.article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  background-image:
    radial-gradient(circle at 10px 15px, transparent 12px, var(--border-color) 12px, var(--border-color) 15px, transparent 15px);
  background-size: 30px 15px;
  background-repeat: repeat-x;
  z-index: 1;
}

.article-title {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  margin: 0;
  text-align: center;
  font-size: 1.8rem;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-image {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.sneak {
  width: 100%;
  height: auto;
  transition: transform 0.5s;
}

.main-image:hover .sneak {
  transform: scale(1.02);
}

/* 記事情報セクション */
.article-info {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(249, 240, 255, 0.5);
}

.info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.update-info {
  display: flex;
  align-items: center;
}

.time-icon {
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10" fill="none" stroke="%236a0dad" stroke-width="2"/><path d="M12,6 L12,12 L16,14" fill="none" stroke="%236a0dad" stroke-width="2" stroke-linecap="round"/></svg>');
  background-size: contain;
  margin-right: 0.5rem;
}

.time {
  font-size: 0.9rem;
  color: #666;
}

.share-buttons {
  display: flex;
}

.share-group {
  display: flex;
  gap: 0.5rem;
}

/* 記事サマリー */
.article-summary {
  padding: 1.5rem;
  background-color: rgba(177, 156, 217, 0.1);
  border-radius: 8px;
  margin: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.summary-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.summary-list {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.summary-list li {
  margin-bottom: 0.5rem;
  position: relative;
}

.summary-list li::before {
  content: "❖";
  color: var(--secondary-color);
  position: absolute;
  left: -1.5rem;
}

.summary-description {
  font-weight: bold;
  text-align: center;
  color: var(--primary-color);
}

/* 目次 */
.article-nav {
  background-color: rgba(177, 156, 217, 0.1);
  padding: 1.5rem;
  margin: 1.5rem;
  border-radius: 8px;
  border: 1px dashed var(--border-color);
}

.article-nav-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dotted var(--border-color);
}

.article-nav-list {
  list-style: none;
}

.article-nav-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.article-nav-list li::before {
  content: "⟠";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
}

.article-nav-list a {
  display: block;
  padding: 0.3rem 0;
  color: var(--link-color);
  transition: all 0.3s;
}

.article-nav-list a:hover {
  color: var(--link-hover-color);
  transform: translateX(5px);
}

/* 記事セクション */
.article-section {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.article-section:first-of-type {
  border-top: none;
}

.section-title {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background-color: var(--primary-color);
}

.section-subtitle {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--secondary-color);
}

.section-image {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-image figcaption {
  padding: 0.8rem 1rem;
  background-color: rgba(177, 156, 217, 0.1);
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
  text-align: center;
}

/* フッター */
.site-footer {
  background-color: var(--footer-bg);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-section {
  margin-bottom: 1.5rem;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.mail-link img {
  margin-right: 0.5rem;
}

.contact-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.usage-terms {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.terms-content p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.terms-list {
  list-style: none;
  margin-left: 1rem;
  font-size: 0.9rem;
}

.terms-list li {
  margin-bottom: 0.3rem;
  position: relative;
  padding-left: 1rem;
}

.terms-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.footer-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-link {
  display: flex;
  align-items: center;
  color: white;
}

.brand-link img {
  margin-right: 0.5rem;
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .site-title {
    font-size: 1.3rem;
  }

  .site-nav ul {
    gap: 1rem;
  }

  .article-title {
    font-size: 1.5rem;
    padding: 2rem 1rem 1rem;
  }

  .info-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1.2rem;
  }

  .footer-brand {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .brand-link {
    justify-content: center;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .breadcrumb {
    font-size: 0.9rem;
  }

  .article-title {
    font-size: 1.3rem;
  }

  body::before, body::after {
    width: 30px;
    height: 30px;
  }
}

/* プロフィールセクション */
.profile-container {
  margin: 1.5rem 0;
}

.profile-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(106, 13, 173, 0.1);
  background-image: linear-gradient(45deg, rgba(177, 156, 217, 0.05) 25%, transparent 25%, transparent 50%, rgba(177, 156, 217, 0.05) 50%, rgba(177, 156, 217, 0.05) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
}

.profile-row {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s;
}

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

.profile-row:hover {
  background-color: rgba(177, 156, 217, 0.1);
}

.profile-label {
  width: 30%;
  padding: 0.8rem 1rem;
  background-color: rgba(106, 13, 173, 0.1);
  font-weight: bold;
  color: var(--primary-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  position: relative;
}

.profile-label::after {
  content: "❖";
  position: absolute;
  right: 10px;
  color: var(--secondary-color);
  opacity: 0.5;
}

.profile-value {
  width: 70%;
  padding: 0.8rem 1rem;
}

/* 特別なスタイル - 通り名 */
.profile-row:last-child .profile-label {
  background-color: rgba(139, 0, 0, 0.1);
  color: #800000;
}

.profile-row:last-child .profile-value {
  font-weight: bold;
  color: #800000;
}

/* リンクスタイル */
.push0 {
  position: relative;
  display: inline-block;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  padding: 0 0.2rem;
  transition: all 0.3s;
}

.push0::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.push0:hover {
  color: var(--secondary-color);
}

.push0:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .profile-row {
    flex-direction: column;
  }

  .profile-label, .profile-value {
    width: 100%;
    border-right: none;
  }

  .profile-label {
    border-bottom: 1px dashed var(--border-color);
    padding: 0.6rem 1rem;
  }

  .profile-value {
    padding: 0.6rem 1rem;
  }

  .profile-label::after {
    right: auto;
    left: 10px;
  }
}
/* 登場シーンテーブル */
.appearance-table-container {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.appearance-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(106, 13, 173, 0.1);
}

.appearance-table tr {
  transition: background-color 0.3s;
  border-bottom: 1px solid var(--border-color);
}

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

.appearance-table tr:hover {
  background-color: rgba(177, 156, 217, 0.1);
}

.appearance-volume {
  width: 30%;
  padding: 0.8rem 1rem;
  background-color: rgba(106, 13, 173, 0.05);
  font-weight: bold;
  color: var(--primary-color);
  border-right: 1px solid var(--border-color);
  position: relative;
}

.appearance-volume::before {
  content: "◆";
  margin-right: 0.5rem;
  color: var(--secondary-color);
  font-size: 0.9em;
}

.appearance-desc {
  padding: 0.8rem 1rem;
  line-height: 1.5;
}

/* 最後のセクションに特別な装飾 */
#summary {
  background-color: rgba(177, 156, 217, 0.05);
  border-radius: 0 0 8px 8px;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

#summary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
  opacity: 0.7;
}

#summary .section-image {
  box-shadow: 0 5px 25px rgba(106, 13, 173, 0.2);
  border: 1px solid var(--border-color);
}

#summary .section-subtitle {
  color: var(--primary-color);
  font-weight: bold;
  text-shadow: 0 0 1px rgba(106, 13, 173, 0.2);
}

/* スマホ対応 */
@media (max-width: 600px) {
  .appearance-table {
    font-size: 0.9rem;
  }

  .appearance-volume, .appearance-desc {
    padding: 0.6rem 0.8rem;
  }

  .appearance-volume {
    width: 35%;
  }

  .appearance-volume::before {
    content: "◆";
    margin-right: 0.3rem;
    font-size: 0.8em;
  }

  #summary::after {
    height: 5px;
  }
}
/* おすすめセクション */
#related {
  background-color: rgba(177, 156, 217, 0.05);
  border-radius: 8px;
  margin-top: 2rem;
}

.recommendations-container {
  margin: 1.5rem 0;
}

.recommendations-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* カテゴリーから自動生成されるリンク要素のスタイル */
#recommendations a.push0 {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-color);
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.1);
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 1rem;
}

#recommendations a.push0:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(106, 13, 173, 0.2);
}

/* 画像コンテナ */
#recommendations a.push0 .sneak {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s;
}

#recommendations a.push0:hover .sneak {
  transform: scale(1.03);
}

/* テキスト部分 */
#recommendations a.push0 {
  font-size: 1rem;
  font-weight: bold;
  padding: 0;
  margin: 0;
  line-height: 1.5;
}

/* テキストのみの部分をスタイリング */
#recommendations a.push0::after {
  content: attr(href);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* テキストを画像の下に配置 */
#recommendations a.push0 br {
  display: none;
}

/* テキストのスタイリング */
#recommendations a.push0 {
  display: flex;
  flex-direction: column;
}

#recommendations a.push0 img + text {
  padding: 1rem;
  display: block;
}

/* アニメーション装飾 - 紫色の光が右から左へ流れる効果 */
#recommendations a.push0::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(177, 156, 217, 0.1) 50%,
    transparent 100%
  );
  z-index: 1;
  transition: left 1s;
  pointer-events: none;
}

#recommendations a.push0:hover::before {
  left: 100%;
}

/* 蝶のデコレーション - ホバー時に表示 */
#recommendations a.push0::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50,15 C70,5 90,15 90,35 C90,55 70,65 50,50 C30,65 10,55 10,35 C10,15 30,5 50,15 Z" fill="%23d8bfd880" stroke="%236a0dad" stroke-width="1"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  top: 10px;
  right: 10px;
  opacity: 0;
  transform: rotate(15deg);
  transition: opacity 0.3s, transform 0.5s;
  z-index: 2;
  pointer-events: none;
}

#recommendations a.push0:hover::after {
  opacity: 0.7;
  transform: rotate(0deg);
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
  .recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  #recommendations a.push0 {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  #recommendations a.push0 .sneak {
    height: 180px;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  #recommendations a.push0 {
    margin-bottom: 1rem;
  }

  #recommendations a.push0 .sneak {
    height: 180px;
    object-fit: cover;
  }
}
/* JavaScript互換性向上のためのスタイル */
#recommendations a.push0 {
  position: relative;
  display: block;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1.4;
}

#recommendations a.push0 img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.8rem;
  border-radius: 8px 8px 0 0;
}

#recommendations a.push0:after {
  content: "";
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

#recommendations a.push0:hover:after {
  opacity: 1;
}

#recommendations br {
  display: none;
}

/* 記事タイトルの装飾 */
#recommendations a.push0::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

#recommendations a.push0:hover::before {
  opacity: 1;
}
/* 派手な花びらアニメーションのスタイル */
.petals-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none; /* クリックイベントを通過させる */
}

.petal {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  width: 15px;
  height: 15px;
  z-index: 3;
  opacity: 0;
  will-change: transform, opacity; /* パフォーマンス最適化 */
  transform-origin: center center;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

/* 通常の花びらの落下アニメーション */
@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(-10px) rotate(var(--initial-rotation, 0deg));
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(150px) rotate(calc(var(--initial-rotation, 0deg) + 45deg));
  }
}

/* 花びらの揺れるアニメーション */
@keyframes petalSway {
  0% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateX(10px) rotate(15deg) scale(0.95);
  }
  50% {
    transform: translateX(-5px) rotate(-5deg) scale(1.05);
  }
  75% {
    transform: translateX(5px) rotate(10deg) scale(0.98);
  }
  100% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

/* 風による花びらの横移動アニメーション */
@keyframes petalWind {
  0% {
    transform: translateX(0) rotate(var(--initial-rotation, 0deg));
  }
  50% {
    transform: translateX(calc(var(--wind-direction, 20px) * 0.5))
               rotate(calc(var(--initial-rotation, 0deg) + var(--wind-rotation, 0deg) * 0.5));
  }
  100% {
    transform: translateX(var(--wind-direction, 20px))
               rotate(calc(var(--initial-rotation, 0deg) + var(--wind-rotation, 0deg)));
  }
}

/* バースト花びらの特別なアニメーション - 爆発的に散る */
@keyframes petalBurst {
  0% {
    opacity: 0.95;
    transform: translate(0, 0) rotate(var(--initial-rotation, 0deg)) scale(0.2);
  }
  10% {
    opacity: 0.9;
    transform: translate(calc(var(--wind-direction, 20px) * 0.2), -20px)
               rotate(calc(var(--initial-rotation, 0deg) + var(--wind-rotation, 0deg) * 0.2))
               scale(0.8);
  }
  40% {
    opacity: 0.8;
    transform: translate(calc(var(--wind-direction, 20px) * 0.5), -10px)
               rotate(calc(var(--initial-rotation, 0deg) + var(--wind-rotation, 0deg) * 0.5))
               scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(var(--wind-direction, 20px), 150px)
               rotate(calc(var(--initial-rotation, 0deg) + var(--wind-rotation, 0deg)))
               scale(0.5);
  }
}

/* バースト花びらのスピン - より派手な回転 */
@keyframes petalSpin {
  0% {
    transform: rotate(var(--initial-rotation, 0deg));
  }
  100% {
    transform: rotate(calc(var(--initial-rotation, 0deg) + 720deg));
  }
}

/* バースト花びらのスタイル強化 */
.burst-petal {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

/* 特殊効果: 光輝く花びら */
.petal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  animation: petalGlow 1.5s ease-in-out infinite alternate;
}

@keyframes petalGlow {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.4;
  }
}

/* ページロード時のフェードインエフェクト用 */
.article-title {
  animation: titleReveal 2s ease-out forwards;
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.95);
  }
  40% {
    opacity: 0.4;
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

/* タイトルテキストの特別なスタイリング */
.title-text {
  position: relative;
  z-index: 5;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: textPulse 4s ease-in-out infinite alternate;
  max-width: 90%;
}

@keyframes textPulse {
  0% {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.3);
  }
  100% {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.5);
  }
}

/* 装飾要素のアニメーション強化 */
.title-decoration {
  animation: decorationGlow 3s ease-in-out infinite alternate, decorationFloat 8s ease-in-out infinite;
}

@keyframes decorationGlow {
  0% {
    opacity: 0.2;
    filter: blur(1px) brightness(1);
  }
  100% {
    opacity: 0.5;
    filter: blur(0) brightness(1.2);
  }
}

/* レスポンシブ対応の微調整 */
@media (max-width: 768px) {
  .title-text {
    padding: 0.4rem 1rem;
    max-width: 100%;
  }

  .petal {
    /* モバイルでは少し小さく */
    transform: scale(0.8);
  }
}
/* ナビゲーションボタン */
.navigation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
  width: 100%;
  max-width: 1200px;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(106, 13, 173, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 180px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
  color: white;
  text-decoration: none;
}

.nav-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(106, 13, 173, 0.2);
}

.button-icon {
  font-size: 1.2rem;
  margin-right: 0.8rem;
  transition: transform 0.3s ease;
}

.button-text {
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* フリルの装飾 - ボタンの上部に配置 */
.nav-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-image:
    radial-gradient(circle at 6px 4px, transparent 3px, rgba(255, 255, 255, 0.5) 3px, rgba(255, 255, 255, 0.5) 4px, transparent 4px);
  background-size: 12px 4px;
  background-repeat: repeat-x;
}

/* 光の流れるアニメーション */
.nav-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0.8s;
}

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

.nav-button:hover .button-icon {
  transform: scale(1.2);
}

/* 目次へ戻るボタン特有のスタイル */
.back-to-toc {
  background: linear-gradient(135deg, #6a0dad, #9932cc);
}

/* 関連記事ボタン特有のスタイル */
.to-related {
  background: linear-gradient(135deg, #800080, #ba55d3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .navigation-buttons {
    flex-direction: column;
  }

  .nav-button {
    width: 100%;
  }
}
/* スマホ表示時の左右余白を減らす修正 */
@media (max-width: 768px) {
  .main-content {
    padding: 0 0.5rem;
  }

  .article {
    border-radius: 4px;
  }

  .article-section {
    padding: 1.5rem 0.8rem;
  }

  .summary-list {
    margin-left: 1.2rem;
  }

  .article-summary {
    margin: 1.2rem 0.8rem;
    padding: 1.2rem 0.8rem;
  }

  .article-nav {
    margin: 1.2rem 0.8rem;
    padding: 1.2rem 0.8rem;
  }

  .profile-container,
  .appearance-table-container {
    margin: 1.2rem 0;
  }

  .navigation-buttons {
    margin: 1.2rem 0;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 0 0.3rem;
  }

  .article-section {
    padding: 1.2rem 0.6rem;
  }

  .article-title {
    padding: 1.5rem 0.6rem 1.2rem;
  }

  .summary-list {
    margin-left: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
    padding-left: 0.6rem;
  }

  .profile-label, .profile-value {
    padding: 0.5rem 0.6rem;
  }

  .appearance-volume, .appearance-desc {
    padding: 0.5rem 0.6rem;
  }
}
/* プロフィール部分のスマホ表示修正（改良版） */
@media (max-width: 768px) {
  /* ラベル内のテキストを左寄せにし、マークを削除して別の方法で表示 */
  .profile-label {
    position: relative;
    padding-left: 1.5rem; /* 左側にアイコンを表示するスペース */
    padding-right: 0.5rem;
  }

  /* マークを削除 */
  .profile-label::after {
    content: none;
  }

  /* 代わりに左側にアイコンを表示 */
  .profile-label::before {
    content: "❖";
    position: absolute;
    left: 0.5rem;
    color: var(--secondary-color);
    opacity: 0.8;
  }

  /* 縦並び時のスタイル調整 */
  .profile-row {
    flex-direction: column;
  }

  .profile-label, .profile-value {
    width: 100%;
    border-right: none;
    text-align: left;
  }

  .profile-label {
    border-bottom: 1px dashed var(--border-color);
    padding: 0.6rem 0.5rem 0.6rem 1.5rem;
    background-color: rgba(106, 13, 173, 0.05);
  }

  .profile-value {
    padding: 0.6rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .profile-label {
    font-size: 0.95rem;
    padding-left: 1.3rem; /* 左側のアイコンスペースをやや小さく */
  }

  .profile-label::before {
    left: 0.4rem;
    font-size: 0.8rem;
  }

  .profile-value {
    padding: 0.6rem 0.6rem;
  }
}
/* 死罪人一覧セクション */
#prisoners {
  background-color: rgba(177, 156, 217, 0.05);
  border-radius: 8px;
  margin-top: 2rem;
}

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

.prisoner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.1), rgba(153, 50, 204, 0.1));
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prisoner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.2);
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.2), rgba(153, 50, 204, 0.2));
  border-color: var(--secondary-color);
}

/* 現在のページ（あか絹）をハイライト */
.prisoner-item.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(106, 13, 173, 0.3);
}

.prisoner-item.active .prisoner-name {
  color: white;
  font-weight: bold;
}

.prisoner-image-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.prisoner-item:hover .prisoner-image-wrapper {
  transform: scale(1.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(106, 13, 173, 0.3);
}

.prisoner-item.active .prisoner-image-wrapper {
  border-color: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.prisoner-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.prisoner-item:hover .prisoner-image-wrapper img {
  transform: scale(1.1);
}

.prisoner-name {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.prisoner-item:hover .prisoner-name {
  color: var(--secondary-color);
}

/* 蝶の装飾 - ホバー時に表示 */
.prisoner-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50,15 C70,5 90,15 90,35 C90,55 70,65 50,50 C30,65 10,55 10,35 C10,15 30,5 50,15 Z" fill="%23d8bfd880" stroke="%236a0dad" stroke-width="1"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  top: 5px;
  right: 5px;
  opacity: 0;
  transform: rotate(45deg);
  transition: opacity 0.3s, transform 0.5s;
  z-index: 2;
  pointer-events: none;
}

.prisoner-item:hover::after {
  opacity: 0.7;
  transform: rotate(0deg);
}

/* フリル装飾 - 上部に配置 */
.prisoner-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-image:
    radial-gradient(circle at 6px 3px, transparent 2px, var(--border-color) 2px, var(--border-color) 3px, transparent 3px);
  background-size: 12px 3px;
  background-repeat: repeat-x;
  opacity: 0.7;
}

.prisoner-item:hover::before {
  background-image:
    radial-gradient(circle at 6px 3px, transparent 2px, var(--secondary-color) 2px, var(--secondary-color) 3px, transparent 3px);
}

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

  .prisoner-item {
    padding: 0.8rem;
  }

  .prisoner-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .prisoners-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
    padding: 0.5rem;
  }

  .prisoner-item {
    padding: 0.6rem;
  }

  .prisoner-image-wrapper {
    width: 56px;
    height: 56px;
  }

  .prisoner-name {
    font-size: 0.8rem;
  }
}
