@charset "utf-8";

/* =============================================
   ichiba_notice_202608 / style_preview.css
   Base: 900px fixed / PC only
   ============================================= */

/* ===== Reset補完 ===== */
* { box-sizing: border-box; }

/* ===== Base Font ===== */
body {
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, "メイリオ", sans-serif;
    font-size: 13px;
    color: #333;
    background: #fff;
    line-height: 1.8;
}

/* ===== Header ===== */
.ecHeader {
    background-color: #fff;
    padding: 0;
    height: 60px;
    border-bottom: 1px solid #d1d1d1;
    width: 100%;
    margin-bottom: 0;
}
.ec-globalnav {
    width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 0;
}
.r-ec-logoarea {
    display: flex;
    align-items: center;
    height: 60px;
    flex-shrink: 0;
}
.r-ec-logoarea img {
    width: 160px;
    height: auto;
    display: block;
}
.header-service-name {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    padding-left: 16px;
    margin-left: 16px;
    border-left: 1px solid #ccc;
    line-height: 1;
    letter-spacing: 0;
}
.header-right-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.header-right-nav a {
    font-size: 12px;
    color: #0070cc;
    text-decoration: none;
}
.header-right-nav a:hover { text-decoration: underline; }

/* ===== Page Wrap ===== */
.page-wrap {
    width: 900px;
    margin: 0 auto;
}

/* ===== Page Header ===== */
.page-header {
    padding: 32px 40px 28px;
    border-bottom: 3px solid #bf0000;
}
.notice-badge {
    display: inline-block;
    background: #bf0000;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    margin-bottom: 14px;
}
.page-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 10px;
}
.page-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}
.page-lead {
    font-size: 13px;
    line-height: 1.9;
    color: #333;
}

/* ===== Table of Contents ===== */
.toc-block {
    background: #f8f8f8;
    border: 1px solid #ddd;
    margin: 24px 40px;
    padding: 18px 22px;
}
.toc-label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.toc-list {
    padding-left: 1.6em;
    margin: 0;
}
.toc-list li { line-height: 2.1; }
.toc-list li a {
    font-size: 13px;
    color: #bf0000;
    text-decoration: none;
}
.toc-list li a:hover { text-decoration: underline; }

