:root {
    --font-body: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
    --text-ink: #0F172A;
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-ink);
    font-feature-settings: "palt";
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
    letter-spacing: 0;
}

body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* Fallback: custom Tailwind tokens when CDN config is not applied */
.border-line {
    border-color: #DCEAF4;
}

.border-line-strong {
    border-color: #0284C7;
}

.bg-line {
    background-color: #DCEAF4;
}

h1,
h2,
h3,
h4,
h5,
h6,
.text-heading {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-lead {
    font-size: 1.0625em;
    line-height: 1.85;
}

.text-caption {
    font-size: 0.875em;
}

strong,
b {
    font-weight: 700;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.drop-shadow-glow {
    filter: drop-shadow(0 0 16px rgba(2, 132, 199, 0.35));
}

.portal-fab > summary {
    list-style: none;
}

.portal-fab > summary::-webkit-details-marker {
    display: none;
}

.portal-fab > summary:focus-visible .portal-fab__button {
    outline: 3px solid #0284C7;
    outline-offset: 6px;
}

.portal-fab__button {
    position: relative;
    border-color: transparent;
    background:
        linear-gradient(#2B4D66, #2B4D66) padding-box,
        conic-gradient(from 0deg,
            #ff6b6b,
            #ffd93d,
            #6bffb2,
            #6bd6ff,
            #7c6bff,
            #ff6bd6,
            #ff6b6b) border-box;
}

@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes landIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-land-in {
    animation: landIn 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.page-title {
    font-size: clamp(2.25rem, 1.8rem + 2.5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-lead {
    font-size: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
    line-height: 1.8;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background-image: linear-gradient(90deg, #0369A1, #2B4D66);
    box-shadow: 0 10px 15px -3px rgba(43, 77, 102, 0.18), 0 4px 6px -4px rgba(43, 77, 102, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px -10px rgba(43, 77, 102, 0.35);
}

.btn-primary:focus-visible {
    outline: 2px solid #0284C7;
    outline-offset: 2px;
}

.btn-primary--lg {
    height: 3.25rem;
    padding: 0 2rem;
    font-size: 1rem;
}

nav a[aria-current="page"] {
    color: #0369A1;
}

nav a[aria-current="page"] > span.absolute.bottom-0 {
    transform: scaleX(1);
}

nav a[aria-current="page"] > span.absolute.inset-0 {
    opacity: 1;
    transform: scale(1);
}

.nav-more {
    position: relative;
}

.nav-more > summary {
    list-style: none;
}

.nav-more > summary::-webkit-details-marker {
    display: none;
}

.nav-more__panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 252px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(2, 132, 199, 0.55);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 60;
}

.dark .nav-more__panel {
    background: rgba(2, 6, 23, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.nav-more[open] .nav-more__panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-more:hover .nav-more__panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-more__chev {
    transition: transform 0.15s ease;
}

.nav-more[open] .nav-more__chev {
    transform: rotate(180deg);
}

.nav-more:hover .nav-more__chev {
    transform: rotate(180deg);
}

.nav-more--current > summary {
    color: #0369A1;
}

.dark .nav-more--current > summary {
    color: rgba(255, 255, 255, 0.95);
}

.nav-more__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(17, 19, 24, 0.86);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dark .nav-more__link {
    color: rgba(255, 255, 255, 0.88);
}

.nav-more__link:hover {
    background: rgba(3, 105, 161, 0.08);
    color: #0369A1;
}

.dark .nav-more__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-more__link[aria-current="page"] {
    background: rgba(3, 105, 161, 0.12);
    color: #0369A1;
    font-weight: 700;
}

.dark .nav-more__link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.nav-more__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-more__en {
    font-size: 15px;
    line-height: 15px;
    font-weight: 500;
}

.nav-more__jp {
    margin-top: 2px;
    font-size: 11px;
    line-height: 11px;
    font-weight: 500;
    color: rgba(89, 104, 115, 0.95);
}

.dark .nav-more__jp {
    color: rgba(255, 255, 255, 0.6);
}

.nav-more__arrow {
    font-size: 18px;
    line-height: 18px;
    opacity: 0.65;
}

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0;
    align-self: stretch;
    width: 100%;
    color: #ffffff;
    background:
        linear-gradient(90deg,
            rgba(43, 77, 102, 0.6) 0%,
            rgba(43, 77, 102, 0.42) 55%,
            rgba(43, 77, 102, 0.24) 100%),
        url("../image4/soudan.png") center / cover no-repeat;
    background-color: #2B4D66;
}

.cta-band::before,
.cta-band::after {
    content: none;
}

.cta-band__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.cta-band__content {
    max-width: 640px;
}

.cta-band__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.85;
}

.cta-band__title {
    margin-top: 0.5rem;
    font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.cta-band__lead {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.cta-band__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.cta-band__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta-band__btn-primary,
.cta-band__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cta-band__btn-primary {
    background: #ffffff;
    color: #2B4D66;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.cta-band__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.25);
}

.cta-band__btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.cta-band__btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.cta-band__note {
    font-size: 0.75rem;
    opacity: 0.85;
}

@media (min-width: 640px) {
    .cta-band__buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .cta-band__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
