/* 法流坊ページ専用CSS */
/* 全体のスタイル */
:root {
    --main-bg-color: #f9f7f2;
    --main-text-color: #333;
    --accent-color: #9c7c38; /* 土色をイメージしたアクセントカラー */
    --light-accent-color: #d6c6a6;
    --border-color: #d2c4a9;
    --section-bg-color: #ffffff;
    --header-color: #6a5235;
    --link-color: #8b6a3b;
    --link-hover-color: #c99642;
    --max-width: 1200px;
}

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

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
    line-height: 1.7;
    color: var(--main-text-color);
    background-color: var(--main-bg-color);
    padding: 0;
}

/* ヘッダースタイル */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.header-menu {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 15px;
}

/* パンくずリスト */
.breadcrumb-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 15px;
    font-size: 0.85rem;
}

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

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

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 5px;
    color: #999;
}

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

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

.current-page {
    font-weight: bold;
}

/* メインコンテンツ */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px 40px;
}

h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 20px 0;
    color: var(--header-color);
    position: relative;
    padding-left: 15px;
    line-height: 1.4;
}

h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 6px;
    background: linear-gradient(to bottom, var(--accent-color), var(--light-accent-color));
    border-radius: 3px;
}

.main-image {
    margin: 20px 0;
    text-align: center;
}

.sneak {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 記事情報セクション */
.article-info {
    background-color: var(--section-bg-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm1-8h4v2h-6V7h2v5z" fill="rgba(153,153,153,1)"/></svg>');
    margin-right: 5px;
}

.time {
    font-size: 0.8rem;
    color: #777;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-group {
    display: flex;
    gap: 10px;
}

/* 記事概要 */
.article-overview {
    background-color: var(--section-bg-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.overview-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--header-color);
    text-align: center;
    position: relative;
}

.overview-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 8px auto 0;
}

.overview-list {
    margin: 15px 0;
    padding-left: 25px;
}

.overview-list li {
    margin-bottom: 8px;
    position: relative;
}

.overview-list li::before {
    content: "•";
    position: absolute;
    left: -15px;
    color: var(--accent-color);
    font-size: 1.2em;
}

.overview-summary {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
}

/* 目次 */
.table-of-contents {
    background-color: var(--section-bg-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.toc-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: var(--header-color);
    position: relative;
}

.toc-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 8px auto 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.toc-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.toc-list a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
    display: block;
}

.toc-list a:hover {
    color: var(--link-hover-color);
    padding-left: 5px;
}

/* コンテンツセクション */
.content-section {
    background-color: var(--section-bg-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    position: relative;
}

.content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--accent-color), var(--light-accent-color));
    border-radius: 6px 6px 0 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--header-color);
    border-bottom: 2px solid var(--light-accent-color);
    padding-bottom: 8px;
    line-height: 1.4;
    position: relative;
}

.section-title::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--light-accent-color);
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 600;
    line-height: 1.4;
}

.section-text {
    margin-bottom: 15px;
    line-height: 1.8;
}

.section-image {
    margin: 20px 0;
    text-align: center;
}

figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

/* プロフィールテーブル */
.profile-table {
    width: 100%;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(156, 124, 56, 0.1)" stroke-width="8"/></svg>');
    background-size: 60px;
    background-position: right bottom;
    background-repeat: no-repeat;
}

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

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

.profile-label {
    width: 30%;
    padding: 10px 15px;
    font-weight: bold;
    background-color: rgba(214, 198, 166, 0.2);
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

.profile-value {
    width: 70%;
    padding: 10px 15px;
}

/* 登場シーンテーブル */
.appearance-table {
    width: 100%;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.appearance-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

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

.appearance-location {
    width: 30%;
    padding: 10px 15px;
    font-weight: bold;
    background-color: rgba(214, 198, 166, 0.2);
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

.appearance-description {
    width: 70%;
    padding: 10px 15px;
    line-height: 1.6;
}

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

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

.push0 {
    position: relative;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(transparent 60%, rgba(214, 198, 166, 0.4) 60%);
}

/* フッター */
.site-footer {
    background-color: #f0ebe0;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.contact-section {
    margin-bottom: 20px;
}

.mail-link {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--main-text-color);
}

.mail-link img {
    margin-right: 8px;
}

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

.usage-terms {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
}

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

.terms-list {
    padding-left: 20px;
    font-size: 0.9rem;
}

.terms-list li {
    margin-bottom: 5px;
}

.footer-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.brand-link {
    display: flex;
    align-items: center;
    color: var(--main-text-color);
    font-weight: bold;
}

.brand-link img {
    margin-right: 5px;
}

.copyright {
    font-size: 0.8rem;
    color: #777;
}

/* 数珠のような装飾要素 */
.content-section::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    z-index: 1;
    box-shadow:
        -30px 0 0 -3px var(--light-accent-color),
        -15px 0 0 -2px var(--light-accent-color),
        15px 0 0 -2px var(--light-accent-color),
        30px 0 0 -3px var(--light-accent-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

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

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

    .profile-row, .appearance-row {
        flex-direction: column;
    }

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

    .profile-label, .appearance-location {
        border-bottom: 1px solid var(--border-color);
    }

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

    .share-buttons {
        margin-top: 10px;
        width: 100%;
    }

    main {
        padding: 0 10px 30px;
    }

    .content-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.3rem;
        padding-left: 12px;
    }

    h1::before {
        width: 4px;
    }

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

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

    .content-section {
        padding: 12px;
        margin: 20px 0;
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* おすすめセクション */
.recommendations-container {
    margin: 20px 0;
}

#recommendations {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#recommendations a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--main-text-color);
    background-color: rgba(249, 247, 242, 0.5);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    padding-bottom: 15px;
    position: relative;
}

#recommendations a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background-color: var(--accent-color);
}

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

#recommendations img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 12px;
}

