/* touma.css */
/* 基本設定 */
:root {
    --key-color: #635484; /* キーカラー（濃い紫） */
    --sub-color: #935457; /* サブカラー */
    --base-text-color: #404152; /* ベースカラー文字 */
    --section-bg-color: #eceeff; /* 項目内背景カラー */
    --base-bg-color: #404152; /* ベースカラー背景 */
    --accent-color: #8a4fff; /* アクセントカラー（紫） */
    --light-accent: #d5cbff; /* 明るいアクセント */
    --font-japanese: 'Yu Mincho', 'YuMincho', 'MS Mincho', serif; /* 和風フォント */
}

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

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

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ヘッダーセクション */
header {
    position: relative;
    margin-bottom: 30px;
}

.main-image {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* h1タイトルアニメーション */
h1.title-animation {
    position: relative;
    font-family: var(--font-japanese);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--key-color), var(--accent-color));
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(99, 84, 132, 0.3);
    margin-bottom: 20px;
    overflow: hidden;
    z-index: 1;
}

/* 佐切らしい和風の優雅なアニメーション */
h1.title-animation::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    z-index: 2;
    animation: sakiri-sweep 4s ease-in-out infinite;
}

h1.title-animation::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    z-index: 1;
    opacity: 0;
    animation: sakiri-glow 5s ease-in-out infinite;
}

h1.title-animation span {
    display: inline-block;
    padding-right: 5px;
    color: var(--light-accent);
    animation: sakiri-text-fade 3s ease-in-out infinite alternate;
}

@keyframes sakiri-sweep {
    0% {
        left: -100%;
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes sakiri-glow {
    0%, 100% {
        opacity: 0;
        top: -100%;
    }
    50% {
        opacity: 0.5;
        top: 0;
    }
}

@keyframes sakiri-text-fade {
    0% {
        color: var(--light-accent);
    }
    100% {
        color: white;
    }
}

/* 更新日時とSNSボタン */
.article-info {
    margin: 15px 0 25px;
    font-size: 0.9rem;
}

.info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 15px;
    background-color: rgba(99, 84, 132, 0.05);
    border-radius: 8px;
    border-bottom: 2px solid var(--key-color);
}

.update-info {
    display: flex;
    align-items: center;
    color: var(--base-text-color);
    position: relative;
    padding-left: 25px;
}

.time-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23635484'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.8;
}

.time {
    margin: 0;
    font-size: 0.85rem;
}

.kisho-lazy-text {
    color: var(--key-color);
    font-weight: 600;
    position: relative;
}

.kisho-lazy-text::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--key-color);
    opacity: 0.5;
}

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

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

