/**
 * page-hajimete.css
 *
 * Phase 12-B-1: はじめての外国人採用 LP 専用 CSS
 * URL: /hajimete-no-gaikokujin-saiyou/
 *
 * 名前空間: .jj-page-hajimete-*
 *
 * tokens.css への新規 --jj-* 追加は禁止。
 * ただし .jj-page-hajimete スコープ内のローカル変数 --hajimete-* は使用 OK。
 *
 * レスポンシブ BP (Phase 12-A 確定値):
 *   PC:     >= 1024px
 *   Tablet: 768px - 1023.98px
 *   Mobile: <= 767.98px
 *
 * @package JobJepang
 * @since v1.7.0
 */

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

    /* Section spacing (Ginou Jisshu pattern) */
    --hajimete-section-py-pc:     96px;
    --hajimete-section-py-tablet: 72px;
    --hajimete-section-py-mobile: 48px;
}

/* ========================================
   Section common (共通クラス: padding + alt 背景)
   ======================================== */
.jj-page-hajimete-section {
    padding-block: var(--hajimete-section-py-pc);
}

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

@media (max-width: 1023.98px) {
    .jj-page-hajimete-section {
        padding-block: var(--hajimete-section-py-tablet);
    }
}

@media (max-width: 767.98px) {
    .jj-page-hajimete-section {
        padding-block: var(--hajimete-section-py-mobile);
    }
}

/* ========================================
   Section head (Eyebrow + H2 + Lede)
   ======================================== */
.jj-page-hajimete .jj-section-head {
    text-align: left;
    margin: 0 0 40px;
}

.jj-page-hajimete .jj-section-head .jj-eyebrow {
    color: var(--hajimete-blue);
    letter-spacing: .08em;
    font-weight: 500;
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

.jj-page-hajimete .jj-section-head .jj-h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .02em;
    word-break: keep-all;
    line-break: strict;
    margin: 8px 0 12px;
    color: var(--hajimete-text);
}

.jj-page-hajimete .jj-section-head .jj-section-lede {
    font-size: 16px;
    line-height: 1.85;
    color: var(--hajimete-text);
    margin: 0;
}

@media (max-width: 767.98px) {
    .jj-page-hajimete .jj-section-head .jj-h2 {
        font-size: 20px;
    }
    .jj-page-hajimete .jj-section-head .jj-section-lede {
        font-size: 15px;
    }
}

/* ========================================
   Breadcrumb
   ======================================== */
.jj-page-hajimete-breadcrumb-wrap {
    padding-block: 16px;
    background: var(--hajimete-bg-white);
    border-bottom: 1px solid var(--hajimete-border);
}

/* ========================================
   S01 Hero
   ======================================== */
.jj-page-hajimete-hero {
    background: linear-gradient(180deg, #E8F4FA 0%, #ffffff 100%);
    padding-block: 64px 80px;
}

.jj-page-hajimete-hero-inner {
    max-width: var(--jj-container-max, 1200px);
    margin-inline: auto;
    padding-inline: 24px;
}

.jj-page-hajimete-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.jj-page-hajimete-hero-text {
    min-width: 0;
}

.jj-page-hajimete-hero-eyebrow {
    display: inline-block;
    color: var(--hajimete-blue);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.jj-page-hajimete-h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .02em;
    margin: 0 0 24px;
    color: var(--hajimete-text);
    word-break: keep-all;
    line-break: strict;
}

.jj-page-hajimete-h1 .jj-nowrap {
    white-space: nowrap;
}

.jj-page-hajimete-lead {
    font-size: 16px;
    line-height: 1.95;
    color: var(--hajimete-text);
    margin: 0 0 32px;
}

.jj-page-hajimete-hero-cta {
    margin-bottom: 12px;
}

.jj-page-hajimete-cta-note {
    font-size: 13px;
    color: var(--hajimete-text-mute);
    line-height: 1.7;
    margin: 0 0 16px;
}

.jj-page-hajimete-hero-sublink {
    margin: 0;
    font-size: 14px;
}

.jj-page-hajimete-hero-sublink a {
    color: var(--hajimete-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color .15s ease;
}

.jj-page-hajimete-hero-sublink a:hover {
    border-bottom-color: var(--hajimete-blue);
}

.jj-page-hajimete-hero-photo-wrap {
    min-width: 0;
}

.jj-page-hajimete-hero-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--jj-radius-md, 12px);
}

@media (max-width: 1023.98px) {
    .jj-page-hajimete-hero {
        padding-block: 48px 64px;
    }
    .jj-page-hajimete-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .jj-page-hajimete-h1 {
        font-size: 30px;
    }
}

@media (max-width: 767.98px) {
    .jj-page-hajimete-hero {
        padding-block: 32px 48px;
    }
    .jj-page-hajimete-hero-inner {
        padding-inline: 16px;
    }
    .jj-page-hajimete-h1 {
        font-size: 26px;
    }
    .jj-page-hajimete-lead {
        font-size: 15px;
    }
}

/* ========================================
   S02 why-now
   ======================================== */
