/* ==========================================================================
   common/css/style.css
   基本スタイル、レイアウト、カラー、フォント、静的要素（リファクタリング済み・確定版）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 変数定義 & 基本設定
-------------------------------------------------------------------------- */
:root {
    --primary-blue: #005bab;
    --deep-blue: #1e3a8a;
    --pure-black: #000000;
    --text-regular: #1a1a1a;
    --suk-light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--suk-light-bg);
    color: var(--text-regular);
    margin: 0;
    line-height: 1.7;
}

.reveal-active {
    overflow: visible !important;
}

/* --------------------------------------------------------------------------
   2. ヘッダー & ナビゲーション
-------------------------------------------------------------------------- */
.loginBtn {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.loginBtn:hover {
    color: #ffffff;
    background-color: var(--deep-blue);
    border-color: var(--deep-blue);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.suk-dropdown {
    position: relative;
    display: inline-block;
}

.suk-dropdown-toggle {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    color: var(--text-regular);
    font-weight: 500;
    transition: color 0.15s ease-in-out;
    display: flex;
    align-items: center;
}

.suk-dropdown-toggle:hover {
    color: var(--primary-blue);
}

.suk-dropdown:hover .suk-dropdown-toggle i,
.suk-dropdown:hover .suk-dropdown-toggle svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.suk-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 0.5rem;
    margin: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
}

.suk-dropdown:hover .suk-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suk-dropdown-menu li {
    margin-bottom: 2px;
}

.suk-dropdown-menu li:last-child {
    margin-bottom: 0;
}

.suk-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.suk-dropdown-menu a:hover {
    background-color: #005bab;
    color: #ffffff;
    padding-left: 1.25rem;
}

/* --------------------------------------------------------------------------
   3. ヒーローセクション & タイポグラフィ
-------------------------------------------------------------------------- */
.heroMainVisual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.heroMainVisual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
}

/* ヒーロータイトルの文字スタイル（深みグラデーション & 上品な白影） */
#hero-title .font-reg {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    display: inline-block;
    vertical-align: middle;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#hero-title .font-highlight {
    font-weight: 900;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--primary-blue) 60%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 110%;
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.08em;
    letter-spacing: 0.02em;
    transform: translateY(-0.02em);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.sectionSubTitle {
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary-blue);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* ========================================================
   スクロール追従型 フローティングお仕事情報ボタン (PC / 共通)
======================================================== */
.suk-floating-job-btn {
    position: fixed !important;
    bottom: 28px !important;
    right: 24px !important;
    z-index: 99950 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e40af 0%, #005bab 50%, #06b6d4 100%);
    color: #ffffff !important;
    padding: 8px 14px 8px 10px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 30, 80, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    text-decoration: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.35s;
    pointer-events: none;
}

.suk-floating-job-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.suk-floating-job-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 35px rgba(0, 30, 80, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-job-badge {
    background-color: #0a1836;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.floating-job-title {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.02em;
    font-family: "Noto Sans JP", sans-serif;
    color: #ffffff;
}

.floating-job-action {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: #ffffff;
    color: #005bab;
    padding: 2px 7px;
    border-radius: 12px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
}

.floating-job-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 2px;
}

/* ========================================================
   スマホ対応 (@media max-width: 767px 内に記述)
======================================================== */
@media (max-width: 767px) {
    .suk-floating-job-btn {
        bottom: 20px !important;
        right: 14px !important;
        padding: 7px 12px 7px 8px;
        gap: 6px;
    }

    .floating-job-badge {
        font-size: 9px;
        padding: 1px 6px;
    }

    .floating-job-title {
        font-size: 11px;
    }

    .floating-job-action {
        font-size: 10px;
        padding: 1px 5px;
    }

    .floating-job-icon {
        width: 24px;
        height: 24px;
    }

    .floating-job-icon svg {
        width: 15px;
        height: 15px;
    }
}

/* --------------------------------------------------------------------------
   4. はじめての方へ & サービスバナー
-------------------------------------------------------------------------- */
.suk-custom-banner {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 4px solid var(--primary-blue);
    border-radius: 12px;
    overflow: hidden;
    min-height: 120px;
    position: relative;
    z-index: 1;
}

.banner-accent {
    background: linear-gradient(135deg, #2b5ec4 0%, #27b7c2 100%);
    color: #ffffff;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    transition: all 0.3s ease;
}

.banner-info {
    flex: 1;
    padding: 25px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.banner-info p {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: color 0.4s ease;
}

.banner-link {
    position: absolute;
    bottom: 20px;
    right: 30px;
    color: var(--text-regular);
    font-weight: 700;
    font-size: 0.9rem;
    padding-bottom: 2px;
    transition: all 0.4s ease;
}

.banner-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.4s ease;
}

.suk-custom-banner:hover .banner-link::after {
    width: 100%;
}

.suk-hover-fill {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.suk-hover-fill::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #2b5ec4 0%, #27b7c2 100%);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.suk-hover-fill:hover::before {
    width: 100%;
}

.suk-hover-fill h3 {
    transition: color 0.3s ease;
    color: var(--text-regular);
}

.suk-hover-fill:hover h3 {
    color: #ffffff !important;
}

.icon-bg-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: auto;
    flex-shrink: 0;
}