.twitter-share-button,
.fb-share-button {
    background: white;
    border-radius: 4px;
    padding: 2px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.twitter-share-button:hover,
.fb-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fb-share-button a {
    color: #4267B2;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.fb-share-button a::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234267B2'%3E%3Cpath d='M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 記事説明部分 */
.description {
    background-color: var(--section-bg-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid var(--key-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 記事情報ボックス */
.article-info {
    margin-bottom: 30px;
}

.info-box {
    background-color: var(--base-bg-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.info-box h4 {
    color: var(--light-accent);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: var(--font-japanese);
}

.info-box ul {
    list-style: none;
}

.info-box li {
    margin-bottom: 5px;
}

.info-summary {
    font-weight: bold;
    color: var(--sub-color);
    text-align: center;
    font-size: 1.1rem;
    padding: 10px;
    background-color: var(--section-bg-color);
    border-radius: 5px;
}

/* セクションスタイル */
.content-section {
    margin-bottom: 40px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* セクションタイトル (h2) */
.section-title {
    position: relative;
    font-family: var(--font-japanese);
    font-size: 1.5rem;
    padding: 10px 15px;
    margin: -20px -20px 20px;
    background: linear-gradient(to right, var(--key-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--light-accent));
}

/* セクションサブタイトル (h3) */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--key-color);
    margin-bottom: 15px;
    padding: 0 0 8px 0;
    border-bottom: 2px dashed var(--light-accent);
    font-weight: 600;
}

.section-image {
    margin: 15px 0;
}

.section-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--base-text-color);
    padding: 8px 0;
    font-style: italic;
}

.content-text {
    line-height: 1.7;
}

.content-text p {
    margin-bottom: 15px;
}

/* プロフィールセクション */
.profile-container {
    margin: 20px 0;
}

.profile-table {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(99, 84, 132, 0.1);
}

.profile-row {
    display: flex;
    border-bottom: 1px solid rgba(99, 84, 132, 0.1);
}

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

.profile-row:nth-child(odd) {
    background-color: rgba(99, 84, 132, 0.05);
}

.profile-row:hover {
    background-color: rgba(99, 84, 132, 0.1);
    transition: background-color 0.3s ease;
}

.profile-label {
    flex: 0 0 30%;
    padding: 12px 15px;
    background-color: var(--key-color);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    position: relative;
}

.profile-label::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent var(--light-accent);
}

.profile-value {
    flex: 0 0 70%;
    padding: 12px 15px;
    background-color: white;
}

/* セクション特有のスタイル */
#touma-skill .section-title {
    background: linear-gradient(to right, var(--key-color), var(--sub-color));
}

#touma-skill .section-subtitle {
    position: relative;
    display: inline-block;
}

#touma-skill .section-subtitle::after {
    content: "天才";
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 0.75rem;
    background-color: var(--sub-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    transform: rotate(15deg);
    opacity: 0.9;
}

#touma-personality .section-title {
    background: linear-gradient(to right, var(--key-color), #4a3c6b);
}

/* 冬馬の過去セクション - エピソードテーブル */
#touma-past .section-title {
    background: linear-gradient(to right, #4a3c6b, var(--sub-color));
}

.table-title {
    font-family: var(--font-japanese);
    color: var(--key-color);
    margin: 25px 0 15px;
    font-size: 1.1rem;
    padding-left: 10px;
    border-left: 4px solid var(--key-color);
    display: flex;
    align-items: center;
}

.table-title::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 1px;
    background-color: var(--key-color);
    margin-right: 10px;
}

.episode-table-container {
    margin: 15px 0 25px;
    padding: 15px;
    background-color: var(--section-bg-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.episode-table-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--key-color), var(--sub-color));
}

.episode-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.episode-row {
    display: flex;
    width: 100%;
}

.episode-header {
    background-color: var(--key-color);
    color: white;
    font-weight: 600;
}

.episode-row:not(.episode-header):nth-child(odd) {
    background-color: white;
}

.episode-row:not(.episode-header):nth-child(even) {
    background-color: #f7f5ff;
}

.episode-row:not(.episode-header):hover {
    background-color: #f0ebff;
    transition: background-color 0.3s;
}

.episode-cell {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(99, 84, 132, 0.1);
    position: relative;
}

/* 最後の行のセルの下線を消す */
.episode-row:last-child .episode-cell {
    border-bottom: none;
}

/* セルの幅調整 */
.episode-row .episode-cell:nth-child(1) {
    flex: 0 0 15%;
    font-weight: 600;
    color: var(--key-color);
}

.episode-row .episode-cell:nth-child(2) {
    flex: 0 0 25%;
    font-weight: 500;
}

.episode-row .episode-cell:nth-child(3) {
    flex: 0 0 60%;
}

/* 地獄楽らしい雰囲気の装飾 */
.episode-row:not(.episode-header) .episode-cell:first-child {
    position: relative;
}

.episode-row:not(.episode-header) .episode-cell:first-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--key-color), var(--sub-color));
    opacity: 0.7;
}

/* 冬馬の裏切りセクション */
#touma-betrayal .section-title {
    background: linear-gradient(to right, var(--sub-color), var(--key-color));
}

