:root {
    /* 調整用（必要に応じて+pxを与える） */
    --challenge-extra: 0px;
}

/* ヒーローセクション全幅表示のためのグローバル設定 */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ========================================
   gachiCareer_SITE トップページスタイル
   Nexil風デザイン準拠 - ピクセルパーフェクト版
   ======================================== */

/* CSS変数定義 */
:root {
    /* カラーパレット */
    --c-primary: #0E0F12;
    --c-secondary: #111318;
    --c-accent-blue: #3B82F6;
    --c-accent-gradient: linear-gradient(135deg, #3B82F6, #1D4ED8);
    --c-accent-lime: #A6FF00;
    --c-gray-dark: #1A1C22;
    --c-gray-medium: #2A2D36;
    --c-gray-light: #ECEFF4;
    --c-white: #FFFFFF;
    --c-black: #000000;

    /* スペーシングスケール */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 72px;
    --space-8: 96px;

    /* コンテナ幅 */
    --container-max: 1200px;

    /* フォント */
    --font-jp: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    --font-en: 'Poppins', sans-serif;
    /* レインボーグラデーション（縦英字用） */
    --rainbow-gradient: linear-gradient(180deg,
            #ff5f6d 0%,
            #ffc371 14%,
            #f9f871 28%,
            #64f38c 42%,
            #4facfe 56%,
            #6a5cf8 70%,
            #ff6bd6 84%,
            #ffa3d7 100%);
}

/* 基本リセット */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-jp);
    line-height: 1.6;
    color: var(--c-primary);
    background: var(--c-white);
    /* フッターを最下部に配置するための縦フレックスレイアウト */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* サイト全体のラッパー（#page.site）も縦フレックスレイアウト */
#page.site {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
}

/* メインコンテンツ領域（#content.site-content）を伸縮可能に */
#content.site-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* フッターが隠れないようにoverflowを調整 */
    overflow-x: hidden;
    overflow-y: visible;
}

/* メインコンテンツ内のmain要素も伸縮可能に */
main.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* コンテナ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

/* セクション共通 */
.section {
    padding: var(--space-8) 0;
}

/* メインコンテンツ */
.main {
    padding-top: 80px;
}

/* ========================================
   ヒーローセクション - ピクセルパーフェクト版
   ======================================== */
.hero {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    height: 70vh;
    /* 画面の70%の高さに */
    min-height: 560px;
    /* 小さな画面でもテキストが見切れないよう最低高さ */
    display: flex;
    align-items: center;
    /* 垂直中央揃えを維持 */
    overflow: hidden;
    padding-top: clamp(16px, 3vh, 40px);
    padding-bottom: clamp(16px, 3vh, 40px);
}

/* モバイルでは可読性を維持しつつ高さを確保 */
@media (max-width: 640px) {
    .hero {
        height: 78vh;
        min-height: 640px;
        align-items: center;
    }
}

/* 背景（無画像：白基調 + 同心円 + ドット） */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg-grad {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%,
            #ffffff 0% 14%,
            #f4f6f8 14% 48%,
            #eef2f5 48% 84%,
            #e6eaee 84% 100%);
}

.bg-rings {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(235, 238, 242, .22) 24%, transparent 24%),
        radial-gradient(circle at center, rgba(230, 234, 239, .18) 48%, transparent 48%),
        radial-gradient(circle at center, rgba(225, 230, 236, .14) 72%, transparent 72%),
        radial-gradient(circle at center, rgba(220, 226, 233, .10) 92%, transparent 92%);
    mix-blend-mode: multiply;
    opacity: .9;
}

.bg-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bg-dots .dot {
    position: absolute;
    border-radius: 50%;
    will-change: transform, opacity;
}

/* HEROオーバーレイは無し（白基調を維持） */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* コンテンツ */
.hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(120px, 160px) 1fr auto;
    align-items: end;
    gap: clamp(16px, 3vw, 40px);
    /* 左下に寄せる: 下余白を増やし、左はそのまま */
    padding: clamp(16px, 4vw, 40px) 16px 110px;
}

/* 左カラム：縦書きテキスト */
.hero__side-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: var(--font-jp);
    font-size: 15px;
    font-weight: 700;
    color: var(--c-white);
    letter-spacing: .15em;
    line-height: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    align-self: flex-start;
    margin-top: clamp(20px, 4vw, 40px);
}

/* 中央カラム：メインコンテンツ */
.hero__main {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 24px);
    max-width: 600px;
    /* わずかに左へオフセット */
    margin-left: clamp(-16px, -2vw, -24px);
}

.hero__title {
    font-family: "Poppins", var(--font-jp);
    font-weight: 900;
    font-size: clamp(60px, 12vw, 140px);
    line-height: 0.9;
    color: #000000;
    text-shadow: none;
    margin: 0;
    position: relative;
    z-index: 2;
}

.hero__lead {
    font-family: var(--font-jp);
    font-weight: 600;
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.6;
    color: #333333;
    text-shadow: none;
    max-width: 480px;
    margin-top: 1rem;
}

/* 右カラム：SNSリンク */
.hero__sns {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    align-self: flex-start;
    margin-top: clamp(20px, 4vw, 40px);
}

.hero__sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero__sns-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero__sns-youtube {
    background: rgba(255, 0, 0, 0.9);
}

.hero__sns-instagram {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.9), rgba(230, 104, 60, 0.9), rgba(220, 39, 67, 0.9), rgba(204, 35, 102, 0.9), rgba(188, 24, 136, 0.9));
}

.hero__sns-wantedly {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__sns-icon {
    font-family: var(--font-jp);
    font-size: 11px;
    font-weight: 600;
    color: var(--c-white);
    text-align: center;
    line-height: 1;
}

.hero__sns-wantedly .hero__sns-icon {
    color: var(--c-black);
}

/* ========================================
   PICK UPセクション
   ======================================== */
.pickup {
    background: var(--c-white);
    padding: var(--space-8) 0;
}

.pickup__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.pickup__title {
    font-size: 32px;
    font-weight: 900;
    color: var(--c-primary);
}

.pickup__arrows {
    display: flex;
    gap: var(--space-2);
}

.arrow {
    color: var(--c-accent-lime);
    font-size: 20px;
    font-weight: 700;
}

.pickup__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pickup-card {
    background: var(--c-white);
    border-radius: 16px;
    padding: var(--space-4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pickup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pickup-card__thumb {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--space-3);
    flex-shrink: 0;
}

.pickup-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pickup-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

.pickup-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: var(--space-1);
    line-height: 1.4;
}

.pickup-card__category {
    font-size: 14px;
    color: var(--c-accent-blue);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.pickup-card__text {
    font-size: 14px;
    color: var(--c-gray-medium);
    line-height: 1.6;
}

/* ========================================
   挑戦フィールドセクション
   ======================================== */
.challenge {
    position: relative;
    overflow: hidden;
    background: var(--c-primary);
    color: var(--c-white);
    /* セクション余白（上下一括） */
    padding: clamp(80px, 14vh, 160px) 0;
    min-height: 80vh;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
}

.challenge__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    z-index: 1;
}

.challenge__background img {
    display: block;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) contrast(1.08) saturate(1.02);
}

.challenge__background video {
    display: block;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) contrast(1.08) saturate(1.02);
}

.challenge__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 2;
}

.challenge__overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 3;
}

.challenge__content {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    height: 800px;
}

/* challenge コンテナ幅・左右余白 */
.challenge .container {
    max-width: 1322px;
    padding-left: clamp(16px, 6vw, 80px);
    padding-right: clamp(16px, 6vw, 80px);
}

.challenge__left {
    text-align: left;
}

.challenge__title-wrap {
    position: relative;
    display: inline-block;
    padding-right: 0.6em;
    /* バッジの余白 */
}