/* ===== Section Base ===== */
.section {
    padding: 32px 40px;
    border-top: 1px solid #e5e5e5;
}
.section--gray { background: #f8f8f8; }
.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #bf0000;
    padding-bottom: 8px;
    margin-bottom: 18px;
}
.sub-title {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    border-left: 3px solid #bf0000;
    padding-left: 10px;
    margin: 22px 0 10px;
}
.section p {
    font-size: 13px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 12px;
}
.section a { color: #bf0000; text-decoration: none; }
.section a:hover { text-decoration: underline; }

/* ===== Platform Visual ===== */
.platform-visual {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 24px 28px;
    margin-top: 18px;
    text-align: center;
}
.visual-headline {
    font-size: 17px;
    font-weight: bold;
    color: #bf0000;
    margin-bottom: 6px;
}
.visual-sub {
    font-size: 13px;
    color: #555;
    margin-bottom: 18px;
}
.three-col-block {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    width: 680px;
}
.col-item--red {
    background: #bf0000;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 14px 10px;
    text-align: center;
    flex: 1;
    line-height: 1.5;
}
.col-item--red p { margin: 0; color: #fff; font-size: 13px; line-height: 1.5; }
.col-item--arrow { color: #bf0000; font-size: 16px; padding: 0 8px; flex-shrink: 0; }
.visual-bottom { font-size: 13px; font-weight: bold; color: #333; line-height: 1.8; }

/* ===== AI Images ===== */
.ai-grid-note { font-size: 11px; color: #888; margin-bottom: 8px; }
.section .ai-grid-note { color: #888; }
.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 8px 0 16px;
}
.ai-grid-item {
    border: 1px solid #d1d1d1;
    overflow: hidden;
}
.ai-thumb {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}
.ai-thumb:hover { opacity: 0.9; }
/* ===== 経過措置ラベル ===== */
.billing-keikaso-label {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin: 14px 0 6px;
}
.section .billing-keikaso-label { color: #333; }

/* ===== ライトボックス ===== */
#ai-dialog {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
}
#ai-dialog::backdrop { background: rgba(0,0,0,0.7); }
#ai-dialog-img {
    display: block;
    max-width: 860px;
    max-height: 80vh;
    width: auto;
    height: auto;
}
#ai-dialog-close {
    display: block;
    background: #333;
    color: #fff;
    border: none;
    padding: 6px 16px;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 8px;
    font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
#ai-dialog-close:hover { background: #555; }

/* ===== Highlight Box ===== */
.highlight-box {
    background: #f8f8f8;
    border: 1px solid #d1d1d1;
    padding: 16px 20px;
    margin: 14px 0;
}
.highlight-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}
.check-list { padding-left: 1.4em; margin: 0; }
.check-list li { font-size: 13px; line-height: 1.9; color: #333; list-style: disc; }

/* ===== Price Table ===== */
.price-table {
    width: 820px;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13px;
}
.price-table thead th {
    background: #bf0000;
    color: #fff;
    padding: 9px 14px;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    border: 1px solid #a80000;
}
.price-table thead th:first-child { text-align: left; width: 38%; }
.price-table td {
    padding: 11px 14px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}
.price-table tbody tr:nth-child(even) { background: #f5f5f5; }
.price-table .plan-name { font-weight: bold; color: #222; }
.price-table .price-before {
    text-align: right;
    color: #888;
    text-decoration: line-through;
}
.price-table .price-old {
    text-align: right;
    color: #555;
}
.price-table .price-after {
    text-align: right;
    font-weight: bold;
    color: #1a1a1a;
    font-size: 14px;
}
.table-note { font-size: 12px; color: #666; line-height: 1.7; margin-top: 6px; }

/* ===== 経過措置注記ボックス ===== */
.keikaso-box {
    border: 1px solid #d1d1d1;
    margin: 16px 0;
    font-size: 13px;
}
.keikaso-box .keikaso-row {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
}
.keikaso-box .keikaso-row:last-child { border-bottom: none; }
.keikaso-box .keikaso-label {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
    padding: 12px 16px;
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid #e0e0e0;
    line-height: 1.6;
}
.keikaso-box .keikaso-body {
    padding: 12px 16px;
    color: #333;
    line-height: 1.8;
    flex: 1;
}

/* ===== TOC Sub List ===== */
.toc-list--sub {
    padding-left: 1.4em;
    margin-top: 4px;
}
.toc-list--sub li { line-height: 1.9; }
.toc-list--sub li a { font-size: 12px; color: #bf0000; }

/* ===== Billing Section ===== */
.billing-ao-block {
    margin: 20px 0;
}
.billing-ao-title {
    background: #333;
    font-size: 13px;
    font-weight: bold;
    padding: 10px 16px;
    margin-bottom: 0;
}
.billing-ao-title--new {
    background: #2a6496;
}
/* .section p の上書きを防ぐ */
.section .billing-ao-title,
.section .billing-ao-title--new {
    color: #fff;
}
.billing-ao-body {
    border: 1px solid #aaa;
    border-top: none;
    padding: 16px 18px;
    background: #fff;
}
.billing-ao-title--new + .billing-ao-body {
    border-color: #7aadce;
}

/* 支払い方式サブセクション */
.payment-section {
    margin: 20px 0;
    border: 1px solid #d1d1d1;
}
.payment-section-header {
    background: #f5f5f5;
    border-bottom: 1px solid #d1d1d1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: bold;
}
.section .payment-section-header { color: #333; }
.payment-section-body {
    padding: 16px 18px;
}

/* AOパターンサブセクション */
.ao-pattern {
    margin: 14px 0;
    border: 1px solid #e0e0e0;
}
.ao-pattern-header {
    background: #888;
    font-size: 12px;
    font-weight: bold;
    padding: 7px 12px;
}
.ao-pattern-header--caution { background: #a00000; }
.section .ao-pattern-header,
.section .ao-pattern-header--caution { color: #fff; }
.ao-pattern-body { padding: 14px 16px; }

/* 差額精算テーブル */
.seisan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 10px 0;
}
.seisan-table thead th {
    background: #555;
    color: #fff;
    padding: 7px 10px;
    text-align: center;
    border: 1px solid #444;
    font-size: 11px;
    font-weight: bold;
}
.seisan-table thead th:first-child { text-align: left; width: 38%; }
.seisan-table td {
    padding: 8px 10px;
    border: 1px solid #d1d1d1;
    color: #333;
    vertical-align: middle;
}
.seisan-table tbody tr:nth-child(even) { background: #f5f5f5; }
.seisan-table .num { text-align: right; }
.seisan-table .plus { color: #bf0000; font-weight: bold; text-align: right; }
.seisan-table .minus { color: #2a6496; font-weight: bold; text-align: right; }
.seisan-note {
    font-size: 11px;
    color: #666;
    margin-top: 6px;
    line-height: 1.6;
}

/* ===== Billing Flat Structure ===== */

/* 両グループ共通のヘッダー（並列・同格） */
.billing-group-header {
    border-top: 2px solid #333;
    border-bottom: 1px solid #d1d1d1;
    padding: 12px 0 10px;
    margin: 28px 0 14px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.billing-group-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
}
.section .billing-group-title { color: #1a1a1a; }
.billing-group-title--new { color: #2D1F0F !important; }
.billing-group-badge {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.billing-group-badge--new {
    background: #2D1F0F;
    color: #fff;
}
.billing-group-badge--old {
    background: #bf0000;
    color: #fff;
}

/* A/B/C サブセクション */
.billing-sub-title {
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #d1d1d1;
    padding-bottom: 6px;
    margin: 24px 0 10px;
}
.section .billing-sub-title { color: #1a1a1a; }

/* B内の2パターン区切り */
.billing-pattern-label {
    font-size: 13px;
    font-weight: bold;
    margin: 18px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #d1d1d1;
}
.section .billing-pattern-label { color: #333; }
.billing-pattern-label--caution { color: #a00000 !important; }

/* ===== Back to Top ===== */
.back-to-top {
    text-align: right;
    padding: 12px 40px;
    border-top: 1px solid #e5e5e5;
}
.back-to-top a { font-size: 12px; color: #bf0000; text-decoration: none; }
.back-to-top a:hover { text-decoration: underline; }

/* ===== Footer ===== */
footer {
    width: 900px;
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px solid #d1d1d1;
    text-align: center;
    font-size: 12px;
    color: #888;
}
footer p { margin: 0 0 4px 0; }
footer a { color: #888; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ===== 差額終了行 ===== */
.seisan-terminator td {
    background: #f5f5f5;
    color: #555;
    font-size: 12px;
    border-top: 2px solid #d1d1d1;
}

/* ===== 脚注上付き文字 ===== */
sup {
    font-size: 10px;
    vertical-align: super;
    color: #555;
}

/* ===== 公式フォーマット版テーブル（列幅調整） ===== */
.seisan-table--official thead th:nth-child(1) { width: 36%; text-align: left; }
.seisan-table--official thead th:nth-child(2) { width: 12%; }
.seisan-table--official thead th:nth-child(3) { width: 14%; }
.seisan-table--official thead th:nth-child(4) { width: 14%; }
.seisan-table--official thead th:nth-child(5) { width: 12%; }
.seisan-table--official thead th:nth-child(6) { width: 12%; }
