/*
 * J-breeze Beginner Guide — service / onboarding layout
 * Uses the Japan service-page design tokens from jp-shopping-liquid.css,
 * but keeps its own guide-first information architecture.
 */

.newbie-guide {
    --newbie-navy: #100466;
    --newbie-blue: #1f5fae;
    --newbie-orange: #f2a23a;
    --newbie-text: #182033;
    --newbie-muted: #687386;
    --newbie-line: #dbe4f1;
    --newbie-soft: #f5f8fc;
    color: var(--newbie-text);
    font-size: 17px;
    line-height: 1.75;
}

.newbie-guide * {
    box-sizing: border-box;
}

.newbie-guide__intro {
    position: relative;
    padding: 58px 0 24px;
    margin-top: -40px;
}

.newbie-guide__breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #7b8799;
    font-size: 13px;
    font-weight: 600;
}

.newbie-guide__breadcrumb a {
    color: #5d6b80;
    text-decoration: none;
}

.newbie-guide__breadcrumb a:hover {
    color: var(--newbie-blue);
}

.newbie-guide__breadcrumb i {
    font-size: 9px;
    opacity: .68;
}

.newbie-guide__hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    gap: 34px;
    overflow: hidden;
    padding: 44px 46px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 215, 120, .16), transparent 25%),
        linear-gradient(135deg, #142258 0%, #263f7a 58%, #4f76a8 100%);
    box-shadow: 0 24px 64px rgba(20, 34, 88, .18);
}

.newbie-guide__hero-panel::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    left: -150px;
    bottom: -220px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.newbie-guide__hero-copy,
.newbie-guide__route-card {
    position: relative;
    z-index: 1;
}

.newbie-guide__hero-copy {
    align-self: center;
    color: #fff;
}

.newbie-guide__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #ffd778;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .09em;
}

.newbie-guide__hero-copy h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.newbie-guide__hero-copy > p {
    max-width: 750px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 18px;
    line-height: 1.8;
}

.newbie-guide__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 26px;
}

.newbie-guide__hero-actions .jp-forwarding__button {
    min-height: 46px;
}

.newbie-guide__hero-actions .jp-forwarding__button:first-child {
    color: var(--newbie-navy);
    background: #fff;
}

.newbie-guide__hero-actions .jp-forwarding__button--secondary {
    color: #fff;
    border-color: rgba(255,255,255,.38);
    background: rgba(255,255,255,.08);
}

.newbie-guide__route-card {
    align-self: center;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.newbie-guide__route-head span {
    display: block;
    color: rgba(255,255,255,.62);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.newbie-guide__route-head strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.45;
}

.newbie-guide__route-list {
    position: relative;
    display: grid;
    gap: 0;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.newbie-guide__route-list::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 18px;
    width: 1px;
    background: rgba(255,255,255,.25);
}

.newbie-guide__route-list li {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    align-items: center;
    gap: 12px;
    min-height: 54px;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    font-weight: 600;
}

.newbie-guide__route-dot {
    position: relative;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: var(--newbie-navy);
    background: #fff;
    font-size: 13px;
}

.newbie-guide__anchor-wrap {
    position: sticky;
    z-index: 20;
    top: 0;
    padding: 10px 0;
    background: rgba(247,250,254,.88);
    border-top: 1px solid rgba(219,228,241,.68);
    border-bottom: 1px solid rgba(219,228,241,.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.newbie-guide__anchorbar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.newbie-guide__anchorbar::-webkit-scrollbar {
    display: none;
}

.newbie-guide__anchor-title,
.newbie-guide__anchorbar a {
    flex: 0 0 auto;
    border-radius: 999px;
}

.newbie-guide__anchor-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 6px;
    color: var(--newbie-navy);
    font-size: 13px;
    font-weight: 700;
}

.newbie-guide__anchorbar a {
    padding: 8px 12px;
    color: #5f6d82;
    background: #fff;
    border: 1px solid #e1e7f0;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.newbie-guide__anchorbar a:hover {
    color: var(--newbie-navy);
    border-color: #cbd7e9;
    background: #f2f6fc;
}

.newbie-guide__section {
    scroll-margin-top: 86px;
}

.newbie-guide__heading h2,
.newbie-guide__content-head h2,
.newbie-guide__warning-copy h2 {
    font-weight: 700 !important;
}

.newbie-guide__compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}

.newbie-guide__compare-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 20px;
    background: rgba(255,255,255,.73);
    box-shadow: 0 18px 48px rgba(31,43,67,.09);
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.newbie-guide__compare-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--newbie-orange);
}