.challenge__badge-vertical {
    position: absolute;
    top: 0.0em;
    /* 「挑戦」の先頭付近に揃える */
    right: -0.15em;
    /* すぐ右側に寄せる */
    left: auto;
    transform: none;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: clamp(14px, 1.8vw, 24px);
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1;
    color: var(--c-white);
    z-index: 5;
}

.challenge__title-vertical {
    font-size: clamp(40px, 8vw, 96px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 clamp(8px, 1.5vw, 16px);
    /* 見出し下余白を最小限に */
    opacity: 1;
    transform: none;
    /* 横書き2行 */
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

/* 行ごとのサイズを画像に合わせて調整（元のサイズ感） */
.challenge__title-vertical .challenge__title-line {
    font-size: clamp(40px, 8vw, 96px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    /* スクロール時のドロップイン初期状態 */
    transform: translateY(-24px);
    opacity: 0;
}

.challenge__title-line {
    display: block;
    /* 1行ずつ */
    white-space: nowrap;
    /* 行内で折り返さない（2行固定） */
    overflow-wrap: normal;
    word-break: keep-all;
    margin-left: 0;
}

/* スクロールでタイトル行をドロップイン（純CSSで制御） */
.challenge__title-vertical.is-in .challenge__title-line {
    animation: ch-drop-in .7s cubic-bezier(.2, .7, .2, 1) forwards;
}

.challenge__title-vertical.is-in .challenge__title-line:nth-child(2) {
    animation-delay: .08s;
}

@keyframes ch-drop-in {
    from {
        transform: translateY(-24px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.challenge__subtitle {
    font-family: var(--font-en);
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--c-accent-blue);
    opacity: 0;
    transform: translateY(20px);
}

.challenge__right {
    text-align: left;
    width: 100%;
    max-width: 800px;
}

.challenge__text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color: #ffffff;
    letter-spacing: 0.03em;
    text-align: center;
    text-indent: 1em;
    margin-bottom: 24px;
    max-width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.vision__text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.8;
    color: #ffffff;
    letter-spacing: 0.03em;
    text-align: left;
    text-indent: 0;
    margin-bottom: 60px;
    max-width: 100%;
    opacity: 0;
    transform: translateY(20px);
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

/* ===== 共通ボタンアニメーション（.btn-sweep） ===== */
.btn-sweep {
    background-color: #1478FF !important;
    border: none !important;
    border-radius: 9999px !important;
    min-height: 48px !important;
    padding: 12px 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: transparent !important;
}

/* ===== ボタンサイズユーティリティクラス ===== */
.btn-size--third {
    /* Gridでの横伸びを阻止 */
    justify-self: start !important;
    align-self: center;

    /* 100%系指定の上書き */
    width: auto !important;
    max-width: none !important;

    /* 目標=親幅の約1/3。最小200px/最大360pxで破綻防止 */
    inline-size: clamp(200px, 33%, 360px) !important;

    /* テキスト左右の余白は中サイズ */
    padding-inline: 24px !important;
    box-sizing: border-box;
    text-align: center;

    /* 左寄せ */
    margin-left: 0;
    margin-right: 0;

    /* 既存displayを統一 */
    display: inline-flex !important;

    /* 伸び防止 */
    flex: 0 0 auto !important;

    /* 古いブラウザ対策 */
    max-inline-size: 360px !important;
    min-inline-size: 200px !important;
}

/* 代表メッセージボタンの位置指定 */
.challenge .btn-sweep {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px);
    position: absolute;
    top: 31%;
}

.btn-sweep::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #FFFFFF;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.5s ease-in-out;
    z-index: 0;
}

.btn-sweep__label {
    position: relative !important;
    z-index: 1 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    transition: color 0.5s ease-in-out !important;
    font-size: 16px !important;
}

/* ホバー・フォーカス時 */
.btn-sweep:hover::before,
.btn-sweep:focus-visible::before {
    transform: scaleX(1);
}

.btn-sweep:hover .btn-sweep__label,
.btn-sweep:focus-visible .btn-sweep__label {
    color: #000000 !important;
}

.btn-sweep:hover,
.btn-sweep:focus-visible {
    border: 2px solid #000000 !important;
}

/* フォーカスリング */
.btn-sweep:focus-visible {
    box-shadow: 0 0 0 3px rgba(20, 120, 255, 0.35);
    outline: none;
}

/* .manifesto__btn の重複スタイルを削除 */

/* .recruit-hero__cta の重複スタイルを削除 */



/* ========================================
   マニフェストセクション
   ======================================== */
.manifesto {
    background: var(--c-white);
    padding: clamp(70px, 12vh, 100px) 0 clamp(60px, 10vh, 120px);
}

.manifesto__content {
    display: grid;
    grid-template-columns: 1.15fr 0.65fr;
    column-gap: clamp(48px, 8vw, 100px);
    align-items: center;
}

.manifesto .container {
    max-width: 1200px;
    padding-left: clamp(16px, 6vw, 80px);
    padding-right: clamp(16px, 6vw, 80px);
}

.manifesto__left {
    padding-right: clamp(24px, 3vw, 48px);
}

.manifesto__title {
    font-weight: 900;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.manifesto__title.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.manifesto__title-line {
    display: block;
    color: var(--c-primary);
}

.manifesto__title-line:nth-child(1) {
    font-size: clamp(16px, 2.2vw, 28px);
    letter-spacing: 0.02em;
    margin-bottom: clamp(8px, 1vw, 12px);
}

.manifesto__title-line:nth-child(2) {
    font-size: clamp(50px, 7.6vw, 112px);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.manifesto__title-line:nth-child(3) {
    font-size: clamp(50px, 7.6vw, 112px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-top: clamp(6px, 0.8vw, 10px);
    margin-bottom: clamp(20px, 3vw, 40px);
    /* 「ろ。」だけが次行に落ちないよう強制的に一行表示 */
    white-space: nowrap;
    display: inline-block;
}

.manifesto__text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.8;
    color: #333;
    letter-spacing: 0.03em;
    text-align: center;
    text-indent: 1em;
    margin-bottom: 50px;
    margin-top: clamp(12px, 2vw, 20px);
    max-width: 950px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.manifesto__text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* .manifesto__btn の既存スタイルを削除して .btn-sweep に統一 */

/* 右側：虹の縦文字 */
.manifesto__rainbow-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-en);
    font-size: clamp(40px, 10vw, 75px);
    font-weight: 900;
    line-height: 0.9;
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: right;
    white-space: nowrap;
    padding-right: clamp(8px, 3.5vw, 40px);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.manifesto__rainbow-text.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.manifesto__right {
    display: flex;
    justify-content: flex-end;
}

/* ========================================
   特徴・統計セクション（トップページ専用）
   ======================================== */
.index-feature {
    background: var(--c-gray-light);
    padding: var(--space-8) 0;
}

.index-feature__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.index-feature__image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(-30px);
}

.index-feature__image img {
    width: 100%;
    height: auto;
    display: block;
}

.index-feature__card {
    background: var(--c-accent-blue);
    color: var(--c-white);
    padding: var(--space-6);
    border-radius: 24px;
    position: relative;
    box-shadow: 0 8px 30px rgba(80, 167, 249, 0.2);
    opacity: 0;
    transform: translateX(30px);
}

/* 事業別カラー */
.index-feature:nth-of-type(1) .index-feature__card {
    background: var(--c-accent-blue);
    box-shadow: 0 8px 30px rgba(59, 130, 246, .22);
}

.index-feature:nth-of-type(2) .index-feature__card {
    background: #22c55e;
    box-shadow: 0 8px 30px rgba(34, 197, 94, .22);
}

.index-feature:nth-of-type(3) .index-feature__card {
    background: #f59e0b;
    box-shadow: 0 8px 30px rgba(245, 158, 11, .22);
}

.index-feature__card-number {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.2;
}

.index-feature__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.index-feature__card-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.index-feature__card-buttons {
    display: flex;
    gap: var(--space-3);
}

.index-feature__card-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.index-feature__card-btn:first-child {
    background: var(--c-white);
    color: var(--c-accent-blue);
}

.index-feature__card-btn--outline {
    background: transparent;
    color: var(--c-white);
    border: 2px solid var(--c-white);
}

.index-feature__card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ハイライトセクション
   ======================================== */
/* .highlight の背景色は style.css で定義されているため、ここでは削除 */
/* .highlight {
    background: var(--c-white);
    padding: var(--space-8) 0;
    position: relative;
} */

/* .highlight__bg は style.css で定義されているため、ここでは削除 */
/* .highlight__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--c-accent-lime) 0%, transparent 50%, var(--c-accent-lime) 100%);
    opacity: 0.05;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
} */

.highlight__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.highlight__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
}

.highlight__item:nth-child(even) {
    direction: rtl;
}

.highlight__item:nth-child(even) .highlight__item-content {
    direction: ltr;
}

.highlight__item-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.highlight__item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.highlight__item-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--c-primary);
}

.highlight__item-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--c-gray-medium);
    font-weight: 500;
}

