/* rokurouta.css */
:root {
    --primary-color: #c17a0f; /* 黄土色 - 陸郎太の服の色 */
    --secondary-color: #e9893b; /* 干し柿の色 */
    --accent-color: #8b4513; /* 茶色 - アクセント */
    --background-color: #fff8e6; /* 薄い黄色 - 背景色 */
    --text-color: #333333; /* テキスト色 */
    --border-color: #d4a76a; /* ボーダー色 */
}

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

body {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

/* 読みやすく力強いh1スタイル */
/* 読みやすく改善したh1スタイル */
h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
    animation: giantText 0.8s ease-out forwards;
    transform-origin: center bottom;
    overflow: hidden;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    letter-spacing: 0.5px;
}

h1::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    animation: growLine 1.2s ease-out forwards;
    transform-origin: left center;
}

h1::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* メインビジュアルのアニメーション */
header figure {
    overflow: hidden;
    position: relative;
    animation: giantImageAppear 1s ease-out forwards;
    transform-origin: center bottom;
}

header figure::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
                rgba(193, 122, 15, 0.4) 0%,
                transparent 50%,
                rgba(233, 137, 59, 0.3) 100%);
    opacity: 0;
    animation: glowEffect 1.4s 0.5s ease-out forwards;
}

header figure img {
    transform: scale(1.05);
    animation: subtleZoom 2s ease-out forwards;
}