.jj-page-hajimete-why-now-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    max-width: 720px;
}

.jj-page-hajimete-why-now-item {
    position: relative;
    padding: 14px 16px 14px 36px;
    background: var(--hajimete-bg-white);
    border: 1px solid var(--hajimete-border);
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--hajimete-text);
}

.jj-page-hajimete-why-now-item::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--hajimete-blue);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* ========================================
   S03 concerns
   ======================================== */
.jj-page-hajimete-concerns-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.jj-page-hajimete-concerns-card {
    background: var(--hajimete-bg-white);
    border: 1px solid var(--hajimete-border);
    border-radius: var(--jj-radius-md, 12px);
    padding: 24px 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.jj-page-hajimete-concerns-card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--hajimete-text);
    font-weight: 500;
}

.jj-page-hajimete-concerns-close {
    margin: 32px 0 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--hajimete-text);
    text-align: left;
}

@media (max-width: 1023.98px) {
    .jj-page-hajimete-concerns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .jj-page-hajimete-concerns-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ========================================
   S04 flow ★ HTML/CSS タイムライン
   ======================================== */
.jj-page-hajimete-flow-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.jj-page-hajimete-flow-step {
    position: relative;
    background: var(--hajimete-bg-white);
    border: 1px solid var(--hajimete-border);
    border-radius: var(--jj-radius-md, 12px);
    padding: 24px 16px;
    text-align: left;
}

.jj-page-hajimete-flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--hajimete-blue);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}

.jj-page-hajimete-flow-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--hajimete-text);
    line-height: 1.5;
}

.jj-page-hajimete-flow-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--hajimete-text);
    margin: 0 0 12px;
}

.jj-page-hajimete-flow-role {
    font-size: 13px;
    line-height: 1.6;
    color: var(--hajimete-text-mute);
    padding-top: 12px;
    border-top: 1px solid var(--hajimete-border);
    margin: 0;
}

.jj-page-hajimete-flow-role strong {
    color: var(--hajimete-blue);
    font-weight: 600;
}

.jj-page-hajimete-flow-note {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
    color: var(--hajimete-text-mute);
    line-height: 1.85;
}

.jj-page-hajimete-flow-note strong {
    color: var(--hajimete-text);
    font-weight: 600;
}

@media (max-width: 1023.98px) {
    .jj-page-hajimete-flow-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .jj-page-hajimete-flow-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   S05 checklist
   ======================================== */
.jj-page-hajimete-checklist-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.jj-page-hajimete-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--hajimete-bg-white);
    border: 1px solid var(--hajimete-border);
    border-radius: 10px;
}

.jj-page-hajimete-checklist-input {
    margin: 4px 0 0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--hajimete-blue);
}

.jj-page-hajimete-checklist-label {
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
    color: var(--hajimete-text);
    cursor: pointer;
}

.jj-page-hajimete-checklist-close {
    margin: 32px 0 24px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--hajimete-text);
}

.jj-page-hajimete-checklist-link {
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.jj-page-hajimete-checklist-link a {
    color: var(--hajimete-blue);
    text-decoration: none;
    border-bottom: 1px solid var(--hajimete-blue);
    padding-bottom: 2px;
    transition: opacity .15s ease;
}

.jj-page-hajimete-checklist-link a:hover {
    opacity: .75;
}

/* ========================================
   S06 about-indonesia
   ======================================== */
.jj-page-hajimete-about-countries {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.jj-page-hajimete-about-country {
    padding: 14px 18px;
    background: var(--hajimete-bg-white);
    border: 1px solid var(--hajimete-border);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
}

.jj-page-hajimete-about-country-name {
    font-weight: 600;
    color: var(--hajimete-blue);
    margin-right: 8px;
}

.jj-page-hajimete-about-country-memo {
    color: var(--hajimete-text);
}

.jj-page-hajimete-about-summary {
    margin: 0 0 56px;
    padding: 20px 24px;
    background: var(--hajimete-bg-alt);
    border-left: 3px solid var(--hajimete-blue);
    font-size: 15px;
    line-height: 1.85;
    color: var(--hajimete-text);
    border-radius: 0 8px 8px 0;
}

/* S06-2 JobJepang のポイント */
.jj-page-hajimete-about-points {
    margin: 0 0 56px;
}

.jj-page-hajimete-about-points-h {
    font-size: 20px;
    font-weight: 600;
    color: var(--hajimete-text);
    margin: 0 0 12px;
}

.jj-page-hajimete-about-points-lede {
    font-size: 15px;
    line-height: 1.85;
    color: var(--hajimete-text);
    margin: 0 0 24px;
}

.jj-page-hajimete-about-points-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.jj-page-hajimete-about-point-card {
    background: var(--hajimete-bg-white);
    border: 1px solid var(--hajimete-border);
    border-radius: var(--jj-radius-md, 12px);
    padding: 24px 20px;
}

.jj-page-hajimete-about-point-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hajimete-blue);
    margin: 0 0 12px;
    line-height: 1.5;
}