/* ========================================
   実績・ギャラリーセクション
   ======================================== */
.works {
    background: var(--c-gray-light);
    padding: var(--space-8) 0;
}

.works__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--space-8);
    color: var(--c-primary);
    opacity: 0;
    transform: translateY(30px);
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.work-card {
    background: var(--c-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.work-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 3D回転の見た目を損なわないよう、ホバー時の2Dトランスフォームは内側要素に限定 */
.card.work-card:hover {
    transform: none;
}

.work-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-card:hover .work-card__image img {
    transform: scale(1.1);
}

.work-card__overlay {
    padding: var(--space-4);
    background: var(--c-white);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.work-card:hover .work-card__overlay {
    transform: translateY(-4px);
}

.work-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: var(--space-2);
}

.work-card__description {
    font-size: 0.9rem;
    color: var(--c-gray-medium);
    line-height: 1.5;
}

/* === Flip card animation for works === */
.card {
    perspective: 1000px;
    -webkit-perspective: 1000px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* 既存の高さレイアウトを保つため、カード内側を絶対配置にせず、
   もとのコンテンツ高さ分を確保する */
.work-card.card {
    min-height: 360px;
    position: relative;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.8s;
    will-change: transform;
    transform: translateZ(0);
}

.card:hover .card-inner,
.card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
    /* 24pxに変更 */
    background-color: #FFFFFF;
    /* 白背景に変更 */
    color: #000000;
    /* 黒文字に変更 */
    text-align: left;
    /* 左寄せに変更 */
    line-height: 1.6;
    /* 行間を調整 */
    font-size: 15px;
    /* フォントサイズを調整 */
    position: relative;
    /* 疑似要素の基準点 */
}

.card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    /* 薄く表示 */
    z-index: -1;
    /* テキストの後ろに配置 */
    border-radius: inherit;
}

/* 各カードの背景画像を個別に設定 */
.card-back[data-bg-image*="logisteed"]::before {
    background-image: url('https://metafind.jp/wp-content/uploads/2024/01/logisteed-img01-1.jpg');
}

.card-back[data-bg-image*="infomart"]::before {
    background-image: url('https://www.infomart.co.jp/case/uploads/0014_main.jpg');
}

.card-back[data-bg-image*="members"]::before {
    background-image: url('https://www.members.co.jp/hubfs/results/images/case53_ogp.jpg');
}

/* works: AdobeStock 520122332 を data-bg-image で薄く表示（裏面） */
.card-back[data-bg-image*="t4.ftcdn.net/jpg/05/20/12/23/360_F_520122332"]::before {
    background-image: url('https://t4.ftcdn.net/jpg/05/20/12/23/360_F_520122332_AXs4Act9SujH0KIme1SJ07IZZB9uJg7f.jpg');
}

/* works: photo-ac 4c9a0d... を data-bg-image で薄く表示（裏面） */
.card-back[data-bg-image*="thumb.photo-ac.com/4c/4c9a0dbae0f4057a1b1ccc358917d93a_t"]::before {
    background-image: url('https://thumb.photo-ac.com/4c/4c9a0dbae0f4057a1b1ccc358917d93a_t.jpeg');
}

/* works: photo-ac 4831484a... を data-bg-image で薄く表示（裏面） */
.card-back[data-bg-image*="thumb.photo-ac.com/48/4831484a5c36b4c2ae74c34175220893_t"]::before {
    background-image: url('https://thumb.photo-ac.com/48/4831484a5c36b4c2ae74c34175220893_t.jpeg');
}

.work-card__btn.btn {
    display: none !important;
}

/* ========================================
   採用・ギャラリーセクション
   ======================================== */
.recruitment {
    background: var(--c-white);
    padding: var(--space-8) 0;
}

.recruitment__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.recruitment__gallery {
    opacity: 0;
    transform: translateX(-30px);
}

.recruitment__gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.recruitment__gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recruitment__gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.recruitment__right {
    text-align: left;
}

.recruitment__title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--space-6);
    color: var(--c-primary);
    opacity: 0;
    transform: translateY(30px);
}

.recruitment__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--c-gray-medium);
    margin-bottom: var(--space-6);
    opacity: 0;
    transform: translateY(20px);
}

.recruitment__btn {
    display: inline-block;
    background: var(--c-accent-lime);
    color: var(--c-primary);
    padding: var(--space-4) var(--space-8);
    border-radius: 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.recruitment__btn:hover {
    background: var(--c-accent-teal);
    color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 255, 0, 0.4);
}


/* ========== Biz section – 新仕様実装 ========== */

