/* =========================================================
共通カード詳細
========================================================= */

.top-news,
.sub-news{
    padding:20px;
    transition:transform .15s ease, box-shadow .15s ease;
}

.top-news{
    margin-top:6px;
    margin-bottom:28px;
}

.sub-news{
    margin-bottom:14px;
}

.sidebar-section{
    padding:14px;
    margin-bottom:14px;
}

.top-news:hover,
.sub-news:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 18px rgba(0,0,0,0.12);
}

/* =========================================================
広告
========================================================= */

.ad-area{
    max-width:var(--main-max);
    margin:24px 0 6px;
    text-align:center;
}

.ad-area ins.adsbygoogle{
    display:block;
    width:100%;
    max-width:100%;
    margin:0;
}

.sidebar ins.adsbygoogle{
    display:block;
    max-width:300px;
    margin:0 auto 16px;
}

/* =========================================================
記事本文
========================================================= */

.top-news,
.sub-news,
.sidebar,
.sidebar-section,
.cookie-text{
    overflow-wrap:anywhere;
    word-break:break-word;
}

.top-news img{
    width:100%;
    max-width:720px;
    margin:20px auto;
    border-radius:10px;
    box-shadow:0 4px 14px rgba(0,0,0,0.12);
}

.top-news h1{
    margin:0 0 16px;
    color:#111827;
    font-size:34px;
    font-weight:700;
    line-height:1.4;
    letter-spacing:.01em;
}

.top-news h2{
    margin:30px 0 14px;
    padding:0 0 6px 10px;
    font-size:22px;
    font-weight:700;
    line-height:1.5;
    border-left:4px solid var(--link);
    border-bottom:2px solid #e5e7eb;
    background:linear-gradient(to right, rgba(15,76,129,0.05), rgba(15,76,129,0));
}

.top-news h3{
    margin:24px 0 10px;
    font-size:18px;
    font-weight:700;
    line-height:1.5;
}

.top-news p{
    margin:0 0 18px;
    color:var(--text);
    font-size:16px;
    line-height:2;
    letter-spacing:.02em;
    text-align:justify;
}

.top-news h1 + p{
    margin-bottom:22px;
    color:var(--text-soft);
    font-size:13px;
    line-height:1.6;
}

.top-news ul,
.top-news ol{
    margin:0 0 18px 22px;
    padding:0;
}

.top-news li{
    margin-bottom:8px;
    font-size:16px;
    line-height:1.8;
}

.top-news blockquote{
    margin:20px 0;
    padding:14px 16px;
    border-left:4px solid var(--link);
    background:#f8fafc;
}

.top-news table{
    width:100%;
    margin:20px 0;
}

.top-news th,
.top-news td{
    border:1px solid #d9e1e8;
    padding:10px 12px;
    font-size:14px;
}

.top-news th{
    background:#f3f6f9;
    font-weight:700;
}

/* =========================================================
サブニュース
========================================================= */

.sub-news .news-item{
    display:flex;
    gap:10px;
    margin-bottom:10px;
    max-width:100%;
}

.sub-news .news-item > *{
    min-width:0;
}

.sub-news .news-item img{
    width:120px;
    max-width:120px;
    border-radius:8px;
    object-fit:cover;
}

.sub-news .news-item a{
    font-weight:700;
}

/* sub-news内のバナー画像横並び */

.sub-news p{
    margin:0;
}

.sub-news p a{
    display:inline-block;
    margin-right:8px;
    vertical-align:middle;
}

.sub-news p a:last-child{
    margin-right:0;
}

.sub-news p a img{
    display:block;
}

/* =========================================================
タイムライン
========================================================= */

.timeline{
    max-width:40%;
    min-width:0;
    padding:10px;
    border:1px solid #0b2545;
}

/* =========================================================
サイドバー
========================================================= */

.sidebar-section h2,
.sidebar-section h3{
    margin:0 0 12px;
    padding-bottom:8px;
    color:#0f3557;
    font-size:16px;
    line-height:1.5;
    border-bottom:2px solid #e8eef5;
}

.sidebar-section h3{
    padding-bottom:6px;
    font-size:15px;
    font-weight:700;
    letter-spacing:.02em;
    border-bottom-color:#e9eef4;
}

.sidebar-section img{
    margin:12px auto;
}

