/* =======================================================
   ガイドページ共通スタイル (guide.html, payment.html, faq.html)
======================================================= */

/* --- 基本レイアウト --- */
body { font-family: sans-serif; color: #333; line-height: 1.6; margin: 0; padding: 0; background-color: #f9fbfd; }
.top-banner { background-color: #CC0000; color: #FFFFFF; text-align: center; font-size: 18px; font-weight: bold; padding: 12px 0; }
.nav-links { max-width: 900px; margin: 15px auto; padding: 0 20px; font-size: 15px; color: #666; }
.nav-links a { color: #0056b3; text-decoration: none; font-weight: bold; }
.nav-links a:hover { text-decoration: underline; }
.nav-links .current-page { font-weight: bold; color: #333; }

/* --- コンテンツラッパー --- */
.guide-wrapper, .payment-wrapper, .faq-wrapper {
    max-width: 900px;
    margin: 20px auto 50px;
    padding: 0 20px;
}

/* --- ページタイトル --- */
h1.guide-title, h1.payment-title, h1.faq-title {
    box-sizing: border-box;
    background-color: #0056b3;
    color: #ffffff;
    padding: 15px 25px;
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- もくじ (TOC) --- */
.toc-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: 4px solid #0056b3;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.toc-box p { margin-top: 0; font-size: 15px; }
.guide-wrapper .toc-box p, .payment-wrapper .toc-box p { font-weight: bold; }
.toc-box ul { list-style: none; padding: 0; margin: 0; }
.guide-wrapper .toc-box ul, .payment-wrapper .toc-box ul { display: flex; flex-direction: column; gap: 12px; }
.payment-wrapper .toc-box ul { margin-top: 15px; gap: 10px; }
.faq-wrapper .toc-box ul { display: flex; flex-wrap: wrap; gap: 12px 0;}
.toc-box li { position: relative; padding-left: 20px; }
.faq-wrapper .toc-box li { width: 100%; }
.toc-box li::before { content: "▼"; position: absolute; left: 0; color: #0056b3; font-size: 10px; top: 6px; }
.toc-box a { color: #0056b3; text-decoration: none; font-weight: bold; transition: color 0.2s; }
.guide-wrapper .toc-box a { font-size: 16px; }
.payment-wrapper .toc-box a, .faq-wrapper .toc-box a { font-size: 15px; }
.faq-wrapper .toc-box a { display: block; line-height: 1.4; }
.toc-box a:hover { color: #004494; text-decoration: underline; }
.toc-desc { font-size: 13px; color: #666; margin-left: 10px; font-weight: normal; }

/* --- 装飾ボックス --- */
.sub-box { background-color: #f8fbf9; border-left: 4px solid #2b8a3e; padding: 15px; margin: 15px 0; font-size: 14px; }
.sub-box h4 { margin-top: 0; margin-bottom: 10px; color: #2b8a3e; font-size: 15px; }
.notice-box { padding: 15px; border-radius: 4px; font-size: 14px; margin-top: 20px; }
.guide-wrapper .notice-box { background-color: #fff9e6; border: 1px solid #f0ad4e; }
.payment-wrapper .notice-box { background-color: #f8fbf9; border-left: 4px solid #2b8a3e; padding-left: 20px; padding-right: 20px; color: #2b8a3e; }
.faq-wrapper .notice-box { background-color: #fff3cd; border-left: 4px solid #ffc107; color: #856404; margin: 15px 0; border-radius: 3px; }
.alert-box { background-color: #fff5f5; border-left: 4px solid #e03131; padding: 15px 20px; color: #c92a2a; margin: 20px 0; border-radius: 4px; font-size: 14px; line-height: 1.6; }
.info-box { margin: 20px 0; border-radius: 4px; font-size: 14px; }
.payment-wrapper .info-box { background-color: #fff9e6; border-left: 4px solid #f0ad4e; padding: 15px 20px; color: #856404; }
.faq-wrapper .info-box { border: 1px solid #e0e0e0; padding: 15px; margin-top:15px;}

/* --- セクションカード --- */
.section-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    overflow: hidden;
    scroll-margin-top: 20px;
}
.guide-wrapper .section-card { margin-bottom: 50px; }
.section-header {
    background: #f1f5f9;
    color: #0056b3;
    padding: 15px 25px;
    font-weight: bold;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}
.guide-wrapper .section-header { font-size: 20px; }
.payment-wrapper .section-header { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.section-body { padding: 25px; }
.payment-wrapper .section-body { font-size: 15px; color: #444; }
.payment-wrapper .section-body ul { padding-left: 20px; margin: 10px 0; }
.payment-wrapper .section-body li { margin-bottom: 8px; }
.payment-wrapper .section-body li:last-child { margin-bottom: 0; }
.payment-wrapper .section-body h5 { font-size: 15px; margin-top: 20px; margin-bottom: 10px; color: #333; font-weight: bold; border-left: 3px solid #0056b3; padding-left: 10px; }

/* --- ボタン --- */
.btn-back { display: inline-block; background: #6c757d; color: #fff; padding: 8px 20px; text-decoration: none; border-radius: 4px; font-size: 14px; font-weight: bold; margin-top: 20px; }
.btn-back:hover { background: #5a6268; }
.btn-home {
    display: inline-block;
    background: #0056b3;
    color: #fff;
    padding: 12px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-home:hover {
    background: #004494;
    transform: translateY(-2px);
}
.home-button-container { text-align: center; margin-top: 50px; }
.footer-spacer { max-width: 900px; margin: 0 auto; }

/* =======================================================
   guide.html 用スタイル
======================================================= */
/* ステップデザイン */
.step-item {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 25px;
    margin-bottom: 25px;
}
.step-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.step-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.step-badge {
    background: #e03131;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 12px;
    white-space: nowrap;
}
.step-content { display: flex; gap: 25px; align-items: flex-start; }
.step-text { flex: 1; font-size: 15px; color: #444; }
.step-image {
    flex: 0 0 auto;
    max-width: 350px;
    text-align: right;
}
.step-image img {
    max-width: 150px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px;
    background: #fff;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.step-image img:hover { transform: scale(1.05); }
.img-group { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* 画像拡大モーダル（Lightbox）用スタイル */
#imageModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: zoom-out;
    text-align: center;
}
#imageModal img {
    max-width: 90%;
    max-height: 90vh;
    margin-top: 5vh;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-radius: 4px;
    background: #fff;
}

/* guide.html からのインラインスタイル */
.note-text { font-size: 13px; color: #666; }
.small-note-text { font-size: 12px; color: #666; }
.important-text { color: #e03131; }
.step-badge.completed { background-color: #2b8a3e; }
.step-badge.important { background-color: #f0ad4e; }
.guide-wrapper .notice-box ul { padding-left: 20px; margin-bottom: 0; font-size: 13px; }
.guide-wrapper .notice-box a { color: #0056b3; }
.step-text ul { font-size: 14px; margin-top: 10px; padding-left: 20px; }
.step-text ul .unavailable { color: #e03131; }
.step-text .mypage-link { color: #0056b3; font-weight: bold; }

/* =======================================================
   payment.html 用スタイル
======================================================= */
/* クレジットロゴ並び */
.logo-container { display: flex; justify-content: center; gap: 12px; margin: 20px 0; flex-wrap: wrap; background: #fafafa; padding: 15px; border-radius: 6px; border: 1px solid #eee; }
.logo-container img { height: 32px; width: auto; object-fit: contain; }

/* 3Dセキュア国際ブランドグリッド */
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin: 20px 0; text-align: center; }
.brand-item { background: #fff; border: 1px solid #e0e0e0; padding: 12px 5px; border-radius: 6px; font-size: 12px; font-weight: bold; color: #555; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; }
.brand-item img { max-width: 80px; width: 100%; height: auto; }

/* カード会社リンク一覧 */
.card-company-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 20px; padding: 0; list-style: none; margin: 15px 0 0 0; }
.card-company-list li { position: relative; padding-left: 15px; margin-bottom: 0; font-size: 14px; }
.card-company-list li::before { content: "•"; position: absolute; left: 0; color: #0056b3; }
.card-company-list a { color: #0056b3; text-decoration: none; }
.card-company-list a:hover { text-decoration: underline; }

/* 代引き手数料テーブル */
table.fee-table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 14px; }
table.fee-table th { background-color: #f1f5f9; padding: 10px; border: 1px solid #e0e0e0; text-align: left; font-weight: bold; color: #333; }
table.fee-table td { padding: 10px; border: 1px solid #e0e0e0; color: #444; }
table.fee-table tr:nth-child(even) { background-color: #fdfdfd; }

/* payment.html からのインラインスタイル */
.toc-box .toc-lead { margin-top: 0; font-weight: bold; }
.toc-box .toc-description { font-size: 14px; margin-bottom: 0; }
.toc-box .invoice-notice { margin-top: 20px; margin-bottom: 0; background-color: #f8fbf9; border-left: 4px solid #2b8a3e; color: #2b8a3e; }
.toc-box .btn-mypage-link { display: inline-block; background: #2b8a3e; color: #fff; padding: 8px 20px; text-decoration: none; border-radius: 4px; font-size: 13px; font-weight: bold; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.payment-options-highlight { color: #e03131; font-weight: bold; }
#logo-veritrans { margin-left: 15px; border-left: 1px solid #ccc; padding-left: 15px; height: 25px; margin-top: 3px; }
.section-body .h5-divider { margin-top: 25px; }
.brand-grid-description { font-size: 14px; margin-bottom: 15px; }
.bank-account-details { background: #f1f5f9; padding: 20px; border-radius: 6px; font-size: 16px; font-weight: bold; text-align: center; color: #111; border: 1px solid #e2e8f0; letter-spacing: 0.5px; }
.section-body .p-no-top-margin { margin-top: 0; }
.fee-table-description { font-size: 13px; color: #666; margin-bottom: 5px; }
.section-body .contact-form-link { color: #0056b3; font-weight: bold; text-decoration: underline; }
.btn-contact-link { display: inline-block; background: #17a2b8; color: #fff; padding: 8px 20px; text-decoration: none; border-radius: 4px; font-size: 13px; font-weight: bold; }
.info-box.no-bottom-margin { margin-bottom: 0; }

/* =======================================================
   faq.html 用スタイル
======================================================= */
/* Q&A アイテム */
.qa-item {
    background: #fff;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    scroll-margin-top: 20px;
}
.qa-q {
    background-color: #f8fbf9;
    padding: 18px 20px;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
}
.icon-q {
    background-color: #0056b3;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 15px;
    font-size: 15px;
    flex-shrink: 0;
}
.qa-a {
    padding: 20px;
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: flex-start;
}
.icon-a {
    background-color: #e03131;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 15px;
    font-size: 15px;
    flex-shrink: 0;
}
.qa-a-content {
    flex: 1;
    line-height: 1.7;
}
.qa-a-content a { color: #0056b3; font-weight: bold; }

/* 回答内の装飾パーツ */
.copy-box { background-color: #f8f9fa; border: 1px dashed #adb5bd; padding: 15px; font-family: monospace; margin: 15px 0; border-radius: 4px; font-size:14px; }
.text-red { color: #e03131; font-weight: bold; }

/* faq.html からのインラインスタイル */
.qa-a-content .p-with-btn { margin-top: 15px; margin-bottom: 0; }
.qa-a-content .btn-mypage { display: inline-block; background: #2b8a3e; color: #fff; padding: 8px 20px; text-decoration: none; border-radius: 4px; font-size: 13px; font-weight: bold; }
.qa-a-content .p-no-top-margin { margin-top: 0; }
.qa-a-content .example-box { background: #f1f5f9; padding: 10px 15px; border-radius: 4px; margin-bottom: 15px; font-size: 14px; }
.faq-wrapper .info-box .info-box-heading { margin-bottom: 5px; margin-top: 15px; }
.faq-wrapper .info-box .info-box-list { margin-top: 0; color: #555; }
.faq-wrapper .info-box .info-box-list.no-bottom-margin { margin-bottom: 0; }
.qa-a-content .note-text { font-size: 13px; color: #666; }
.qa-a-content .note-text.with-margin { margin-top: 10px; }
.qa-a-content .contact-form-link { color: #0056b3; font-weight: bold; text-decoration: underline; }
.qa-a-content .p-with-btn-contact { margin-top: 10px; margin-bottom: 25px; }
.qa-a-content .btn-contact { display: inline-block; background: #17a2b8; color: #fff; padding: 8px 20px; text-decoration: none; border-radius: 4px; font-size: 13px; font-weight: bold; }
.qa-a-content .invoice-number-box { display: inline-block; background: #f1f5f9; padding: 5px 10px; margin: 5px 0; border-radius: 3px; }
.qa-a-content .receipt-note { font-weight: normal; color: #444; }
.qa-a-content .bank-account-box { background: #f1f5f9; padding: 15px; margin-top: 10px; font-size: 16px; font-weight: bold; text-align: center; border-radius: 4px; }
.qa-a-content .credit-card-logos { margin-top: 10px; display: flex; gap: 10px; }
.qa-a-content .shipping-note-list { margin-bottom: 0; color: #555; }
.qa-a-content .shipping-note-list .note { font-size: 13px; }
.qa-a-content .shipping-note-list .list-item-spacer { margin-top: 5px; }
.qa-a-content .payment-details-link { display: inline-block; background: #f1f5f9; padding: 8px 15px; border-radius: 4px; }

/* =======================================================
   レスポンシブスタイル
======================================================= */
@media (max-width: 750px) {
    /* payment.html */
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .card-company-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
    /* guide.html */
    .step-content { flex-direction: column; }
    .step-image { width: 100%; max-width: none; text-align: center; margin-top: 15px; }
    .step-image img { max-width: 100%; width: 200px; }
    .img-group { justify-content: center; }
    .guide-wrapper .toc-box a { display: block; }
    .guide-wrapper .toc-desc { display: block; margin-left: 0; margin-top: 5px; }

    /* faq.html */
    .qa-q { font-size: 15px; padding: 15px; }
    .qa-a { padding: 15px; font-size: 14px; }
    .icon-q, .icon-a { padding: 3px 8px; font-size: 13px; margin-right: 10px; }
    .copy-box { font-size: 13px; padding: 10px; overflow-x: auto;}
}
@media (max-width: 550px) {
    /* payment.html */
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .card-company-list { grid-template-columns: 1fr; }
    .payment-wrapper { padding: 0 15px; }
    .payment-wrapper .section-body { padding: 15px; }
}