.betrayal-highlight {
    margin: 20px 0;
    background-color: #f5f2ff;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid rgba(99, 84, 132, 0.3);
    position: relative;
    overflow: hidden;
}

.betrayal-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at top right, var(--sub-color), transparent 70%);
    opacity: 0.3;
}

.highlight-inner {
    border: 1px dashed rgba(99, 84, 132, 0.3);
    border-radius: 5px;
    padding: 15px 20px;
}

.betrayal-highlight h4 {
    color: var(--sub-color);
    font-family: var(--font-japanese);
    margin-bottom: 10px;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.betrayal-highlight h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--sub-color), transparent);
}

.betrayal-highlight ul {
    list-style: none;
    padding-left: 5px;
}

.betrayal-highlight li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.betrayal-highlight li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--sub-color);
    transform: rotate(45deg);
    opacity: 0.7;
}

.betrayal-highlight strong {
    color: var(--sub-color);
    font-weight: 600;
}

/* 門下生との関係セクション */
#touma-relationships .section-title {
    background: linear-gradient(135deg, var(--key-color), var(--sub-color));
}

.relationship-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.relationship-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(99, 84, 132, 0.1);
    border: 1px solid rgba(99, 84, 132, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.relationship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(99, 84, 132, 0.15);
}

.character-info {
    text-align: center;
    background: linear-gradient(180deg, rgba(99, 84, 132, 0.03) 0%, rgba(99, 84, 132, 0.08) 100%);
    padding: 15px 10px;
    border-bottom: 1px solid rgba(99, 84, 132, 0.1);
    position: relative;
}

.character-info::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--key-color), var(--sub-color));
    opacity: 0.6;
}

.character-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 0 0 1px rgba(99, 84, 132, 0.2);
}

.character-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-name {
    font-weight: 600;
    color: var(--key-color);
    font-size: 1.1rem;
    font-family: var(--font-japanese);
}

.relationship-desc {
    padding: 15px;
    flex-grow: 1;
    position: relative;
}

.relationship-desc p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.char-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--key-color), var(--sub-color));
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(99, 84, 132, 0.3);
    position: relative;
    overflow: hidden;
}

.char-link::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s, opacity 0.5s;
}

.char-link:hover {
    background: linear-gradient(135deg, var(--sub-color), var(--key-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(99, 84, 132, 0.4);
    color: white;
    text-decoration: none;
}

.char-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.relationship-summary {
    background-color: var(--section-bg-color);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--key-color);
    margin-top: 20px;
    font-style: italic;
}

/* アニメの桐馬セクション */
#touma-anime .section-title {
    background: linear-gradient(to right, #4a3c6b, var(--key-color));
}

.anime-episodes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 25px 0;
    padding: 15px;
    background-color: var(--section-bg-color);
    border-radius: 10px;
}

.episode-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #635484, #4a3c6b);
    color: white;
    box-shadow: 0 3px 10px rgba(74, 60, 107, 0.3);
    margin: 0 10px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.episode-highlight:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 60, 107, 0.4);
}

.main-episode {
    background: linear-gradient(135deg, var(--sub-color), var(--key-color));
    width: 120px;
    height: 120px;
    box-shadow: 0 3px 15px rgba(147, 84, 87, 0.3);
}

.episode-number {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.main-episode .episode-number {
    font-size: 1.4rem;
}

.episode-desc {
    font-size: 0.8rem;
    opacity: 0.9;
}

.episode-arrow {
    width: 30px;
    height: 3px;
    background: linear-gradient(to right, rgba(99, 84, 132, 0.3), rgba(99, 84, 132, 0.6));
    position: relative;
    margin: 0 5px;
}

.episode-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent rgba(99, 84, 132, 0.6);
}

/* まとめセクション */
.summary-section {
    position: relative;
    border-top: 5px solid var(--key-color);
}

.summary-section::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--key-color), var(--sub-color));
}

#touma-summary .section-title {
    background: linear-gradient(135deg, var(--key-color), var(--sub-color));
}

