/**
 * page-seido-hikaku.css
 *
 * Phase 12-B-4: 制度比較 (技能実習・特定技能・育成就労) ページ専用 CSS
 * URL: /seido-hikaku/
 *
 * 名前空間: .jj-page-seido-*
 *
 * tokens.css への新規 --jj-* 追加は禁止。
 * .jj-page-seido スコープ内のローカル変数 --seido-* は使用 OK。
 * 比較表は共通 .jj-table-scroll (components.css) を再利用しつつ、
 * .jj-page-seido-table-scroll で最小幅と横スクロールを補強する。
 *
 * レスポンシブ BP (Phase 12-A 確定値):
 *   PC:     >= 1024px
 *   Tablet: 768px - 1023.98px
 *   Mobile: <= 767.98px
 *
 * @package JobJepang
 * @since v1.8.0
 */

/* ========================================
   Local Variables (page-seido scope only)
   ======================================== */
.jj-page-seido {
    --seido-blue:      var(--jj-primary, #0072B1);
    --seido-blue-dark: var(--jj-primary-dark, #005a8e);
    --seido-bg-white:  #ffffff;
    --seido-bg-alt:    #F8FAFC;
    --seido-text:      var(--jj-text-primary, #1a1a1a);
    --seido-text-mute: var(--jj-text-muted, #666);
    --seido-border:    var(--jj-border, #e5e7eb);

    --seido-section-py-pc:     96px;
    --seido-section-py-tablet: 72px;
    --seido-section-py-mobile: 48px;
}

/* ========================================
   Section common
   ======================================== */
.jj-page-seido-section {
    padding-top: var(--seido-section-py-pc);
    padding-bottom: var(--seido-section-py-pc);
    background: var(--seido-bg-white);
}

.jj-page-seido-section--alt {
    background: var(--seido-bg-alt);
}

/* ========================================
   Breadcrumb
   ======================================== */
.jj-page-seido-breadcrumb-wrap {
    padding-top: 16px;
    padding-bottom: 8px;
    background: var(--seido-bg-white);
}

/* ========================================
   S01 Hero
   ======================================== */
.jj-page-seido-hero {
    text-align: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

.jj-page-seido-hero-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--seido-blue);
    margin-bottom: 12px;
}

.jj-page-seido-h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--seido-text);
    margin: 0 0 20px;
}

.jj-page-seido-lead {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--seido-text);
    margin: 0 auto 16px;
    max-width: 640px;
    text-align: left;
}

.jj-page-seido-hero-cta {
    margin-top: 28px;
}

.jj-page-seido-cta-note {
    font-size: 0.8125rem;
    color: var(--seido-text-mute);
    margin-top: 12px;
}

/* ========================================
   S02 Overview (3 cards)
   ======================================== */
.jj-page-seido-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.jj-page-seido-overview-card {
    background: var(--seido-bg-white);
    border: 1px solid var(--seido-border);
    border-radius: 12px;
    padding: 24px;
}

.jj-page-seido-section--alt .jj-page-seido-overview-card {
    background: var(--seido-bg-white);
}

.jj-page-seido-overview-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--seido-blue);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--seido-border);
}

.jj-page-seido-overview-lead {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.7;
    margin: 0 0 8px;
}

.jj-page-seido-overview-desc {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--seido-text-mute);
    margin: 0;
}

/* ========================================
   S03 Comparison table
   ======================================== */
.jj-page-seido-table-scroll {
    margin-top: 32px;
}