.sidebar #datetime,
.sidebar #date,
.sidebar #time{
    white-space:normal;
    word-break:break-word;
    overflow-wrap:anywhere;
    line-height:1.6;
}

.sidebar-section iframe{
    width:100%;
    margin:8px auto 0;
    border-radius:8px;
}

/* =========================================================
共有ボタン
========================================================= */

.share-bar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    width:100%;
    max-width:100%;
    margin:20px 0;
}

.share-bar-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-width:140px;
    min-height:44px;
    max-width:100%;
    padding:12px 16px;
    border-radius:8px;
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
    line-height:1;
    letter-spacing:.02em;
    box-shadow:0 2px 8px rgba(0,0,0,0.12);
    transition:transform .2s, opacity .2s, box-shadow .2s;
}

.share-bar-btn:hover{
    transform:translateY(-2px);
    opacity:.92;
    box-shadow:0 6px 18px rgba(0,0,0,0.22);
}

.share-bar-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    border-radius:50%;
    background:rgba(255,255,255,0.22);
    font-size:12px;
    font-weight:700;
    flex-shrink:0;
}

.share-bar-btn.x{ background:#111; }
.share-bar-btn.threads{ background:#222; }
.share-bar-btn.line{ background:#06c755; }
.share-bar-btn.facebook{ background:#1877f2; }

.share-bar-btn.line .share-bar-icon{ font-size:9px; }

.share-bar-btn.facebook .share-bar-icon{
    font-size:16px;
    font-family:Arial, sans-serif;
}

.share-bar-title{
    margin:18px 0 8px;
    color:#444;
    font-size:13px;
    font-weight:700;
}

.share-bar a,
.share-bar-btn,
.share-bar-btn:link,
.share-bar-btn:visited,
.share-bar-btn:hover,
.share-bar-btn:active,
.share-bar-btn:focus,
.share-bar-btn span{
    color:#fff;
    text-decoration:none !important;
}

/* =========================================================
YouTube
========================================================= */

#youtube .yt-player{
    position:relative;
    width:100%;
    max-width:100%;
    height:0;
    margin-top:8px;
    padding-bottom:56.25%;
}

#youtube .yt-player iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border-radius:8px;
}

#youtube .yt-meta{
    margin-top:8px;
    min-width:0;
    max-width:100%;
}

#youtube .yt-title{
    font-weight:700;
    line-height:1.4;
}

#youtube .yt-title a{
    color:inherit;
    text-decoration:none;
}

#youtube .yt-title a:hover{
    text-decoration:underline;
}

#youtube .yt-date{
    margin-top:2px;
    font-size:.9em;
    opacity:.85;
}

#youtube .yt-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:10px;
    width:100%;
    max-width:100%;
    margin-top:12px;
}

#youtube .yt-card{
    display:block;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    border-radius:10px;
    background:#fff;
    color:inherit;
    text-decoration:none;
    box-shadow:0 1px 6px rgba(0,0,0,0.12);
    transition:transform .08s ease;
}

#youtube .yt-card:hover{
    transform:translateY(-1px);
}

#youtube .yt-thumb{
    position:relative;
    width:100%;
    aspect-ratio:16 / 9;
    overflow:hidden;
    background:#eee;
}

#youtube .yt-thumb img,
#youtube .yt-card img{
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    object-fit:cover !important;
    object-position:center !important;
}

#youtube .yt-card-body{
    padding:8px 10px;
    min-width:0;
}

#youtube .yt-card-title{
    display:-webkit-box;
    min-height:2.7em;
    overflow:hidden;
    font-size:.95em;
    font-weight:700;
    line-height:1.35;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

#youtube .yt-card-date{
    margin-top:4px;
    font-size:.85em;
    opacity:.85;
}

/* =========================================================
SNSリンクカード
========================================================= */

.sidebar-sns-links .sidebar-sns-card-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:4px;
}

