:root {
    --bg-color: #fce4ec;
    /* 可愛いパステルピンク */
    --box-bg: #ffffff;
    --border-color: #3e2723;
    /* こげ茶色のやさしいボーダー */
    --text-color: #3e2723;
    --primary-color: #ff8a80;
    /* パステルレッド */
    --hover-color: #ff5252;
    --hp-color: #69f0ae;
    /* パステルグリーン */
    --mp-color: #40c4ff;
    /* パステルブルー */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DotGothic16', sans-serif;
    /* ドット絵風の可愛いフォント */
    background-color: #f5e6d3;
    /* クッキー生地のような温かいベージュ */
    /* A soft, warm background color like a cookie */
    background-image:
        radial-gradient(circle, rgba(210, 170, 120, 0.3) 8px, transparent 8px),
        radial-gradient(circle, rgba(190, 150, 100, 0.2) 5px, transparent 5px),
        radial-gradient(circle, rgba(220, 180, 130, 0.25) 6px, transparent 6px);
    background-size: 90px 90px, 70px 70px, 110px 110px;
    background-position: 0 0, 35px 45px, 55px 20px;
    /* クッキーのチョコチップ風ドット模様 */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ふわふわ浮遊するクッキー・お菓子の背景 */
body::before {
    content: '🍪 ✨ 🍬 🍩 🧁 ✨ 🍪 🍬 🍭 ✨ 🍪 🍩 🍬 ✨ 🧁 🍭';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    font-size: 1.8rem;
    word-spacing: 70px;
    line-height: 130px;
    letter-spacing: 50px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
    animation: floatBg 25s linear infinite;
}

.game-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ピクセル風ボックス（レトロゲーム枠） */
.pixel-box {
    background: var(--box-bg);
    border: 4px solid var(--border-color);
    border-radius: 8px;
    /* 角を少し丸くしてかわいさをプラス */
    padding: 20px;
    box-shadow: 4px 4px 0px rgba(62, 39, 35, 0.2);
    margin-bottom: 20px;
    position: relative;
}

/* ナビゲーション */
.nav-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 10px;
    z-index: 100;
    background: #fffdf5;
    /* Creamy white background */
}

.logo {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 0px #fff, -1px -1px 0 #fff;
}

nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* NES風ボタン */
.nes-btn {
    font-family: 'DotGothic16', sans-serif;
    background-color: #f5f5f5;
    border: 3px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: 2px 2px 0px var(--border-color);
    transition: all 0.1s ease;
}

.nes-btn:hover {
    background-color: #e0e0e0;
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--border-color);
}

.nes-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.nes-btn.primary:hover {
    background-color: var(--hover-color);
}

/* セクション見出し */
.section {
    margin: 40px 0;
    animation: fadeIn 0.8s ease-in;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #fff;
    color: var(--primary-color);
}

/* ヒーローセクション */
.hero {
    text-align: center;
    padding: 50px 20px;
    background: #ffe0b2;
    /* A light orange-yellow like a cookie */
}