.icon-bg-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.icon-bg-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 8px;
    z-index: -1;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    opacity: 0;
    visibility: hidden;
}

.suk-hover-fill:hover .icon-bg-wrap::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.icon-bg-wrap .hover-img-buildingOnly {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(-50%, -50%);
    width: 30px !important;
}

.text-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
}

.original-text {
    transition: all 0.5s ease;
    opacity: 1;
    transform: translateX(0);
}

.hover-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-20px);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    width: 100%;
    line-height: 1.4;
}

.suk-hover-fill:hover .original-text {
    opacity: 0;
    transform: translateX(20px);
}

.suk-hover-fill:hover .hover-text {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.original-img {
    transition: all 0.5s ease;
    opacity: 1;
}

.hover-img {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    width: 100%;
    z-index: 2;
}

.suk-hover-fill:hover .original-img {
    opacity: 0;
    transform: translateX(20px);
}

.suk-hover-fill:hover .hover-img {
    opacity: 1 !important;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* --------------------------------------------------------------------------
   5. S・U・Kが選ばれる 3 つの理由（カードスタッキング）
-------------------------------------------------------------------------- */
.reasonSection {
    position: relative;
    background-image: linear-gradient(rgba(248, 250, 252, 0.88), rgba(248, 250, 252, 0.88)), url("/common/img/SUK.webp");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    height: 320vh;
    padding: 0;
    margin: 0;
    overflow: visible !important;
}

.reason-bg-wrap,
.reason-bg-sticky {
    display: none !important;
}

.reason-sticky-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 24px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 5;
}

.reason-title-area {
    flex-shrink: 0;
    text-align: center;
    padding: 10px 0 16px;
    z-index: 20;
    background: transparent;
}

.reason-main-heading {
    font-size: 2rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.reason-title-img {
    position: relative;
    z-index: 1;
    vertical-align: middle;
    width: 36px;
    height: auto;
    margin-bottom: 8px;
}

.reason-cards-wrap {
    flex: 1;
    width: 100%;
    max-width: 1060px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.stack-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
    padding: 10px 24px;
    box-sizing: border-box;
    will-change: transform, opacity;
    pointer-events: none;
}

.stack-item:first-child {
    pointer-events: auto;
}

.stack-card {
    background: #ffffff;
    width: 100%;
    max-width: 980px;
    height: 100%;
    max-height: 480px;
    display: flex;
    align-items: stretch;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 91, 171, 0.12);
    border: 1px solid rgba(0, 91, 171, 0.06);
    position: relative;
    transform-origin: center center;
    pointer-events: auto;
}

.stack-visual {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.stack-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.stack-card:hover .stack-visual img {
    transform: scale(1.05);
}

.stack-content {
    width: 50%;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.stack-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}

.stack-title-main {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    color: #005bab;
}

.stack-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.stack-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: #005bab;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stack-tag::after {
    content: "";
    height: 2px;
    width: 36px;
    background: #005bab;
    display: inline-block;
}

.stack-number {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #005bab 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 91, 171, 0.15));
}

/* --------------------------------------------------------------------------
   6. 登録までの流れ & FAQ & 下部CTA
-------------------------------------------------------------------------- */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.faq-item {
    border-bottom: 1px solid rgba(0, 91, 171, 0.1);
}

.faq-button:hover {
    background: rgba(0, 91, 171, 0.02);
}

.faq-button[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.suk-cta-box {
    font-size: 0.85rem;
}

.suk-cta-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.suk-cta-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   7. モバイル ドロワーメニュー & ハンバーガーボタン
-------------------------------------------------------------------------- */
.hamburger-btn {
    width: 55px;
    height: 80px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    z-index: 100000 !important;
    position: relative;
    outline: none;
    border-left: 1px solid #eee;
}

.hamburger-btn span {
    display: block !important;
    width: 26px !important;
    height: 3px !important;
    background-color: #0a1836 !important;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
    background-color: #005BAB !important;
}

.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0 !important;
}

.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
    background-color: #005BAB !important;
}

.mobile-menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99990 !important;
}

.mobile-menu-overlay.is-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 85% !important;
    max-width: 380px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: #ffffff !important;
    z-index: 99995 !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-menu-drawer.is-active {
    transform: translateX(0) !important;
}

.mobile-menu-drawer .drawer-body {
    padding-bottom: calc(50px + env(safe-area-inset-bottom)) !important;
}