@layer biz {

    /* セクション全体 */
    #business.biz-section {
        background: #F7F9FC;
        padding-top: 96px;
        padding-bottom: 120px;
        position: relative;
        height: calc(100vh * 3);
        overflow: clip;
    }

    /* 固定表示領域（ここでスクロール中にピン止め） */
    #business .biz-sticky {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }

    /* 横トラック（3枚横並び） */
    #business .biz-track {
        position: relative;
        display: flex;
        width: 300vw;
        height: 100%;
        will-change: transform;
        transform: translateX(0);
    }

    /* スライドのベース */
    #business .biz-slide {
        position: relative;
        flex: 0 0 100vw;
        width: 100vw;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 24px;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* 背景画像カード */
    #business .biz-bg {
        width: 100%;
        aspect-ratio: 16/7;
        height: auto;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 18px 40px rgba(23, 32, 71, 0.18);
        background: #E9EEF7;
        position: relative;
        z-index: 1;
    }

    #business .biz-bg img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 45%;
        display: block;
    }

    /* 青い情報カード */
    #business .biz-card {
        position: relative;
        z-index: 2;
        width: 76%;
        margin-left: 24px;
        margin-top: -180px;
        border-radius: 20px;
        background: #2F6BF5;
        color: #FFFFFF;
        box-shadow: 0 22px 50px rgba(34, 76, 207, 0.35);
        padding: 48px 56px;
        display: grid;
        grid-template-columns: 1fr auto;
        row-gap: 20px;
    }

    /* カード内の要素 */
    #business .biz-card__content {
        width: 100%;
        margin: 0;
    }

    #business .biz-card__title {
        font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
        font-weight: 700;
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        margin: 0;
    }

    #business .biz-card__desc {
        font-size: 16px;
        line-height: 1.9;
        letter-spacing: 0.02em;
        opacity: 0.98;
        margin: 0;
    }

    #business .biz-card__actions {
        display: flex;
        gap: 20px;
        margin-top: 12px;
        flex-wrap: nowrap;
    }

    #business .biz-card__no {
        font-weight: 800;
        font-size: 56px;
        line-height: 1;
        color: rgba(255, 255, 255, 0.95);
        margin: 0;
        align-self: start;
        justify-self: end;
    }

    /* ボタンスタイル（#business内のみ上書き） */
    #business .btn {
        height: 52px;
        padding: 0 24px;
        border-radius: 9999px;
        font-weight: 700;
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        white-space: nowrap;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: 2px solid transparent;
    }

    #business .btn--white {
        background: #FFFFFF;
        color: #2F6BF5;
        box-shadow: inset 0 6px 18px rgba(255, 255, 255, 0.35), 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    #business .btn--outline-white {
        background: #2F6BF5;
        color: #FFFFFF;
        border: 2px solid rgba(255, 255, 255, 0.85);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    #business .btn:hover {
        transform: translateY(-1px);
        box-shadow: inset 0 6px 18px rgba(255, 255, 255, 0.35), 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    #business .btn--outline-white:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    #business .btn:active {
        transform: translateY(0);
    }

    #business .btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
    }

    /* アニメーション（入場時の質感） */
    #business .biz-slide .biz-bg,
    #business .biz-slide .biz-card,
    #business .biz-slide .biz-card__content,
    #business .biz-slide .biz-card__no {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    #business .biz-slide .biz-card {
        transition-delay: 80ms;
    }

    #business .biz-slide .biz-card__content,
    #business .biz-slide .biz-card__no {
        transition-delay: 160ms;
    }

    #business .biz-slide.visible .biz-bg,
    #business .biz-slide.visible .biz-card,
    #business .biz-slide.visible .biz-card__content,
    #business .biz-slide.visible .biz-card__no {
        opacity: 1;
        transform: translateY(0);
    }

    /* レスポンシブ調整 */
    @media (max-width: 1024px) {
        #business .biz-card {
            width: 84%;
            margin-top: -160px;
            padding: 40px;
        }

        #business .biz-card__title {
            font-size: 28px;
        }

        #business .biz-card__no {
            font-size: 50px;
        }
    }

    @media (max-width: 768px) {
        #business .biz-bg {
            aspect-ratio: 16/9;
        }

        #business .biz-card {
            position: relative;
            width: calc(100% - 32px);
            margin-left: 16px;
            margin-top: -120px;
            padding: 28px;
            display: block;
        }

        #business .biz-card__no {
            position: relative;
            display: inline-block;
            font-size: 38px;
            margin-bottom: 12px;
        }

        #business .biz-card__actions {
            flex-wrap: wrap;
            gap: 12px;
        }
    }

    @media (max-width: 480px) {
        #business.biz-section {
            padding-top: 64px;
            padding-bottom: 88px;
        }

        #business .biz-card__title {
            font-size: 24px;
        }

        #business .biz-card__desc {
            font-size: 15px;
        }

        #business .btn {
            height: 48px;
            padding: 0 18px;
        }
    }
}

@layer biz {

    /* セクション余白 */
    #business.biz-section {
        background: #F7F9FC;
        padding: 96px 0 120px;
    }

    /* 横並びの視認性を上げるガター（既存のgapが無い場合のみ有効） */
    #business .biz-track {
        display: flex;
        column-gap: 80px;
    }

    /* スライドの基準幅とセンタリング（横トラック内の1枚の幅を揃える） */
    #business .biz-slide {
        position: relative;
        width: 1200px;
        /* 参考画像の見え方に合わせる */
        padding: 0 24px;
        /* 内側ガター */
        flex: 0 0 auto;
        /* 横並び時に縮まない */
    }

    /* 背景画像カード */
    #business .biz-bg {
        position: relative;
        z-index: 1;
        width: 100%;
        height: clamp(420px, 42vw, 560px);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 18px 40px rgba(23, 32, 71, 0.18);
        background: #E9EEF7;
    }

    #business .biz-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 45%;
        display: block;
    }

    /* 青い情報カード：幅・位置・影・角丸を確定 */
    #business .biz-card {
        position: absolute;
        z-index: 2;
        left: 24px;
        /* 画像左端+24px */
        bottom: -180px;
        /* 画像に半分かかる深さ */
        width: 76%;
        background: #2F6BF5;
        color: #fff;
        border-radius: 20px;
        box-shadow: 0 22px 50px rgba(34, 76, 207, 0.35);
        padding: 48px 56px;
        display: grid;
        grid-template-columns: 1fr auto;
        row-gap: 20px;
    }

    /* カード内のタイポ・余白 */
    #business .biz-card__content {
        max-width: 760px;
    }

    #business .biz-card__title {
        margin: 0;
        font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
        font-weight: 700;
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: 0.02em;
    }

    #business .biz-card__desc {
        grid-column: 1/3;
        margin: 0;
        font-size: 16px;
        line-height: 1.9;
        letter-spacing: 0.02em;
        opacity: 0.98;
    }

    #business .biz-card__actions {
        grid-column: 1/3;
        display: flex;
        gap: 20px;
        margin-top: 12px;
    }

    #business .biz-card__no {
        margin: 0;
        align-self: start;
        justify-self: end;
        font-weight: 800;
        font-size: 56px;
        line-height: 1;
        color: rgba(255, 255, 255, .95);
    }

    /* ボタン（セクション内限定） */
    #business .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 52px;
        padding: 0 24px;
        border-radius: 9999px;
        font-weight: 700;
        font-size: 16px;
        text-decoration: none;
        transition: transform .2s ease, box-shadow .2s ease;
    }

    #business .btn--white {
        background: #fff;
        color: #2F6BF5;
        border: 2px solid transparent;
        box-shadow: 0 6px 18px rgba(255, 255, 255, .35) inset, 0 6px 20px rgba(0, 0, 0, .12);
    }

    #business .btn--outline-white {
        background: #2F6BF5;
        color: #fff;
        border: 2px solid rgba(255, 255, 255, .85);
        box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    }

    #business .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, .15);
    }

    #business .btn:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .6);
    }

    /* レスポンシブ */
    @media (max-width: 1280px) {
        #business .biz-slide {
            width: 1000px;
        }
    }

    @media (max-width: 1024px) {
        #business .biz-slide {
            width: 880px;
        }

        #business .biz-card {
            width: 84%;
            bottom: -160px;
            padding: 40px;
        }

        #business .biz-card__title {
            font-size: 28px;
        }

        #business .biz-card__no {
            font-size: 50px;
        }
    }

    @media (max-width: 768px) {
        #business .biz-slide {
            width: 680px;
        }

        #business .biz-bg {
            height: clamp(320px, 50vw, 420px);
        }

        #business .biz-card {
            position: relative;
            left: 0;
            bottom: auto;
            width: calc(100% - 32px);
            margin: -120px auto 0;
            padding: 28px;
            grid-template-columns: 1fr;
        }

        #business .biz-card__no {
            order: -1;
            font-size: 38px;
            margin-bottom: 12px;
        }

        #business .biz-card__actions {
            flex-wrap: wrap;
            gap: 12px;
        }
    }

    @media (max-width: 480px) {
        #business.biz-section {
            padding: 64px 0 88px;
        }

        #business .biz-slide {
            width: 360px;
        }

        #business .biz-card__title {
            font-size: 24px;
        }

        #business .biz-card__desc {
            font-size: 15px;
        }

        #business .btn {
            height: 48px;
            padding: 0 18px;
        }
    }
}

/* ビジネスセクション関連CSS削除済み - 新しいカード形式に置き換え */

/* Service／事業内容セクション（強制適用） */
section.service {
    padding: 80px 0 !important;
    display: block !important;
    background: transparent !important;
}

