/* kisho.css - スタイルシート for 地獄楽の期聖記事 */

:root {
  --key-color: #886480;
  --sub-color: #a65575;
  --base-text-color: #232a2f;
  --item-bg-color: #ffffff;
  --base-bg-color: #936540;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--base-bg-color);
  color: var(--base-text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2px;
}

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

/* 期聖風のアニメーションのある見出し */
h1 {
  font-size: 2.2rem;
  text-align: center;
  color: var(--key-color);
  margin: 2rem 0 0.5rem;
  padding: 1.5rem;
  position: relative;
  background: var(--item-bg-color);
  border-left: 8px solid var(--sub-color);
  border-right: 8px solid var(--key-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: skew(-5deg);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  animation: title-appear 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes title-appear {
  0% {
    opacity: 0;
    transform: skew(-10deg) translateY(-20px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: skew(-5deg) translateY(0);
  }
}

h1:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(136, 100, 128, 0.2),
    transparent
  );
  animation: lazy-shine 3s infinite;
  animation-delay: 1.5s;
}

@keyframes lazy-shine {
  0% {
    left: -100%;
    opacity: 0;
  }
  40% {
    left: 100%;
    opacity: 0.6;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

h1:hover {
  transform: skew(0deg) translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* メイン画像のアニメーション */
.hero-image {
  margin: 0 0 3rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: image-slide-up 1s ease-out 0.6s forwards;
}

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

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: scale(1.03);
  animation: image-focus 1.5s cubic-bezier(0.25, 1, 0.5, 1) 1s forwards;
}

@keyframes image-focus {
  0% {
    transform: scale(1.03) translateX(-5px);
    filter: blur(2px) saturate(0.8);
  }
  100% {
    transform: scale(1);
    filter: blur(0) saturate(1.1);
  }
}

.hero-image figcaption {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--item-bg-color);
  font-style: italic;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: caption-appear 0.8s ease 1.5s forwards;
}

@keyframes caption-appear {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* タイトル下の装飾ライン */
.title-decoration {
  height: 3px;
  background: linear-gradient(90deg, var(--sub-color), transparent 80%);
  margin: 0 0 2rem;
  position: relative;
  opacity: 0;
  animation: line-extend 1s ease 0.8s forwards;
}

@keyframes line-extend {
  0% {
    opacity: 0;
    width: 0;
  }
  100% {
    opacity: 1;
    width: 100%;
  }
}

.title-decoration::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 3px;
  background: var(--key-color);
  animation: dot-slide 1.5s ease 1.5s forwards;
}

@keyframes dot-slide {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  90% {
    transform: translateX(-200px);
    opacity: 0.2;
  }
  100% {
    transform: translateX(-200px);
    opacity: 0;
  }
}
/* セクション見出し（h2） */
h2 {
  font-size: 1.5rem;
  padding: 0.7rem 1rem;
  margin: 3rem 0 1.5rem;
  background: var(--key-color);
  color: white;
  border-radius: 5px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 20px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: var(--key-color) transparent transparent;
}

/* サブ見出し（h3） */
h3 {
  font-size: 1.2rem;
  color: var(--sub-color);
  border-bottom: 2px dashed var(--key-color);
  padding: 0.5rem;
  margin: 1.5rem 0;
}

/* セクションのコンテンツ */
.section-content {
  background: var(--item-bg-color);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 画像スタイル */
figure {
  margin: 1.5rem 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--key-color);
  font-style: italic;
}

/* テーブルスタイル */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: var(--item-bg-color);
}

th, td {
  padding: 0.75rem;
  border: 1px solid #ddd;
}

th {
  background-color: var(--key-color);
  color: white;
}

tr:nth-child(even) {
  background-color: rgba(136, 100, 128, 0.1);
}

/* キャラクター関係テーブル */
.character-relation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .character-relation {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.character-card {
  background: var(--item-bg-color);
  border-radius: 5px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.character-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--key-color);
}

.character-name {
  font-weight: bold;
  margin: 0.5rem 0;
  color: var(--key-color);
}

.character-relation-text {
  font-size: 0.9rem;
  text-align: center;
}

/* リンクスタイル */
a {
  color: var(--sub-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .container {
    padding: 0.5rem;
  }

  h1 {
    font-size: 1.8rem;
    padding: 0.75rem;
    margin: 1.5rem 0;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .section-content {
    padding: 1rem;
  }
}

/* 記事情報セクション */
.article-info {
  background: var(--item-bg-color);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.time-icon {
  width: 20px;
  height: 20px;
  background-color: var(--key-color);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z'/%3E%3Cpath d='M13 7h-2v5.414l3.293 3.293 1.414-1.414L13 11.586z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z'/%3E%3Cpath d='M13 7h-2v5.414l3.293 3.293 1.414-1.414L13 11.586z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.time {
  margin: 0;
  font-size: 0.9rem;
  color: var(--key-color);
  font-style: italic;
}

.share-buttons {
  display: flex;
  align-items: center;
}

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

/* SNSボタンのスタイリング */
.twitter-share-button, .fb-share-button {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.twitter-share-button:hover, .fb-share-button:hover {
  transform: scale(1.2);
}

.fb-share-button a {
  background-color: #3b5998;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.fb-share-button a:hover {
  background-color: #2d4373;
  text-decoration: none;
}

/* 目次スタイル - 後から追加することを想定 */
.table-of-contents {
  background: var(--item-bg-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-of-contents h2 {
  margin-top: 0;
}

.table-of-contents ul {
  list-style-type: none;
  padding-left: 1rem;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  display: block;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(136, 100, 128, 0.3);
}

/* プロフィールテーブル */
.profile-table {
  width: 100%;
  margin: 1.5rem 0;
}

.profile-table th {
  width: 30%;
  text-align: right;
  background-color: rgba(136, 100, 128, 0.1);
  color: var(--key-color);
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
}

.profile-table td {
  width: 70%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
}

/* Description Box */
.description-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--sub-color);
}

/* Lazy Kisho effects - おしゃれな要素 */
.kisho-lazy-text {
  font-family: 'Noto Serif JP', serif;
  font-style: italic;
  color: var(--sub-color);
  position: relative;
  display: inline-block;
  transform: rotate(-2deg);
  margin: 0 0.2rem;
}

.kisho-confident {
  font-weight: bold;
  color: var(--key-color);
  text-decoration: underline;
}
/* キャラクター特集ページへのリンクボタン */
.char-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--sub-color), var(--key-color));
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  width: 85%;
  max-width: 200px;
}

.char-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: button-shine 2.5s infinite;
}

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

.char-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  border: 2px solid white;
  background: linear-gradient(135deg, var(--key-color), var(--sub-color));
}

/* おすすめセクション */
#recommendations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  #recommendations {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

#recommendations a {
  display: block;
  background: var(--item-bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--base-text-color);
  position: relative;
}

#recommendations a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--key-color), var(--sub-color));
  z-index: 1;
}

