/* 1. 基本設定 */
:root {
    --bg-color: #0a0a0b; 
    --text-color: #f5f5f7;
}
html, body {
    width: 100%;
    overflow-x: hidden; /* ★横方向のはみ出しを強制的に隠す */
    position: relative;
}

main {
    width: 100%;
    overflow-x: hidden; /* 二重でガード */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Zen Maru Gothic", "Cinzel", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.noise-overlay {
    z-index: 1 !important; 
    opacity: 0.08 !important; /* コンテンツの後ろに行くので少し濃くしてOK */
    pointer-events: none !important;
}

/* 2. 背景レイヤー（固定） */
.fixed-bg-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-bg-mask {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    clip-path: circle(0% at 50% 50%);
}

.hero-bg {
    width: 100%; height: 100%;
    background-image: url('image/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    /* 最初から暗く(0.2)、ぼかし(20px)を入れる */
    filter: brightness(0.8) blur(20px); 
    transition: filter 0.5s ease; /* 念のため滑らかに */
}

/* 3. セクション共通 */
section {
    min-height: 100vh; /* heightからmin-heightに変更 */
    width: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
    padding: 50px 0; /* 余白追加 */
}

/* 4. HEROセクション */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.bg-text-wrapper {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.bg-text {
    display: block;
    font-family: "Cinzel", serif;
    font-size: clamp(8rem, 35vw, 25rem); 
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15); 
    white-space: nowrap;
    opacity: 0;
}

.main-title-jp {
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 12vw, 12rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    max-width: 95vw !important;

    /* ★ここを変更：高級感のある斜めグラデーション */
    /* 白を基調に、中間にごく淡いシアンブルーを挟んで透明感を出す */
    background: linear-gradient(
        135deg, 
        #ffffff 0%, 
        #dffaff 45%, /* 淡い光 */
        #ffffff 55%, 
        #d4f7ff 100% /* 終わりの光 */
    );
    
    /* テキストで切り抜くための必須設定 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* ★ここを変更：発光感を強めて立体的に */
    /* 黒い影で文字を浮き立たせ、青白い光で高級感を出す */
    text-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.6), 
        0 0 50px rgba(180, 240, 255, 0.3);
}
.subtitle-jp {
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 3vw, 1.8rem);
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.reveal-wrapper { overflow: hidden; margin-bottom: 0.5rem; }

.reveal-text {
    display: block;
    transform: translateY(105%);
    letter-spacing: 0.15em;
    will-change: transform;
}

/* 5. ABOUT (MY JOURNEY) セクション */
.about {
    background-color: transparent;
    z-index: 10;
}

