/*
Theme Name: Liquid Magazine Child
Template:   liquid-magazine
Description: liquid-magazine の子テーマ
Version:     1.0.0
*/

.custom-header .header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    max-height: 60px;
    width: auto;
}

.header-search {
    flex: 1;
    max-width: 400px;
}

.header-search form {
    display: flex;
    border: 2px solid #1a5490;
    border-radius: 4px;
    overflow: hidden;
}

.header-search input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
}

.header-search button {
    background: #1a5490;
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.header-actions a {
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    color: #fff !important;
}

.btn-subscribe {
    background: #f39c12;
}

.btn-login, .btn-account {
    background: #1a5490;
}

.btn-logout {
    background: #888;
}

/* モバイル */
@media (max-width: 768px) {
    .custom-header .header-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .header-actions {
        justify-content: center;
    }
}

/* === フルスクリーンログイン === */
body.fullscreen-login-page {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

.fullscreen-login-page .login-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.fullscreen-login-page .login-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    padding: 48px 40px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fullscreen-login-page .login-brand {
    text-align: center;
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
}

.fullscreen-login-page .login-brand img {
    max-height: 50px;
    width: auto;
}

.fullscreen-login-page .login-title {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #1a3a5c;
    margin: 0 0 32px;
}

.fullscreen-login-page .login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.fullscreen-login-page label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.fullscreen-login-page input[type="text"],
.fullscreen-login-page input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.fullscreen-login-page input:focus {
    outline: none;
    border-color: #1a5490;
}

.fullscreen-login-page input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #1a5490;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.fullscreen-login-page input[type="submit"]:hover {
    background: #144372;
}

.fullscreen-login-page .login-remember {
    display: flex;
    align-items: center;
    margin: 16px 0;
    font-size: 14px;
}

.fullscreen-login-page .login-remember input {
    width: auto;
    margin-right: 8px;
}

.fullscreen-login-page .login-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.fullscreen-login-page .login-links a {
    color: #1a5490;
    text-decoration: none;
}

.fullscreen-login-page .login-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 28px 0;
}

.fullscreen-login-page .login-signup {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.fullscreen-login-page .login-signup-link {
    display: inline-block;
    margin-top: 10px;
    color: #1a5490;
    font-weight: 600;
    text-decoration: none;
}

.fullscreen-login-page .login-footer {
    margin-top: 24px;
    font-size: 13px;
}

.fullscreen-login-page .login-footer a {
    color: #888;
    text-decoration: none;
}

.fullscreen-login-page .login-footer a:hover {
    color: #1a5490;
}

.fullscreen-login-page .login-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 24px;
}

.fullscreen-login-page .login-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 14px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
}

/* === マイページ（会員情報） === */
body.mypage-body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    color: #333;
}

.mypage-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.mypage-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mypage-brand {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    text-decoration: none;
}

.mypage-brand img {
    max-height: 36px;
    width: auto;
}

.mypage-header-actions {
    display: flex;
    gap: 10px;
}

.mypage-header-btn {
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    color: #fff !important;
    white-space: nowrap;
    font-size: 14px;
}

.mypage-btn-back {
    background: #1a5490;
}

.mypage-btn-back:hover {
    background: #144372;
}

.mypage-btn-logout {
    background: #888;
}

.mypage-btn-logout:hover {
    background: #666;
}

.mypage-link {
    color: #1a5490;
    text-decoration: none;
    font-size: 14px;
}

.mypage-link:hover {
    text-decoration: underline;
}

.mypage-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

.mypage-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.mypage-greeting {
    color: #666;
    font-size: 14px;
    margin: 0 0 32px;
}

.mypage-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
}

.mypage-sidebar {
    background: #fff;
    border-radius: 4px;
    padding: 16px;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mypage-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mypage-nav a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.15s;
}

.mypage-nav a:hover {
    background: #f0f4f9;
}

.mypage-nav a.active {
    background: #1a5490;
    color: #fff;
    font-weight: 600;
}

.mypage-main {
    min-width: 0;
}

.mypage-card {
    background: #fff;
    border-radius: 4px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mypage-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
    color: #1a3a5c;
}

.mypage-info {
    margin: 0;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 16px;
}

.mypage-info dt {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.mypage-info dd {
    margin: 0;
    color: #1a1a1a;
    font-size: 15px;
}

.mypage-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #1a5490;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.mypage-btn:hover {
    background: #144372;
}

.mypage-btn-secondary {
    background: #f3f4f6;
    color: #374151 !important;
    border: 1px solid #d1d5db;
    font-weight: 500;
}

.mypage-btn-secondary:hover {
    background: #e5e7eb;
    color: #111827 !important;
}

.mypage-btn-danger {
    background: #dc2626;
}