html.drawer-open,
body.drawer-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
}

.drawer-close-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-nav-link {
    display: block;
    padding: 1.1rem 0;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.mobile-nav-link:hover {
    color: #005BAB;
}

.mobile-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background-color: #f8fafc;
    border-radius: 8px;
}

.mobile-sub-menu a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.mobile-sub-menu a:hover {
    color: #005BAB;
}

/* --------------------------------------------------------------------------
   8. 汎用ユーティリティ
-------------------------------------------------------------------------- */
.text-primary-highlight {
    color: #4da3ff;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.fw-black {
    font-weight: 900 !important;
}

.fs-xs {
    font-size: 0.75rem !important;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

/* --------------------------------------------------------------------------
   9. レスポンシブ調整（@media max-width: 1023px & max-width: 767px）
-------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .suk-cta-box {
        font-size: 1rem;
        padding: 2rem !important;
    }

    .suk-cta-title {
        font-size: 2.5rem;
    }

    .suk-cta-icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .suk-cta-icon-wrapper i,
    .suk-cta-icon-wrapper svg {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 1023px) {
    .reasonSection {
        height: auto !important;
        padding: 60px 0 !important;
    }

    .reason-sticky-wrap {
        position: static !important;
        height: auto !important;
        overflow: visible !important;
        padding-top: 0;
        padding-bottom: 0;
    }

    .reason-title-area {
        padding: 0 0 24px;
    }

    .reason-main-heading {
        font-size: 1.5rem;
    }

    .reason-cards-wrap {
        position: static !important;
        height: auto !important;
        overflow: visible !important;
        flex-direction: column;
        gap: 24px;
    }

    .stack-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        opacity: 1 !important;
        margin-bottom: 24px !important;
        padding: 0 16px !important;
        pointer-events: auto !important;
    }

    .stack-card {
        flex-direction: column;
        border-radius: 24px;
        height: auto !important;
        max-height: none !important;
    }

    .stack-visual,
    .stack-content {
        width: 100%;
    }

    .stack-visual {
        height: 220px;
    }

    .stack-content {
        padding: 2rem 1.5rem;
    }

    .stack-title {
        font-size: 1.3rem;
    }

    .stack-title-main {
        font-size: 1.7rem;
    }

    .stack-number {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .suk-custom-banner {
        flex-direction: column;
    }

    .banner-accent {
        min-width: 100%;
        padding: 20px;
        border-radius: 0;
        background-color: var(--primary-blue);
    }

    .banner-info {
        padding: 20px;
        min-height: 160px;
    }

    .banner-info p {
        font-size: 1rem;
        margin-bottom: 40px !important;
    }
}

/* ========================================================
   ★ ローディング画面（PCタイピング風オープニング）
======================================================== */

/* 1. 全画面を覆う白背景 */
#loader {
    position: fixed;
    inset: 0;
    /* top: 0; right: 0; bottom: 0; left: 0; と同じ */
    z-index: 100000;
    /* すべての要素の最前面 */
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 終了時のフェードアウトアニメーション */
    transition: opacity 1.2s cubic-bezier(0.8, 0, 0.2, 1), visibility 1.2s;
    pointer-events: auto;
}

/* 2. 中央の文字エリアコンテナ */
.loader-content {
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

/* 3. タイピングされる文字の基本スタイル（レスポンシブ） */
.copy-style {
    font-size: 1.4rem;
    /* スマホ用サイズ */
    line-height: 1.6;
    letter-spacing: 0.05em;
    display: inline-block;
    white-space: nowrap;
    /* 一行に収める */
}

/* タブレットサイズ（640px以上） */
@media (min-width: 640px) {
    .copy-style {
        font-size: 2rem;
    }
}

/* PCサイズ（768px以上） */
@media (min-width: 768px) {
    .copy-style {
        font-size: 3.2rem;
    }
}

/* 4. 通常文字と強調文字のスタイル */
#loader .font-reg {
    font-weight: 400;
    color: #000000;
}

#loader .font-highlight {
    font-weight: 900;
    color: var(--primary-blue, #005BAB);
}

/* 5. ピコピコ点滅するPC風カーソルバー */
.pc-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--primary-blue, #005BAB);
    margin-left: 4px;
    vertical-align: middle;
    animation: cursorBlink 0.8s step-end infinite;
}

/* カーソルの点滅アニメーション */
@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ========================================================
   ★ アニメーション完了後の表示切り替え（フェードイン）
======================================================== */

/* 初期状態：メインコンテンツを少し下に下げて透明にしておく */
#main-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

/* 修正後 */
.reveal-active #main-content {
    opacity: 1;
    transform: none !important; /* translateY(0) を none に変える */
}

/* 完了時：ローダーを完全に画面から消し去り、背面のクリック・スクロールを許可する */
.reveal-active #loader {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}