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

/* Variables */
:root {
    --main-color: #115740; /* 深緑色 - 巌鉄斎の着物の色 */
    --accent-color: #c83232; /* 赤色 - 剣と血のイメージ */
    --bg-color: #f5f5f5;
    --text-color: #333;
    --section-bg: #fff;
    --border-color: #ddd;
    --link-color: #115740;
    --link-hover: #c83232;
    --max-width: 1200px;
}

/* Typography */
body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L20 20M20 0L0 20' stroke='%23115740' stroke-width='1' stroke-opacity='0.1' fill='none'/%3E%3C/svg%3E");
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    background-color: var(--section-bg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    margin-bottom: 30px;
    position: relative;
}

h1 {
    color: var(--main-color);
    font-size: 2.5rem;
    font-weight: 900;
    font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
    margin-bottom: 20px;
    padding: 15px 0;
    text-align: center;
    position: relative;
    border-bottom: none;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    overflow: hidden;
    transform: perspective(500px) rotateX(0deg);
    transition: transform 0.5s;
}

h1:hover {
    transform: perspective(500px) rotateX(5deg);
}

h1::before, h1::after {
    content: "⚔️";
    margin: 0 15px;
    font-size: 1.8rem;
}

/* 剣の装飾ライン */
h1::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--main-color), var(--accent-color), transparent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: swordCut 1.2s forwards 0.5s;
}

/* タイトル画像の斬撃アニメーション */
header figure {
    position: relative;
    overflow: hidden;
}

header figure::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.2),
                rgba(255, 255, 255, 0.6),
                rgba(255, 255, 255, 0.2),
                transparent);
    z-index: 1;
    animation: swordSlash 1.5s ease-in-out forwards 0.2s;
}

/* 左右に短く振りかぶって、鋭く斬り下ろす */
@keyframes swordCut {
    0% {
        width: 0%;
        transform: translateX(-50%) rotate(-2deg);
    }
    5% {
        width: 5%;
        transform: translateX(-60%) rotate(-5deg);
    }
    15% {
        width: 10%;
        transform: translateX(-40%) rotate(5deg);
    }
    25% {
        width: 10%;
        transform: translateX(-60%) rotate(-3deg);
    }
    50% {
        width: 100%;
        transform: translateX(-50%) rotate(0);
    }
    100% {
        width: 80%;
        transform: translateX(-50%) rotate(0);
    }
}

/* 画像の上を光の閃きが横切る */
@keyframes swordSlash {
    0% {
        left: -100%;
        opacity: 1;
    }
    40% {
        left: 100%;
        opacity: 1;
    }
    41%, 100% {
        left: 100%;
        opacity: 0;
    }
}

/* ページロード時のタイトルとコンテンツの切り込み */
@keyframes contentReveal {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.content-section {
    opacity: 0;
    animation: contentReveal 0.8s ease forwards;
    animation-delay: calc(0.2s + var(--section-index) * 0.1s);
}

/* ページロード時のドラマティックな剣の斬撃追加 */
.sword-slash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.sword-slash {
    width: 100%;
    height: 5px;
    background-color: white;
    position: relative;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    animation: initialSlash 1s ease-out forwards;
}

.sword-slash::before, .sword-slash::after {
    content: "";
    position: absolute;
    background-color: rgba(255,255,255,0.8);
    z-index: -1;
}

.sword-slash::before {
    width: 100%;
    height: 20px;
    top: -8px;
    left: 0;
    filter: blur(10px);
}

.sword-slash::after {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    top: -12px;
    left: calc(100% - 15px);
    box-shadow: 0 0 20px 10px rgba(255,255,255,0.6);
    filter: blur(5px);
}

@keyframes initialSlash {
    0% {
        transform: rotate(-45deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: rotate(-45deg) scale(3);
        opacity: 1;
    }
    100% {
        transform: rotate(-45deg) scale(3);
        opacity: 0;
    }
}

/* ページから塵が落ちるようなエフェクト */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--main-color);
    border-radius: 50%;
    pointer-events: none;
}

