/* ── pages/faq.php ── */
.faq-section {
    padding: 64px 0 80px;
}
.faq-category {
    margin-bottom: 56px;
}
.faq-category__title {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 0.06em;
    color: #0B0B0C;
    padding-bottom: 16px;
    border-bottom: 2px solid #0B0B0C;
    margin-bottom: 0;
}

/* グローバルCSSのリセット */
.faq-section .faq-item {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
    cursor: default;
    line-height: inherit;
    border-bottom: 1px solid #E6E7EA;
}
.faq-section .faq-question {
    display: flex;
    align-items: center;
    padding: 20px 0;
    padding-left: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.75;
    color: #0B0B0C;
    gap: 12px;
    user-select: none;
}
.faq-section .faq-question::before {
    content: none;
}
.faq-q-label {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: bold;
    color: #6B6F76;
    width: 20px;
}
.faq-question-text {
    flex: 1;
}
.faq-question__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 300;
    color: #0B0B0C;
    transition: transform 0.2s ease-out;
    line-height: 1;
    margin-left: auto;
}
.faq-section .faq-item.open .faq-question__icon {
    transform: rotate(45deg);
}
.faq-section .faq-answer {
    display: none;
}
.faq-answer-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 0 0 24px;
    font-size: 16px;
    line-height: 1.75;
    color: #0B0B0C;
}
.faq-a-label {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: bold;
    color: #6B6F76;
    width: 20px;
}
.faq-answer-text {
    flex: 1;
}
.faq-section .faq-arrow {
    display: none;
}
@media (max-width: 787px) {
    .faq-section {
        padding: 40px 0 60px;
    }
}

/* ── pages/law.php ── */

/* ページタイトル */
.about-intro .title-intro {
    text-align: center;
    padding: 48px 20px 36px;
}

.about-intro .title-intro h2 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.06em;
    margin: 0;
    line-height: 1.4;
}

.about-intro .title-intro h2::before {
    content: 'Specified Commercial Transactions Act';
    display: block;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #6B6F76;
    font-weight: normal;
    margin-bottom: 10px;
}

.about-intro .title-intro h2 .marker {
    background: none;
    border-bottom: 3px solid #6B6F76;
    padding-bottom: 4px;
}

@media (max-width: 767px) {
    .about-intro .title-intro {
        padding: 32px 20px 24px;
    }

    .about-intro .title-intro h2 {
        font-size: 20px;
    }
}

.law-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.law-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.law-table th,
.law-table td {
    padding: 14px 16px;
    border: 1px solid #E6E7EA;
    font-size: 13px;
    vertical-align: top;
    line-height: 1.75;
}

.law-table th {
    width: 30%;
    background: #F7F8FA;
    font-weight: bold;
    white-space: nowrap;
    text-align: left;
}

.law-table td {
    background: #fff;
}

.law-table td ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.law-table td ul li {
    margin-bottom: 6px;
}

/* ── pages/privacy.php ── */

/* ページタイトル (privacy用上書き) */
.about-intro .title-intro h2::before {
    content: 'Privacy Policy & Terms of Service';
}

.policy-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

/* 各規約ブロック */
.policy-section {
    margin-bottom: 64px;
    margin-top: -145px;
    padding-top: 145px;
    padding-bottom: 48px;
    border-bottom: 1px solid #ddd;
}

@media (max-width: 767px) {
    .policy-section {
        margin-top: -95px;
        padding-top: 95px;
    }
}

.policy-section:last-child {
    border-bottom: none;
}

/* 規約タイトル（h2） */
.policy-section>h2 {
    font-size: 20px;
    font-weight: bold;
    border-left: 5px solid #E6E7EA;
    padding: 6px 14px;
    margin: 0 0 24px;
    background: #F7F8FA;
}

/* 条見出し（h3） */
.policy-section h3 {
    font-size: 15px;
    font-weight: bold;
    margin: 24px 0 8px;
    padding: 4px 0 4px 10px;
    border-left: 3px solid #6B6F76;
}

/* リード文 */
.policy-lead {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 13px;
}

/* 本文段落 */
.policy-section p {
    margin: 0 0 12px;
}

/* 番号付き・箇条書きリスト */
.policy-section ol,
.policy-section ul {
    margin: 8px 0 16px 0;
    padding-left: 24px;
}

.policy-section li {
    margin-bottom: 6px;
}