.jj-page-hajimete-about-point-items {
    list-style: disc;
    margin: 0;
    padding-left: 20px;
}

.jj-page-hajimete-about-point-items li {
    font-size: 14px;
    line-height: 1.75;
    color: var(--hajimete-text);
    margin-bottom: 8px;
}

.jj-page-hajimete-about-point-items li:last-child {
    margin-bottom: 0;
}

.jj-page-hajimete-about-point-items strong {
    color: var(--hajimete-text);
    font-weight: 600;
}

/* S06-3 受け入れ現場のリアル (2 枚カード) */
.jj-page-hajimete-about-reality {
    margin: 0 0 56px;
}

.jj-page-hajimete-about-reality-h {
    font-size: 20px;
    font-weight: 600;
    color: var(--hajimete-text);
    margin: 0 0 20px;
}

.jj-page-hajimete-about-reality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.jj-page-hajimete-about-reality-card {
    background: var(--hajimete-bg-white);
    border: 1px solid var(--hajimete-border);
    border-radius: var(--jj-radius-md, 12px);
    padding: 24px;
}

.jj-page-hajimete-about-reality-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hajimete-blue);
    margin: 0 0 12px;
    line-height: 1.5;
}

.jj-page-hajimete-about-reality-card-items {
    list-style: disc;
    margin: 0 0 12px;
    padding-left: 20px;
}

.jj-page-hajimete-about-reality-card-items li {
    font-size: 14px;
    line-height: 1.75;
    color: var(--hajimete-text);
    margin-bottom: 6px;
}

.jj-page-hajimete-about-reality-card-close {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--hajimete-text);
}

.jj-page-hajimete-about-reality-card p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--hajimete-text);
    margin: 0;
}

/* S06-4 サポート + 詳細リンク */
.jj-page-hajimete-about-support {
    padding: 24px 28px;
    background: var(--hajimete-bg-alt);
    border-radius: var(--jj-radius-md, 12px);
}

.jj-page-hajimete-about-support p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--hajimete-text);
    margin: 0 0 12px;
}

.jj-page-hajimete-about-philosophy {
    font-weight: 500;
    color: var(--hajimete-text) !important;
}

.jj-page-hajimete-about-link {
    margin: 16px 0 0 !important;
    font-size: 15px;
}

.jj-page-hajimete-about-link a {
    color: var(--hajimete-blue);
    text-decoration: none;
    border-bottom: 1px solid var(--hajimete-blue);
    padding-bottom: 2px;
    font-weight: 500;
}

.jj-page-hajimete-about-link a:hover {
    opacity: .75;
}

@media (max-width: 1023.98px) {
    .jj-page-hajimete-about-points-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .jj-page-hajimete-about-reality-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .jj-page-hajimete-about-points-list {
        grid-template-columns: 1fr;
    }
}

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

.jj-page-hajimete-faq-item:last-child {
    margin-bottom: 0;
}

.jj-page-hajimete-faq-q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--hajimete-text);
}

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

.jj-page-hajimete-faq-q-text {
    flex: 1;
    min-width: 0;
}

.jj-page-hajimete-faq-q-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
}

.jj-page-hajimete-faq-q-icon::before,
.jj-page-hajimete-faq-q-icon::after {
    content: "";
    position: absolute;
    background: var(--hajimete-blue);
    transition: transform .2s ease;
}

.jj-page-hajimete-faq-q-icon::before {
    left: 4px;
    right: 4px;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
}

.jj-page-hajimete-faq-q-icon::after {
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
}

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

.jj-page-hajimete-faq-a {
    padding: 0 24px 20px;
}

.jj-page-hajimete-faq-a p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--hajimete-text);
    margin: 0;
}

@media (max-width: 767.98px) {
    .jj-page-hajimete-faq-q {
        padding: 16px 18px;
        font-size: 15px;
    }
    .jj-page-hajimete-faq-a {
        padding: 0 18px 16px;
    }
    .jj-page-hajimete-faq-a p {
        font-size: 14.5px;
    }
}

/* ========================================
   S08 Final CTA
   ======================================== */
.jj-page-hajimete-final-cta-body {
    margin-bottom: 32px;
}

.jj-page-hajimete-final-cta-body p {
    font-size: 16px;
    line-height: 1.95;
    color: var(--hajimete-text);
    margin: 0 0 16px;
}

.jj-page-hajimete-final-cta-body p:last-child {
    margin-bottom: 0;
}

.jj-page-hajimete-final-cta-action {
    text-align: center;
    margin-bottom: 16px;
}

.jj-page-hajimete-final-cta-sublink {
    margin: 0;
    text-align: center;
    font-size: 14px;
}

.jj-page-hajimete-final-cta-sublink a {
    color: var(--hajimete-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color .15s ease;
}

.jj-page-hajimete-final-cta-sublink a:hover {
    border-bottom-color: var(--hajimete-blue);
}

@media (max-width: 767.98px) {
    .jj-page-hajimete-final-cta-body p {
        font-size: 15px;
    }
}