/* Sword decoration for section headers */
h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding: 10px 15px;
    color: white;
    background-color: var(--main-color);
    border-radius: 5px;
    position: relative;
    display: inline-block;
}

h2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -15px;
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    transform: translateY(-50%);
}

h3 {
    font-size: 1.4rem;
    margin: 20px 0;
    padding-left: 15px;
    border-left: 5px solid var(--accent-color);
    color: var(--main-color);
}

/* Navigation - Table of Contents */
.toc {
    background-color: rgba(17, 87, 64, 0.1);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.toc h2 {
    background: none;
    color: var(--main-color);
    text-align: center;
    margin-top: 0;
    padding: 0 0 10px 0;
    border-bottom: 2px solid var(--main-color);
    display: block;
}

.toc h2::before {
    display: none;
}

.toc ul {
    list-style-type: none;
    columns: 2;
}

.toc li {
    margin: 8px 0;
    break-inside: avoid;
}

.toc a {
    color: var(--link-color);
    text-decoration: none;
    position: relative;
    padding-left: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.toc a::before {
    content: "⚔️";
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

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

/* Content Sections */
.content-section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 5px;
    background-color: var(--section-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

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

/* Images */
figure {
    margin: 20px 0;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 3px solid var(--main-color);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Profile Table */
.profile-table {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: rgba(17, 87, 64, 0.1);
    color: var(--main-color);
    font-weight: bold;
    width: 30%;
}

tr:hover {
    background-color: rgba(17, 87, 64, 0.05);
}

/* Scene List */
.scene-list {
    margin: 20px 0;
}

.scene-item {
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid var(--main-color);
    background-color: rgba(17, 87, 64, 0.05);
    transition: all 0.3s ease;
}

.scene-item:hover {
    background-color: rgba(17, 87, 64, 0.1);
    transform: translateX(5px);
}

.scene-title {
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 5px;
}

.scene-desc {
    font-size: 0.95rem;
}

/* Footer */
footer {
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.to-top.visible {
    opacity: 1;
}

#back-to-top {
    display: inline-block;
    background-color: var(--main-color);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

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

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

a.push0 {
    color: var(--accent-color);
}

/* Paragraphs */
p {
    margin-bottom: 15px;
    text-align: justify;
}

/* パンくずリスト */
.breadcrumb {
    list-style: none;
    padding: 12px 20px;
    margin: 20px 0 30px;
    background-color: rgba(17, 87, 64, 0.05);
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--accent-color);
}

/* 剣の装飾 - 左端 */
.breadcrumb::before {
    content: "⚔️";
    font-size: 0.9rem;
    color: var(--main-color);
    margin-right: 10px;
    opacity: 0.7;
}

/* パンくず間のセパレーター */
.breadcrumb-item {
    position: relative;
    padding: 0 8px;
    font-size: 0.9rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    height: 13px;
    width: 2px;
    background-color: var(--accent-color);
    opacity: 0.6;
}

/* リンクスタイル */
.breadcrumb-link {
    color: var(--main-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

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

.breadcrumb-link:hover {
    color: var(--accent-color);
}

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

/* 現在のページ */
.current-page {
    color: var(--accent-color);
    font-weight: bold;
}

/* パンくずリストの背景光るエフェクト */
.breadcrumb::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
                rgba(255, 255, 255, 0),
                rgba(255, 255, 255, 0.05),
                rgba(255, 255, 255, 0));
    pointer-events: none;
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

/* 記事情報セクションのスタイリング */
.article-info {
    margin: 30px 0;
    padding: 15px;
    background-color: rgba(17, 87, 64, 0.05);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.article-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
}

.article-info::after {
    content: "⚔️";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.2;
    color: var(--main-color);
}

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

/* 更新情報のスタイリング */
.update-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.time-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.time-icon::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--main-color);
    border-radius: 50%;
}

.time-icon::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 9px;
    width: 2px;
    height: 8px;
    background-color: var(--main-color);
    transform-origin: bottom;
    transform: rotate(-45deg);
}

.time {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    position: relative;
}

.time time {
    font-weight: bold;
    color: var(--main-color);
    position: relative;
}

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

.time:hover time::after {
    width: 100%;
}

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

.share-group {
    display: flex;
    gap: 15px;
    position: relative;
    align-items: center; /* ボタンの垂直位置を揃える */
}

.share-group::before {
    content: "シェア:";
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

/* Twitter/Xボタンのコンテナ修正 */
.twitter-share-button {
    position: relative;
    display: flex !important; /* !importantで優先度を上げる */
    align-items: center;
    transition: transform 0.2s ease;
    height: 28px; /* Twitterボタンの高さを固定 */
    min-width: 80px; /* 最小幅を設定してスペースを確保 */
    overflow: visible; /* オーバーフロー問題を解決 */
    margin-right: 5px; /* 右側に余白を追加 */
}

/* Facebookボタンのコンテナ修正 */
.fb-share-button {
    position: relative;
    display: flex !important; /* !importantで優先度を上げる */
    align-items: center;
    transition: transform 0.2s ease;
    height: 28px; /* Facebookボタンの高さを固定 */
    min-width: 80px; /* 最小幅を設定 */
    margin-left: 5px; /* 左側に余白を追加 */
}

/* ホバーエフェクト */
.twitter-share-button:hover,
.fb-share-button:hover {
    transform: translateY(-2px);
}

/* Facebookボタンのカスタムスタイル */
.fb-share-button a {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    color: white;
    background-color: #1877F2;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* テキストの折り返しを防止 */
}

.fb-share-button a::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    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 2C6.477 2 2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.879V14.89h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.989C18.343 21.129 22 16.99 22 12c0-5.523-4.477-10-10-10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.fb-share-button a:hover {
    background-color: #166FE5;
}

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

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .container {
        padding: 10px;
    }

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

    .toc ul {
        columns: 1;
    }

    table th {
        width: 40%;
    }

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

    .share-group {
        margin-top: 10px;
        flex-wrap: wrap; /* 狭い画面では折り返す */
    }

    /* モバイル用のボタン間隔調整 */
    .twitter-share-button,
    .fb-share-button {
        margin: 5px;
    }

    .breadcrumb {
        padding: 10px 15px;
        margin: 15px 0 25px;
    }

    .breadcrumb-item {
        font-size: 0.8rem;
        padding: 0 5px;
    }

    .breadcrumb::before {
        font-size: 0.8rem;
        margin-right: 5px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h1::before, h1::after {
        display: none;
    }

    h2 {
        font-size: 1.3rem;
        display: block;
    }

    h3 {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 10px;
    }

    th, td {
        padding: 8px 10px;
    }
}

/* 剣のキラキラエフェクト */
.article-info {
    animation: swordGlow 3s infinite alternate;
}

@keyframes swordGlow {
    0% {
        box-shadow: 0 0 5px rgba(17, 87, 64, 0.1);
    }
    100% {
        box-shadow: 0 0 15px rgba(17, 87, 64, 0.3);
    }
}

/* iframe要素に対する調整 (Twitterボタンのため) */
.twitter-share-button iframe {
    position: static !important; /* 位置指定を解除 */
    vertical-align: middle !important; /* 垂直位置を中央に */
}

/* おすすめセクションのスタイリング */
#recommendations {
    margin: 40px 0;
    padding: 25px 20px;
    background-color: rgba(17, 87, 64, 0.05);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 剣のモチーフを左側に配置 */
#recommendations::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--main-color), var(--accent-color), var(--main-color), transparent);
}

/* おすすめリスト */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 個別記事リンク */
.recommendation-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
}

.recommendation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* 画像コンテナ */
.img-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    border: none;
    border-radius: 5px 5px 0 0;
}

.recommendation-item:hover .img-container img {
    transform: scale(1.05);
}

/* テキストエリア */
.text-content {
    padding: 15px;
    flex-grow: 1;
}

.title {
    font-weight: bold;
    color: var(--main-color);
    position: relative;
    padding-left: 20px;
    line-height: 1.4;
}

.title::before {
    content: "⚔️";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

/* 剣の閃光エフェクト */
.sword-flash {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    z-index: 1;
    pointer-events: none;
    transition: left 0.6s ease-in-out;
}

/* もっと見るボタン */
.more-recommendations {
    display: block;
    text-align: center;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: var(--main-color);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 180px;
    position: relative;
    overflow: hidden;
    clear: both;
}

.more-recommendations:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.more-recommendations::after {
    content: "⚔️";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

.recommendations-title {
    color: var(--main-color);
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding: 10px 15px;
    text-align: center;
    position: relative;
    border-bottom: 3px solid var(--main-color);
    display: block;
}

.recommendations-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

/* 地獄楽テーマ - フッターデザイン */
.site-footer {
    background-color: #0a3027; /* 深緑色（巌鉄斎の着物より暗め） */
    color: #e4e4e4;
    padding: 40px 20px 30px;
    position: relative;
    margin-top: 80px;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--accent-color);
}

/* 波の装飾 - 剣の刃のイメージ */
.wave-decoration {
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='15' viewBox='0 0 100 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10L5 8L10 12L15 7L20 9L25 6L30 8L35 5L40 9L45 7L50 10L55 5L60 8L65 6L70 9L75 7L80 10L85 5L90 8L95 6L100 10V15H0V10Z' fill='%23c83232'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 100px 15px;
}

/* フッターの内容 */
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    position: relative;
}

.footer-content::before {
    content: "⚔️";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: swordPulse 3s infinite alternate;
}

@keyframes swordPulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translateX(-50%) scale(1.1);
        opacity: 1;
    }
}