.sprite-container {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* メインキャラクター/スライム風のキャラクター */
.character-sprite {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border: 4px solid var(--border-color);
    border-radius: 50% 50% 20% 20%;
    position: relative;
    animation: float 1.5s infinite alternate ease-in-out;
    box-shadow: inset -5px -5px 0px rgba(0, 0, 0, 0.1);
}

/* スライムの目 */
.eye {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 22px;
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.eye-left {
    left: 14px;
}

.eye-right {
    right: 14px;
}

.pupil {
    width: 8px;
    height: 8px;
    background: var(--border-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* 年表の縦ライン（削除済み） */

/* 時代ヘッダー（歴史教科書風・シンプル化） */
.era-header {
    position: relative;
    padding: 10px 15px;
    background: #f5f5f5;
    /* より落ち着いた色 */
    color: #3e2723;
    font-family: 'DotGothic16', sans-serif;
    font-size: 1.1rem;
    border-left: 8px solid #5d4037;
    /* 左側に太いライン */
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 30px 0 15px 0;
    border-radius: 0;
    text-align: left;
    font-weight: bold;
}

.era-header::after {
    display: none;
    /* 矢印を削除 */
}

/* メッセージウィンドウ */
.message-box {
    background: var(--border-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px var(--border-color);
    margin: 20px auto;
    width: 90%;
    min-height: 90px;
    text-align: left;
    font-size: 1.1rem;
    position: relative;
}

#typewriter-text {
    display: inline;
}

.blinking-cursor {
    animation: blinker 1s steps(2, start) infinite;
    color: var(--primary-color);
}

.start-btn {
    margin-top: 20px;
    font-size: 1.2rem;
    padding: 10px 20px;
    animation: pulse 2s infinite;
}

/* ステータス画面 */
.status-window {
    display: flex;
    gap: 30px;
    background: #e1bee7;
    /* Main purple color */
}

.avatar-box {
    flex-shrink: 0;
}

.avatar-img {
    width: 120px;
    height: 120px;
    background-color: #fff;
    background-image: url('Image/profile.png');
    background-size: cover;
    background-position: center;
    border: 4px solid var(--border-color);
    border-radius: 8px;
}

.stats-box {
    flex-grow: 1;
}

.stats-box p {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.bar-bg {
    display: inline-block;
    width: 150px;
    height: 16px;
    background: #5d4037;
    border: 2px solid #fff;
    border-radius: 4px;
    vertical-align: middle;
    margin: 0 10px;
}

.hp-fill {
    display: block;
    height: 100%;
    background: var(--hp-color);
    width: 100%;
}

.mp-fill {
    display: block;
    height: 100%;
    background: var(--mp-color);
    width: 100%;
}

.bio-box {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

/* 黄金に輝くテキスト - 感動エフェクト強化 */
.gold-text {
    display: inline-block;
    color: #ffd700;
    font-weight: bold;
    -webkit-text-stroke: 1.5px #4e342e;
    /* 少し太くしてコントラストを出す */
    paint-order: stroke fill;
    text-shadow:
        2px 2px 0px #3e2723,
        0 0 10px rgba(255, 215, 0, 0.9),
        0 0 20px rgba(255, 165, 0, 0.6);
    animation: goldGlow 1.2s ease-in-out infinite alternate;
    /* 少し速くしてキラキラ感を出す */
}

@keyframes goldGlow {
    from {
        text-shadow:
            2px 2px 0px #3e2723,
            0 0 8px rgba(255, 215, 0, 0.8),
            0 0 15px rgba(255, 165, 0, 0.4);
        transform: scale(1);
    }

    to {
        text-shadow:
            2px 2px 0px #3e2723,
            0 0 15px rgba(255, 215, 0, 1),
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 45px rgba(255, 165, 0, 0.6);
        transform: scale(1.15);
        /* わずかに大きくして強調 */
        color: #fffb00;
    }
}

/* 緊急用赤文字 */
.text-red {
    color: #ff5252;
    font-weight: bold;
}

/* スキル */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.skill-card {
    text-align: center;
    transition: transform 0.2s, opacity 0.3s, max-height 0.3s;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.skill-hidden {
    display: none;
}

.skills-expanded .skill-hidden {
    display: block;
    animation: fadeIn 0.5s ease;
}

.expand-btn {
    display: block;
    margin: 15px auto 0;
    font-size: 0.95rem;
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 4px solid var(--border-color);
    border-radius: 50%;
    /* 丸くする */
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

/* 制作物 (ポートフォリオ) - タブ */
.works-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.works-tab-btn {
    font-family: 'DotGothic16', sans-serif;
    background: #f5f5f5;
    border: 3px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    padding: 10px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s;
    box-shadow: 2px -2px 0px rgba(62, 39, 35, 0.15);
}

.works-tab-btn:hover {
    background: #ffe0b2;
    transform: translateY(-2px);
}

.works-tab-btn.active {
    background: #bbdefb;
    border-bottom: 3px solid #bbdefb;
    color: var(--border-color);
    font-weight: bold;
    box-shadow: 2px -2px 0px rgba(62, 39, 35, 0.25), inset 0 -3px 0 rgba(255, 255, 255, 0.5);
}

/* タブコンテンツ */
.works-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.works-tab-content.active {
    display: block;
}

/* 作品グリッド */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 作品カード */
.work-card {
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    background: #e3f2fd;
    padding: 12px;
    text-align: center;
}

.work-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 6px 6px 0px rgba(62, 39, 35, 0.3), 0 0 20px rgba(255, 138, 128, 0.3);
    border-color: var(--primary-color);
}

/* カード画像エリア */
.work-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: #fff;
    border: 3px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-card:hover .work-card-img img {
    transform: scale(1.05);
}

/* ホバー時のプレビュー動画 */
.work-card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.work-card.video-playing .work-card-video {
    opacity: 1;
}

.work-card.video-playing .work-card-img img {
    opacity: 0;
}

/* 画像が読み込めない時のプレースホルダー */
.work-card-img.placeholder {
    background: linear-gradient(135deg, #e8d5f5 0%, #bbdefb 50%, #ffe0b2 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.work-card-img.placeholder::after {
    content: 'NO IMAGE';
    font-size: 3rem;
    opacity: 0.6;
}

/* ホバー時のオーバーレイ */
.work-card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 39, 35, 0.6);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 4px;
    z-index: 2;
}

.work-card:hover .work-card-hover {
    opacity: 1;
}

/* カードタイトル */
.work-card-title {
    margin-top: 12px;
    font-size: 1.1rem;
    color: var(--text-color);
    text-shadow: 1px 1px 0 #fff;
}

/* ========== モーダル ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 850px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    background: #fffdf5;
    border: 4px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 30px 30px;
    box-shadow: 8px 8px 0px rgba(62, 39, 35, 0.4);
    animation: modalAppear 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: var(--primary-color);
    color: #fff;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    font-family: 'DotGothic16', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    z-index: 10;
    margin-top: -5px;
}

.modal-close:hover {
    background: var(--hover-color);
    transform: scale(1.1) rotate(90deg);
}

/* 詳細モーダルタイトル */
.modal-detail-title {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 #fff;
    padding-bottom: 15px;
    border-bottom: 3px dashed var(--border-color);
}

/* プレビュー動画 */
.modal-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* アスペクト比を固定して崩れを防ぐ */
    margin-bottom: 25px;
    border: 3px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.modal-video-wrapper video {
    width: 100%;
    display: block;
}

/* スクリーンショット */
.modal-img-wrapper {
    width: 100%;
    border: 3px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 25px;
}

.modal-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* プレイボタン */
.modal-play-section {
    text-align: center;
    margin-bottom: 25px;
}

.play-game-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    border: 4px solid var(--border-color);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-family: 'DotGothic16', sans-serif;
    cursor: pointer;
    box-shadow: 4px 4px 0px rgba(62, 39, 35, 0.4), 0 0 20px rgba(76, 175, 80, 0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    animation: playBtnPulse 2s ease-in-out infinite;
}

.play-game-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    animation: playBtnShine 3s ease-in-out infinite;
}

.play-game-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 6px 6px 0px rgba(62, 39, 35, 0.4), 0 0 30px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #66bb6a 0%, #388e3c 100%);
}

.play-game-btn:active {
    transform: translateY(2px);
    box-shadow: 2px 2px 0px rgba(62, 39, 35, 0.4);
}

.play-game-icon {
    font-size: 2rem;
    display: block;
}

.play-game-text {
    font-size: 1.15rem;
    font-weight: bold;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.play-game-sub {
    font-size: 0.8rem;
    opacity: 0.8;
}

.modal-play-note {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #ff5252;
    font-weight: bold;
    text-shadow: 1px 1px 0 #fff;
    animation: fadeIn 0.5s ease;
}

@keyframes playBtnPulse {
    0%, 100% { box-shadow: 4px 4px 0px rgba(62, 39, 35, 0.4), 0 0 15px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 4px 4px 0px rgba(62, 39, 35, 0.4), 0 0 25px rgba(76, 175, 80, 0.6); }
}

@keyframes playBtnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    30%, 100% { transform: translateX(100%) rotate(45deg); }
}

/* セクション見出し */
.modal-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
}

.modal-section-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 138, 128, 0.3);
    text-shadow: 1px 1px 0 #fff;
}

.modal-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 1rem;
}

