/* =================================================
   ANIME共通：base_layout.htmlのパーツや全体枠
   ================================================= */
.anime-container {
    margin: 10px auto 30px;
}

.anime-page-title {
    margin: 20px 0 20px;
}

.anime-breadcrumb {
    margin-bottom: 10px;
}

/* 共通のアコーディオン（＋/－）制御 */
summary { list-style: none; outline: none; }
summary::-webkit-details-marker { display: none; }
summary:after { content: ' ＋'; float: right; color: #999; font-weight: normal; }
details[open] > summary:after { content: ' －'; }

/* =================================================
   INDEX / ARCHIVE ページ専用（一覧・過去ログ）
   ================================================= */
.anime-month-section {
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.anime-month-summary {
    background: #fcfcfc;
    padding: 18px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.15em;
    border-bottom: 1px solid #eee;
}

.anime-day-details {
    margin-bottom: 10px;
    border-left: 3px solid #ddd;
    padding-left: 12px;
}

.anime-day-summary {
    font-size: 0.95em;
    color: #555;
    cursor: pointer;
    padding: 8px 0;
    font-weight: bold;
}

.anime-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.anime-badge {
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-right: 10px;
    min-width: 40px;
    text-align: center;
}

.anime-badge-ready {
    background: #eee;
    color: #888;
    border: 1px solid #ccc;
}

.anime-link-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.anime-origin-name {
    font-size: 10px;
    color: #888;
    font-weight: bold;
}

.anime-entry-link {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
}

.rakuten-btn-all {
    font-size: 11px;
    color: #bf0000;
    border: 1px solid #bf0000;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    background: #fff;
    white-space: nowrap;
}

/* =================================================
   ARTICLE ページ専用（個別記事）
   ================================================= */
.anime-article-wrapper {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    /* ③記事の白枠の中だけうっすら色塗り */
    background-color: color-mix(in srgb, var(--accent-color, transparent), #fff 95%);
    border-radius: 10px;
    box-sizing: border-box; /* 枠線がはみ出さないように追加 */
}

.anime-breadcrumb {
    font-size: 0.85em;
    margin-bottom: 20px;
    color: #666;
}
.anime-breadcrumb a {
    color: #666;
    text-decoration: none;
}
.anime-breadcrumb span {
    color: #333;
}

.anime-article-wrapper .anime-article-header {
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.anime-article-header h1 {
    font-size: 1.8em;
    margin: 10px 0;
    line-height: 1.4;
}

.anime-article-wrapper .anime-period-badge {
    color: var(--accent-color, #2c3e50);
    font-weight: bold;
    margin: 0;
}

/* タイトル直下の色バー */
.anime-title-color-bar {
    width: 100%;
    height: 6px;
    background-color: var(--accent-color, #2c3e50);
    margin-top: 10px;
    margin-bottom: 35px;
    border-radius: 3px;
    opacity: 0.9;
}

/* 冒頭マイクロコピー：中央寄せ */
.anime-micro-link {
    margin: -20px 0 30px;
    font-size: 0.95em;
    text-align: center;
}
.anime-micro-link a {
    color: #666;
    text-decoration: underline;
    font-weight: bold;
}
.anime-micro-link a:hover {
    color: var(--accent-color, #e50000);
}

.anime-article-wrapper .entry-content {
    line-height: 1.9;
    font-size: 15px;
}

.entry-content p {
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: #444;
}

.anime-article-wrapper h3 {
    display: block;
    padding: 12px 15px;
    background: var(--accent-color, #f8f9fa);
    border-left: 8px solid var(--accent-color, #2c3e50);
    color: #fff;
    margin: 40px 0 20px;
    font-size: 1.4em;
    font-weight: 700;
    border-radius: 5px;
}

/* =================================================
   楽天リンク（修正完了版）
   ================================================= */
.rakuten-promotion-box {
    margin: 50px 0;
    padding: 30px;
    border: 2px dashed var(--accent-color, #bf0000);
    border-radius: 12px;
    background: #f9f9f9;
    box-sizing: border-box; /* スマホでの幅計算ミスを防止 */
}

.rakuten-inner-content {
    display: flex;
    flex-wrap: wrap; /* スマホで自動的に折り返すように変更 */
    align-items: center;
    gap: 25px;
    justify-content: center;
    width: 100%;
}

.rakuten-img-cap {
    flex-shrink: 0;
}

.rakuten-img-cap img {
    display: block;
    max-width: 130px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rakuten-text-content {
    flex: 1;
    min-width: 250px; /* スマホでこれ以下になったら折り返す */
    text-align: center; /* PC・スマホ共通で中央寄せ */
}

.rakuten-promotion-box p {
    font-weight: bold;
    color: var(--accent-color, #bf0000);
    margin-bottom: 15px;
    font-size: 1.15em;
    line-height: 1.4;
}

.rakuten-promotion-btn {
    display: inline-block;
    background: linear-gradient(to bottom, #e50000, #bf0000) !important;
    color: #fff !important;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 8px;
    border-bottom: 4px solid #8b0000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: 0.1s;
    position: relative;
    max-width: 100%; /* ボタンが枠を突き抜けないように */
    box-sizing: border-box;
}

.rakuten-promotion-btn:hover {
    transform: translateY(2px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #cf0000 !important;
}

/* スマホ表示対応 */
@media (max-width: 600px) {
    .rakuten-inner-content {
        flex-direction: column;
        text-align: center;
    }
    .rakuten-text-content {
        text-align: center;
        min-width: 100%; /* スマホでは幅を使い切る */
    }
    .rakuten-img-cap img {
        max-width: 150px;
        margin-bottom: 10px;
    }
}

/* =================================================
   公式リンク（CTA下の補助導線）
   ================================================= */
.official-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center; /* 中央寄せで“補助感”を出す */
    flex-wrap: wrap; /* スマホ対応 */
    opacity: 0.85; /* 主張を少し抑える */
}

.official-btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    color: #555;
    background: #f0f0f0;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: 0.15s;
    white-space: nowrap;
}

.official-btn:hover {
    background: #e0e0e0;
    color: #222;
}