.sidebar-sns-links .sidebar-sns-card{
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    background:#fff;
    color:#1f2937;
    text-decoration:none;
    box-shadow:0 1px 4px rgba(0,0,0,0.04);
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sidebar-sns-links .sidebar-sns-card:hover{
    text-decoration:none;
    border-color:#d1d5db;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    transform:translateY(-1px);
}

.sidebar-sns-links .sidebar-sns-card:focus{
    outline:none;
    border-color:#94a3b8;
    box-shadow:0 0 0 3px rgba(148,163,184,0.18);
}

.sidebar-sns-links .sidebar-sns-icon{
    flex:0 0 40px;
    width:40px;
    height:40px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:700;
    line-height:1;
    color:#fff;
}

.sidebar-sns-links .sidebar-sns-text{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    line-height:1.4;
}

.sidebar-sns-links .sidebar-sns-text strong{
    display:block;
    color:#111827;
    font-size:14px;
    font-weight:700;
    line-height:1.4;
}

.sidebar-sns-links .sidebar-sns-text span{
    display:block;
    margin-top:2px;
    color:#6b7280;
    font-size:11px;
    line-height:1.45;
}

.sidebar-sns-links .sidebar-sns-arrow{
    flex:0 0 auto;
    font-size:18px;
    line-height:1;
    color:#9ca3af;
}

.sidebar-sns-links .sidebar-sns-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:3px;
    border-radius:10px 10px 0 0;
    background:#e5e7eb;
}

.sidebar-sns-links .sidebar-sns-line .sidebar-sns-icon,
.sidebar-sns-links .sidebar-sns-line::before{ background:#06C755; }

.sidebar-sns-links .sidebar-sns-x .sidebar-sns-icon,
.sidebar-sns-links .sidebar-sns-x::before{ background:#111111; }

.sidebar-sns-links .sidebar-sns-mastodon .sidebar-sns-icon,
.sidebar-sns-links .sidebar-sns-mastodon::before{ background:#6364ff; }

.sidebar-sns-links .sidebar-sns-facebook .sidebar-sns-icon,
.sidebar-sns-links .sidebar-sns-facebook::before{ background:#1877f2; }

/* =========================================================
セキュリティシール
========================================================= */

.sidebar-security{
    padding-top:14px;
}

.sidebar-security > a img{
    margin:10px auto 12px;
    max-width:120px;
}

.sidebar-security > div{
    text-align:center !important;
}

.sidebar-security > div > div{
    display:inline-block !important;
    vertical-align:top;
    margin:6px 8px !important;
}

.sidebar-security > div > div[style*="margin-left"]{
    margin-left:8px !important;
}

.sidebar-security img{
    margin:auto;
    margin-top:4px;
    max-width:115px;
}

/* =========================================================
Cookie同意バー
========================================================= */

body.cookie-consent-visible{
    padding-bottom:var(--cookie-bar-height);
}

#cookie-consent-bar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9999;
    color:#fff;
    background:rgba(11,37,69,0.97);
    border-top:1px solid rgba(255,255,255,0.08);
    box-shadow:0 -4px 18px rgba(0,0,0,0.22);
    backdrop-filter:blur(4px);
    animation:cookieFadeIn .4s ease;
}

.cookie-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    max-width:1240px;
    margin:auto;
    padding:14px 18px;
}

.cookie-text{
    margin:0;
    color:#f8fafc;
    font-size:14px;
    line-height:1.65;
}

.cookie-text a{
    margin-left:6px;
    color:#bfdbfe;
    text-decoration:underline;
}

.cookie-buttons{
    display:flex;
    gap:8px;
    flex-shrink:0;
}

#cookie-consent-ok,
#cookie-consent-close{
    border:none;
    border-radius:6px;
    padding:8px 14px;
    font-size:13px;
    cursor:pointer;
    transition:all .2s ease;
}

#cookie-consent-ok{
    background:#1d4ed8;
    color:#fff;
}

#cookie-consent-ok:hover{
    background:#1e40af;
}

#cookie-consent-close{
    background:rgba(255,255,255,0.18);
    color:#fff;
}

#cookie-consent-close:hover{
    background:rgba(255,255,255,0.28);
}

@keyframes cookieFadeIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================================================
リスト
========================================================= */

.news-list,
.sidebar-section ul,
.media-links{
    list-style:disc;
    padding-left:18px;
    margin:8px 0;
}

.news-list{
    margin:10px 0;
}

.news-list li,
.sidebar-section li,
.media-links li{
    line-height:1.6;
}

.news-list li{ margin-bottom:14px; }
.sidebar-section li{ margin-bottom:10px; }
.media-links li{ margin-bottom:12px; }

