:root {
    --navy: #050b14;
    --navy-2: #071428;
    --blue: #305679;
    --sky: #4a9dcf;
    --orange: #ff7a18;
    --white: #ffffff;
    --muted: #aebbd0;
    --line: rgba(255, 255, 255, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Mulish", Arial, sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 8%, rgba(74, 157, 207, 0.22), transparent 30rem),
        radial-gradient(circle at 88% 26%, rgba(255, 122, 24, 0.12), transparent 28rem),
        linear-gradient(180deg, #050b14 0%, #071428 52%, #050b14 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    min-height: 100vh;
    overflow: hidden;
}

.sub-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px clamp(16px, 5vw, 70px);
    background:
        linear-gradient(180deg, rgba(5, 11, 20, 0.94), rgba(5, 11, 20, 0.68)),
        rgba(5, 11, 20, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.sub-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.sub-brand img {
    width: clamp(158px, 13.2vw, 225px);
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.5));
}

.sub-nav {
    position: absolute;
    left: clamp(16px, 5vw, 70px);
    display: flex;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
}

.sub-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #dceafa;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.sub-nav a:hover,
.sub-nav a.active {
    background: rgba(255, 122, 24, 0.14);
    color: #ffffff;
}

.sub-login {
    position: absolute;
    right: clamp(16px, 5vw, 70px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #092169;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.sub-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0 42px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    gap: 28px;
    align-items: end;
}

.kicker {
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sub-hero h1,
.page-title {
    margin: 0;
    font-size: clamp(36px, 5.5vw, 76px);
    line-height: 0.96;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.sub-hero h1::after,
.page-title::after {
    content: "";
    display: block;
    width: 92px;
    height: 3px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sky), var(--orange));
}

.sub-hero p,
.section-copy {
    color: #cbd8e8;
    line-height: 1.65;
    font-size: 15px;
}

.hero-panel,
.content-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(9, 33, 105, 0.24), rgba(5, 11, 20, 0.82)),
        rgba(255, 255, 255, 0.045);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.hero-panel {
    padding: 20px;
}

.hero-panel::before,
.content-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--sky), var(--orange), transparent);
}

.stat-grid,
.card-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.stat-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 32px;
}

.stat {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.stat strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}

.stat span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-block {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
    color: #ffffff;
}

.content-card {
    padding: 20px;
}

.timeline {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 28px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--sky), var(--orange), rgba(255, 255, 255, 0.08));
}

.timeline-item,
.step-card,
.bank-card,
.contact-card,
.term-card,
.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    padding: 18px;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 24px rgba(255, 122, 24, 0.42);
}

.timeline-item:hover,
.step-card:hover,
.bank-card:hover,
.contact-card:hover,
.term-card:hover,
.faq-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 24, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

.timeline-year,
.step-number {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 122, 24, 0.14);
    border: 1px solid rgba(255, 122, 24, 0.36);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.timeline-item h3,
.step-card h3,
.bank-card h3,
.contact-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
}

.timeline-item p,
.step-card p,
.bank-card p,
.contact-card p,
.term-card li,
.faq-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.tab-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
    min-height: 40px;
    padding: 0 14px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.tab-button.active,
.tab-button:hover {
    border-color: rgba(255, 122, 24, 0.45);
    background: rgba(255, 122, 24, 0.14);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.flow-track {
    position: relative;
    display: grid;
    gap: 14px;
}

.flow-track::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 36px;
    bottom: 36px;
    width: 2px;
    background: linear-gradient(180deg, var(--sky), var(--orange), rgba(255, 255, 255, 0.08));
}

.flow-step {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.035);
    padding: 16px;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.flow-step:hover {
    transform: translateX(5px);
    border-color: rgba(255, 122, 24, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

.flow-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #08111e;
    border: 1px solid rgba(255, 122, 24, 0.38);
    box-shadow: 0 0 28px rgba(255, 122, 24, 0.12);
}

.flow-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.flow-icon i {
    color: var(--orange);
    font-size: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 122, 24, 0.28));
}