.content-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-side { width: 40%; color: #fff; }

.section-title {
    font-family: "Cinzel", serif;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.9;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.section-title .num {
    font-size: 0.4em;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.description-box h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #a0a0ff; }
.description-box p { font-size: 1rem; line-height: 1.8; color: rgba(255, 255, 255, 0.8); }

.visual-side {
    width: 55%;
    height: 60vh;
    position: relative;
    perspective: 1000px;
}

/* ガラスカード共通 */
.glass-card {
    position: absolute;
    width: 280px;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: 
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), /* 動きに慣性をつける */
        box-shadow 0.4s ease,
        border-color 0.4s ease;
        
    /* 初期状態でも3Dコンテキストを持たせておく */
    transform-style: preserve-3d;
    transform-origin: center center !important;
    cursor: pointer;
}

/* style.css */
.glass-card:hover {
    /* 修正前（今の状態）： rotateY(-5deg) がある */
    /* transform: scale(1.05) translateY(-15px) rotateX(10deg) rotateY(-5deg); */

    /* ★修正後： rotateY を削除し、rotateX（奥への傾き）だけにする */
   transform: perspective(1000px) scale(1.1) translateY(-25px) rotateY(-25deg) rotateX(15deg);

    /* 以下の影やz-indexの設定はそのままでOK */
    box-shadow: 
        0 40px 70px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.9);
    z-index: 100 !important;
}
.glass-card:hover .card-img-wrapper,
.glass-card:hover h4, 
.glass-card:hover .profile-summary {
    /* カードの表面からさらに手前に飛び出させる */
    transform: translateZ(50px);
    transition: transform 0.5s ease;
}
.card-part-num {
    position: absolute;
    top: -15px; left: 20px;
    background: #000;
    color: #fff;
    padding: 5px 15px;
    font-family: "Cinzel", serif;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glow-bar {
    width: 30px; height: 3px;
    background: #fff;
    margin-top: 1.5rem;
    box-shadow: 0 0 10px #fff, 0 0 20px #00ffff;
}

/* PART 01 (メイン) */
.card-main {
    top: 35%; right: 5%;
    z-index: 10;
    width: 300px;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(100, 200, 255, 0.3);
}

.profile-img-wrapper {
    width: 80px; height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    border: 2px solid #fff;
    overflow: hidden;
}

.profile-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.card-main h4 { text-align: center; margin-bottom: 0.5rem; font-size: 1.5rem; }
.profile-summary p { font-size: 0.9rem; color: #ddd; text-align: center; }

/* PART 02, 03 (サブ) */
.card-sub-1 { top: 5%; left: 10%; z-index: 5; transform: scale(0.9); }
.card-sub-2 { bottom: 5%; left: 15%; z-index: 5; transform: scale(0.9); }

/* 6. PROFILE セクション */
.profile-section {
    background: transparent;
    padding-top: 100px;
}

.profile-container {
    display: flex;
    width: 85%;
    max-width: 1200px;
    align-items: center;
    justify-content: space-between;
}

.profile-visual { width: 45%; display: flex; justify-content: center; }

.visual-frame {
    width: 45vw !important;    /* 画面の横幅の45%にする（文字と並べるため） */
    max-width: 650px !important; /* 縦のサイズをしっかり固定 */
    height: 80vh !important;
    position: relative;
    
    /* ★重要：画像が下から出てくるまで隠しておく設定 */
    overflow: hidden !important; 
    
    border-radius: 0 !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.03); /* 読み込み前のガイド枠 */
    z-index: 2;
}

.visual-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 枠いっぱいに表示 */
    border-radius: 0 !important;
    
   
}

.cyber-circle {
    display: none !important;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-data { width: 50%; color: #fff; font-family: "Cinzel", serif; }

.data-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #fff;
    display: inline-block;
}

.data-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.data-row .label { width: 120px; font-size: 1rem; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.1em; }
.data-row .value { font-size: 2rem; font-weight: 700; }
.data-row .unit { font-size: 1rem; font-weight: 400; margin-left: 5px; }

.data-textbox {
    margin-top: 2rem;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-left: 4px solid #fff;
}

/* Lenis設定 */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }


/* style.css の一番下に追加 */

/* --- 02. MY SKILLS セクション --- */
.skills-section {
    background: transparent;
    padding-top: 100px;
    perspective: 1500px; /* 3D効果の奥行き */
}

.skills-container {
    display: flex;
    width: 90%;
    max-width: 1300px;
    justify-content: space-between;
    align-items: center;
    height: 70vh;
}

/* 左側：タイムラインとタイトル */
.skills-text-side {
    width: 35%;
    position: relative;
    padding-left: 40px;
    color: #fff;
}

.timeline-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.timeline-list {
    list-style: none;
    position: absolute;
    left: -6px;
    top: 10%;
    bottom: 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.timeline-item {
    width: 14px;
    height: 14px;
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: relative;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Cinzel", serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    width: 40px;
}

.timeline-item.highlight {
    background: #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px #00ffff;
    border-color: #fff;
}

.timeline-item.future {
    border-color: rgba(255, 255, 255, 0.2);
}

.skills-title-box h2 {
    font-family: "Cinzel", serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

.skills-title-box .num {
    color: #00ffff;
    font-size: 0.8em;
    margin-right: 10px;
}

.skills-title-box h3 {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 右側：カードデッキ */
.skills-visual-side {
    width: 60%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d; /* 子要素の3D配置を有効化 */
}

.card-deck {
    position: relative;
    width: 600px;
    height: 400px;
    
    /* ★重要：3D空間を維持する設定 */
    transform-style: preserve-3d;
    
    /* ★重要：視点の深さ（数値が小さいほどパースが強くなります） */
    perspective: 2000px; 
    
    margin: 0 auto;
}

/* スキルカード共通デザイン */
.skill-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* 初期状態：奥に配置 */
    transform: translateZ(-150px) scale(0.9) translateX(60px);
    opacity: 0.6;
    z-index: 1;
    transform-origin: center center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    
    transition: box-shadow 0.3s ease;
    backface-visibility: hidden;
}

/* 手前のカード（アクティブ） */
.skill-card.active {
    transform: translateZ(0) scale(1) translateX(0);
    opacity: 1;
    z-index: 10;
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

/* 2枚目以降の重なり具合を微調整（JSで動的に制御しますが初期値として） */
.skill-card:nth-child(2) { transform: translateZ(-50px) scale(0.97) translateX(20px); z-index: 9; opacity: 0.9; }
.skill-card:nth-child(3) { transform: translateZ(-100px) scale(0.94) translateX(40px); z-index: 8; opacity: 0.8; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.category-badge {
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    color: #00ffff;
    letter-spacing: 0.1em;
}

.window-controls span {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin-left: 5px;
}

.card-content {
    display: flex;
    height: calc(100% - 40px);
}

.content-visual {
    width: 50%;
    height: 100%;
    padding: 10px;
}

.content-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.content-details {
    width: 50%;
    padding: 20px;
    color: #fff;
}

.content-details h4 {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.content-details ul {
    list-style: none;
    padding-left: 1rem;
}

.content-details li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.content-details li::before {
    content: "▹";
    position: absolute;
    left: -1.2rem;
    color: #00ffff;
}

/* シャッフルボタン */
.shuffle-button {
    margin-top: 40px;
    padding: 12px 40px;
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: "Cinzel", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.shuffle-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    mix-blend-mode: overlay;
}

.shuffle-button:hover .btn-glow {
    opacity: 0.5;
}

/* スマホ対応 */
@media (max-width: 1024px) {
    .skills-container {
        flex-direction: column;
        height: auto;
    }
    .skills-text-side, .skills-visual-side {
        width: 100%;
        margin-bottom: 3rem;
    }
    .skills-text-side {
        padding-left: 30px;
    }
    .card-deck {
        width: 100%;
        max-width: 500px;
        height: 350px;
    }
    .card-content {
        flex-direction: column;
    }
    .content-visual, .content-details {
        width: 100%;
        height: 50%;
    }
    .visual-frame {
        width: 80vw !important; 
        height: 400px !important;
    }
}

/* style.css の一番下に追加 */

.profile-nav-wrapper {
    margin-top: 3rem;
    width: 100%;
}

.nav-hint {
    font-family: "Cinzel", serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.profile-nav-cards {
    display: flex;
    gap: 20px;
    perspective: 1000px; /* 3D効果のため */
}

/* プロフィール内専用のミニカード */
.mini-glass-card {
    position: relative;
    width: 180px;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center center;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
}

.mini-card-num {
    font-family: "Cinzel", serif;
    font-size: 0.6rem;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.mini-icon {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.mini-glass-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* ★レアカード演出：左側が奥に沈む */
.mini-glass-card:hover {
    transform: scale(1.05) translateY(-10px) rotateY(-20deg) rotateX(10deg);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.2);
}

/* ミニカード用の光エフェクト */
.mini-glow {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.mini-glass-card:hover .mini-glow {
    left: 200%;
}

/* スマホ対応：横並びがきつい場合は縦に */
@media (max-width: 480px) {
    .profile-nav-cards {
        flex-direction: column;
        align-items: center;
    }
    .mini-glass-card {
        width: 100%;
    }
}



/* --- クローズボタン --- */
.close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; /* 正円にする */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100; /* フルスクリーンカード(999)より上に */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
}
.close-btn svg {
    width: 28px;
    height: 28px;
}
.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00ffff;
    color: #00ffff;
    transform: scale(1.1) rotate(90deg); /* 90度回転して勢いをつける */
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* フルスクリーンがアクティブな時だけ表示 */
body.fullscreen-active .close-btn {
    opacity: 1;
    visibility: visible;
}
/* --- フルスクリーンモード (Bodyクラスで制御) --- */
body.fullscreen-active {
    overflow: hidden; /* 背景スクロール禁止 */
}

body.fullscreen-active .skills-visual-side {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.fullscreen-active .card-deck {
    width: 80vw;
    height: 70vh;
    perspective: none; /* 拡大時はフラットに見やすく */
}

body.fullscreen-active .skill-card.active {
    width: 100%; height: 100%;
    transform: none !important; /* 3D配置を解除 */
}

body.fullscreen-active .close-btn {
    opacity: 1;
    visibility: visible;
}

/* 拡大時のカード内の文字サイズ調整 */
body.fullscreen-active .content-details h4 { font-size: 2.5rem; }
body.fullscreen-active .content-details p { font-size: 1.2rem; }
/* --- ウィンドウコントロールの調整 --- */
.window-controls {
    display: flex;
    align-items: center;
    gap: 8px; /* ボタン同士の間隔 */
}

/* 拡大ボタンのスタイル */
.card-expand-trigger {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0;
    margin-left: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, transform 0.3s;
}

.card-expand-trigger:hover {
    color: #00ffff;
    transform: scale(1.2);
}

.card-expand-trigger svg {
    display: block;
}

/* 既存の丸いポッチのデザインも少し調整（横並びを崩さないため） */
.window-controls span {
    width: 8px;
    height: 8px;
}

/* 以前の .expand-btn スタイルは削除してください */


/* style.css */

/* --- VISIONセクション（表紙） --- */
.slide-trigger-area { cursor: pointer; }

.vision-cover-card {
    position: relative;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    padding: 5rem 3rem;
    text-align: center;
    background: rgba(0,0,0,0.6);
    transition: 0.3s;
}
.slide-trigger-area:hover .vision-cover-card {
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.cover-content {
    position: relative;
    z-index: 2;
}
.cover-subtitle { color: #00ffff; font-family: "Cinzel", serif; letter-spacing: 0.2em; margin-bottom: 1rem; }
.cover-title { font-size: 2.5rem; color: #fff; margin-bottom: 3rem; }

.start-slide-btn {
    background: linear-gradient(90deg, #00ffff, #0088ff);
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    color: #000;
    font-weight: 900;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}
.start-slide-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0,255,255,0.5); }

.cover-visual-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    opacity: 0.3;
    filter: blur(10px);
}
.cover-visual-bg img { width: 100%; height: 100%; object-fit: cover; }


/* =========================================
   ★プレゼンテーション・オーバーレイ★
========================================= */
.presentation-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #000;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* ★これを追加：通常時はクリックを透過させる */
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* アクティブ時 */
body.presentation-active .presentation-overlay {
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto; /* ★これを追加：プレゼン中はクリックを有効にする */
}
body.presentation-active { overflow: hidden; }

/* --- 各スライドページ --- */
.slide-page {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;

}

.slide-page.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 10;
}

/* 背景 */
.slide-page .slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;

    filter: brightness(0.2) blur(10px); /* 最初は暗くぼかす */
    transition: all 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.slide-bg img {
    width: 100%;
    height: 100%;
    /* 変更前: cover (切り取る) */
    /* 変更後: contain (全体を収める) */
    object-fit: contain !important;
    object-position: center center;
    z-index: 1 !important;
}
.cyber-grid { width: 100%; height: 100%; background-image: linear-gradient(rgba(0,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,255,0.1) 1px, transparent 1px); background-size: 50px 50px; }

/* コンテンツ */
.slide-page .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 40px;
    transition: all 1.0s ease;
    pointer-events: none;
}
.slide-page.split-view .slide-bg {
    width: 66.6%; /* 右側2/3 */
    left: 33.3%;
    filter: brightness(1.0) blur(0); /* 画像を明るく鮮明にする */
}
.slide-page.split-view .slide-content {
    width: 33.3%; /* 左側1/3 */
    height: 100%;
    left: 0;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* 左寄せ */
    text-align: left;
    padding: 60px;
    background: rgba(10, 10, 11, 0.95); /* テキストエリアの背景 */
    /* 高級感のあるプラチナラインの境界線 */
    border-right: 1px solid rgba(209, 209, 209, 0.3);
}

/* スライド内の見出し（シルバーの輝き） */
.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #d1d1d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.slide-num { display: block; color: #00ffff; font-family: "Cinzel", serif; margin-bottom: 2rem; }

.slide-content p { font-size: 1.5rem; color: #ccc; line-height: 1.8; }

/* リスト（スライド3用） */
.slide-list { list-style: none; padding: 0; margin: 3rem 0; display: flex; gap: 30px; justify-content: center; }
.slide-list li { font-size: 1.2rem; color: #fff; border: 1px solid #00ffff; padding: 1rem 2rem; border-radius: 50px; background: rgba(0,255,255,0.1); }

/* 最終スライド用 */
.final-quote { font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1.6; margin: 3rem 0; }
.final-quote .highlight { color: #00ffff; text-decoration: underline; }
.final-text { font-size: 1.8rem; color: #00ffff; }

/* --- ナビゲーションボタン --- */
.next-slide-btn, .prev-slide-btn {
    position: absolute;
    top: auto !important; 
    bottom: 40px !important; /* 画面下から40pxの位置へ */
    transform: none !important;
    background: rgba(255,255,255,0.1);
    border: 1px solid #fff;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 50px;
    z-index: 1000 !important; /* コンテンツ(z-index: 2)より確実に上にする */
    pointer-events: auto !important; /* 確実にクリックを通す */
}
.slide-page.split-view.active .slide-bg {
    /* brightness(1.0) だと明るすぎるので 0.6 に落とします。
      これで白いボタンがはっきり見えるようになります。
    */
    filter: brightness(0.8) blur(0) !important;

    /* さらに、画像の内側に黒い影を落とします（ビネット効果）。
      これにより、画面の端が暗くなり、中央のボタンへの視線誘導効果も生まれます。
    */
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9) !important;
    
    /* 境界線がパキッとしすぎないように少しぼかす */
}
.slide-page .slide-content .next-slide-btn-main,
.slide-page .slide-content h2,
.slide-page .slide-content p {
    pointer-events: auto !important; /* ★これが重要 */
}
.slide-page.split-view.active .next-slide-btn,
.slide-page.split-view.active .prev-slide-btn {
    background: rgba(0, 0, 0, 0.6) !important; /* 通常より少し濃い黒背景 */
    border: 1px solid rgba(255, 255, 255, 0.4) !important; /* 枠線を少し強調 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7) !important; /* ボタン自体にも強い影を落とす */
    
    /* ホバー時の明るさは維持 */
    transition: all 0.3s ease;
}
.slide-page.split-view.active .next-slide-btn:hover,
.slide-page.split-view.active .prev-slide-btn:hover {
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5) !important;
}
.next-slide-btn:hover, .prev-slide-btn:hover { background: #00ffff; color: #000; border-color: #00ffff; }
.next-slide-btn { right: 50px; }
.prev-slide-btn { left: 50px; }

.slide-indicators {
    /* 1. コンテナ自体はクリックをスルーさせる */
    pointer-events: none !important;
    
    /* 背景透明化の設定（前回と同じ） */
    background-color: transparent !important;
    border-top: none !important;
    position: absolute;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 80px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 20 !important;
}

/* 2. 中にあるドット（丸）だけはクリックできるように戻す */
.indicator {
    pointer-events: auto !important;
    cursor: pointer;
    /* 既存のスタイルは維持 */
    width: 12px; height: 12px; 
    background: rgba(255,255,255,0.3); 
    border-radius: 50%; 
    transition: 0.3s;
}
/* --- スライド3（動画）専用設定 --- */
.slide-page[data-slide="3"] .slide-bg video {
    width: 100%;
    height: 100%;
    /* 動画を全体に見せたい場合は contain、画面いっぱいに広げたい場合は cover */
    object-fit: contain !important; 
    background-color: #000; /* 余白は黒にする */
}

/* 動画の上に見やすいように薄い黒フィルターを掛ける（文字視認性UP） */
.slide-page[data-slide="3"] .slide-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 必要に応じて濃さを調整（0.1〜0.5） */
    pointer-events: none; /* クリックを邪魔しない */
}
.indicator.active { background: #00ffff; transform: scale(1.3); box-shadow: 0 0 10px #00ffff; }
/* style.css に追加・上書き */
.close-btn-vision {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    transition: all 0.4s;
}

.close-btn-vision:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1); /* 💢っぽく回転 */
    color: #00ffff;
    border-color: #00ffff;
}

/* --- スクロールダウンボタンの調整 --- */
.scroll-down-btn {
    /* position: absolute ではなく relative にすることで、文字のすぐ下に並びます */
    position: relative; 
    margin-top: 60px; /* タイトルとの間隔 */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0; /* 最初は隠しておき、JSでフェードインさせる */
}

.scroll-text {
    font-family: "Cinzel", serif;
    font-size: 0.75rem; /* 少し小さく上品に */
    color: #ffffff; /* ★水色から純白へ */
    letter-spacing: 0.4em; /* 文字間を広げて洗練させる */
    text-transform: uppercase;
    
    /* 繊細な光のオーラをまとう */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.7),
        0 0 25px rgba(150, 230, 255, 0.3);
    transition: all 0.3s ease;
}

.arrow-icon span {
    display: block;
    width: 12px;
    height: 12px;
    
    /* ★線を少し細くして繊細さを出す */
    border-bottom: 1.5px solid #ffffff;
    border-right: 1.5px solid #ffffff;
    
    transform: rotate(45deg);
    margin: -4px;
    
    /* ★新しいアニメーション：光が流れるような動き */
    animation: arrow-flow 2.5s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
    opacity: 0;
    
    /* 線自体を発光させる */
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}
.arrow-icon span:nth-child(1) { animation-delay: 0s; }
.arrow-icon span:nth-child(2) { animation-delay: 0.4s; }

@keyframes arrow-flow {
    0%   { opacity: 0; transform: rotate(45deg) translate(-8px, -8px); }
    30%  { opacity: 1; } /* すっと現れる */
    70%  { opacity: 1; } /* しばらく光る */
    100% { opacity: 0; transform: rotate(45deg) translate(8px, 8px); } /* すっと消える */
}

.scroll-down-btn:hover {
    transform: translateY(3px); /* 軽く沈む */
}

.scroll-down-btn:hover .scroll-text {
    /* 文字間をさらに広げて優雅に */
    letter-spacing: 0.5em;
    /* 光を強くする */
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 35px rgba(150, 230, 255, 0.6);
}

/* --- スキルセクション専用のスクロールボタン配置 --- */
.skill-next-btn {
    position: absolute;
    bottom: 50px;   /* 下からの位置（お好みで調整） */
    left: 50%;      /* 枠の左から50%の位置に移動 */
    
    /* ★ここが最重要：自分の幅の半分だけ左に戻すことで、完全に真ん中に来る */
    transform: translateX(-50%); 
    
    opacity: 0;     /* 最初は隠す（GSAPで表示） */
    z-index: 100 !important; /* 他のカードより手前に */
    
    /* 以下、デザインの微調整 */
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: auto !important; /* クリックできるようにする */
}

/* スキルセクション自体の高さを確保してボタンが重ならないようにする */
.skills-section {
    padding-bottom: 150px !important;
    overflow: visible !important;
}

/* --- カードカウンターのスタイル --- */
.card-counter {
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.1em;
    margin-left: auto; /* 右端に寄せる */
    margin-right: 15px;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 2px solid #00ffff; /* 左側にアクセントライン */
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
}

.card-counter .sep {
    margin: 0 4px;
    opacity: 0.4;
}

.card-counter .total-num {
    opacity: 0.6;
    font-size: 0.7rem;
}

/* アクティブなカードのカウンターは発光を強める */
.skill-card.active .card-counter {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
}

/* --- フルスクリーン時の16:9画像調整 --- */

/* フル画面モードの時のカード内の画像コンテナ */
.fullscreen-active .skill-card .content-visual {
    width: 100% !important;
    /* ★重要：16:9の比率を強制する */
    aspect-ratio: 16 / 9 !important; 
    height: auto !important;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
    margin-bottom: 20px;
    /* プラチナ・シルバーの繊細な枠線を追加 */
    border: 1px solid rgba(209, 209, 209, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.next-slide-btn-main {
    margin-top: 30px;
    padding: 12px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-dark);
    color: #fff;
    font-family: "Cinzel", serif;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s;
}

.next-slide-btn-main:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.fullscreen-active .skill-card .content-visual img {
    width: 100% !important;
    height: auto !important;       /* ★変更: 要望通りautoに */
    max-height: 100% !important;    /* ★追加: 枠からはみ出さないように */
    object-fit: contain !important; /* ★重要: 画像を一切切らずに収める */
    object-position: center;
    filter: brightness(0.8) contrast(1.1);
}

/* フルスクリーン時のカード全体のレイアウト微調整 */
.fullscreen-active .skill-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px !important;
    min-width: 900px; /* 横幅を制限して16:9を際立たせる */
    margin: 0 auto;
}
/* 画像の上下に「スキャンライン」のような装飾を追加 */
.fullscreen-active .skill-card .content-visual::before,
.fullscreen-active .skill-card .content-visual::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    z-index: 2;
}

.fullscreen-active .skill-card .content-visual::before { top: 0; }
.fullscreen-active .skill-card .content-visual::after { bottom: 0; }