.mypage-btn-danger:hover {
    background: #b91c1c;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .mypage-layout {
        grid-template-columns: 1fr;
    }

    .mypage-header-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
    }

    .mypage-brand img {
        max-height: 44px;
    }

    .mypage-header-actions {
        justify-content: center;
    }

    .mypage-header-actions a {
        padding: 6px 14px;
        font-size: 12px;
    }

    .mypage-sidebar {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .mypage-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
    }

    .mypage-nav a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        padding: 10px 6px;
        font-size: 12px;
        border-radius: 0;
        border-right: 1px solid #e0e0e0;
    }

    .mypage-nav a:first-child {
        border-radius: 4px 0 0 4px;
    }

    .mypage-nav a:last-child {
        border-right: none;
        border-radius: 0 4px 4px 0;
    }

    .mypage-info {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mypage-info dt {
        margin-top: 12px;
    }

    .mypage-card {
        padding: 20px;
    }
}

.mypage-form-group {
    margin-bottom: 20px;
}

.mypage-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.mypage-form-group .required {
    color: #dc2626;
}

.mypage-form-group input[type="password"],
.mypage-form-group input[type="text"],
.mypage-form-group input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.mypage-form-group input:focus {
    outline: none;
    border-color: #1a5490;
}

.mypage-form-group small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #666;
}

.mypage-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.mypage-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.mypage-notice {
    background: #fefce8;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* === 更新確認モーダル === */
.renew-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.renew-modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 32px 36px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.renew-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.renew-modal-desc {
    font-size: 14px;
    color: #555;
    margin: 12px 0 16px;
}

.renew-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 24px;
}

.renew-modal-table th,
.renew-modal-table td {
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    text-align: left;
}

.renew-modal-table th {
    background: #f8f9fb;
    width: 130px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.renew-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .renew-modal-box {
        padding: 24px 20px;
    }
    .renew-modal-actions {
        flex-direction: column-reverse;
    }
    .renew-modal-actions .mypage-btn {
        text-align: center;
    }
}

/* === 契約更新ボックス === */
.mypage-renew-box {
    margin-top: 28px;
    padding: 20px 24px;
    background: #f0f7ff;
    border: 1px solid #b8d4f0;
    border-radius: 6px;
}

.renew-title {
    font-size: 15px;
    color: #0073aa;
    border-left: 3px solid #0073aa;
    padding-left: 8px;
    margin: 0 0 8px;
}

.renew-methods {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.renew-method-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* === 購読履歴 === */
.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.invoice-item {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px;
    background: #fafafa;
    transition: box-shadow 0.2s;
}

.invoice-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.invoice-date {
    font-size: 15px;
    color: #1a1a1a;
}

.invoice-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.invoice-status.success {
    background: #d1fae5;
    color: #065f46;
}

.invoice-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.invoice-status.cancelled,
.invoice-status.error {
    background: #fee2e2;
    color: #991b1b;
}

.invoice-status.refunded {
    background: #e0e7ff;
    color: #3730a3;
}

.invoice-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.invoice-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.invoice-label {
    color: #666;
}

.invoice-value {
    color: #1a1a1a;
    font-weight: 500;
}

.invoice-actions {
    display: flex;
    gap: 12px;
}

.invoice-link {
    color: #1a5490;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.invoice-link:hover {
    text-decoration: underline;
}

.no-invoices {
    text-align: center;
    color: #666;
    padding: 40px 0;
    font-size: 15px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .invoice-item {
        padding: 16px;
    }
    
    .invoice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .invoice-detail-row {
        flex-direction: column;
        gap: 2px;
    }
}

/* === カスタムヘッダー === */
.custom-header .header-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    flex-wrap: nowrap;
}

.header-logo {
    flex: 0 0 auto;
    max-width: 400px;
}

.header-logo img {
    height: 120px !important;
    width: auto !important;
}

.header-search {
    flex: 0 0 350px;
    max-width: 350px;
    margin-left: 0;
}

.header-search form {
    display: flex;
    border: 2px solid #1a5490;
    border-radius: 4px;
    overflow: hidden;
}

.header-search input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 14px;
}

