/* 暗号カフェ V2 (Sister Site Style: memori-tech.tech) */

/* === AdSense 空スロット対策 ===
   広告が表示されなかった場合（unfilled / ローカル表示）に
   白紙スペースが生まれるのを防ぐ
   ================================================ */
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}
/* adsbygoogleが一切処理されていない場合（ローカル・オフライン）も折りたたむ */
ins.adsbygoogle:not([data-ad-status]) {
    min-height: 0 !important;
}
/* 広告コンテナのラッパーが空の場合も余白ゼロに */
ins.adsbygoogle:empty {
    display: none !important;
}

:root {
    /* Color Palette (Soft Blue & Clean) */
    --bg-color: #f0f6ff;          /* Ice blue - 暗号カフェ独自カラー */
    --card-bg: #ffffff;           /* Clean white */
    --text-primary: #4a3a33;      /* Soft dark brown for readability */
    --text-secondary: #7d6b63;    /* Muted brown for subtext */
    --accent-blue: #5599ff;       /* Sister site main soft blue */
    --accent-blue-hover: #3d84f0; /* Slightly darker for hover states */
    --accent-gold: #d4a373;       /* Muted gold for highlights */
    
    /* Layout Variables */
    --container-width: 1280px;
    --border-radius-card: 16px;
    --border-radius-btn: 30px;
    
    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 40px rgba(85, 153, 255, 0.15); /* Soft blue shadow */
    
    /* Typography */
    --font-main: 'Noto Sans JP', 'Inter', sans-serif;
    --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent-blue-hover);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header / Navigation === */