@media (min-width: 768px) {
    section.service {
        padding: 96px 0 !important;
    }
}

section.service .container {
    margin: 0 auto !important;
    padding: 0 24px !important;
    max-width: 1200px !important;
    display: block !important;
}

@media (min-width: 768px) {
    section.service .container {
        padding: 0 32px !important;
    }
}

section.service header {
    text-align: center !important;
    margin-bottom: 40px !important;
    display: block !important;
}

@media (min-width: 768px) {
    section.service header {
        margin-bottom: 56px !important;
    }
}

section.service .en {
    font-size: 56px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    display: block !important;
}

@media (min-width: 768px) {
    section.service .en {
        font-size: 40px !important;
    }
}

section.service .jp {
    font-size: 22px !important;
    margin-top: 8px !important;
    font-weight: 500 !important;
    display: block !important;
}

@media (min-width: 768px) {
    section.service .jp {
        font-size: 24px !important;
    }
}

section.service .grid {
    display: grid !important;
    gap: 32px !important;
    grid-template-columns: 1fr !important;
}

@media (min-width: 640px) {
    section.service .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important;
    }
}

@media (min-width: 1024px) {
    section.service .grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

section.service .card {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
    transition: all 200ms ease !important;
    display: block !important;
}

section.service .card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.18) !important;
}

section.service .card-media {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

section.service .card-media::before {
    content: "" !important;
    display: block !important;
    padding-top: 75% !important;
}

section.service .card-media img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

section.service .card-body {
    padding: 20px 24px !important;
    display: block !important;
}

section.service .card-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

@media (min-width: 768px) {
    section.service .card-title {
        font-size: 24px !important;
    }
}

section.service .card-desc {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #374151 !important;
    min-height: 4.5em !important;
    display: block !important;
}

@media (min-width: 768px) {
    section.service .card-desc {
        font-size: 15px !important;
    }
}

/* ▼ 三角背景を入れたいセクション */
section.manifesto {
    position: relative;
    /* 擬似要素を敷くために必要 */
    isolation: isolate;
    /* 背景ブレンドの影響を閉じ込める（任意） */
    /* 既存の背景色はそのまま。ここは触らない */
}

/* グラデーションシフト（色変化）アニメーション定義 */
@keyframes gradientShift1 {
    0% {
        background: rgba(59, 130, 246, 0.12);
    }

    50% {
        background: rgba(251, 191, 36, 0.12);
    }

    100% {
        background: rgba(59, 130, 246, 0.12);
    }
}

@keyframes gradientShift2 {
    0% {
        background: rgba(139, 92, 246, 0.10);
    }

    50% {
        background: rgba(34, 197, 94, 0.10);
    }

    100% {
        background: rgba(139, 92, 246, 0.10);
    }
}

/* 大きめの薄い三角（右側に立つイメージ） */
section.manifesto::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* 薄いグレー。デザインに合わせて調整（#000の8%相当） */
    background: rgba(0, 0, 0, 0.06);
    /* 右上から右下に向けた大きな三角 */
    clip-path: polygon(70% 0%, 100% 0%, 100% 100%);
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.5s ease-out;
}

/* 2枚目の斜め三角で奥行きを出す（少し薄く） */
section.manifesto::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: rgba(0, 0, 0, 0.04);
    /* 1枚目より内側・角度を少し変える */
    clip-path: polygon(55% 0%, 80% 0%, 62% 100%);
    opacity: 0;
    transform: translateX(30px);
    transition: all 1.5s ease-out 0.2s;
}

/* 三角デザインのアクティブ状態 */
section.manifesto.is-inview::before,
section.manifesto.is-inview::after {
    opacity: 1;
    transform: translateX(0);
}

/* グラデーションシフトアニメーション適用 */
section.manifesto.is-inview::before {
    animation: gradientShift1 10s ease-in-out infinite;
}

section.manifesto.is-inview::after {
    animation: gradientShift2 10s ease-in-out infinite 1.5s;
}

/* コンテンツは背景の上に来るように z-index 指定（必要なら） */
section.manifesto .manifesto__content,
section.manifesto>.container,
section.manifesto>* {
    position: relative;
    z-index: 1;
}

/* アクセシビリティ対応：動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {

    section.manifesto::before,
    section.manifesto::after {
        transition: none !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        animation: none !important;
    }
}

/* ▼ レスポンシブでの調整 */
@media (max-width: 1200px) {
    section.manifesto::before {
        clip-path: polygon(75% 0%, 100% 0%, 100% 100%);
    }

    section.manifesto::after {
        clip-path: polygon(60% 0%, 82% 0%, 65% 100%);
    }
}

@media (max-width: 960px) {
    section.manifesto::before {
        background: rgba(0, 0, 0, 0.05);
        clip-path: polygon(78% 0%, 100% 0%, 100% 100%);
    }

    section.manifesto::after {
        display: none;
        /* 狭い幅では1枚だけでスッキリ */
    }
}

@media (max-width: 600px) {
    section.manifesto::before {
        background: rgba(0, 0, 0, 0.04);
        clip-path: polygon(82% 0%, 100% 0%, 100% 100%);
    }
}