.flow-icon::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 1px solid rgba(255, 122, 24, 0.14);
    pointer-events: none;
}

.flow-step h3 {
    margin: 0 0 5px;
    color: #ffffff;
}

.flow-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
}

.flow-step em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.18);
    font-size: 34px;
    font-weight: 900;
}

.terms-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #ffffff;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.faq-item p {
    display: none;
    padding: 0 16px 16px;
}

.faq-item.open p {
    display: block;
}

.bank-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-row strong {
    color: #ffffff;
}

.copy-button,
.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin-top: 14px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #092169;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.map-frame {
    height: 420px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.2) contrast(1.06);
}

.image-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
}

.image-panel img {
    width: 100%;
    display: block;
}

.world-map {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        radial-gradient(circle at 24% 32%, rgba(74, 157, 207, 0.16), transparent 18rem),
        radial-gradient(circle at 68% 46%, rgba(255, 122, 24, 0.08), transparent 22rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        #030812;
}

.world-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.world-svg {
    position: absolute;
    inset: 5% 3%;
    width: 94%;
    height: 86%;
    z-index: 1;
}

.land {
    fill: rgba(255, 255, 255, 0.12);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.1;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.route-line {
    stroke: rgba(74, 157, 207, 0.34);
    stroke-width: 1.1;
    fill: none;
    stroke-dasharray: 4 5;
    animation: routeFlow 7s linear infinite;
}

.route-line:nth-child(odd) {
    stroke: rgba(255, 122, 24, 0.2);
    animation-duration: 9s;
}

@keyframes routeFlow {
    to {
        stroke-dashoffset: -80;
    }
}

.map-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 2;
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: var(--sky);
    box-shadow: 0 0 0 5px rgba(74, 157, 207, 0.14), 0 0 22px rgba(74, 157, 207, 0.7);
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.map-pin.japan {
    width: 14px;
    height: 14px;
    background: var(--orange);
    box-shadow: 0 0 0 6px rgba(255, 122, 24, 0.16), 0 0 28px rgba(255, 122, 24, 0.9);
}

.map-pin.japan::before {
    border-color: rgba(255, 122, 24, 0.42);
}

.map-pin::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(74, 157, 207, 0.3);
    animation: mapPulse 2.2s infinite;
}

.map-pin::after {
    content: attr(data-country);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    white-space: nowrap;
    border: 1px solid rgba(255, 122, 24, 0.36);
    border-radius: 999px;
    background: rgba(5, 11, 20, 0.92);
    color: #ffffff;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 900;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.map-pin:hover,
.map-pin:focus {
    background: var(--orange);
    box-shadow: 0 0 0 5px rgba(255, 122, 24, 0.16), 0 0 24px rgba(255, 122, 24, 0.8);
    outline: none;
}

.map-pin:hover::after,
.map-pin:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes mapPulse {
    0% {
        transform: scale(0.7);
        opacity: 0.65;
    }
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

.map-note {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.page-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
}

.page-table th,
.page-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #dceafa;
    text-align: left;
}

.page-table th {
    color: #ffffff;
    background: rgba(255, 122, 24, 0.12);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-table tr:hover td {
    background: rgba(255, 255, 255, 0.045);
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-row a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
}

.social-row a:hover {
    color: var(--orange);
    border-color: rgba(255, 122, 24, 0.45);
    transform: translateY(-2px);
}

.step-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

@media (max-width: 900px) {
    .sub-nav,
    .sub-login {
        display: none;
    }

    .sub-hero,
    .stat-grid,
    .step-grid,
    .bank-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item,
    .flow-step {
        grid-template-columns: 1fr;
    }

    .flow-track::before {
        left: 28px;
    }

    .flow-step em {
        display: none;
    }

    .sub-header {
        min-height: 82px;
    }

    .section-head {
        display: block;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .world-map {
        min-height: 360px;
    }
}