.modal-section ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 基本情報テーブル（RPGステータス風） */
.modal-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.modal-info-table th {
    text-align: left;
    padding: 10px 15px;
    background: rgba(255, 138, 128, 0.15);
    border: 2px solid var(--border-color);
    width: 130px;
    font-weight: bold;
    color: var(--border-color);
    white-space: nowrap;
}

.modal-info-table td {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    background: #fff;
}

.modal-info-table tr:nth-child(even) td {
    background: #fef9f0;
}

/* こだわり・苦戦ポイントのカード */
.modal-detail-item {
    background: #fff;
    border: 2px solid rgba(62, 39, 35, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.modal-detail-item:hover {
    border-color: var(--primary-color);
}

.modal-detail-item h4 {
    color: var(--border-color);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.modal-detail-item p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 技術詳細 */
.modal-tech-item {
    background: #fff;
    border: 2px solid rgba(62, 39, 35, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.modal-tech-item h4 {
    color: var(--border-color);
    margin-bottom: 8px;
}

.modal-tech-img {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-top: 10px;
}

/* リンクボタン */
.modal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 連絡先 */
.contact-box {
    text-align: center;
    background: #fff9c4;
    /* Main yellow color */
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer {
    text-align: center;
    font-size: 0.9rem;
    background: var(--border-color);
    color: #fff;
    padding: 15px;
}

/* BGMコントローラー */
.bgm-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 3px 3px 0px rgba(62, 39, 35, 0.3);
}

.bgm-btn {
    font-family: 'DotGothic16', sans-serif;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    white-space: nowrap;
}

.bgm-btn:hover {
    color: var(--primary-color);
}

#bgm-volume {
    width: 80px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Animations */
@keyframes float {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-15px);
    }
}

@keyframes blink {

    0%,
    96%,
    98% {
        transform: scaleY(1);
    }

    97% {
        transform: scaleY(0.1);
    }
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatBg {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

/* スマホ対応 */
@media (max-width: 600px) {
    .nav-box {
        flex-direction: column;
        gap: 10px;
    }

    nav {
        justify-content: center;
    }

    .status-window {
        flex-direction: column;
        text-align: center;
    }

    .bar-bg {
        width: 100px;
    }

    .works-tabs {
        gap: 5px;
    }

    .works-tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 20px 15px 15px;
    }
}

/* 受賞バッジ */
.award-badge {
    position: absolute;
    top: 10px;
    left: -10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffcc00 50%, #ff9900 100%);
    color: #3e2723;
    padding: 5px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 2px solid #3e2723;
    border-radius: 4px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    z-index: 5;
    transform: rotate(-5deg);
    animation: badgePop 1s ease-out;
    pointer-events: none;
}

.award-badge::before {
    content: '🏆 ';
}

@keyframes badgePop {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    70% {
        transform: scale(1.1) rotate(-5deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(-5deg);
    }
}

.modal-award {
    display: inline-block;
    background: linear-gradient(135deg, #fff9c4 0%, #ffd700 100%);
    border: 3px solid #3e2723;
    padding: 8px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.event-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    border: 2px solid #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 2px 2px 0px rgba(25, 118, 210, 0.2);
}

/* 注目作品 - 大きな2カラムレイアウト */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 20px 0;
}

.featured-card {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    background: linear-gradient(135deg, #fffdf5 0%, #fff3e0 100%);
    padding: 0;
    text-align: center;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    animation: featuredFadeIn 0.8s ease-out;
}

.featured-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 8px 8px 0px rgba(62, 39, 35, 0.35), 0 0 30px rgba(255, 138, 128, 0.4);
    border-color: var(--primary-color);
}

@keyframes featuredFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* PICK UP バッジ */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8a80 50%, #ffab91 100%);
    color: #fff;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 2px solid #fff;
    border-radius: 20px;
    box-shadow: 2px 2px 8px rgba(255, 107, 107, 0.4);
    z-index: 6;
    animation: badgePulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 2px 2px 8px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 2px 2px 15px rgba(255, 107, 107, 0.7);
    }
}

/* カード画像エリア */
.featured-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-img img {
    transform: scale(1.08);
}

/* ホバー時のオーバーレイ */
.featured-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(62, 39, 35, 0.1) 0%, rgba(62, 39, 35, 0.7) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

.featured-card:hover .featured-card-overlay {
    opacity: 1;
}

.featured-play-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 138, 128, 0.9);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.featured-card:hover .featured-play-icon {
    animation: playBounce 0.6s ease;
}

@keyframes playBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* カード動画 - featuredカード用 */
.featured-card .work-card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.featured-card.video-playing .work-card-video {
    opacity: 1;
}

.featured-card.video-playing .featured-card-img img {
    opacity: 0;
}

/* カード情報エリア */
.featured-card-info {
    padding: 18px 20px 22px;
    text-align: left;
    background: linear-gradient(180deg, #fff 0%, #fffdf5 100%);
    border-top: 3px solid var(--border-color);
}

.featured-card-title {
    font-size: 1.4rem;
    color: var(--text-color);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

.featured-card-genre {
    font-size: 0.95rem;
    color: #795548;
    margin-bottom: 12px;
}

.featured-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.featured-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border: 2px solid #90caf9;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.2s;
}

.featured-tag:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    transform: translateY(-2px);
}

/* スマホ対応 */
@media (max-width: 700px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* 新作作品用 - 1カラムで大きく見せる */
.featured-grid-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 20px 0;
}

.featured-card-large .featured-card-img {
    aspect-ratio: 16 / 10; /* 他のカードと合わせる */
}

.new-badge {
    background: linear-gradient(135deg, #00c853 0%, #64dd17 50%, #aeea00 100%) !important;
    box-shadow: 2px 2px 8px rgba(0, 200, 83, 0.4) !important;
}

/* サムネイル右端ロゴ：現在自分の実力 */
.skill-logo-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 50%, #ff5252 100%);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.95rem;
    font-weight: bold;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 3px 3px 0px rgba(62, 39, 35, 0.4);
    z-index: 5;
    pointer-events: none;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
    transform: rotate(-3deg);
    letter-spacing: 1px;
    animation: logoPop 2s ease-in-out infinite;
}

@keyframes logoPop {
    0%, 100% {
        transform: scale(1) rotate(-3deg);
        box-shadow: 3px 3px 0px rgba(62, 39, 35, 0.4);
    }
    50% {
        transform: scale(1.05) rotate(-5deg);
        box-shadow: 5px 5px 0px rgba(62, 39, 35, 0.4);
    }
}

/* ========== 制作中作品 (WIP) セクション ========== */
.wip-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    animation: featuredFadeIn 0.8s ease-out;
}

.wip-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 8px 8px 0px rgba(62, 39, 35, 0.35), 0 0 30px rgba(255, 183, 77, 0.4);
    border-color: #ffb74d;
}