/* 入れ子リスト */
.policy-section ol ol,
.policy-section ul ul,
.policy-section ol ul {
    margin-top: 4px;
    margin-bottom: 4px;
}

/* 条番号付きブロック */
.policy-article {
    margin-bottom: 20px;
}

/* テーブル */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 13px;
    table-layout: fixed;
}

.policy-table th {
    background: #F7F8FA;
    border: 1px solid #E6E7EA;
    padding: 8px 10px;
    font-weight: bold;
    vertical-align: top;
    text-align: left;
    word-break: keep-all;
}

.policy-table td {
    border: 1px solid #E6E7EA;
    padding: 8px 10px;
    vertical-align: top;
    word-break: break-all;
}

.policy-table td a {
    word-break: break-all;
}

.policy-table td ul {
    margin: 0;
    padding-left: 18px;
}

/* 外部送信ツールテーブル専用列幅 */
.policy-table.external-tools th:nth-child(1),
.policy-table.external-tools td:nth-child(1) {
    width: 13%;
    word-break: keep-all;
}

.policy-table.external-tools th:nth-child(2),
.policy-table.external-tools td:nth-child(2) {
    width: 14%;
    word-break: keep-all;
}

.policy-table.external-tools th:nth-child(3),
.policy-table.external-tools td:nth-child(3) {
    width: 28%;
}

.policy-table.external-tools th:nth-child(4),
.policy-table.external-tools td:nth-child(4) {
    width: 45%;
}

.policy-table.external-tools .link-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

@media (max-width: 767px) {
    .policy-table {
        font-size: 11px;
    }

    .policy-table th,
    .policy-table td {
        padding: 5px 5px;
    }

    /* 外部ツールテーブル：SP縦積みカード表示 */
    .policy-table.external-tools thead {
        display: none;
    }

    .policy-table.external-tools tbody tr {
        display: block;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin-bottom: 12px;
    }

    .policy-table.external-tools td {
        display: block;
        border: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 8px 10px;
        word-break: break-all;
    }

    .policy-table.external-tools td:last-child {
        border-bottom: none;
    }

    .policy-table.external-tools td:first-child {
        display: inline-block;
        width: auto !important;
        background: #eee;
        font-weight: bold;
        font-size: 12px;
        border-bottom: none;
        padding: 8px 10px 4px;
    }

    .policy-table.external-tools td:nth-child(2) {
        display: inline-block;
        width: auto !important;
        border-bottom: none;
        padding: 8px 10px 4px;
        color: #666;
        font-size: 11px;
    }

    /* 1・2列目の後に区切り線を引くための疑似要素 */
    .policy-table.external-tools tr::after {
        content: '';
        display: block;
        border-bottom: 1px solid #e8e8e8;
        margin: 0 10px 0;
    }

    .policy-table.external-tools td:nth-child(3)::before {
        content: '送信される情報';
        display: block;
        font-size: 10px;
        color: #888;
        margin-bottom: 4px;
    }

    .policy-table.external-tools td:nth-child(4)::before {
        content: 'プライバシーポリシー・オプトアウト';
        display: block;
        font-size: 10px;
        color: #888;
        margin-bottom: 4px;
    }

    /* 列幅リセット */
    .policy-table.external-tools th:nth-child(n),
    .policy-table.external-tools td:nth-child(n) {
        width: 100%;
    }
}

/* 制定日 */
.policy-date {
    text-align: right;
    font-size: 13px;
    color: #888;
    margin-top: 24px;
}

/* ページ内目次 */
.policy-toc {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 48px;
    font-size: 13px;
}

.policy-toc h4 {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 10px;
}

.policy-toc ol {
    margin: 0;
    padding-left: 20px;
}

.policy-toc li {
    margin-bottom: 4px;
}

.policy-toc a {
    color: #555;
    text-decoration: none;
}

.policy-toc a:hover {
    color: #6B6F76;
    text-decoration: underline;
}

/* ── contents/index.php ── */
.journal-article-h1 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 24px;
}
.journal-divider {
    border: none;
    border-top: 1px solid #E6E7EA;
    margin: 40px 0;
}
.journal-empty {
    padding: 48px 0;
    color: #999;
}

/* ── withdraw/complete.php ── */
.withdraw-complete-wrap {
    max-width: 560px;
    margin: 60px auto;
    text-align: center;
    padding: 48px 32px;
    background: #fff;
    border-radius: 12px;
}

.withdraw-complete-text {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 40px;
}