/* コンタクトセクション */
.contact-section {
    padding: 15px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    border-left: 3px solid var(--accent-color);
}

.mail-link {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 5px;
}

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

.mail-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.contact-text {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 10px;
    color: #ccc;
}

/* 利用規約 */
.usage-terms {
    padding: 15px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    border-left: 3px solid var(--accent-color);
}

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

.terms-main p {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
}

.terms-list {
    list-style: none;
    padding-left: 5px;
    margin-top: 12px;
}

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

.terms-list li::before {
    content: "⚔️";
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.7rem;
    color: var(--accent-color);
}

.link-text, .site-name {
    color: #fff;
    font-weight: bold;
}

/* ブランドセクション */
.footer-brand {
    padding: 15px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-left: 3px solid var(--accent-color);
}

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

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

.brand-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.copyright {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 5px;
    position: relative;
}

.copyright::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* 剣のアニメーション効果 */
.site-footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--main-color), var(--accent-color), var(--main-color), transparent);
    animation: swordGlide 4s infinite alternate;
}

@keyframes swordGlide {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(100% + 200px) 0;
    }
}

/* ホバーエフェクト */
.contact-section:hover, .usage-terms:hover, .footer-brand:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* セクションの剣の装飾 */
.contact-section::before, .usage-terms::before, .footer-brand::before {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c83232'%3E%3Cpath d='M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14 4.14 5.57 2 7.71 3.43 9.14 2 10.57 3.43 12 7 8.43 15.57 17 12 20.57 13.43 22 14.86 20.57 16.29 19.14 18.43 21.29 19.86 19.86 21.29 18.43 19.14 16.29 20.57 14.86z'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.contact-section:hover::before, .usage-terms:hover::before, .footer-brand:hover::before {
    opacity: 0.6;
}