#recommendations a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

#recommendations img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: all 0.3s ease;
  border-bottom: 3px solid rgba(136, 100, 128, 0.3);
}

#recommendations a:hover img {
  filter: brightness(1.1);
}

#recommendations a::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: var(--sub-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  opacity: 0.9;
  transform: scale(0);
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 6V18M6 12H18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
}

#recommendations a:hover::after {
  transform: scale(1);
}

#recommendations br {
  display: none;
}

/* リンクテキスト部分のスタイル */
#recommendations a {
  padding-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

/* テキスト部分に擬似要素で余白を作る */
#recommendations a::before {
  content: "";
  display: block;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

#recommendations .recommendation-title {
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
  display: block;
}
/* フッター */
.site-footer {
  background-color: var(--base-bg-color);
  color: #fff;
  position: relative;
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
}

/* 波のデコレーション */
.wave-decoration {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%23936540' d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25'%3E%3C/path%3E%3Cpath fill='%23936540' d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5'%3E%3C/path%3E%3Cpath fill='%23936540' d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-section,
.usage-terms {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.contact-section::before,
.usage-terms::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.contact-section::before {
  background: linear-gradient(90deg, var(--key-color), var(--sub-color));
}

.usage-terms::before {
  background: linear-gradient(90deg, var(--sub-color), var(--key-color));
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-section,
  .usage-terms {
    flex: 1;
    min-width: 45%;
  }

  .footer-brand {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
  }
}

.mail-link {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.mail-link:hover {
  color: var(--sub-color);
  transform: translateX(5px);
}

.mail-icon {
  margin-right: 0.5rem;
  background: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.terms-content {
  font-size: 0.9rem;
  line-height: 1.6;
}

.terms-main {
  margin-bottom: 1rem;
}

.terms-list {
  list-style-type: none;
  padding-left: 1rem;
  margin: 0;
}

.terms-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5rem;
}

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

.link-text, .site-name {
  color: var(--sub-color);
  font-weight: bold;
}

.footer-brand {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
  .footer-brand {
    flex-direction: row;
    justify-content: space-between;
  }
}

.brand-link {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.brand-link:hover {
  color: var(--sub-color);
  transform: scale(1.05);
}

.brand-icon {
  margin-right: 0.5rem;
  background: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* 期聖らしい仕上げのアニメーション効果 */
.site-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23886480' opacity='0.3' d='M100,0v100H0C0,50,50,0,100,0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.5;
}

/* 目次スタイル */
.table-of-contents {
  background: var(--item-bg-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.table-of-contents::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--key-color), var(--sub-color));
}

.toc-title {
  font-size: 1.3rem;
  color: white;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed rgba(136, 100, 128, 0.3);
  position: relative;
  display: flex;
  align-items: center;
}

.toc-title::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  background-color: var(--key-color);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.toc-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .toc-list {
    grid-template-columns: 1fr 1fr;
  }
}

.toc-list li {
  position: relative;
}

.toc-list a {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  background: rgba(136, 100, 128, 0.05);
  border-radius: 4px;
  color: var(--base-text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.toc-list a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--key-color), var(--sub-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toc-list a:hover {
  background: rgba(136, 100, 128, 0.1);
  transform: translateX(5px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.toc-list a:hover::before {
  opacity: 1;
}

/* 目次の現在地表示 */
.toc-list a.current {
  background: rgba(136, 100, 128, 0.15);
  color: var(--sub-color);
  font-weight: bold;
  transform: translateX(5px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toc-list a.current::before {
  opacity: 1;
}

/* メニューボタン（スマホ用） */
.toc-toggle {
  display: none;
  background: var(--key-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 auto 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.toc-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 10px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}

.toc-toggle.active::after {
  transform: translateY(-30%) rotate(-135deg);
}

.toc-toggle:hover {
  background: var(--sub-color);
}

@media (max-width: 767px) {
  .toc-toggle {
    display: block;
    width: 100%;
  }

  /* この部分を削除または修正
  .toc-list {
    display: none;
  }

  .toc-list.active {
    display: grid;
    animation: fadeIn 0.5s ease forwards;
  }
  */
}

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
/* パンくずリスト */
.breadcrumb-nav {
  margin: 1rem 0 2rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  position: relative;
}

.breadcrumb-nav::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--key-color), transparent);
}

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

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

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

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.breadcrumb-link:hover {
  color: white;
  text-decoration: none;
}

.breadcrumb-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--sub-color);
  transition: width 0.3s ease;
}

.breadcrumb-link:hover::after {
  width: 100%;
}

.current-page {
  color: var(--sub-color);
  font-weight: 500;
}

@media (max-width: 767px) {
  .breadcrumb-nav {
    margin: 0.5rem 0 1.5rem;
    padding: 0.4rem 0.7rem;
  }

  .breadcrumb-item {
    font-size: 0.8rem;
  }
}
/* ナビゲーションボタン */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

.nav-button {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.toc-button {
  background: linear-gradient(135deg, var(--key-color), var(--sub-color));
  color: white;
  border: 2px solid transparent;
}

.rec-button {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid var(--key-color);
}

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.toc-button:hover {
  background: linear-gradient(135deg, var(--sub-color), var(--key-color));
  color: white;
}

.rec-button:hover {
  background: rgba(166, 85, 117, 0.2);
  color: white;
}

.button-icon {
  margin-right: 0.7rem;
  font-size: 1.2rem;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.3s ease;
}

.toc-button:hover .button-icon {
  transform: translateY(-3px);
}

.rec-button:hover .button-icon {
  transform: translateX(3px);
}

/* 光沢効果 */
.nav-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: rotate(30deg);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.nav-button:hover::after {
  transform: rotate(30deg) translate(10%, 10%);
  opacity: 1;
}

@media (max-width: 767px) {
  .nav-buttons {
    flex-direction: column;
    gap: 0.7rem;
  }

  .nav-button {
    width: 100%;
  }
}