.jj-page-seido-table {
    width: 100%;
    min-width: 760px; /* モバイルで横スクロールさせる最小幅 */
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.jj-page-seido-table th,
.jj-page-seido-table td {
    border: 1px solid var(--seido-border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.jj-page-seido-table thead th {
    background: var(--seido-blue);
    color: #fff;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.jj-page-seido-table tbody th[scope="row"] {
    background: var(--seido-bg-alt);
    font-weight: 700;
    white-space: nowrap;
    width: 120px;
}

.jj-page-seido-table-sub {
    font-size: 0.75rem;
    font-weight: 400;
}

.jj-page-seido-table-note {
    font-size: 0.8125rem;
    color: var(--seido-text-mute);
    margin-top: 12px;
    line-height: 1.7;
}

/* ========================================
   S04 Details
   ======================================== */
.jj-page-seido-detail {
    max-width: 760px;
    margin: 0 auto 40px;
}

.jj-page-seido-detail:last-child {
    margin-bottom: 0;
}

.jj-page-seido-detail-h {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--seido-blue);
    margin: 0 0 14px;
}

.jj-page-seido-detail p {
    font-size: 1rem;
    line-height: 1.9;
    margin: 0 0 14px;
}

.jj-page-seido-detail-list {
    list-style: disc;
    padding-left: 1.4em;
    margin: 0;
}

.jj-page-seido-detail-list li {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ========================================
   S05 Choose
   ======================================== */
.jj-page-seido-choose-list {
    list-style: none;
    padding: 0;
    margin: 24px auto 0;
    max-width: 720px;
}

.jj-page-seido-choose-item {
    background: var(--seido-bg-white);
    border: 1px solid var(--seido-border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.7;
}

.jj-page-seido-choose-note {
    max-width: 720px;
    margin: 16px auto 0;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--seido-text-mute);
}

.jj-page-seido-midcta {
    text-align: center;
    margin-top: 32px;
}

.jj-page-seido-midcta .jj-page-seido-cta-note {
    margin-top: 10px;
}

/* ========================================
   S06 About Indonesia
   ======================================== */
.jj-page-seido-about-body p {
    font-size: 1rem;
    line-height: 1.9;
    margin: 0 0 14px;
}

.jj-page-seido-about-link {
    margin-top: 8px;
}

/* ========================================
   S07 FAQ
   ======================================== */
.jj-page-seido-faq-item {
    border: 1px solid var(--seido-border);
    border-radius: 10px;
    background: var(--seido-bg-white);
    margin-bottom: 12px;
    overflow: hidden;
}

.jj-page-seido-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
}

.jj-page-seido-faq-q::-webkit-details-marker {
    display: none;
}

.jj-page-seido-faq-q-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    position: relative;
}

.jj-page-seido-faq-q-icon::before,
.jj-page-seido-faq-q-icon::after {
    content: "";
    position: absolute;
    background: var(--seido-blue);
}

.jj-page-seido-faq-q-icon::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
}

.jj-page-seido-faq-q-icon::after {
    top: 0;
    left: 6px;
    width: 2px;
    height: 14px;
    transition: transform 0.2s ease;
}

.jj-page-seido-faq-item[open] .jj-page-seido-faq-q-icon::after {
    transform: scaleY(0);
}

.jj-page-seido-faq-a {
    padding: 0 20px 18px;
}

.jj-page-seido-faq-a p {
    font-size: 0.9375rem;
    line-height: 1.9;
    margin: 0;
    color: var(--seido-text);
}

/* ========================================
   S08 Final CTA
   ======================================== */
.jj-page-seido-final-cta {
    text-align: center;
}

.jj-page-seido-final-cta-body {
    max-width: 640px;
    margin: 0 auto;
}

.jj-page-seido-final-cta-body p {
    font-size: 1rem;
    line-height: 1.9;
    margin: 0 0 12px;
}

.jj-page-seido-final-cta-action {
    margin-top: 28px;
}

.jj-page-seido-final-cta-note {
    font-size: 0.8125rem;
    color: var(--seido-text-mute);
    margin-top: 12px;
}

/* ========================================
   Tablet (768px - 1023.98px)
   ======================================== */
@media (max-width: 1023.98px) {
    .jj-page-seido-section {
        padding-top: var(--seido-section-py-tablet);
        padding-bottom: var(--seido-section-py-tablet);
    }
    .jj-page-seido-overview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ========================================
   Mobile (<= 767.98px)
   ======================================== */
@media (max-width: 767.98px) {
    .jj-page-seido-section {
        padding-top: var(--seido-section-py-mobile);
        padding-bottom: var(--seido-section-py-mobile);
    }
    .jj-page-seido-hero {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .jj-page-seido-h1 {
        font-size: 1.375rem;
    }
    .jj-page-seido-lead {
        font-size: 0.9375rem;
    }
    .jj-page-seido-table {
        font-size: 0.875rem;
    }
    .jj-page-seido-table tbody th[scope="row"] {
        width: auto;
        min-width: 92px;
    }
}
