/* Base styles */
:root {
    --key-color: #e8df95;
    --sub-color: #4a4737;
    --sub-color-light: #afac99;
    --sub-color-light2: #918d73;
    --text-color: #4a4737;
    --section-bg: #ffffff;
    --base-bg: #e8df95;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: var(--base-bg);
    color: var(--text-color);
    line-height: 1.6;
}

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

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

/* Title Animation */
.title-animation {
    font-size: 2rem;
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(45deg, var(--key-color), var(--sub-color-light));
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(74, 71, 55, 0.2);
    position: relative;
    overflow: hidden;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(74, 71, 55, 0.2);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(74, 71, 55, 0.3);
    }
    100% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(74, 71, 55, 0.2);
    }
}

/* Section Styles */
.article-section {
    background-color: var(--section-bg);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 10px rgba(74, 71, 55, 0.1);
}

.section-title {
    font-size: 1.8rem;
    color: var(--sub-color);
    border-bottom: 3px solid var(--key-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

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

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

/* Image Styles */
.main-image, .content-image {
    width: 100%;
    margin: 2rem 0;
}

.main-image img, .content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(74, 71, 55, 0.15);
}

figcaption {
    text-align: center;
    color: var(--sub-color-light);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Link Styles */
a {
    color: var(--sub-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--key-color);
    transition: color 0.3s ease;
}

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

/* Profile Section Styles */
.profile-section {
    position: relative;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--key-color), var(--sub-color-light));
    opacity: 0.2;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.profile-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(232, 223, 149, 0.1), rgba(232, 223, 149, 0.2));
    border-radius: 8px;
    border-left: 3px solid var(--key-color);
    transition: transform 0.3s ease;
}

.profile-item:hover {
    transform: translateY(-2px);
}

.profile-label {
    font-size: 0.9rem;
    color: var(--sub-color-light);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.profile-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.8rem;
    height: 0.8rem;
    transform: translateY(-50%);
    background-color: var(--key-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.profile-value {
    font-size: 1.1rem;
    color: var(--sub-color);
    font-weight: bold;
}

.profile-note {
    background-color: rgba(232, 223, 149, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    position: relative;
}

.note-mark {
    color: #e74c3c;
    font-weight: bold;
    margin: 0 0.2rem;
}

.note-text {
    font-size: 0.9rem;
    color: var(--sub-color-light);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--sub-color-light);
}

/* Character Grid Styles */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.character-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 71, 55, 0.1);
    border: 1px solid rgba(232, 223, 149, 0.3);
    transition: transform 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-header {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(232, 223, 149, 0.1), rgba(232, 223, 149, 0.2));
}

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

.character-name {
    margin: 1rem 0 0.5rem;
    color: var(--sub-color);
    font-size: 1.2rem;
}

.character-relation {
    padding: 1.5rem;
    background: white;
    position: relative;
}

.character-relation p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

.char-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--key-color), var(--sub-color-light));
    color: var(--sub-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.char-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--key-color), var(--sub-color-light), var(--key-color));
    border-radius: 26px;
    z-index: -1;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.char-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 223, 149, 0.4);
    color: var(--sub-color);
    border-bottom: none;
}

.character-note {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(232, 223, 149, 0.1);
    border-radius: 8px;
    color: var(--sub-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .title-animation {
        font-size: 1.5rem;
        padding: 0.8rem;
    }

    .article-section {
        padding: 1.5rem;
    }

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

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

/* Recommendations Styles */
.recommend-section {
    position: relative;
}

.recommend-section::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--key-color), var(--sub-color-light));
    opacity: 0.2;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.recommend-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.recommend-grid a {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 71, 55, 0.1);
    border: 1px solid rgba(232, 223, 149, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--sub-color);
    border-bottom: none;
}

.recommend-grid a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 71, 55, 0.2);
}

.recommend-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
    border-bottom: 3px solid var(--key-color);
}

.recommend-grid br {
    display: none;
}

.recommend-grid a {
    padding-bottom: 1rem;
}

.recommend-grid a::after {
    content: attr(href);
    display: block;
    font-size: 0.8rem;
    color: var(--sub-color-light);
    padding: 0.5rem 1rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .recommend-grid {
        grid-template-columns: 1fr;
    }

    .recommend-grid a {
        margin-bottom: 1.5rem;
    }
}
/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--sub-color), var(--sub-color-light));
    color: var(--key-color);
    padding: 3rem 1rem;
    position: relative;
    margin-top: 4rem;
}

.wave-decoration {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background:
        linear-gradient(45deg, transparent 33.33%, var(--key-color) 33.33%, var(--key-color) 66.66%, transparent 66.66%),
        linear-gradient(-45deg, transparent 33.33%, var(--key-color) 33.33%, var(--key-color) 66.66%, transparent 66.66%);
    background-size: 20px 40px;
    animation: waveMove 10s linear infinite;
}