.header-search button {
    background: #1a5490;
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.header-actions a {
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    color: #fff !important;
    white-space: nowrap;
    font-size: 14px;
}

.btn-subscribe {
    background: #f39c12;
}

.btn-login, .btn-account {
    background: #1a5490;
}

.btn-logout {
    background: #888;
}

/* モバイル */
@media (max-width: 767px) {
    .custom-header .header-flex {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        position: relative;
    }
    .header-hamburger {
        display: none !important;
    }
    .header-logo {
        text-align: center;
        max-width: 100%;
    }
    .header-logo img {
        height: 50px !important;
    }
    .header-search {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }
    .header-actions {
        justify-content: center;
    }
    .header-actions a {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ==========================================
   親テーマから引き継ぎ
   ========================================== */

/* === スライドショー === */
.cover .carousel-item {
    height: 400px;
}

.cover .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* === グローバルナビゲーション === */
.navbar {
    display: flex !important;
}

.navbar .navbar-collapse {
    display: flex !important;
}

.navbar .container {
    justify-content: center;
}

.navbar .navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.navbar .navbar-nav .nav-item a {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a1a1a;
    padding: 12px 32px;
    border-right: 1px solid #ccc;
    letter-spacing: 0.1em;
}

@media (max-width: 767px) {
    .navbar li {
        display: block !important;
    }
    .navbar .navbar-nav {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0;
        width: 100%;
    }
    .navbar .navbar-nav .nav-item {
        flex: 1;
        text-align: center;
    }
    .navbar .navbar-nav .nav-item a {
        font-size: 13px;
        padding: 10px 4px;
        border-right: 1px solid #ccc;
        border-bottom: none;
        white-space: nowrap;
        letter-spacing: 0;
        display: block;
    }
    .navbar .navbar-nav .nav-item:last-child a {
        border-right: none;
    }
}

/* === 記事詳細ページ === */
.single .col-md-8.mainarea {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.single .col-md-4.sidebar {
    display: none;
}

.single .mainarea > * {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single .wp-post-image {
    max-width: 750px !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto 30px auto;
}

/* 副見出し（タイトル直下に表示・h1と同サイズ） */
p.article-subtitle {
    font-size: xx-large;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    color: #333;
}

p.article-subtitle:last-of-type {
    margin-bottom: 1rem;
}

.single .ttl_h1 {
    margin-bottom: 0;
}

/* 本文中の中見出し［中］ */
.post_body h3.article-heading-mid {
    font-size: 19px;
    font-weight: bold;
    line-height: 1.6;
    margin: 32px 0 0;
    padding: 0;
    border: none;
}

.post_body h3.article-heading-mid + h3.article-heading-mid {
    margin-top: 0;
}

/* 本文中の小見出し［小］ */
.post_body h4.article-heading-small {
    font-size: 17px;
    font-weight: bold;
    line-height: 1.6;
    margin: 24px 0 0;
    padding: 0;
    border: none;
}

.post_body h4.article-heading-small + h4.article-heading-small {
    margin-top: 0;
}

/* 中見出しの直後の小見出しも詰める */
.post_body h3.article-heading-mid + h4.article-heading-small {
    margin-top: 0;
}

/* 区切り点線［点線］ */
hr.article-divider {
    border: none;
    border-top: 2px dashed #ccc;
    margin: 32px 0;
}

/* 本文中の画像 */
.post_body figure.wp-block-image {
    margin: 24px 0;
    text-align: center;
}

.post_body figure.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.post_body figure.wp-block-image figcaption {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

.single .recommend {
    max-width: 800px;
    margin: 0 auto;
}

/* === 関連記事 2列表示 === */
.recommend .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
}

.recommend .row article.list {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    border: none !important;
    background: none !important;
}

@media (min-width: 768px) {
    .recommend .row > .col-md-12 {
        width: 50%;
        max-width: 50%;
        flex: 0 0 50%;
        padding: 8px;
        box-sizing: border-box;
    }

    .recommend .list-block {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .recommend .post_thumb {
        flex: 0 0 90px;
        width: 90px;
        min-width: 90px;
        height: 65px;
        background-size: cover;
        background-position: center;
    }

    .recommend .list-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding-left: 8px;
    }

    .recommend .post_ttl {
        order: 1;
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .recommend .post_time {
        order: 2;
        font-size: 0.75rem;
        color: #888;
    }
}

/* === 共通変数：記事リスト === */
:root {
    --thumb-width: 180px;
    --thumb-height: 120px;
    --cell-padding: 20px 8px;
    --cell-border: 1px solid #ddd;
    --cell-gap: 16px;
    --title-size: 1.15rem;
    --title-line: 1.5;
}

/* === 新着記事 (#main) === */
#main {
    display: block;
}

#main .list,
#main .list_big {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0;
    padding: 0;
    border-bottom: var(--cell-border);
    box-sizing: border-box;
}

#main .list-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--cell-gap);
    padding: var(--cell-padding);
    background: none;
    border: none;
    box-shadow: none;
}

#main .post_thumb {
    flex: 0 0 var(--thumb-width);
    width: var(--thumb-width);
    height: var(--thumb-height);
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
}

#main .list-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

#main .list-title,
#main .post_ttl {
    font-size: var(--title-size);
    font-weight: bold;
    line-height: var(--title-line);
    margin: 0;
}

#main .post_time,
#main .post_cat {
    font-size: 0.9rem;
    color: #666;
}

/* === くらしウィジェット (#liquid_newpost-3) === */
#liquid_newpost-3 {
    flex: 0 0 100%;
    max-width: 100%;
}

#liquid_newpost-3 .newpost {
    list-style: none;
    padding: 0;
    margin: 0;
}

#liquid_newpost-3 .newpost li {
    border-bottom: var(--cell-border);
    box-sizing: border-box;
}

#liquid_newpost-3 .newpost li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--cell-gap);
    padding: var(--cell-padding);
    text-decoration: none;
}