.js-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-anim.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* パララックス要素 */
[data-parallax] {
    will-change: transform;
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 1024px) {
    .hero {
        min-height: 80vh;
    }

    .hero__content {
        grid-template-columns: 1fr auto;
        gap: clamp(20px, 4vw, 32px);
        padding: clamp(20px, 5vw, 40px) 16px 40px;
    }

    .hero__side-vertical {
        display: none;
    }

    .hero__main {
        align-items: center;
        text-align: center;
    }

    .hero__lead {
        text-align: center;
    }

    .hero__sns {
        margin-top: clamp(16px, 3vw, 24px);
    }

    .challenge {
        min-height: auto;
        padding: clamp(80px, 12vh, 140px) 0;
    }

    .challenge__content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .challenge .container {
        padding-left: clamp(16px, 6vw, 80px);
        padding-right: clamp(16px, 6vw, 80px);
    }

    .manifesto__content {
        grid-template-columns: 1fr;
    }

    .manifesto__rainbow-text {
        writing-mode: horizontal-tb;
        font-size: clamp(40px, 10vw, 80px);
        background: linear-gradient(90deg, #ff6a00, #ff00c3, #0078ff, #00ffa2);
        text-align: left;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 78vh;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: clamp(24px, 6vw, 32px);
        padding: clamp(24px, 6vw, 32px) 16px 24px;
        text-align: center;
    }

    .hero__title {
        font-size: clamp(48px, 12vw, 64px);
    }

    .hero__lead {
        font-size: 16px;
        max-width: 100%;
    }

    .hero__sns {
        flex-direction: row;
        gap: 16px;
        margin-top: 0;
        justify-content: center;
    }

    .hero__sns-link {
        width: 48px;
        height: 48px;
    }

    .pickup__cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pickup-card__thumb {
        height: 120px;
    }

    .challenge {
        padding: clamp(48px, 8vh, 80px) 0;
    }

    .manifesto {
        padding: clamp(48px, 8vh, 80px) 0;
    }
}

/* ========================================
   挑戦フィールドセクション レスポンシブ最適化
   ======================================== */

/* 共通レイヤ（.challenge内のベース） */
.challenge {
    position: relative;
}

.challenge .challenge__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.challenge .challenge__background video,
.challenge .challenge__background img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.challenge .challenge__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.challenge .container,
.challenge .challenge__content {
    position: relative;
    z-index: 2;
}

/* テキストの可視性確保 */
.challenge .challenge__content * {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 400–499px */
@media (min-width: 400px) and (max-width: 499px) {
    .challenge {
        min-height: 72vh;
        padding: 56px 16px;
    }

    .challenge .challenge__overlay {
        background: rgba(0, 0, 0, 0.40);
    }

    .challenge .challenge__content {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 20px;
        column-gap: 0;
    }

    .challenge .challenge__title-vertical {
        font-size: 28px;
        line-height: 1.25;
    }

    .challenge .challenge__subtitle {
        font-size: 13px;
        line-height: 1.7;
    }

    .challenge .vision__text {
        font-size: 14px;
        line-height: 1.9;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .challenge .challenge__cta {
        width: 100%;
    }

    .challenge .btn-sweep {
        width: 100%;
        height: 44px;
        font-size: 12px;
        min-height: 44px;
    }
}

/* 500–599px */
@media (min-width: 500px) and (max-width: 599px) {
    .challenge {
        min-height: 74vh;
        padding: 64px 20px;
    }

    .challenge .challenge__overlay {
        background: rgba(0, 0, 0, 0.40);
    }

    .challenge .challenge__content {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 24px;
        column-gap: 0;
    }

    .challenge .challenge__title-vertical {
        font-size: 32px;
        line-height: 1.25;
    }

    .challenge .challenge__subtitle {
        font-size: 14px;
        line-height: 1.7;
    }

    .challenge .vision__text {
        font-size: 15px;
        line-height: 1.9;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .challenge .challenge__cta {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .challenge .btn-sweep {
        width: 100%;
        height: 44px;
        font-size: 12px;
        min-height: 44px;
    }
}

/* 600–699px */
@media (min-width: 600px) and (max-width: 699px) {
    .challenge {
        min-height: 76vh;
        padding: 72px 24px;
    }

    .challenge .challenge__overlay {
        background: rgba(0, 0, 0, 0.32);
    }

    .challenge .challenge__content {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 28px;
        column-gap: 0;
    }

    .challenge .challenge__right {
        max-width: 60ch;
        margin: 0 auto;
    }

    .challenge .challenge__title-vertical {
        font-size: 36px;
        line-height: 1.25;
    }

    .challenge .challenge__subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    .challenge .vision__text {
        font-size: 16px;
        line-height: 1.9;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .challenge .challenge__cta {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .challenge .btn-sweep {
        width: 100%;
        height: 44px;
        font-size: 12px;
        min-height: 44px;
    }
}

/* 700–799px */
@media (min-width: 700px) and (max-width: 799px) {
    .challenge {
        min-height: 78vh;
        padding: 80px 28px;
    }

    .challenge .challenge__overlay {
        background: rgba(0, 0, 0, 0.32);
    }

    .challenge .challenge__content {
        display: grid;
        grid-template-columns: 42% 58%;
        column-gap: 24px;
        align-items: center;
    }

    .challenge .challenge__left {
        align-self: center;
    }

    .challenge .challenge__title-vertical {
        font-size: 40px;
        line-height: 1.25;
    }

    .challenge .challenge__subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    .challenge .vision__text {
        font-size: 16px;
        line-height: 1.9;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .challenge .btn-sweep {
        min-width: 160px;
        height: 44px;
        font-size: 12px;
    }
}

/* 800–899px */
@media (min-width: 800px) and (max-width: 899px) {
    .challenge {
        min-height: 80vh;
        padding: 88px 32px;
    }

    .challenge .challenge__overlay {
        background: rgba(0, 0, 0, 0.28);
    }

    .challenge .challenge__content {
        display: grid;
        grid-template-columns: 45% 55%;
        gap: 28px;
        align-items: center;
    }

    .challenge .challenge__left {
        align-self: center;
    }

    .challenge .challenge__title-vertical {
        font-size: 44px;
        line-height: 1.25;
    }

    .challenge .challenge__subtitle {
        font-size: 16px;
        line-height: 1.7;
    }

    .challenge .vision__text {
        font-size: 17px;
        line-height: 1.9;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .challenge .btn-sweep {
        min-width: 160px;
        height: 44px;
        font-size: 12px;
    }
}

/* 900–999px */
@media (min-width: 900px) and (max-width: 999px) {
    .challenge {
        min-height: 82vh;
        padding: 96px 36px;
    }

    .challenge .challenge__overlay {
        background: rgba(0, 0, 0, 0.28);
    }

    .challenge .challenge__content {
        display: grid;
        grid-template-columns: 48% 52%;
        gap: 32px;
        align-items: center;
    }

    .challenge .challenge__left {
        align-self: center;
    }

    .challenge .challenge__title-vertical {
        font-size: 48px;
        line-height: 1.3;
    }

    .challenge .challenge__subtitle {
        font-size: 16px;
        line-height: 1.7;
    }

    .challenge .vision__text {
        font-size: 18px;
        line-height: 1.9;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .challenge .btn-sweep {
        min-width: 160px;
        height: 44px;
        font-size: 12px;
    }
}

/* 1000px ちょうど */
@media (width: 1000px) {
    .challenge {
        min-height: 82vh;
        padding: 104px 40px;
    }

    .challenge .challenge__overlay {
        background: rgba(0, 0, 0, 0.25);
    }

    .challenge .challenge__content {
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 36px;
        align-items: center;
    }

    .challenge .challenge__left {
        align-self: center;
    }

    .challenge .challenge__title-vertical {
        font-size: 52px;
        line-height: 1.3;
    }

    .challenge .challenge__subtitle {
        font-size: 17px;
        line-height: 1.7;
    }

    .challenge .vision__text {
        font-size: 18px;
        line-height: 2.0;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .challenge .btn-sweep {
        min-width: 160px;
        height: 44px;
        font-size: 12px;
    }
}

/* ========================================
   マニフェストセクション レスポンシブ最適化
   ======================================== */

/* ベース指定（レイアウト構造のみ） */
.manifesto {
    position: relative;
}

.manifesto .container,
.manifesto .manifesto__content {
    position: relative;
    z-index: 1;
}

.manifesto .manifesto__content {
    display: grid;
}

/* 400–499px */
@media (min-width: 400px) and (max-width: 499px) {
    .manifesto {
        padding: 56px 16px;
    }

    .manifesto .manifesto__content {
        grid-template-columns: 1fr;
        row-gap: 20px;
        min-height: 68vh;
    }

    .manifesto .manifesto__title,
    .manifesto .manifesto__text {}

    .manifesto .manifesto__text {
        font-size: 14px;
        line-height: 1.9;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        word-break: normal;
        max-width: 58ch;
    }

    .manifesto .manifesto__title {
        font-size: 26px;
        line-height: 1.25;
    }

    .manifesto .manifesto__right {
        text-align: left;
    }

    .manifesto .manifesto__rainbow-text {
        background: linear-gradient(92deg, #ff6b6b, #ffd166, #06d6a0, #118ab2, #9b5de5);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.2px;
        text-shadow: none;
    }

    .manifesto .manifesto__cta .btn-sweep {
        min-height: 44px;
    }

    .manifesto .manifesto__cta .btn-sweep .btn-sweep__label {
        font-size: 12px;
    }

    .manifesto .manifesto__cta {
        display: flex;
    }

    .manifesto .btn-sweep {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* 500–599px */
@media (min-width: 500px) and (max-width: 599px) {
    .manifesto {
        padding: 64px 20px;
    }

    .manifesto .manifesto__content {
        grid-template-columns: 1fr;
        row-gap: 24px;
        min-height: 70vh;
    }

    .manifesto .manifesto__title,
    .manifesto .manifesto__text {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }

    .manifesto .manifesto__text {
        font-size: 15px;
        line-height: 1.9;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        max-width: 60ch;
    }

    .manifesto .manifesto__title {
        font-size: 30px;
        line-height: 1.25;
    }

    .manifesto .manifesto__right {
        text-align: left;
    }

    .manifesto .manifesto__rainbow-text {
        background: linear-gradient(92deg, #ff6b6b, #ffd166, #06d6a0, #118ab2, #9b5de5);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-size: 22px;
        line-height: 1.2;
        text-shadow: none;
    }

    .manifesto .manifesto__cta .btn-sweep .btn-sweep__label {
        font-size: 13px;
    }

    .manifesto .manifesto__cta {
        display: flex;
    }

    .manifesto .btn-sweep {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* 600–699px */
@media (min-width: 600px) and (max-width: 699px) {
    .manifesto {
        padding: 72px 24px;
    }

    .manifesto .manifesto__content {
        grid-template-columns: 1fr;
        row-gap: 28px;
        min-height: 72vh;
    }

    .manifesto .manifesto__title,
    .manifesto .manifesto__text {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }

    .manifesto .manifesto__text {
        font-size: 16px;
        line-height: 1.9;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        max-width: 62ch;
    }

    .manifesto .manifesto__title {
        font-size: 34px;
        line-height: 1.25;
    }

    .manifesto .manifesto__right {
        text-align: left;
    }

    .manifesto .manifesto__rainbow-text {
        background: linear-gradient(92deg, #ff6b6b, #ffd166, #06d6a0, #118ab2, #9b5de5);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-size: 24px;
        line-height: 1.2;
        text-shadow: none;
    }

    .manifesto .manifesto__cta .btn-sweep .btn-sweep__label {
        font-size: 14px;
    }

    .manifesto .btn-sweep {
        min-width: 160px;
    }
}

/* 700–799px */
@media (min-width: 700px) and (max-width: 799px) {
    .manifesto {
        padding: 80px 28px;
    }

    .manifesto .manifesto__content {
        grid-template-columns: 46% 54%;
        column-gap: 24px;
        align-items: center;
        min-height: 74vh;
    }

    .manifesto .manifesto__title,
    .manifesto .manifesto__text {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }

    .manifesto .manifesto__text {
        font-size: 16px;
        line-height: 1.9;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        max-width: 62ch;
    }

    .manifesto .manifesto__title {
        font-size: 38px;
        line-height: 1.25;
    }

    .manifesto .manifesto__right {
        align-self: center;
    }

    .manifesto .manifesto__rainbow-text {
        background: linear-gradient(92deg, #ff6b6b, #ffd166, #06d6a0, #118ab2, #9b5de5);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-size: 28px;
        line-height: 1.15;
        text-shadow: none;
    }

    .manifesto .manifesto__cta .btn-sweep .btn-sweep__label {
        font-size: 14px;
    }

    .manifesto .btn-sweep {
        min-width: 160px;
    }
}

/* 800–899px */
@media (min-width: 800px) and (max-width: 899px) {
    .manifesto {
        padding: 88px 32px;
    }

    .manifesto .manifesto__content {
        grid-template-columns: 48% 52%;
        column-gap: 28px;
        align-items: center;
        min-height: 76vh;
    }

    .manifesto .manifesto__title,
    .manifesto .manifesto__text {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }

    .manifesto .manifesto__text {
        font-size: 17px;
        line-height: 1.9;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        max-width: 64ch;
    }

    .manifesto .manifesto__title {
        font-size: 42px;
        line-height: 1.25;
    }

    .manifesto .manifesto__right {
        align-self: center;
    }

    .manifesto .manifesto__rainbow-text {
        background: linear-gradient(92deg, #ff6b6b, #ffd166, #06d6a0, #118ab2, #9b5de5);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-size: 30px;
        line-height: 1.2;
        text-shadow: none;
    }

    .manifesto .manifesto__cta .btn-sweep .btn-sweep__label {
        font-size: 15px;
    }

    .manifesto .btn-sweep {
        min-width: 160px;
    }
}

/* 900–999px */
@media (min-width: 900px) and (max-width: 999px) {
    .manifesto {
        padding: 96px 36px;
    }

    .manifesto .manifesto__content {
        grid-template-columns: 50% 50%;
        column-gap: 32px;
        align-items: center;
        min-height: 78vh;
    }

    .manifesto .manifesto__title,
    .manifesto .manifesto__text {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }

    .manifesto .manifesto__text {
        font-size: 18px;
        line-height: 1.9;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        max-width: 65ch;
    }

    .manifesto .manifesto__title {
        font-size: 46px;
        line-height: 1.25;
    }

    .manifesto .manifesto__right {
        align-self: center;
    }

    .manifesto .manifesto__rainbow-text {
        background: linear-gradient(92deg, #ff6b6b, #ffd166, #06d6a0, #118ab2, #9b5de5);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-size: 34px;
        line-height: 1.2;
        text-shadow: none;
    }

    .manifesto .manifesto__cta .btn-sweep .btn-sweep__label {
        font-size: 16px;
    }

    .manifesto .btn-sweep {
        min-width: 160px;
    }
}

/* 1000px ちょうど */
@media (width: 1000px) {
    .manifesto {
        padding: 104px 40px;
    }

    .manifesto .manifesto__content {
        grid-template-columns: 50% 50%;
        column-gap: 36px;
        align-items: center;
        min-height: 80vh;
    }

    .manifesto .manifesto__title,
    .manifesto .manifesto__text {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }

    .manifesto .manifesto__text {
        font-size: 18px;
        line-height: 2.0;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        max-width: 65ch;
    }

    .manifesto .manifesto__title {
        font-size: 50px;
        line-height: 1.25;
    }

    .manifesto .manifesto__right {
        align-self: center;
    }

    .manifesto .manifesto__rainbow-text {
        background: linear-gradient(92deg, #ff6b6b, #ffd166, #06d6a0, #118ab2, #9b5de5);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-size: 36px;
        line-height: 1.2;
        text-shadow: none;
    }

    .manifesto .manifesto__cta .btn-sweep .btn-sweep__label {
        font-size: 16px;
    }

    .manifesto .btn-sweep {
        min-width: 160px;
    }
}

/* フォーカス表示 */
.manifesto .btn-sweep:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

/* ========================================
   アクセシビリティ・品質
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    .hero__sns-link,
    .pickup-card {
        transition: none;
    }
}

/* Hotfix（最優先で読み込むこと） */
@media (min-width: 1001px) {

    .manifesto .manifesto__title,
    .manifesto .manifesto__text,
    .manifesto .manifesto__rainbow-text {
        color: revert;
        /* 既存テーマ色に戻す（ブラウザ既定/継承へ） */
        text-shadow: revert;
        /* 既存の状態へ戻す */
        white-space: normal;
        /* 既存の折返しに戻す */
    }

    .manifesto .manifesto__text {
        overflow-wrap: normal;
        word-break: normal;
    }
}

/* フォーカス表示 */
.hero__sns-link:focus,
.pickup-card:focus-within {
    outline: 2px solid var(--c-accent-blue);
    outline-offset: 2px;
}

/* CLS防止 */
.hero {
    contain: layout style paint;
}

/* ========================================
   アクセシビリティ
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    .social-link,
    .pickup-card {
        transition: none;
    }
}

/* フォーカス表示 */
.social-link:focus,
.pickup-card:focus-within {
    outline: 2px solid var(--c-accent-blue);
    outline-offset: 2px;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .challenge__overlay {
        opacity: 0.9;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* ===== Challenge: enforce manual <br> line breaks on desktop (>=1001px) ===== */
@media (min-width: 1001px) {
    .challenge .vision__text {
        /* 改行は <br> のみ。自動折り返しは無効化 */
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
    }
}

/* ===== Hero full-bleed fix: keep header/nav untouched ===== */

/* 横スクロール抑止 */
html,
body {
    overflow-x: hidden;
}

/* --- Force hero full-bleed override (highest priority) --- */
.main>.hero,
.site-content>.hero,
.site-content .hero,
body .site-content .hero {
    position: relative !important;
    display: block !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
    left: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    min-height: 100vh !important;
}

@supports (width: 100dvw) {

    .main>.hero,
    .site-content>.hero,
    .site-content .hero,
    body .site-content .hero {
        width: 100dvw !important;
        margin-left: calc(-50dvw) !important;
        margin-right: calc(-50dvw) !important;
        min-height: 100dvh !important;
    }
}

@media (max-width: 640px) {

    .main>.hero,
    .site-content>.hero,
    .site-content .hero,
    body .site-content .hero {
        min-height: 72vh !important;
    }
}

/* Ensure background media covers full area */
.hero__bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
}

.hero__bg img,
.hero__bg video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: none !important;
}

.hero__content {
    position: relative;
    z-index: 2;
}

/* === Remove top gap: let hero sit under fixed header === */
.main>.hero,
.site-content>.hero {
    /* ヘッダー分のパディングを打ち消し、上側の余白をゼロに */
    margin-top: calc(-1 * var(--header-h, 80px)) !important;
}

/* 管理バー表示時もズレないように（補助） */
@media (min-width: 783px) {

    body.admin-bar .main>.hero,
    body.admin-bar .site-content>.hero {
        /* 管理バーでヘッダーが下がる分は header.css 側で補正済みのため追加不要だが、
       万一のズレ時に上書きしないよう値は据え置き */
        margin-top: calc(-1 * var(--header-h, 80px)) !important;
    }
}

/* ===== HERO white base + rings + dots ===== */
.bg-grad {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%,
            #ffffff 0% 14%,
            #f4f6f8 14% 48%,
            #eef2f5 48% 84%,
            #e6eaee 84% 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none !important;
}

.bg-rings {
    display: none !important;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    /* タイトルを少し左下へ寄せる */
    padding: clamp(16px, 4vw, 40px) 16px 110px;
    /* 下余白を増やす */
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(16px, 3vw, 40px);
    align-items: end;
}

.hero__title {
    grid-column: 1 / 2;
    margin: 0 0 0 clamp(8px, 4vw, 40px);
    /* 左に寄せる */
    color: #121416;
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 900;
    line-height: .92;
    letter-spacing: -0.01em;
    font-size: clamp(44px, 8.6vw, 112px);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
    opacity: 0;
    transform: translateY(20px);
}

.hero__title .line {
    display: inline-block;
}

.hero__lead.en {
    grid-column: 1 / 2;
    margin: .6rem 0 0;
    color: rgba(18, 20, 22, .78);
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.8vw, 20px);
    opacity: 0;
    transform: translateY(12px);
}

.hero__dots {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 100%;
}

.hero__dots .dot {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    opacity: .95;
    will-change: transform, opacity;
}

/* ===== スクロールインジケーター ===== */
.scroll-indicator {
    /* 画面を4分割した想定：左下象限の右上寄り */
    position: absolute;
    /* 中心から左へ少し入る位置（左下の枠の右側） */
    top: calc(250% + 6vh);
    /* 中心から下へ少し入る位置（左下の枠の上側） */
    transform: none;
    grid-column: 1 / 2;
    padding-top: 0;
}

.scroll-indicator .label {
    color: #000000 !important;
    font-size: clamp(25px, 3.5vw, 50px) !important;
    font-weight: 700 !important;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif !important;
    line-height: 1.4;
    display: block;
    margin-bottom: 1.0rem;
}

/* 英語を大きく、日本語を小さく */
.scroll-indicator .label-en {
    font-family: "Poppins", system-ui, sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em;
    /* 文字間をやや広めに */
    line-height: 1.08;
    /* 目視バランス */
    font-size: clamp(26px, 4vw, 64px) !important;
    position: static !important;
    inset: unset !important;
}

.scroll-indicator .label-jp {
    font-size: clamp(12px, 1.5vw, 18px) !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    /* 日本語はやや広めに */
    margin-top: .35rem;
    color: rgba(0, 0, 0, .92);
    position: static !important;
    inset: unset !important;
}

.scroll-indicator .line {
    display: block;
    width: 2px;
    height: 24px;
    background: #000000;
    border-radius: 1px;
    animation: scrollDot 1.2s infinite ease-in-out;
}

@keyframes scrollDot {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(8px);
    }
}

/* ===== 下層セクションは通常表示 ===== */
/* --- Challenge badge final override (ensure position sticks) --- */
.challenge .challenge__title-vertical .challenge__badge-vertical {
    position: relative !important;
    display: inline-block;
    vertical-align: top;
    margin-left: 0.25em;
    transform: translateY(-0.1em) !important;
    /* 「挑戦」のトップと揃える微調整 */
    font-size: 0.35em;
    /* タイトルの相対サイズでスケール */
}

/* 事業内容セクション - 画像完全再現（強制適用） */
.index-feature {
    position: relative !important;
    min-height: 80vh !important;
    background: #000000 !important;
    overflow: hidden !important;
    display: block !important;
    margin: 0 !important;
    padding: 40px 0 !important;
}

.index-feature__background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.index-feature__background img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    filter: grayscale(100%) !important;
    display: block !important;
}

.index-feature__card {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    background: #0066cc !important;
    color: #ffffff !important;
    padding: 50px 45px !important;
    border-radius: 20px !important;
    width: 600px !important;
    max-width: 90vw !important;
    text-align: left !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
}

.index-feature__card-number {
    position: absolute !important;
    top: 20px !important;
    right: 25px !important;
    font-size: 56px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.index-feature__card-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    margin-top: 0 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
}

.index-feature__card-text {
    font-size: 17px !important;
    line-height: 1.8 !important;
    margin-bottom: 35px !important;
    margin-top: 0 !important;
    color: #ffffff !important;
}

.index-feature__card-buttons {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.index-feature__card-btn {
    padding: 14px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    min-width: 120px !important;
    text-align: center !important;
    display: inline-block !important;
}

.index-feature__card-btn:not(.index-feature__card-btn--outline) {
    background: #ffffff !important;
    color: #0066cc !important;
}

.index-feature__card-btn--outline {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.index-feature__card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .index-feature__card {
        width: 500px !important;
        padding: 40px 35px !important;
    }

    .index-feature__card-title {
        font-size: 28px !important;
    }

    .index-feature__card-text {
        font-size: 16px !important;
    }

    .index-feature__card-number {
        font-size: 48px !important;
    }
}

@media (max-width: 768px) {
    .index-feature {
        min-height: 70vh !important;
        padding: 30px 0 !important;
    }

    .index-feature__card {
        width: calc(100vw - 40px) !important;
        padding: 35px 30px !important;
        max-width: none !important;
    }

    .index-feature__card-title {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }

    .index-feature__card-text {
        font-size: 15px !important;
        margin-bottom: 25px !important;
    }

    .index-feature__card-number {
        font-size: 40px !important;
        top: 15px !important;
        right: 20px !important;
    }

    .index-feature__card-btn {
        padding: 12px 20px !important;
        font-size: 15px !important;
        min-width: 100px !important;
    }
}

@media (max-width: 480px) {
    .index-feature {
        min-height: 60vh !important;
        padding: 20px 0 !important;
    }

    .index-feature__card {
        width: calc(100vw - 20px) !important;
        padding: 25px 20px !important;
    }

    .index-feature__card-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .index-feature__card-text {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    .index-feature__card-number {
        font-size: 36px !important;
        top: 10px !important;
        right: 15px !important;
    }

    .index-feature__card-buttons {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .index-feature__card-btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 360px) {
    .index-feature__card {
        padding: 20px 15px !important;
    }

    .index-feature__card-title {
        font-size: 18px !important;
    }

    .index-feature__card-text {
        font-size: 13px !important;
    }

    .index-feature__card-number {
        font-size: 32px !important;
    }
}