.newbie-guide__compare-card--forward::before {
    background: var(--newbie-blue);
}

.newbie-guide__compare-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.newbie-guide__compare-icon {
    display: grid;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #dc7b1e, #f2a23a);
    font-size: 19px;
}

.newbie-guide__compare-card--forward .newbie-guide__compare-icon {
    background: linear-gradient(135deg, var(--newbie-navy), var(--newbie-blue));
}

.newbie-guide__compare-badge {
    align-self: center;
    padding: 7px 10px;
    border-radius: 999px;
    color: #81521c;
    background: #fff5e8;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.newbie-guide__compare-card--forward .newbie-guide__compare-badge {
    color: #24568f;
    background: #eef5fd;
}

.newbie-guide__compare-card h3,
.newbie-guide__timeline-card h3,
.newbie-guide__check-card h3 {
    margin: 0;
    color: var(--newbie-text);
    font-size: 22px;
    font-weight: 650;
    line-height: 1.4;
}

.newbie-guide__compare-card > p,
.newbie-guide__timeline-card > p,
.newbie-guide__check-card > p {
    color: var(--newbie-muted);
    font-size: 17px;
    line-height: 1.78;
}

.newbie-guide__text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--newbie-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.newbie-guide__text-link:hover {
    color: var(--newbie-blue);
    text-decoration: none;
}

.newbie-guide__text-link i {
    font-size: 11px;
    transition: transform .18s ease;
}

.newbie-guide__text-link:hover i {
    transform: translateX(3px);
}

.newbie-guide__content-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    max-width: 1120px;
    margin: 0 auto;
}

.newbie-guide__side-nav {
    position: sticky;
    top: 82px;
}

.newbie-guide__side-nav-card {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(207,218,234,.88);
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 12px 32px rgba(31,43,67,.06);
}

.newbie-guide__side-nav-card > span {
    padding: 8px 9px 10px;
    color: #8a95a7;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.newbie-guide__side-nav-card a {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr);
    align-items: center;
    gap: 7px;
    padding: 9px;
    border-radius: 10px;
    color: #677489;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.newbie-guide__side-nav-card a:hover,
.newbie-guide__side-nav-card a.is-current {
    color: var(--newbie-navy);
    background: #edf3fb;
}

.newbie-guide__side-nav-card b {
    color: #a0abba;
    font-size: 11px;
    font-weight: 700;
}

.newbie-guide__content-head {
    margin-bottom: 30px;
}

.newbie-guide__content-head h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.25;
    letter-spacing: -.02em;
}

.newbie-guide__content-head p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--newbie-muted);
    font-size: 17px;
    line-height: 1.8;
}

.newbie-guide__timeline {
    position: relative;
    display: grid;
    gap: 0;
}

.newbie-guide__timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 34px;
    left: 24px;
    width: 2px;
    background: linear-gradient(180deg, #8aadd5 0%, #d6e0ee 82%, transparent 100%);
}

.newbie-guide__timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0,1fr);
    gap: 22px;
    padding-bottom: 22px;
}

.newbie-guide__timeline-marker {
    position: relative;
    z-index: 2;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 7px solid #f0f5fb;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--newbie-navy), var(--newbie-blue));
    box-shadow: 0 9px 22px rgba(16,4,102,.14);
}

.newbie-guide__timeline-marker span {
    font-size: 11px;
    font-weight: 750;
}

.newbie-guide__timeline-card {
    padding: 24px 26px;
    border: 1px solid rgba(255,255,255,.83);
    border-radius: 18px;
    background: rgba(255,255,255,.75);
    box-shadow: 0 16px 40px rgba(31,43,67,.07);
    backdrop-filter: blur(12px) saturate(125%);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
}

.newbie-guide__timeline-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.newbie-guide__timeline-icon {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    color: var(--newbie-blue);
    background: #eef5fd;
    font-size: 17px;
}

.newbie-guide__timeline-card small {
    display: block;
    margin-bottom: 3px;
    color: #8995a8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.newbie-guide__timeline-card > p {
    margin: 15px 0 0;
}

.newbie-guide__check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
}

.newbie-guide__check-card {
    position: relative;
    min-height: 100%;
    padding: 26px 26px 24px 74px;
    border: 1px solid #e2e9f2;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 12px 34px rgba(31,43,67,.06);
}