@keyframes waveMove {
    from { background-position: 0 0; }
    to { background-position: 40px 0; }
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.contact-section {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-left: 3px solid var(--key-color);
}

.mail-link {
    display: flex;
    align-items: center;
    color: var(--key-color);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

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

.mail-icon {
    margin-right: 0.5rem;
    filter: invert(1);
}

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

.usage-terms {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    border-left: 3px solid var(--key-color);
}

.terms-content {
    position: relative;
}

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

.terms-list {
    list-style: none;
    padding-left: 1.5rem;
}

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

.terms-list li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    width: 0.8rem;
    height: 0.8rem;
    background-color: var(--key-color);
    transform: translateY(-50%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

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

.footer-brand {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(232, 223, 149, 0.2);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    color: var(--key-color);
    text-decoration: none;
    margin-bottom: 1rem;
}

.brand-icon {
    margin-right: 0.5rem;
}

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

@media (max-width: 767px) {
    .site-footer {
        padding: 2rem 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .contact-section, .usage-terms {
        padding: 1rem;
    }
}

/* Article Info Styles */
.article-info {
    background: linear-gradient(135deg, rgba(232, 223, 149, 0.1), rgba(232, 223, 149, 0.2));
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
    position: relative;
    border-left: 3px solid var(--key-color);
}

.article-info::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--key-color);
    opacity: 0.2;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

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

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

.time-icon {
    width: 20px;
    height: 20px;
    border: 2px solid var(--sub-color);
    border-radius: 50%;
    position: relative;
}

.time-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 2px;
    background: var(--sub-color);
    transform-origin: left;
    transform: rotate(-90deg);
    animation: clockTick 2s linear infinite;
}

.time-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 2px;
    background: var(--sub-color);
    transform-origin: left;
    animation: clockTick 24s linear infinite;
}

@keyframes clockTick {
    from { transform: rotate(-90deg); }
    to { transform: rotate(270deg); }
}

.time {
    font-size: 0.9rem;
    color: var(--sub-color);
}

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

.share-label {
    font-size: 0.9rem;
    color: var(--sub-color);
    position: relative;
    padding-left: 1.2rem;
}

.share-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.8rem;
    height: 0.8rem;
    transform: translateY(-50%);
    background-color: var(--key-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.share-group {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

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

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

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

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

@media (max-width: 767px) {
    .info-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}
/* Enhanced Title Animation Styles */
.title-animation {
    font-size: 2.2rem;
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--key-color), var(--sub-color-light));
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 71, 55, 0.3);
    animation: titleSlice 0.8s ease-out;
}

.title-animation::before,
.title-animation::after {
    content: '';
    position: absolute;
    background: var(--sub-color);
    animation: slashEffect 1.2s ease-out;
}

.title-animation::before {
    width: 100%;
    height: 2px;
    left: -100%;
    top: 0;
}

.title-animation::after {
    width: 2px;
    height: 100%;
    top: -100%;
    right: 5px;
}

.title-animation:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 71, 55, 0.4);
}

/* Scalpel decorations */
.title-animation .scalpel-left,
.title-animation .scalpel-right {
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--sub-color);
    opacity: 0;
    animation: scalpelAppear 0.5s ease-out 0.8s forwards;
}

.title-animation .scalpel-left {
    left: 10px;
    top: 50%;
    transform: rotate(-45deg);
}

.title-animation .scalpel-right {
    right: 10px;
    top: 50%;
    transform: rotate(45deg);
}

.title-animation .scalpel-left::before,
.title-animation .scalpel-right::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--sub-color);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

@keyframes titleSlice {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes slashEffect {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(0deg);
    }
    50% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(0deg);
    }
}

@keyframes scalpelAppear {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: rotate(-45deg) translateX(0);
    }
}

/* Article Overview Styles */
.article-overview {
    background: linear-gradient(135deg, rgba(232, 223, 149, 0.1), rgba(232, 223, 149, 0.2));
    border-radius: 12px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.article-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--key-color);
    animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.overview-container {
    padding: 2rem;
    position: relative;
}

.overview-title {
    font-size: 1.4rem;
    color: var(--sub-color);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.overview-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.2rem;
    height: 1.2rem;
    transform: translateY(-50%);
    background: var(--key-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.overview-points {
    padding: 1rem 0;
}

.point-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transform: translateX(0);
    transition: transform 0.3s ease;
    position: relative;
}

.point-item:hover {
    transform: translateX(10px);
}

.point-marker {
    width: 12px;
    height: 2px;
    background: var(--sub-color);
    margin-right: 1rem;
    position: relative;
}

.point-marker::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%) rotate(45deg);
    border: 2px solid var(--sub-color);
}