#liquid_newpost-3 .newpost .post_thumb {
    flex: 0 0 var(--thumb-width);
    width: var(--thumb-width);
    height: var(--thumb-height);
    display: block;
    overflow: hidden;
    background-color: #f0f0f0;
}

#liquid_newpost-3 .newpost .post_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#liquid_newpost-3 .newpost .post_ttl {
    flex: 1;
    display: block;
    font-size: var(--title-size);
    font-weight: bold;
    line-height: var(--title-line);
    min-width: 0;
}

/* === 企画・情報ウィジェット (#liquid_newpost-4) === */
#liquid_newpost-4 {
    flex: 0 0 100%;
    max-width: 100%;
}

#liquid_newpost-4 .newpost {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

#liquid_newpost-4 .newpost li {
    border-bottom: var(--cell-border);
    box-sizing: border-box;
}

#liquid_newpost-4 .newpost li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--cell-gap);
    padding: var(--cell-padding);
    text-decoration: none;
}

#liquid_newpost-4 .newpost .post_thumb {
    flex: 0 0 var(--thumb-width);
    width: var(--thumb-width);
    height: var(--thumb-height);
    display: block;
    overflow: hidden;
    background-color: #f0f0f0;
}

#liquid_newpost-4 .newpost .post_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#liquid_newpost-4 .newpost .post_ttl {
    flex: 1;
    display: block;
    font-size: var(--title-size);
    font-weight: bold;
    line-height: var(--title-line);
    min-width: 0;
}

@media (max-width: 767px) {
    #liquid_newpost-4 .newpost {
        grid-template-columns: 1fr;
    }
}

/* === ニュース記事の制限表示 === */
.news-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 32px;
}

.news-paywall {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

.news-paywall h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 12px;
}

.news-paywall p {
    color: #555;
    font-size: 14px;
    margin: 0 0 24px;
}

.news-paywall-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.news-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.news-btn-primary {
    background: #f39c12;
    color: #fff !important;
}

.news-btn-primary:hover {
    background: #e08e0b;
}

.news-btn-secondary {
    background: #1a5490;
    color: #fff !important;
}

.news-btn-secondary:hover {
    background: #144372;
}

@media (max-width: 768px) {
    .news-paywall {
        padding: 24px 16px;
    }
    
    .news-paywall-actions {
        flex-direction: column;
    }
    
    .news-btn {
        width: 100%;
    }
}

/* === フルスクリーン プラン選択 === */
body.fullscreen-levels-page {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    color: #333;
}

.levels-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.levels-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.levels-brand {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    text-decoration: none;
}

.levels-brand img {
    max-height: 40px;
    width: auto;
}

.levels-header-actions {
    display: flex;
    gap: 10px;
}

.levels-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

.levels-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 12px;
}

.levels-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 0 0 48px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.level-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 36px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.level-card-current {
    border: 2px solid #1a5490;
}

.level-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #1a5490;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.level-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 16px;
}

.level-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 40px;
}

.level-description p {
    margin: 0 0 8px;
}

.level-price {
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.level-price .price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    display: inline-block;
}

.level-price .price-period {
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

.level-expiration {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.level-action {
    margin-top: auto;
    padding-top: 16px;
}

.level-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    box-sizing: border-box;
    transition: background 0.2s;
}

.level-btn-primary {
    background: #1a5490;
    color: #fff !important;
}

.level-btn-primary:hover {
    background: #144372;
}

.level-btn-outline {
    background: #fff;
    color: #1a5490 !important;
    border: 1px solid #1a5490;
}

.level-btn-outline:hover {
    background: #f0f4f9;
}

.levels-empty {
    text-align: center;
    color: #666;
    padding: 60px 0;
}

.levels-footer-note {
    text-align: center;
    margin-top: 48px;
    font-size: 14px;
    color: #666;
}

.levels-footer-note a {
    color: #1a5490;
    text-decoration: none;
    font-weight: 600;
}

.levels-footer-note a:hover {
    text-decoration: underline;
}

/* モバイル */
@media (max-width: 768px) {
    .levels-container {
        padding: 40px 16px;
    }
    
    .levels-title {
        font-size: 24px;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .level-card {
        padding: 28px 24px;
    }
}

/* === フルスクリーン購読申込 === */
body.fullscreen-checkout-page {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    color: #333;
}

.checkout-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.checkout-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-brand {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    text-decoration: none;
}

.checkout-brand img {
    max-height: 40px;
    width: auto;
}

.checkout-link {
    color: #1a5490;
    text-decoration: none;
    font-size: 14px;
}

.checkout-link:hover {
    text-decoration: underline;
}

/* ステップ */
.checkout-steps {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 24px 16px;
}

.checkout-steps-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #888;
    font-weight: 700;
    font-size: 14px;
}

.step-label {
    font-size: 13px;
    color: #888;
}

.step-active .step-num {
    background: #1a5490;
    color: #fff;
}

.step-active .step-label {
    color: #1a5490;
    font-weight: 600;
}

.step-done .step-num {
    background: #10b981;
    color: #fff;
}

.step-done .step-label {
    color: #10b981;
}

.step-line {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: #e5e5e5;
    margin: 0 12px 22px;
}

/* メイン */
.checkout-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px;
}