.news-list li::marker{
    font-size:1.25em;
    color:#444;
}

.sidebar-section li::marker{
    font-size:1.1em;
    color:#444;
}

.media-links li::marker{
    font-size:1.2em;
    color:#444;
}

.news-list a,
.sidebar-section li a{
    color:#222;
    text-decoration:none;
    font-weight:600;
}

.media-links a{
    color:var(--link);
    text-decoration:none;
}

.news-list a:hover,
.sidebar-section li a:hover,
.media-links a:hover{
    text-decoration:underline;
}

.sidebar-section li a:hover{
    color:var(--link);
}

.news-list li br{
    line-height:1.4;
}

/* =========================================================
レスポンシブ
========================================================= */

@media (max-width:860px){
    #youtube .yt-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:768px){
    .ad-area{
        max-width:100%;
        margin:18px auto 4px;
    }

    .top-news,
    .sub-news{
        max-width:100%;
    }

    .top-news{
        margin-bottom:22px;
    }

    .sub-news{
        margin-bottom:10px;
    }

    .top-news h1{
        font-size:26px;
        line-height:1.45;
        margin-bottom:14px;
    }

    .top-news h2{
        margin:24px 0 12px;
        padding-bottom:5px;
        font-size:20px;
        line-height:1.5;
    }

    .top-news h3{
        margin:20px 0 10px;
    }

    .top-news p{
        line-height:1.85;
    }

    .sidebar{
        padding:14px;
    }

    .sidebar ins.adsbygoogle{
        max-width:100%;
        margin:0 auto 12px;
    }

    .sidebar-section{
        padding:14px;
        margin-bottom:14px;
    }

    .sidebar-section iframe{
        margin-top:6px;
    }

    .sidebar-security img{
        max-width:95px;
    }

    .sidebar-sns-links .sidebar-sns-card{
        padding:11px 10px;
        gap:9px;
        border-radius:9px;
    }

    .sidebar-sns-links .sidebar-sns-icon{
        width:38px;
        height:38px;
        font-size:13px;
    }

    .sidebar-sns-links .sidebar-sns-text strong{
        font-size:13px;
    }

    .sidebar-sns-links .sidebar-sns-text span{
        font-size:10px;
    }

    .sidebar-sns-links .sidebar-sns-arrow{
        font-size:17px;
    }
}

@media (max-width:700px){
    .share-bar{
        gap:8px;
    }

    .share-bar-btn{
        flex:1 1 calc(50% - 8px);
        min-width:0;
        min-height:44px;
        padding:11px 12px;
        font-size:13px;
    }

    .share-bar-text{
        white-space:normal;
        text-align:center;
        line-height:1.35;
    }
}

@media (max-width:640px){
    .timeline{
        max-width:100%;
    }

    .top-news,
    .sub-news,
    .sidebar-section{
        border-radius:10px;
    }

    .top-news h1{
        font-size:22px;
    }

    .top-news p,
    .top-news li{
        font-size:15px;
        line-height:1.95;
    }

    .news-list li{
        font-size:14px;
    }

    :root{
        --cookie-bar-height:130px;
    }

    .cookie-inner{
        flex-direction:column;
        align-items:stretch;
        gap:12px;
        padding:12px;
    }

    .cookie-text{
        font-size:13px;
    }

    .cookie-buttons{
        width:100%;
    }

    #cookie-consent-ok,
    #cookie-consent-close{
        flex:1;
        min-height:40px;
    }

    .share-bar-btn{
        min-height:48px;
        padding:14px;
        font-size:14px;
    }

    .share-bar-icon{
        width:26px;
        height:26px;
        font-size:13px;
    }

    .sub-news .news-item img{
        width:88px;
        max-width:88px;
    }
}

@media (max-width:520px){
    #youtube .yt-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width:480px){
    .top-news,
    .sub-news,
    .sidebar{
        padding-left:12px;
        padding-right:12px;
    }

    .top-news img{
        margin:14px auto;
        border-radius:8px;
    }

    .sub-news .news-item{
        align-items:flex-start;
    }
}

@media (max-width:360px){
    .top-news h1{
        font-size:20px;
        line-height:1.4;
    }

    .top-news p,
    .top-news li{
        font-size:14px;
    }

    .share-bar-btn{
        padding:10px;
        font-size:12px;
    }
}