/* フッターのレスポンシブ対応 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-footer {
        padding: 30px 15px 20px;
    }

    .copyright {
        margin-top: 10px;
    }

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

    .more-recommendations {
        width: 80%;
        max-width: 250px;
    }
}

/* フッターに接触したときの剣の閃光エフェクト */
.footer-flashlight {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.05),
                rgba(255, 255, 255, 0.02),
                transparent);
    pointer-events: none;
    z-index: 10;
}
/* セクション下部のボタンエリア */
.section-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
    max-width: 1200px;
    width: 100%;
}

/* 1つだけのボタンの場合 */
.section-buttons.single-button {
    justify-content: center;
}

.section-buttons.single-button .section-button {
    width: 100%;
    max-width: 1200px;
}

/* 3つボタンの場合 */
.section-buttons.triple-buttons {
    flex-wrap: wrap;
}

.section-buttons.triple-buttons .section-button {
    flex: 1;
    min-width: 200px;
}

/* 個別ボタンスタイル */
.section-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--main-color) 0%, #0a3027 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    border-left: 3px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    min-height: 60px;
}

.section-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--accent-color) 0%, #a42020 100%);
}

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

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

.button-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.button-text {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
}

.button-text::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.section-button:hover .button-text::after {
    width: 100%;
}

/* 目次へ戻るボタン専用スタイル */
.back-to-toc {
    background: linear-gradient(135deg, var(--main-color) 0%, #0a3027 100%);
}

.back-to-toc:hover {
    background: linear-gradient(135deg, var(--main-color) 0%, #083f2c 100%);
}

/* 関連リンクボタン専用スタイル */
.related-link {
    background: linear-gradient(135deg, var(--accent-color) 0%, #8a2222 100%);
}

.related-link:hover {
    background: linear-gradient(135deg, #e84040 0%, var(--accent-color) 100%);
}

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

    .section-button {
        width: 100%;
    }

    .section-buttons.triple-buttons .section-button {
        flex: auto;
    }
}
/* 地獄楽テーマ - 死罪人一覧 */
#death-row-prisoners {
    margin: 50px 0;
    padding: 30px 20px;
    background-color: rgba(17, 87, 64, 0.05);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 上部の剣モチーフ装飾 */
#death-row-prisoners::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--main-color), var(--accent-color), var(--main-color));
}

/* 左側の剣モチーフ装飾 */
#death-row-prisoners::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-color), var(--main-color), var(--accent-color), transparent);
}

/* セクションタイトル（既存のスタイルに統一） */
#death-row-prisoners h2 {
    font-size: 1.8rem;
    margin: 0 0 20px;
    padding: 10px 15px;
    color: white;
    background-color: var(--main-color);
    border-radius: 5px;
    position: relative;
    display: inline-block;
}

/* カードグリッド */
.prisoners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
    position: relative;
}

/* 各囚人カード */
.prisoner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 15px;
    background-color: #fff;
    border: 2px solid var(--main-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.prisoner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background-color: rgba(17, 87, 64, 0.05);
    border-color: var(--accent-color);
}

/* 画像スタイル */
.prisoner-item img {
    border: 2px solid var(--main-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    background-color: white;
}

.prisoner-item:hover img {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(200, 50, 50, 0.3);
}

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

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

/* 剣の閃光エフェクト */
.prisoner-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: 1;
    transition: left 0.6s ease-in-out;
}

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

/* 剣のアイコン装飾（現在の巌鉄斎の位置を示す） */
.prisoner-item[href*="tessai.html"] {
    border-color: var(--accent-color);
    background-color: rgba(200, 50, 50, 0.05);
    position: relative;
}

.prisoner-item[href*="tessai.html"]::after {
    content: "⚔️";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(200, 50, 50, 0.5);
}

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

    #death-row-prisoners {
        padding: 20px 15px;
    }
}

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

    .prisoner-item {
        padding: 10px;
    }

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

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

    #death-row-prisoners h2 {
        font-size: 1.5rem;
        display: block;
        text-align: center;
    }
}