.checkout-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 8px;
}

.checkout-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0 0 36px;
}

/* カード */
.checkout-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.checkout-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a5c;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

/* プラン情報 */
.checkout-plan-info {
    text-align: center;
}

.checkout-plan-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 4px;
}

.checkout-plan-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.checkout-plan-price .price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.checkout-plan-price .price-period {
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

/* フォーム */
.checkout-form-row {
    margin-bottom: 18px;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.checkout-form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.checkout-form-row .required {
    color: #dc2626;
}

.checkout-form-row input[type="text"],
.checkout-form-row input[type="password"],
.checkout-form-row input[type="email"],
.checkout-form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.checkout-form-row input:focus,
.checkout-form-row select:focus {
    outline: none;
    border-color: #1a5490;
}

/* 既存アカウント案内 */
.checkout-already-account {
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    color: #555;
}

.checkout-already-account a {
    color: #1a5490;
    font-weight: 600;
    text-decoration: none;
}

.checkout-logged-in-as {
    margin: 0;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 4px;
    font-size: 14px;
    color: #166534;
}

.checkout-logged-in-as a {
    color: #1a5490;
    text-decoration: none;
}

/* 割引コード */
.checkout-discount-row {
    display: flex;
    gap: 8px;
}

.checkout-discount-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 15px;
}

.checkout-btn-secondary {
    padding: 10px 20px;
    background: #fff;
    color: #1a5490;
    border: 1px solid #1a5490;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.checkout-btn-secondary:hover {
    background: #f0f4f9;
}

/* メッセージ */
.checkout-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.checkout-message-pmpro_error,
.checkout-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.checkout-message-pmpro_success,
.checkout-message-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

/* 送信ボタン */
.checkout-submit {
    margin-top: 8px;
}

.checkout-btn-submit {
    width: 100%;
    padding: 16px;
    background: #f39c12;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.checkout-btn-submit:hover {
    background: #e08e0b;
}

#pmpro_processing_message {
    text-align: center;
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

/* PMProが出力する支払いフィールドのスタイル調整 */
.checkout-card .pmpro_form_field {
    margin-bottom: 18px;
}

.checkout-card .pmpro_form_label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.checkout-card .pmpro_form_input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.checkout-card .pmpro_cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-card .pmpro_form_fields-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* モバイル */
@media (max-width: 768px) {
    .checkout-container {
        padding: 24px 12px;
    }

    .checkout-card {
        padding: 24px 20px;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-card .pmpro_cols-2 {
        grid-template-columns: 1fr;
    }

    .step-label {
        font-size: 11px;
    }

    .step-line {
        max-width: 40px;
        margin: 0 8px 22px;
    }
}

/* ==========================================
   購読申込ページ（page-level.php）
   ========================================== */

/* ヒーロー */
.subscribe-hero {
    background: #1a3a5c;
    color: #fff;
    padding: 48px 24px;
    text-align: center;
}

.subscribe-hero-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.4;
}

.subscribe-hero-desc {
    font-size: 15px;
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 共通コンテナ */
.subscribe-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* プラン概要グリッド */
.subscribe-overview {
    background: #f5f5f5;
    padding: 56px 0;
}

.subscribe-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* プランカード */
.spc-card {
    background: #fff;
    border-radius: 8px;
    padding: 32px 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spc-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a5490;
}

.spc-target {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.spc-features-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spc-features {
    margin: 0;
    padding: 0 0 0 18px;
    font-size: 13px;
    color: #444;
    line-height: 1.8;
}

.spc-price {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.spc-price-label {
    font-size: 12px;
    color: #888;
}

.spc-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.spc-price-period {
    font-size: 13px;
    color: #666;
}

.spc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spc-btn-detail,
.spc-btn-apply {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.spc-btn-detail {
    background: #fff;
    color: #1a5490 !important;
    border: 1px solid #1a5490;
}

.spc-btn-detail:hover { background: #f0f4f9; }

.spc-btn-apply {
    background: #f39c12;
    color: #fff !important;
}

.spc-btn-apply:hover { background: #e08e0b; }

/* お問い合わせ案内帯 */
.subscribe-contact-note {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.subscribe-contact-note a {
    color: #1a5490;
    text-decoration: underline;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* プラン詳細セクション */
.plan-detail-section {
    padding: 60px 0;
    background: #fff;
    scroll-margin-top: 40px;
}

.plan-detail-alt {
    background: #f9f9f9;
}

.plan-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 8px;
    padding-bottom: 16px;
    border-bottom: 3px solid #1a5490;
    display: inline-block;
}

.plan-detail-lead {
    font-size: 15px;
    color: #555;
    margin: 12px 0 32px;
}

.plan-detail-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 28px;
}

.plan-detail-block {
    background: #f8f9fb;
    border-radius: 6px;
    padding: 24px;
}

.plan-detail-block h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a5490;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.plan-detail-block p,
.plan-detail-block li {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.plan-detail-block ul {
    margin: 0;
    padding-left: 18px;
}

.plan-detail-notes li {
    margin-bottom: 6px;
}

.plan-detail-asterisk {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.plan-detail-price-row {
    font-size: 16px;
    color: #333;
    margin: 24px 0;
    padding: 16px 20px;
    background: #f0f4f9;
    border-radius: 4px;
    border-left: 4px solid #1a5490;
}

.plan-detail-price-row strong {
    font-size: 20px;
    color: #1a1a1a;
}

/* PDF配信オプション */
.plan-pdf-option {
    background: #fffbf0;
    border: 1px solid #f0d080;
    border-radius: 6px;
    padding: 24px;
    margin: 24px 0;
}

.plan-pdf-option h3 {
    font-size: 15px;
    font-weight: 700;
    color: #7a5700;
    margin: 0 0 12px;
}

.plan-pdf-option p,
.plan-pdf-option li {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.plan-pdf-option ul {
    padding-left: 20px;
    margin: 8px 0 12px;
}

.plan-pdf-notes {
    margin-top: 12px;
    padding-left: 20px;
    list-style: disc;
}

.plan-pdf-notes li {
    font-size: 13px;
    color: #666;
}

.plan-pdf-request {
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    color: #444;
}

.plan-pdf-checkbox-wrap {
    margin-top: 14px;
    padding: 12px 16px;
    background: #f0f7ff;
    border: 1px solid #b3d4f5;
    border-radius: 6px;
}

.pdf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1a3f6e;
}

.pdf-option-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.plan-pdf-checkbox-note {
    margin: 6px 0 0 26px;
    font-size: 12px;
    color: #666;
}

/* 申込ボタン */
.plan-detail-cta {
    margin-top: 32px;
    text-align: center;
}

.plan-detail-apply-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #f39c12;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
}

.plan-detail-apply-btn:hover { background: #e08e0b; }

@media (max-width: 768px) {
    .subscribe-hero { padding: 36px 16px; }
    .subscribe-hero-title { font-size: 20px; }
    .subscribe-overview { padding: 36px 0; }
    .subscribe-plans-grid { grid-template-columns: 1fr; }
    .plan-detail-section { padding: 40px 0; }
    .plan-detail-body { grid-template-columns: 1fr; }
    .plan-detail-title { font-size: 22px; }
    .plan-detail-apply-btn { padding: 14px 24px; font-size: 15px; }
}

/* ==========================================
   購読申込フォーム（page-checkout.php）追加スタイル
   ========================================== */

/* ご契約案内 */
.checkout-terms-notice .checkout-terms-list {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: #444;
    line-height: 1.9;
}

/* お支払方法セレクター */
.payment-method-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.payment-method-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.payment-method-option:has(input:checked) {
    border-color: #1a5490;
    background: #f0f4f9;
}

.payment-method-option.payment-method-disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: #f5f5f5;
}

.payment-method-option input[type="radio"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.payment-method-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.payment-method-label small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-top: 2px;
}

/* 各支払セクション */
.payment-section {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
    margin-top: 4px;
}

.payment-section-notice {
    background: #f8fafc;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.payment-section-notice p { margin: 0 0 8px; }
.payment-section-notice p:last-child { margin: 0; }

/* 請求書区分 */
.invoice-type-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.invoice-type-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.invoice-type-option input { margin-top: 2px; }

/* テキストエリア */
.checkout-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.checkout-form-row textarea:focus {
    outline: none;
    border-color: #1a5490;
}

.checkout-form-row small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

/* 利用規約同意 */
.checkout-agreement-card {
    background: #f8fafc;
}

.checkout-agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.checkout-agreement-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkout-agreement-label a { color: #1a5490; }

.checkout-pdf-option-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.checkout-pdf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1a3f6e;
}

.checkout-pdf-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

/* === タグクラウド（ナビ下・横並びテキスト区切り形式） === */
.navbar > .container + .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.special_header {
    background: #f2f4f6;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.special_header .widget {
    width: 100%;
    text-align: center;
}

.special_header .wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 6px 0;
    margin: 0;
    background: transparent;
    border: none;
}

.special_header .wp-block-tag-cloud a {
    font-size: 16px !important;
    line-height: 1.4;
    padding: 6px 12px;
    background: none;
    color: #333 !important;
    border: none;
    border-radius: 0;
    text-decoration: none;
    white-space: nowrap;
}

.special_header .wp-block-tag-cloud a:hover {
    color: #1a5490 !important;
    text-decoration: underline;
}

/* === 記事本文フォントサイズ === */
.single .post_body {
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.single .post_body figure.wp-block-image img {
    max-width: 750px;
    max-height: 600px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* === フルワイド レイアウト === */
.container {
    max-width: 100% !important;
    width: 100% !important;
}

@media (min-width: 769px) {
    .container {
        padding-left: 64px !important;
        padding-right: 64px !important;
    }
}

/* === 広告（onama） === */
.onama-highlight-wrapper,
.onama-highlight-wrapper > div,
.onama-entity-placement,
.onama-entity-placement > div {
    width: 100% !important;
    max-width: 100% !important;
}
.onama-highlight-wrapper a,
.onama-highlight-wrapper img,
.onama-entity-placement a,
.onama-entity-placement img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* 空ウィジェットエリアの高さを除去 */
.mainarea > .row.widgets {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.mainarea > .row.widgets:has(.widget_block:not(:empty)) {
    height: auto !important;
    line-height: normal !important;
    font-size: inherit !important;
    overflow: visible !important;
    text-align: center;
    margin-top: 64px !important;
}

.mainarea > .row.widgets .advads-entity-placement,
.mainarea > .row.widgets .advads-highlight-wrapper {
    display: block !important;
    max-width: 720px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.mainarea > .row.widgets .advads-entity-placement > div {
    max-width: 720px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.mainarea > .row.widgets .advads-entity-placement img {
    max-width: 720px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}

/* === モバイルレスポンシブ === */
@media (max-width: 768px) {
    .mainpost {
        margin-top: 0;
    }
    .col-md-8.mainarea {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        order: 1;
    }
    .col-md-4.sidebar {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        order: 2;
        margin-top: 24px;
    }

    /* ニュース一覧：横並び維持、サムネイルを小さく */
    .section-list .list-block {
        flex-direction: row;
        align-items: center;
        gap: 1px;
        padding: 1px 0;
    }
    .section-list .post_thumb {
        flex: 0 0 110px !important;
        width: 110px !important;
        max-height: 73px !important;
        background-size: cover !important;
        align-self: center;
        margin-right: 0;
    }
    .section-list .list-title,
    .section-list .post_ttl {
        font-size: 18px !important;
    }
    .section-list .post_time {
        font-size: 11px;
    }
    .section-list .post_cat {
        font-size: 10px;
    }
    .section-list .list-excerpt {
        display: none;
    }

    /* カードレイアウト：2列→1列 */
    .section-card article.list {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .single .post_body {
        font-size: 16px;
    }
    .single .wp-post-image,
    .single .post_body figure.wp-block-image img {
        max-width: 100% !important;
        max-height: none !important;
    }

    .onama-highlight-wrapper a,
    .onama-highlight-wrapper img,
    .onama-entity-placement a,
    .onama-entity-placement img {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 記事詳細：タグ非表示 */
    .single .tag {
        display: none !important;
    }

    /* 記事詳細：関連記事を1列・横並びレイアウト */
    .recommend .row > .col-md-12,
    .recommend .row article.list {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
        border-bottom: 1px solid #ddd;
    }
    .recommend .list-block {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px;
        padding: 10px 4px;
    }
    .recommend .post_thumb {
        flex: 0 0 110px !important;
        width: 110px !important;
        height: 73px !important;
        background-size: cover !important;
        background-position: center;
    }
    .recommend .list-text {
        flex: 1;
        min-width: 0;
    }
    .recommend .post_ttl {
        font-size: 16px !important;
        line-height: 1.5;
        color: #111 !important;
    }
    .recommend .post_time {
        font-size: 13px;
    }

    /* 記事詳細：見出しサイズ縮小 */
    .single .ttl_h1,
    .single p.article-subtitle {
        font-size: 24px;
    }

    /* トップへ戻るボタン非表示 */
    .pagetop {
        display: none !important;
    }
}

/* === 記事リスト共通変数（サイズ拡大） === */
:root {
    --thumb-width: 250px;
    --thumb-height: 167px;
    --cell-padding: 40px 16px;
    --title-size: 20px;
}

/* === セクション見出し（ニュース・くらし・企画・情報） === */
.mainarea .ttl {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    padding: 4px 0 4px 0;
    margin: 0;
    letter-spacing: 0.05em;
    border-bottom: none !important;
    border-top: none !important;
}

.mainarea .ttl span {
    border-bottom: none !important;
    border-left: none !important;
    border-top: none !important;
    padding-left: 0 !important;
}

.mainarea .ttl i {
    display: none;
}

.mainarea .section-list + .ttl {
    border-top: 4px solid #ddd !important;
    margin-top: 48px;
    padding-top: 32px;
}

/* === トップページ カテゴリーセクション（WP_Query） === */
.section-list {
    display: block;
    margin: 0;
    padding: 0;
}

.section-list article.list {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

.section-list .list-block {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 10px 4px;
    background: none;
    border: none;
    box-shadow: none;
}

.section-list .post_thumb {
    flex: 0 0 var(--thumb-width);
    width: var(--thumb-width);
    height: var(--thumb-height);
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    margin-right: 0;
}

.section-list .list-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.section-list .list-meta {
    display: block;
}

.section-list .post_time {
    font-size: 14px;
    color: #111;
    margin-left: 10px;
}

.section-list .post_cat {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    background: #1a5490;
    color: #fff !important;
}

.section-list .list-title,
.section-list .post_ttl {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
    color: #111 !important;
}

/* 本文冒頭 */
.section-list .list-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* === 企画・情報 カードレイアウト（2列×3行） === */
.section-card {
    display: flex !important;
    flex-wrap: wrap;
    margin: 0 !important;
}

.section-card article.list {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding: 0 12px !important;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
    margin-bottom: 0;
}

.section-card .card-block {
    display: flex;
    flex-direction: column;
}

.section-card .card-thumb-wrap {
    width: 100%;
    background-color: #f0f0f0;
    text-align: center;
    overflow: hidden;
}

.section-card .card-thumb-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    margin: 0 auto;
}

.section-card .card-text {
    padding: 20px 4px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-card .list-title,
.section-card .post_ttl {
    color: #111 !important;
}

/* === 広告バナー 上下サイズ統一 === */
#block-50 img,
#block-51 img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

@media (min-width: 769px) {
    #block-50,
    #block-51 {
        max-width: 60%;
        min-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* === サイドバー幅 max 400px === */
/* 大画面のみサイドバーを固定幅400pxに／それ以下はBootstrapのグリッドに委ねる */
@media (min-width: 1100px) {
    .col-md-4.sidebar {
        flex: 0 0 400px !important;
        max-width: 400px !important;
        width: 400px !important;
    }
    .col-md-8.mainarea {
        flex: 1 1 auto !important;
        max-width: calc(100% - 400px) !important;
        min-width: 0;
    }
}

/* === 有料記事（ニュース）の鍵アイコン === */
.news-lock {
    color: #c0392b;
    font-size: 0.8em;
    vertical-align: middle;
    margin-right: 4px;
}

/* === タグ一覧（記事リスト下部） === */
.front-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
    padding: 16px 4px 8px;
    margin-bottom: 16px;
}

.front-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: #f2f4f6;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.front-tags a:hover {
    background: #1a5490;
    border-color: #1a5490;
    color: #fff;
}

@media (max-width: 768px) {
    .front-tags a {
        font-size: 14px;
        padding: 5px 12px;
    }
}

/* === 開催案内ウィジェット（サイドバー） === */
.event-widget {
    list-style: none;
    margin: 0;
    padding: 0;
}

.event-widget .event-item {
    border-bottom: 1px solid #e5e5e5;
}

.event-widget .event-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    text-decoration: none;
    color: #1a1a1a;
}

.event-widget .event-item a:hover .event-title {
    color: #1a5490;
}

.event-widget .event-thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 60px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
    display: block;
}

.event-widget .event-title {
    flex: 1;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    min-width: 0;
}

/* === 人気記事ランキング（WordPress Popular Posts）の文字フォント・色のみ統一 === */
/* レイアウトはWPP標準のまま。タイトルの WP既定の青リンク → 黒・太字、ホバーで青 */
.sidebar .wpp-list .wpp-post-title,
.sidebar .wpp-list a.wpp-post-title,
.sidebar .wpp-list > li > a:not(.wpp-thumbnail) {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    color: #1a1a1a !important;
    text-decoration: none;
}

.sidebar .wpp-list .wpp-post-title:hover,
.sidebar .wpp-list a.wpp-post-title:hover,
.sidebar .wpp-list > li > a:not(.wpp-thumbnail):hover {
    color: #1a5490 !important;
}

/* === お知らせウィジェット（サイドバー） === */
.notice-widget {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notice-widget .notice-item {
    border-bottom: 1px solid #e5e5e5;
}

.notice-widget .notice-item:last-child {
    border-bottom: none;
}

.notice-widget .notice-item a {
    display: flex;
    align-items: baseline;
    gap: 0.75em;
    padding: 10px 4px;
    text-decoration: none;
    color: #1a1a1a;
}

.notice-widget .notice-item a:hover {
    color: #1a5490;
}

.notice-widget .notice-date {
    flex-shrink: 0;
    font-size: 13px;
    white-space: nowrap;
}

.notice-widget .notice-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
}

/* === PRバッジ === */
.pr-badge {
    display: inline-block;
    background: #888;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 6px;
}

/* === サイドバー内のメディアとテキストブロック === */
.sidebar .wp-block-media-text {
    display: grid !important;
    grid-template-columns: 30% 1fr !important;
    align-items: center !important;
}

.sidebar .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 30% 1fr !important;
}

.sidebar .wp-block-media-text__media {
    margin: 0 !important;
}

.sidebar .wp-block-media-text__media img {
    width: 100% !important;
    height: auto !important;
}