/* アニメーションキーフレーム */
@keyframes giantText {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    30% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes growLine {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@keyframes giantImageAppear {
    0% {
        transform: scale(0.92);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glowEffect {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes subtleZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--primary-color);
    background-color: rgba(193, 122, 15, 0.1);
    padding: 8px 12px;
    border-left: 5px solid var(--primary-color);
}

h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: var(--secondary-color);
}

p {
    margin-bottom: 20px;
}

figure {
    margin: 20px 0;
}

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

figcaption {
    font-size: 14px;
    color: var(--accent-color);
    text-align: center;
    margin-top: 8px;
}

/* パンくずリストのスタイル */
.breadcrumb-nav {
    margin: 20px 0 30px;
    position: relative;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 10px 15px;
    margin: 0;
    background: linear-gradient(to right, rgba(193, 122, 15, 0.1), rgba(233, 137, 59, 0.05));
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.breadcrumb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" opacity="0.03"><path d="M0,5 L20,5 M0,15 L20,15" stroke="%23c17a0f" stroke-width="1" stroke-dasharray="2,2"/><path d="M5,0 L5,20 M15,0 L15,20" stroke="%23c17a0f" stroke-width="1" stroke-dasharray="2,2"/></svg>');
    pointer-events: none;
    border-radius: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 8px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23c17a0f"><path d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"/></svg>');
    background-size: contain;
    opacity: 0.6;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.breadcrumb-link:hover::after {
    transform: scaleX(1);
}

.current-page {
    color: var(--accent-color);
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.current-page::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.table-of-contents {
    background-color: rgba(233, 137, 59, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.table-of-contents h2 {
    background-color: transparent;
    border-left: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.table-of-contents ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table-of-contents li {
    flex: 1 0 calc(33.333% - 10px);
    min-width: 200px;
}

.table-of-contents a {
    display: block;
    padding: 8px 12px;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* プロフィール部分のスタイル */
.profile-grid {
    margin: 30px 0;
    background: linear-gradient(135deg, rgba(193, 122, 15, 0.1), rgba(233, 137, 59, 0.2));
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: perspective(1000px) rotateY(1deg);
    transform-origin: center left;
}

.profile-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><path d="M0,0 L100,100 M0,100 L100,0" stroke="%23c17a0f" stroke-width="1"/></svg>');
    pointer-events: none;
}

/* シルエットの装飾 - 陸郎太のような巨大な影 */
.profile-grid::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M40,10 C30,10 20,20 20,30 C20,40 20,50 30,60 C25,70 20,80 30,90 C50,100 70,90 80,80 C90,70 90,60 80,50 C90,40 90,20 80,20 C70,10 50,10 40,10 Z" fill="%23c17a0f"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    pointer-events: none;
    opacity: 0.2;
}

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

.profile-row:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

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

.profile-label {
    flex: 0 0 30%;
    padding: 15px;
    background-color: rgba(193, 122, 15, 0.2);
    font-weight: bold;
    color: var(--primary-color);
    border-right: 1px solid var(--border-color);
    position: relative;
    font-size: 18px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
}

.profile-label::after {
    content: "▶";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.5;
}

.profile-value {
    flex: 0 0 70%;
    padding: 15px;
    color: var(--text-color);
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.7);
}

.profile-value strong {
    font-size: 20px;
    color: var(--accent-color);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

/* 特別スタイル：年齢と身長 */
.profile-row.highlight .profile-label {
    background-color: rgba(193, 122, 15, 0.3);
}

.profile-row.highlight .profile-value {
    background-color: rgba(233, 137, 59, 0.2);
    font-weight: bold;
}

.profile-row.highlight .profile-value strong {
    font-size: 24px;
    color: #8b4513;
    position: relative;
    display: inline-block;
}

.profile-row.highlight .profile-value strong::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(139, 69, 19, 0.3);
}

/* 見出しスタイル */
.profile-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    text-align: center;
    font-size: 22px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-header::before, .profile-header::after {
    content: "★";
    position: absolute;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.profile-header::before {
    left: 15px;
}

.profile-header::after {
    right: 15px;
}

/* フットノート */
.profile-footnote {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 12px;
    font-size: 15px;
    color: var(--accent-color);
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-style: italic;
}

/* 登場シーン一覧のスタイル */
.scene-list {
    margin: 20px 0;
    background-color: rgba(193, 122, 15, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.scene-list h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin: 15px 0 5px;
    padding-bottom: 3px;
    border-bottom: 1px dashed var(--border-color);
}

.scene-list h4:first-child {
    margin-top: 0;
}

.scene-list p {
    margin: 5px 0 15px;
}

a.push0 {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

a.push0:hover {
    text-decoration: underline;
}

/* セクションナビゲーションボタン */
.section-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
    max-width: 1200px;
}

.nav-button {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" opacity="0.05"><path d="M0,30 L60,30 M30,0 L30,60" stroke="%23ffffff" stroke-width="2"/></svg>');
    z-index: 0;
    opacity: 0.2;
}

.button-icon {
    margin-right: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* 目次へ戻るボタン */
.back-to-toc {
    background: linear-gradient(135deg, var(--primary-color), #a86c15);
    color: white;
    border: 2px solid var(--primary-color);
}

.back-to-toc:hover {
    background: linear-gradient(135deg, #a86c15, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(193, 122, 15, 0.3);
}

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

/* 関連記事ボタン */
.related-links {
    background: linear-gradient(135deg, var(--secondary-color), #cc7a33);
    color: white;
    border: 2px solid var(--secondary-color);
}

.related-links:hover {
    background: linear-gradient(135deg, #cc7a33, var(--secondary-color));
    transform: translateY(3px);
    box-shadow: 0 6px 15px rgba(233, 137, 59, 0.3);
}

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

/* 更新日時とSNSボタンのスタイル */
.article-info {
    margin: 30px 0;
    background: linear-gradient(to right, rgba(193, 122, 15, 0.1), rgba(233, 137, 59, 0.15));
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.article-info::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M40,10 C30,10 20,20 20,30 C20,40 20,50 30,60 C25,70 20,80 30,90 C50,100 70,90 80,80 C90,70 90,60 80,50 C90,40 90,20 80,20 C70,10 50,10 40,10 Z" fill="%23c17a0f"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

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

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

.time-icon {
    width: 22px;
    height: 22px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23c17a0f"><path d="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4M12.5,7H11V13L16.2,16.2L17,14.9L12.5,12.2V7Z"/></svg>');
    background-size: contain;
    flex-shrink: 0;
}

.time {
    color: var(--accent-color);
    font-size: 14px;
    margin: 0;
}

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

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

/* SNSボタンのカスタマイズ */
.twitter-share-button {
    opacity: 0.9;
    transition: opacity 0.3s;
}

.twitter-share-button:hover {
    opacity: 1;
}

.fb-share-button {
    opacity: 0.9;
    transition: opacity 0.3s;
}

.fb-share-button:hover {
    opacity: 1;
}

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

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

/* おすすめ記事セクションのスタイル */
#recommend-section {
    margin: 60px 0 40px;
    position: relative;
}

.recommend-title {
    font-size: 24px;
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding: 8px 12px;
    margin-bottom: 25px;
    background-color: rgba(193, 122, 15, 0.1);
}

#recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    position: relative;
}

#recommendations a.push0 {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    transform: perspective(800px) rotateY(0deg);
    transform-style: preserve-3d;
    height: 100%;
}

#recommendations a.push0:hover {
    transform: perspective(800px) rotateY(2deg) translateY(-5px);
    box-shadow: 0 15px 30px rgba(193, 122, 15, 0.2);
}

#recommendations a.push0::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

#recommendations a.push0:hover::after {
    transform: scaleX(1);
}

#recommendations img.sneak {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    border-bottom: 3px solid var(--border-color);
    transition: transform 0.5s ease;
}

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

#recommendations a.push0 {
    font-size: 16px;
    font-weight: bold;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

#recommendations br {
    display: none;
}

/* フッタースタイル */
.site-footer {
    margin-top: 80px;
    background: linear-gradient(to bottom, var(--background-color), rgba(193, 122, 15, 0.1));
    position: relative;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

/* 波紋の装飾 - 地獄楽の仙境をイメージ */
.wave-decoration {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 30" preserveAspectRatio="none"><path d="M0,0 Q300,30 600,0 T1200,0 V30 H0 Z" fill="%23fff8e6"/></svg>');
    background-size: 100% 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* お問い合わせセクション */
.contact-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-section::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M40,10 C30,10 20,20 20,30 C20,40 20,50 30,60 C25,70 20,80 30,90 C50,100 70,90 80,80 C90,70 90,60 80,50 C90,40 90,20 80,20 C70,10 50,10 40,10 Z" fill="%23c17a0f"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
}

.mail-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    transition: color 0.3s;
}

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

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

.contact-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

/* 利用規約セクション */
.usage-terms {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.usage-terms::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -30px;
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><path d="M50,5 L95,40 L95,95 L5,95 L5,40 Z" stroke="%23c17a0f" stroke-width="5" fill="none"/><path d="M40,40 L60,40 M40,60 L70,60 M40,80 L65,80" stroke="%23c17a0f" stroke-width="5" stroke-linecap="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
    opacity: 0.5;
    z-index: -1;
}

.terms-content {
    position: relative;
}

.terms-main p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
}

.terms-list {
    list-style-type: none;
    padding-left: 20px;
    margin: 15px 0 0;
}

.terms-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

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

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

/* フッターブランドセクション */
.footer-brand {
    text-align: center;
    padding: 20px;
    margin-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

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

.brand-icon {
    margin-right: 8px;
    position: relative;
    top: -1px;
}

.copyright {
    font-size: 12px;
    color: var(--accent-color);
    opacity: 0.8;
}

footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.back-to-top {
    margin-bottom: 15px;
}

.back-to-top a {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.back-to-top a:hover {
    background-color: var(--secondary-color);
}

.copyright {
    font-size: 14px;
    color: var(--accent-color);
}

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

    h1 {
        font-size: 24px;
        padding-bottom: 12px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    .table-of-contents li {
        flex: 1 0 100%;
        min-width: auto;
    }

    .profile-grid {
        transform: none;
    }

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

    .profile-label {
        flex: 0 0 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .profile-value {
        flex: 0 0 100%;
    }

    .profile-label::after {
        transform: translateY(-50%) rotate(90deg);
    }

    .breadcrumb {
        padding: 8px 10px;
        font-size: 12px;
    }

    .breadcrumb-item:not(:last-child)::after {
        width: 12px;
        height: 12px;
        margin: 0 5px;
    }

    .section-navigation {
        flex-direction: column;
    }

    .nav-button {
        width: 100%;
    }

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

    #recommendations img.sneak {
        height: 180px;
    }

    .site-footer {
        padding-top: 40px;
    }

    .footer-content {
        padding: 0 15px 20px;
        gap: 20px;
    }

    .contact-section, .usage-terms {
        padding: 15px;
    }

    .usage-terms::before {
        display: none;
    }

    .info-container {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* 死罪人一覧 */
#death-row-prisoners {
    margin: 60px 0;
    position: relative;
}

.prisoners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 25px;
    background: linear-gradient(to bottom, rgba(193, 122, 15, 0.05), rgba(233, 137, 59, 0.1));
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.prisoners-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><path d="M0,0 L100,100 M0,100 L100,0" stroke="%23c17a0f" stroke-width="1"/><circle cx="50" cy="50" r="30" fill="none" stroke="%23c17a0f" stroke-width="1"/></svg>');
    pointer-events: none;
    border-radius: 12px;
}

.prisoner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 15px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prisoner-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.prisoner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(193, 122, 15, 0.3);
    background: linear-gradient(to bottom, white, rgba(233, 137, 59, 0.1));
    border-color: var(--secondary-color);
}

.prisoner-item:hover::after {
    transform: scaleX(1);
}

.prisoner-item img {
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    background: white;
}

.prisoner-item:hover img {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(233, 137, 59, 0.3);
}

.prisoner-name {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
    transition: color 0.3s ease;
}

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

/* 現在のキャラクター（陸郎太）のスタイル */
.current-prisoner {
    background: linear-gradient(135deg, rgba(193, 122, 15, 0.1), rgba(233, 137, 59, 0.2));
    border-color: var(--secondary-color);
    position: relative;
}

.current-prisoner::before {
    content: "現在のページ";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.current-prisoner img {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(233, 137, 59, 0.3);
}

.current-prisoner .prisoner-name {
    color: var(--primary-color);
    font-weight: 900;
}

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

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

    .prisoner-item {
        padding: 10px;
    }

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