.character-essence {
    margin: 30px 0 15px;
    padding: 20px;
    background-color: #f9f7ff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(99, 84, 132, 0.1);
    position: relative;
    overflow: hidden;
}

.character-essence::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--key-color), var(--sub-color));
}

.essence-title {
    text-align: center;
    color: var(--key-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-japanese);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    margin: 0 auto 20px;
    width: fit-content;
}

.essence-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--key-color), var(--sub-color));
}

.essence-points {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.essence-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
}

.point-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 3px 10px rgba(99, 84, 132, 0.15);
}

.point-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30px;
}

.loyalty {
    background: linear-gradient(135deg, #635484, #4a3c6b);
}

.loyalty::before {
    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 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.betrayal {
    background: linear-gradient(135deg, #935457, #7a3538);
}

.betrayal::before {
    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='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
}

.talent {
    background: linear-gradient(135deg, #6b5484, #4a3c6b);
}

.talent::before {
    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 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'/%3E%3C/svg%3E");
}

.growth {
    background: linear-gradient(135deg, #4a6b5c, #355e4d);
}

.growth::before {
    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 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z'/%3E%3C/svg%3E");
}

.point-text {
    color: var(--base-text-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* おすすめセクション */
.recommendation-section {
    margin-top: 40px;
    border-top: 5px solid var(--key-color);
    position: relative;
}

.recommendation-section::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--key-color) 0%, var(--sub-color) 50%, var(--key-color) 100%);
}

.recommendation-section .section-title {
    background: linear-gradient(135deg, var(--key-color), var(--sub-color));
}

.recommendations-wrapper {
    padding: 10px 0;
}

.recommendations-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.recommendations-container a {
    display: block;
    color: var(--base-text-color);
    text-decoration: none;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(99, 84, 132, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    padding: 0 0 15px;
    margin-bottom: 0;
}

.recommendations-container a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(99, 84, 132, 0.2);
    text-decoration: none;
    color: var(--key-color);
}

.recommendations-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
    margin-bottom: 10px;
}

/* テキスト部分のスタイリング */
.recommendations-container br {
    display: none;
}

/* JavaScriptが挿入するテキストの処理 */
.recommendations-container a {
    padding-left: 15px;
    padding-right: 15px;
}

.recommendations-container a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--key-color), var(--sub-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.recommendations-container a:hover::after {
    opacity: 1;
}

/* フッターセクション */
.site-footer {
    background-color: var(--base-bg-color);
    color: #f5f5f7;
    padding: 0 0 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

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

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

/* メール問い合わせセクション */
.contact-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.mail-link {
    display: flex;
    align-items: center;
    color: #f5f5f7;
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.3s;
}

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

.mail-icon {
    margin-right: 10px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* 利用規約セクション */
.usage-terms {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

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

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

.terms-main p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--key-color), var(--sub-color));
    transform: rotate(45deg);
    opacity: 0.8;
}

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

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

.terms-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--light-accent);
    border-radius: 50%;
}

.link-text {
    color: var(--light-accent);
    font-weight: 600;
}

.site-name {
    color: var(--light-accent);
    font-weight: 600;
    position: relative;
}

.site-name::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--light-accent);
    opacity: 0.5;
}

/* フッターブランド */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-link {
    display: flex;
    align-items: center;
    color: #f5f5f7;
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 700;
    font-family: var(--font-japanese);
    letter-spacing: 1px;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 15px;
    transition: all 0.3s;
}

.brand-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--key-color), var(--sub-color));
    opacity: 0;
    border-radius: 20px;
    z-index: -1;
    transition: opacity 0.3s;
}

.brand-link:hover {
    color: white;
}

.brand-link:hover::before {
    opacity: 0.8;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 5px;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* 地獄楽テーマの特別効果 */
.site-footer::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--sub-color), transparent);
}