header {
    background: rgba(240, 246, 255, 0.95);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    border-bottom: 2px solid var(--accent-blue);
    box-shadow: var(--shadow-sm);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 88px;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo {
    height: 76px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* === Hamburger Menu === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
    border: none;
    background: transparent;
    z-index: 10000;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: var(--border-radius-btn);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white !important;
    box-shadow: 0 6px 15px rgba(85, 153, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(85, 153, 255, 0.4);
}

/* === Layout Blocks === */
.section-padding {
    padding: 100px 0 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 60px;
    /* padding-top: 140px; 削除：ヘッダーの余白はAdSense枠（margin-top）で確保されるため不要 */
}

.page-title h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    color: var(--accent-blue);
}

.page-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === Cards & Lists === */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius-card);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    display: block;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.card-tag {
    display: inline-block;
    background: var(--bg-color);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid var(--accent-blue);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Article Layout === */
.article-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* パンくずナビをarticle-contentと同じ幅に揃える */
.container > nav[aria-label="パンくずリスト"] {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.article-meta {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.article-content {
    background: transparent;
    padding: 10px 0 24px;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* article後の全要素（スタンプ・関連記事・ナビ）をarticle-contentに揃える */
.container > .article-content ~ div {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 48px 0 24px;
    padding-left: 16px;
    border-left: 6px solid var(--accent-blue);
}

.article-content h2:first-child {
    margin-top: 10px;
}


.article-content h3 {
    font-size: 1.3rem;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 24px;
}

.article-content ul, .article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content a {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #3b7ce0;
    text-decoration: none;
}

/* === Mofuneko Companion Component === */
.mofuneko-bubble {
    background: #ffffff;
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    padding: 24px 60px;
    margin: 48px auto 8px;
    max-width: 1040px;
    position: relative;
    display: flex;
    gap: 24px;
    align-items: center; /* Center vertically like reference */
}

.mofuneko-bubble::before {
    content: var(--bubble-label, "🐾 もふねこ");
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--accent-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 20px 20px 20px 0; /* Tab style like reference */
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 1; /* Ensure tab is above border */
}

.mofuneko-avatar {
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
    max-width: 88px;
    max-height: 88px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--accent-blue);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image stays inside circle */
    box-shadow: 0 4px 8px rgba(85, 153, 255, 0.2); /* Soft shadow like reference */
}

/* Use emoji as fallback if no image */
.mofuneko-avatar::after {
    content: '🐈‍⬛';
    position: absolute;
    z-index: 1;
}

.mofuneko-avatar img {
    width: 88px;
    height: 88px;
    max-width: 88px;
    max-height: 88px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    display: block;
}

.mofuneko-text {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
}

.mofuneko-text p:last-child {
    margin-bottom: 0;
}

/* === Footer === */
footer {
    background: rgba(240, 246, 255, 0.95);
    padding: 60px 0 30px;
    border-top: 2px solid var(--accent-blue);
    margin-top: 80px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.copyright {
    color: #999;
    font-size: 0.85rem;
}

/* === AdSense Container Safeties === */
.ad-container {
    margin: 40px 0;
    text-align: center;
    min-height: 100px;
    background: #fafafa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.8rem;
    border: 1px dashed #ddd; /* Development only, removes invisible clicking */
}
.ad-container::before {
    content: 'Advertisement';
}

/* === Utilities === */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

/* === Speech Balloon Chat Component === */
.speech-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 40px 0;
    width: 100%;
}

.speech-wrap.sbp-r {
    flex-direction: row-reverse;
}

.speech-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    max-width: 80px;
    flex-shrink: 0;
}

.speech-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #ffffff; /* White background for clean avatar display */
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speech-icon-image {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    display: block;
}

.speech-name {
    font-size: 0.8rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
}

.speech-balloon {
    position: relative;
    background: #ffffff;
    border: 2px solid #c9dff8;
    border-radius: 8px;
    padding: 16px 24px;
    max-width: calc(100% - 100px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-top: 10px;
    color: var(--text-primary);
}

.speech-balloon p {
    margin: 0 !important;
    line-height: 1.6;
}

/* Left pointing tail (Mofuneko) */
.speech-wrap.sbp-l .speech-balloon::before,
.speech-wrap.sbp-l .speech-balloon::after {
    content: "";
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.speech-wrap.sbp-l .speech-balloon::before {
    left: -12px;
    border-width: 8px 12px 8px 0;
    border-color: transparent #c9dff8 transparent transparent;
}

.speech-wrap.sbp-l .speech-balloon::after {
    left: -9px;
    border-width: 7px 10px 7px 0;
    border-color: transparent #ffffff transparent transparent;
}

/* Right pointing tail (Reader) */
.speech-wrap.sbp-r .speech-balloon::before,
.speech-wrap.sbp-r .speech-balloon::after {
    content: "";
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.speech-wrap.sbp-r .speech-balloon::before {
    right: -12px;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #c9dff8;
}

.speech-wrap.sbp-r .speech-balloon::after {
    right: -9px;
    border-width: 7px 0 7px 10px;
    border-color: transparent transparent transparent #ffffff;
}

/* === Crypto Playground === */
.playground-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.crypto-result-wrap {
    background: #eee;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

#encryptedText {
    margin: 0;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
    word-break: break-all;
    text-align: center;
    user-select: all;
    padding-right: 80px; /* Space for absolute button on desktop */
}

#copyBtn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    white-space: nowrap;
}

@media (max-width: 768px) {
    header nav {
        height: 60px;
        padding: 0;
        flex-direction: row;
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .header-logo {
        height: 48px;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-color);
        flex-direction: column;
        gap: 0;
        padding: 100px 0 40px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.12);
        z-index: 9998;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    /* 背景オーバーレイ */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.35);
        z-index: 9997;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.open {
        display: block;
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 1.05rem;
        font-weight: 600;
        padding: 18px 32px;
        border-bottom: 1px solid #f0ebe4;
        color: var(--text-primary);
        text-align: left;
        transition: background 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(85, 153, 255, 0.06);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    /* ヘッダーの重なり防止 */
    section:first-of-type {
        padding-top: 100px !important;
    }
    
    .section-padding {
        padding: 40px 0;
    }

    /* index.html intro section */
    .intro-section {
        padding: 24px 16px !important;
        margin-top: 30px !important;
    }

    /* crypto-playground */
    #crypto-playground {
        padding: 24px 16px !important;
        margin-top: 30px !important;
    }

    .page-title {
        margin-bottom: 40px;
    }

    .article-content {
        padding: 25px 0;
    }
    
    /* mofuneko-bubble: モバイルでは横並びを維持してアイコンが大きくならないように */
    .mofuneko-bubble {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 40px 16px 20px;
        gap: 12px;
    }
    
    .mofuneko-avatar {
        margin-bottom: 0;
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
        max-width: 70px;
        max-height: 70px;
        flex-shrink: 0;
    }

    .mofuneko-avatar img {
        width: 70px;
        height: 70px;
        max-width: 70px;
        max-height: 70px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 12px 20px;
        justify-content: center;
    }

    .footer-links li {
        white-space: nowrap;
    }

    /* Crypto Playground Mobile */
    .crypto-result-wrap {
        flex-direction: column;
        padding-bottom: 20px;
        min-height: auto;
    }

    #encryptedText {
        padding-right: 0;
        margin-bottom: 10px;
    }

    #copyBtn {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }
    
    .playground-box {
        padding: 20px 15px;
    }

    .playground-form-row {
        flex-direction: column;
        gap: 10px;
    }

    .playground-form-row input {
        width: 100%;
    }

    .playground-form-row button {
        width: 100%;
    }

    /* パンくずリストのmargin-top調整 */
    nav[aria-label="パンくずリスト"] {
        margin-top: 20px !important;
    }

    /* === グローバルはみ出し防止 === */
    /* テーブルの横スクロール対応 */
    .article-content table,
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* 画像のはみ出し防止 */
    img {
        max-width: 100%;
        height: auto;
    }

    /* グリッドカード：全スタック */
    .grid-cards {
        grid-template-columns: 1fr !important;
    }

    /* article-content内の要素を制限 */
    .article-content {
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* speech-balloon幅制限 */
    .speech-balloon {
        max-width: calc(100% - 100px);
    }
}

/* === Playground Global Styles === */
.playground-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1.1rem;
    box-sizing: border-box;
    font-family: inherit;
}

.playground-range {
    width: 100%;
    cursor: pointer;
}

.btn-playground {
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: transform 0.2s;
}

.btn-accent {
    background-color: #d4a373;
    color: white;
}

.btn-secondary-outline {
    background-color: #fcfaf7;
    color: #555;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.2s;
}

.playground-form-row {
    display: flex;
    gap: 10px;
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.8rem;
    }

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

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* === Global Mobile-Safe Inputs === */
/* フォーム要素が画面からはみ出さないよう全体に適用 */
input, textarea, select {
    max-width: 100%;
}

/* === Anchor Scroll Offset (固定ヘッダー対策) === */
/* デスクトップ: ヘッダー高さ 120px + 余白 */
[id] {
    scroll-margin-top: 140px;
}

/* モバイル: ヘッダーが縦積みになるため大きめに */
@media (max-width: 768px) {
    [id] {
        scroll-margin-top: 180px;
    }
}

/* === Article Navigation === */
.article-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.article-navigation .btn {
    flex-shrink: 0;
}

/* === Contact Form === */
.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    box-sizing: border-box;
}

/* === Sister Site Banner === */
/* 2カラム姉妹サイトバナー（新デザイン） */
.sister-site-banner {
    word-break: break-word;
    max-width: 100% !important;
    margin: 60px auto 40px auto;
}

/* バナー内の画像（左カラム）- 高さを適切に制限 */
.cta-banner-img-col img {
    max-height: 220px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 旧バナー直下img（後方互換） */
.sister-site-banner > img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}

/* === Dict List Mobile === */
@media (max-width: 600px) {
    .dict-list {
        grid-template-columns: 1fr;
    }
}

/* === Speech Balloon Mobile Fix === */
@media (max-width: 600px) {
    .speech-wrap {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .speech-wrap.sbp-r {
        flex-direction: row-reverse;
        align-items: flex-start;
    }

    .speech-balloon {
        max-width: calc(100% - 76px);
        flex: 1;
    }

    .speech-person {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        flex-shrink: 0;
    }

    .speech-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        max-width: 60px;
        max-height: 60px;
    }

    .speech-icon-image {
        width: 60px;
        height: 60px;
        max-width: 60px;
        max-height: 60px;
    }
}

/* ======================================== */

/* === Sister Site Banner (Unified White Box) === */
.sister-site-banner {
    margin: 40px auto 32px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 650px;
    word-break: break-word;
}
.cta-banner-container { 
    display: flex; 
    align-items: center; 
    gap: 24px; 
}
.cta-banner-img-col { 
    flex: 0 0 30%; 
    text-align: center; 
}
.cta-banner-img-col img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.cta-banner-text-col { 
    flex: 0 0 calc(70% - 24px); 
    text-align: left; 
}
.cta-badge {
    display: inline-block; 
    background-color: #5599ff; 
    color: white; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: bold; 
    letter-spacing: 1px;
}
.sister-site-banner h3 {
    color: #1e3a8a; 
    margin-top: 0; 
    margin-bottom: 10px; 
    font-size: 1.25rem;
}
.sister-site-banner p {
    color: #334e6b; 
    margin-bottom: 20px; 
    font-weight: 500; 
    line-height: 1.6; 
    font-size: 0.9rem;
}
.btn-cta {
    background-color: #000; 
    color: #fff; 
    border: none; 
    font-weight: bold; 
    padding: 10px 20px; 
    font-size: 0.95rem; 
    text-decoration: none; 
    border-radius: 50px; 
    display: inline-block; 
    transition: all 0.3s; 
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.btn-cta:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .cta-banner-container { 
        flex-direction: column; 
        gap: 24px; 
    }
    .cta-banner-img-col { 
        width: 70%; 
        margin: 0 auto; 
    }
    .cta-banner-text-col { 
        width: 100%; 
    }
    .sister-site-banner {
        padding: 24px 20px;
    }
}

/* === Sengoku Unified CTA === */
.sengoku-cta-container {
    background: linear-gradient(135deg, #110000, #3d0a0a);
    border: 2px solid #8b1a1a;
    border-radius: 12px;
    padding: 36px 24px;
    margin: 48px auto;
    text-align: center;
    box-shadow: 0 8px 24px rgba(139,26,26,0.15);
    max-width: 900px; /* Align with article-content */
}
.sengoku-cta-icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.sengoku-cta-title {
    color: #f0d080;
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 16px;
    font-size: 1.4rem;
}
.sengoku-cta-text {
    color: #f5e6c8;
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.7;
}
.sengoku-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}
.sengoku-cta-btn-main {
    display: inline-block;
    background: linear-gradient(135deg, #f0d080, #c8a96e);
    color: #3d1a00;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(240,208,128,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sengoku-cta-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240,208,128,0.5);
    color: #3d1a00;
}
.sengoku-cta-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}
.sengoku-cta-links a {
    color: #f0d080;
    text-decoration: underline;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.sengoku-cta-links a:hover {
    color: #fff;
    text-decoration: none;
}
.sengoku-cta-links span {
    color: #8b1a1a;
}

/* 戦国武将シリーズ関連記事グリッド (.related-sengoku) */
.related-sengoku {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 32px 0;
}
.sengoku-card-link {
    background: linear-gradient(135deg, #fef9f0, #f5e6c8);
    border: 1px solid #c8a96e;
    border-radius: 10px;
    padding: 18px;
    text-decoration: none;
    color: #3d1a00;
    transition: all 0.2s;
    display: block;
}
.sengoku-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(139,69,19,0.2);
    border-color: #8b4513;
}
.sengoku-card-link .general-name {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 6px;
    font-family: 'Noto Serif JP', serif;
}
.sengoku-card-link .general-desc {
    font-size: 0.82rem;
    color: #7a5c3a;
    line-height: 1.5;
}