.newbie-guide__check-number {
    position: absolute;
    top: 19px;
    right: 20px;
    color: #d4dce8;
    font-size: 24px;
    font-weight: 700;
}

.newbie-guide__check-icon {
    position: absolute;
    top: 26px;
    left: 24px;
    color: #2b7a55;
    font-size: 24px;
}

.newbie-guide__check-card > p {
    margin: 10px 0 0;
}

.newbie-guide__warning-panel {
    display: grid;
    grid-template-columns: 76px minmax(0,1fr);
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #f1d8b9;
    border-radius: 20px;
    background: linear-gradient(135deg, #fffaf3, #fff7eb);
    box-shadow: 0 16px 38px rgba(127,83,27,.06);
}

.newbie-guide__warning-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 16px;
    color: #a86417;
    background: #ffe8c8;
    font-size: 24px;
}

.newbie-guide__warning-kicker {
    margin-bottom: 5px;
    color: #b2732d;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .05em;
}

.newbie-guide__warning-copy h2 {
    margin: 0;
    font-size: clamp(25px,2.6vw,34px);
    line-height: 1.3;
}

.newbie-guide__warning-copy ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px 24px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.newbie-guide__warning-copy li {
    display: grid;
    grid-template-columns: 18px minmax(0,1fr);
    gap: 10px;
    color: #6d5d49;
    font-size: 16px;
    line-height: 1.65;
}

.newbie-guide__warning-copy li i {
    margin-top: 5px;
    color: #cf7c27;
}

.newbie-guide__help-panel {
    max-width: 1040px;
    margin: 0 auto;
}

.newbie-guide__help-panel p {
    font-size: 17px;
}

@media (max-width: 991px) {
    .newbie-guide__hero-panel {
        grid-template-columns: 1fr;
        padding: 36px;
    }

    .newbie-guide__route-card {
        display: none;
    }

    .newbie-guide__anchor-title {
        display: none;
    }

    .newbie-guide__content-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .newbie-guide__side-nav {
        display: none;
    }

    .newbie-guide__warning-copy ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .newbie-guide {
        font-size: 16px;
    }

    .newbie-guide__intro {
        padding-top: 20px;
    }

    .newbie-guide__hero-panel {
        padding: 28px 24px;
        border-radius: 20px;
    }

    .newbie-guide__hero-copy h1 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .newbie-guide__hero-copy > p {
        font-size: 16px;
    }

    .newbie-guide__hero-actions .jp-forwarding__button {
        width: 100%;
    }

    .newbie-guide__anchor-wrap {
        top: 0;
    }

    .newbie-guide__anchorbar {
        margin: 0 -4px;
    }

    .newbie-guide__compare-grid,
    .newbie-guide__check-grid {
        grid-template-columns: 1fr;
    }

    .newbie-guide__compare-card {
        padding: 25px;
    }

    .newbie-guide__compare-top {
        display: grid;
        grid-template-columns: 50px minmax(0,1fr);
    }

    .newbie-guide__compare-badge {
        border-radius: 10px;
    }

    .newbie-guide__compare-card h3,
    .newbie-guide__timeline-card h3,
    .newbie-guide__check-card h3 {
        font-size: 20px;
    }

    .newbie-guide__compare-card > p,
    .newbie-guide__timeline-card > p,
    .newbie-guide__check-card > p,
    .newbie-guide__help-panel p {
        font-size: 16px;
    }

    .newbie-guide__timeline::before {
        left: 20px;
    }

    .newbie-guide__timeline-item {
        grid-template-columns: 42px minmax(0,1fr);
        gap: 13px;
        padding-bottom: 17px;
    }

    .newbie-guide__timeline-marker {
        width: 42px;
        height: 42px;
        border-width: 6px;
    }

    .newbie-guide__timeline-card {
        padding: 21px 20px;
    }

    .newbie-guide__timeline-card-head {
        align-items: flex-start;
    }

    .newbie-guide__timeline-icon {
        width: 40px;
        height: 40px;
    }

    .newbie-guide__check-card {
        padding: 24px 22px 22px 64px;
    }

    .newbie-guide__warning-panel {
        grid-template-columns: 1fr;
        padding: 26px 24px;
    }

    .newbie-guide__warning-icon {
        width: 54px;
        height: 54px;
    }

    .newbie-guide__warning-copy li {
        font-size: 15px;
    }

    .newbie-guide__help-panel {
        display: grid;
    }
}