.overview-conclusion {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(74, 71, 55, 0.1);
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.conclusion-text {
    position: relative;
    color: var(--sub-color);
    font-weight: bold;
    padding: 0 1.5rem;
}

.conclusion-text::before,
.conclusion-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 15px;
    height: 2px;
    background: var(--key-color);
}

.conclusion-text::before {
    left: -5px;
    transform: translateY(-50%) rotate(-45deg);
}

.conclusion-text::after {
    right: -5px;
    transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 767px) {
    .overview-container {
        padding: 1.5rem;
    }

    .overview-title {
        font-size: 1.2rem;
    }
}
/* Breadcrumb Styles */
.breadcrumb-nav {
    margin: 2rem 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.8rem 1.2rem;
    margin: 0;
    list-style: none;
    background: linear-gradient(135deg, rgba(232, 223, 149, 0.05), rgba(232, 223, 149, 0.1));
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

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

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

.breadcrumb-item:not(:first-child) {
    padding-left: 1.5rem;
}

.breadcrumb-item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--sub-color);
    border-right: 1px solid var(--sub-color);
    transform: translateY(-50%) rotate(45deg);
}

.breadcrumb-link {
    color: var(--sub-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0.3rem;
    position: relative;
    font-size: 0.9rem;
}

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

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

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

.current-page {
    color: var(--sub-color);
    font-weight: bold;
    padding: 0.3rem;
    position: relative;
    font-size: 0.9rem;
}

.current-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--key-color);
}

@media (max-width: 767px) {
    .breadcrumb {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .breadcrumb-item:not(:first-child) {
        padding-left: 1.2rem;
    }

    .breadcrumb-item:not(:first-child)::before {
        left: 0.4rem;
        width: 6px;
        height: 6px;
    }
}
/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  width: 100%;
}

.nav-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--key-color), var(--sub-color-light));
  color: var(--sub-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 71, 55, 0.15);
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.1) 50%, transparent 75%);
  background-size: 200% 200%;
  animation: shimmer 2s infinite linear;
  pointer-events: none;
}

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

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 71, 55, 0.25);
}

.button-icon {
  width: 20px;
  height: 20px;
  margin-right: 1rem;
  position: relative;
}

.toc-icon::before,
.toc-icon::after {
  content: '';
  position: absolute;
  background: var(--sub-color);
}

.toc-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.toc-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.related-icon::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--sub-color);
  border-right: 2px solid var(--sub-color);
  top: 50%;
  left: 50%;
  transform: translate(-75%, -50%) rotate(45deg);
}

.button-text {
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .navigation-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-button {
    width: 100%;
  }
}
/* Table of Contents Styles */
.toc-section {
  margin: 3rem 0;
  position: relative;
}

.toc-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e8df95' fill-opacity='0.1'%3E%3Cpath d='M0 0h4v4H0V0zm8 0h4v4H8V0zm8 0h4v4h-4V0zM0 8h4v4H0V8zm8 0h4v4H8V8zm8 0h4v4h-4V8zM0 16h4v4H0v-4zm8 0h4v4H8v-4zm8 0h4v4h-4v-4z'/%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  border-radius: 12px;
  opacity: 0.5;
}

.toc-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  color: var(--sub-color);
  position: relative;
}

.toc-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--key-color), transparent);
}

.toc-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(74, 71, 55, 0.15);
  border-left: 3px solid var(--key-color);
  position: relative;
  overflow: hidden;
}

.toc-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: var(--key-color);
  opacity: 0.1;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

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

.toc-item {
  margin-bottom: 1rem;
  position: relative;
  transition: transform 0.3s ease;
}

.toc-item:hover {
  transform: translateX(8px);
}

.toc-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--sub-color);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  position: relative;
}

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

.toc-link:hover {
  background-color: rgba(232, 223, 149, 0.1);
}

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

.toc-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--key-color);
  color: var(--sub-color);
  border-radius: 50%;
  margin-right: 1rem;
  font-size: 0.9rem;
  font-weight: bold;
}

.toc-text {
  position: relative;
  flex: 1;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .toc-container {
    padding: 1.5rem;
  }

  .toc-link {
    padding: 0.4rem 0.8rem;
  }

  .toc-number {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
}
/* Navigation Buttons - Fixed for mobile */
.navigation-buttons {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  width: 100%;
  box-sizing: border-box; /* これを追加 */
}

.nav-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--key-color), var(--sub-color-light));
  color: var(--sub-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 71, 55, 0.15);
  box-sizing: border-box; /* これを追加 */
}

/* その他のスタイルは同じ */

/* Responsive adjustments - 修正版 */
@media (max-width: 767px) {
  .navigation-buttons {
    flex-direction: column;
    gap: 1rem;
    padding: 0 10px; /* 余白を追加 */
    max-width: 100%; /* 最大幅を制限 */
  }

  .nav-button {
    width: 100%;
    max-width: 100%; /* 最大幅を制限 */
  }
}