#recommendations a::after {
    content: "";
    display: block;
    margin: 10px auto 0;
    width: 50px;
    height: 6px;
    background-image: radial-gradient(circle, var(--accent-color) 2px, transparent 3px);
    background-size: 10px 10px;
    background-position: center;
    background-repeat: repeat-x;
}

#recommendations br {
    display: none;
}

@media (min-width: 768px) {
    #recommendations {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
    }

    #recommendations a {
        width: calc(33.33% - 14px);
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    #recommendations a {
        margin-bottom: 20px;
    }
}
/* アニメーションタイトル */
.animated-title {
  position: relative;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 25px 0;
  color: var(--header-color);
  line-height: 1.4;
  padding: 15px 20px 15px 30px;
  background-color: var(--section-bg-color);
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: title-appear 0.8s ease-out forwards;
}

.animated-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent-color), var(--light-accent-color));
  animation: bar-grow 0.6s ease-out 0.3s forwards;
}

.animated-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-color), transparent);
  animation: line-grow 1s ease-out 0.6s forwards;
}

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

@keyframes bar-grow {
  0% {
    height: 0;
  }
  100% {
    height: 100%;
  }
}

@keyframes line-grow {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .animated-title {
    font-size: 1.5rem;
    padding: 12px 15px 12px 25px;
  }
}

@media (max-width: 480px) {
  .animated-title {
    font-size: 1.3rem;
    padding: 10px 12px 10px 20px;
  }
}
/* ナビゲーションボタン */
.navigation-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 25px 0 10px;
  width: 100%;
}

.nav-button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  background-color: var(--accent-color);
  border-radius: 4px;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.nav-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
    rgba(255, 255, 255, 0.1) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    transparent 75%,
    transparent);
  background-size: 10px 10px;
  opacity: 0.3;
}

.nav-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  background-color: var(--link-hover-color);
  color: #fff;
  text-decoration: none;
}

.nav-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
}

.back-to-toc {
  background-color: var(--light-accent-color);
  border: 1px solid var(--accent-color);
}

.back-to-toc::before {
  content: "↑ ";
  margin-right: 5px;
}

.related-page {
  background-color: var(--accent-color);
}

.related-page::before {
  content: "→ ";
  margin-right: 5px;
}

/* 数珠のような装飾 */
.nav-button .bead {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  margin: 0 5px;
  position: relative;
  top: -1px;
}

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

  .nav-button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .nav-button {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}
/* 死罪人一覧セクション */
#death-row-prisoners {
  margin-bottom: 40px;
}

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

.prisoner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--light-accent-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.prisoner-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
    rgba(156, 124, 56, 0.1) 30%,
    transparent 30%);
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: rotate(45deg);
}

.prisoner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  background-color: rgba(249, 247, 242, 1);
  border-color: var(--accent-color);
}

.prisoner-item:hover::before {
  opacity: 1;
}

.prisoner-item img {
  border-radius: 50%;
  border: 3px solid var(--light-accent-color);
  transition: all 0.3s ease;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.prisoner-item:hover img {
  transform: scale(1.1);
  border-color: var(--accent-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.prisoner-name {
  color: var(--main-text-color);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-top: 5px;
  position: relative;
}

/* 現在のページの死罪人を強調 */
.current-page-prisoner {
  background-color: rgba(214, 198, 166, 0.3);
  border-color: var(--accent-color);
  box-shadow: 0 3px 8px rgba(156, 124, 56, 0.2);
}

.current-page-prisoner::after {
  content: "現在のページ";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 10px;
  background-color: var(--accent-color);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

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

  .prisoner-item {
    padding: 12px;
  }
}

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

  .prisoner-item {
    padding: 10px;
  }

  .prisoner-name {
    font-size: 12px;
  }

  .prisoner-item img {
    width: 50px;
    height: 50px;
  }

  .current-page-prisoner::after {
    font-size: 8px;
    padding: 1px 4px;
  }
}