.site-footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at bottom right, var(--key-color), transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 2fr 3fr 2fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .contact-section,
    .usage-terms {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 0 0 20px;
    }

    .wave-decoration {
        height: 30px;
    }

    .footer-content {
        padding: 0 15px;
    }
}
/* パンくずリストのスタイル */
.breadcrumb-nav {
    margin: 0 0 25px;
    overflow: hidden;
    position: relative;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 15px;
    margin: 0;
    list-style: none;
    background-color: rgba(99, 84, 132, 0.05);
    border-radius: 5px;
    position: relative;
}

.breadcrumb::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--key-color), transparent);
    opacity: 0.5;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item:not(:last-child) {
    margin-right: 25px;
}

.breadcrumb-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--key-color);
    border-right: 1px solid var(--key-color);
    opacity: 0.6;
}

.breadcrumb-link {
    color: var(--key-color);
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
    position: relative;
    overflow: hidden;
    padding-bottom: 2px;
}

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

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

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

.current-page {
    color: var(--sub-color);
    font-weight: 600;
    position: relative;
}

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

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

    .breadcrumb-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 6px 8px;
    }

    .breadcrumb-item {
        font-size: 0.75rem;
    }

    .breadcrumb-item:not(:last-child) {
        margin-right: 20px;
    }

    .breadcrumb-item:not(:last-child)::after {
        right: -12px;
        width: 5px;
        height: 5px;
    }
}
/* 目次のスタイル */
.toc-container {
    margin: 30px 0;
    background-color: var(--section-bg-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(99, 84, 132, 0.1);
    position: relative;
    overflow: hidden;
}

.toc-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--key-color), var(--sub-color));
}

.toc-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    color: var(--key-color);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-japanese);
    border-bottom: 1px dashed rgba(99, 84, 132, 0.3);
    display: flex;
    align-items: center;
}

.toc-title::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23635484'%3E%3Cpath d='M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

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

.toc-item {
    margin-bottom: 15px;
    position: relative;
}

.toc-item:last-child {
    margin-bottom: 0;
}

.toc-link {
    display: block;
    color: var(--base-text-color);
    text-decoration: none;
    padding: 8px 15px 8px 30px;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
    line-height: 1.5;
}

.toc-link::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 14px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--key-color), var(--sub-color));
    transform: rotate(45deg);
    opacity: 0.7;
    transition: transform 0.3s, opacity 0.3s;
}

.toc-link:hover {
    background-color: rgba(99, 84, 132, 0.1);
    color: var(--key-color);
    text-decoration: none;
    padding-left: 35px;
}

.toc-link:hover::before {
    transform: rotate(225deg);
    opacity: 1;
}

/* タブレット・スマホ調整 */
@media (max-width: 768px) {
    .toc-container {
        padding: 15px;
    }

    .toc-title {
        font-size: 1.1rem;
    }

    .toc-link {
        padding: 6px 12px 6px 28px;
    }

    .toc-link::before {
        left: 8px;
        top: 12px;
    }
}

@media (max-width: 480px) {
    .toc-container {
        padding: 12px;
    }

    .toc-title {
        font-size: 1rem;
    }

    .toc-item {
        margin-bottom: 10px;
    }

    .toc-link {
        padding: 5px 10px 5px 25px;
        font-size: 0.9rem;
    }

    .toc-link::before {
        width: 6px;
        height: 6px;
        left: 8px;
        top: 11px;
    }
}
/* ナビゲーションボタンのスタイル */
.navigation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    max-width: 1200px;
    width: 100%;
}

.nav-button {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--key-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(99, 84, 132, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s, opacity 0.5s;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(99, 84, 132, 0.4);
    background: linear-gradient(135deg, var(--sub-color), var(--key-color));
}

.nav-button:hover::before {
    opacity: 1;
    transform: scale(1);
}

.button-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.toc-icon {
    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='M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z'/%3E%3C/svg%3E");
}

.related-icon {
    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='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E");
}

.button-text {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .navigation-buttons {
        gap: 15px;
    }

    .nav-button {
        padding: 12px 15px;
    }

    .button-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }

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