/* NOW DEVELOPING バッジ */
.wip-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 50%, #f57c00 100%);
    color: #fff;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid #fff;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(255, 152, 0, 0.5);
    z-index: 10;
    animation: wipBadgePulse 2s ease-in-out infinite;
    pointer-events: none;
    letter-spacing: 1px;
}

@keyframes wipBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 2px 2px 10px rgba(255, 152, 0, 0.5);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 2px 2px 20px rgba(255, 152, 0, 0.8);
    }
}

/* ビジュアルエリア */
.wip-card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* バックグラウンド動画（常時再生） */
.wip-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5) saturate(1.2);
    transition: filter 0.5s ease;
}

.wip-card:hover .wip-bg-video {
    filter: brightness(0.7) saturate(1.3);
}

/* ホバー時のフル動画 */
.wip-card .work-card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.wip-card.video-playing .work-card-video {
    opacity: 1;
}

.wip-card.video-playing .wip-bg-video {
    opacity: 0;
}

.wip-card.video-playing .wip-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.6) 100%);
}

/* オーバーレイ */
.wip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding: 30px 35px;
    transition: background 0.5s ease;
}

.wip-overlay-content {
    color: #fff;
    text-align: left;
    width: 100%;
}

.wip-title {
    font-size: 2rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.wip-genre {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.wip-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

/* 進捗バー */
.wip-progress-section {
    max-width: 350px;
}

.wip-progress-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.wip-progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.wip-progress-fill {
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, #ffb74d 0%, #ff9800 50%, #f57c00 100%);
    border-radius: 6px;
    position: relative;
    animation: wipProgressGlow 2s ease-in-out infinite;
}

.wip-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    animation: wipProgressShine 2s ease-in-out infinite;
}

@keyframes wipProgressGlow {
    0%, 100% {
        box-shadow: 0 0 6px rgba(255, 152, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 152, 0, 0.9);
    }
}

@keyframes wipProgressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(250%);
    }
}

/* スマホ対応 - WIP */
@media (max-width: 700px) {
    .wip-card-visual {
        aspect-ratio: 16 / 10;
    }

    .wip-title {
        font-size: 1.4rem;
    }

    .wip-overlay {
        padding: 20px;
    }

    .wip-progress-section {
        max-width: 100%;
    }
}

/* 強調赤文字 */
.text-red {
    color: #e53935;
    font-weight: bold;
}