/* =========================================
   1. 基本設定 & カラー変数
   ========================================= */
:root {
    --main-color: #FF6B6B;  /* ピンク */
    --accent-color: #4ECDC4;
    --bg-color: #F7FFF7;
    --text-color: #292F36;
    --yellow: #FFE66D;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.center-box {
    width: 100%;
    height: auto; /* 👈 100px から auto に変更（高さ固定を解除） */
    margin: 15px;

    display: flex;
    justify-content: center;
    align-items: center; /* 👈 flex-end から center に変更 */

    /* 文字のデザイン */
    font-size: 1.1rem;
    font-weight: bold;
    color: #292F36;
}

/* 👇 .center-box のすぐ下にこのブロックを追加してください */
.center-box p {
    margin: 0; /* Pタグ勝手の上下余白を消す */
    line-height: 1.5;
    text-align: center;
}

.info-row {
    display: flex;
    align-items: flex-start; /* アイコンと1行目の上端を揃える */
    gap: 12px;               /* アイコンとテキストの間のスキマ（お好みで調整） */
    padding: 15px 0;
}

.info-icon {
    font-weight: bold;
    color: #ff6b6b;          /* 赤ピンク色 */
    white-space: nowrap;     /* アイコンが途中で改行されるのを防ぐ */
}

.info-content {
    display: flex;
    flex-direction: column;  /* テキストを縦に2行並べる */
    gap: 6px;                /* 1行目と2行目の上下のスキマ */
}

.main-text {
    font-weight: bold;
    color: #333;
}

.sub-text {
    color: #333;
    font-size: 0.95rem;      /* 2行目を少し小さくする場合 */
}

/* =========================================
   2. ヘッダー
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo a {
    font-family: 'RocknRoll One', sans-serif;
    font-size: 1.4rem;
    color: var(--main-color); 
    text-decoration: none;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--main-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span { width: 25px; height: 3px; background-color: var(--text-color); }

/* =========================================
   3. トップページ (index.html) の背景画像
   ========================================= */
.hero {
    background-image: url('images/display-2-600x400.png'); 
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: darken;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.main-title {
    font-family: 'RocknRoll One', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin: 10px 0;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.sub-title { font-size: 1.2rem; letter-spacing: 2px; }

.date {
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
}

.countdown {
    margin-top: 30px;
    background: white;
    color: var(--main-color);
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: inline-block;
}
#timer { font-size: 1.5rem; font-weight: bold; font-family: 'RocknRoll One', sans-serif; }

.news-ticker {
    background: var(--accent-color);
    color: white;
    padding: 10px;
    overflow: hidden;
}
.news-content p {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 15s linear infinite;
    padding-left: 100%;
    margin: 0;
    font-weight: bold;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   4. 企画一覧ページ (projects.html) のヘッダー画像
   ========================================= */
.page-header {
    background-image: url('images/display-2-600x400.png'); 
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.4); 
    background-blend-mode: darken;
    text-align: center;
    padding: 100px 20px;
    color: white;
}

.page-header h1 {
    font-family: 'RocknRoll One', sans-serif;
    color: white;
    margin: 0;
    font-size: 3rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 15px;
}

.page-header p {
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    margin: 0;
}

/* タグと場所を入れる枠 */
.card-meta {
    display: flex;
    align-items: center; /* 縦のズレを中央で揃える */
    margin-bottom: 10px; /* 下のタイトルとのスキマ */
}

/* 枠の中に入れたタグの余白をリセット */
.card-meta .tag {
    margin-bottom: 0;
}

/* 実施場所のテキストを右詰めにする */
.location {
    margin-left: auto; /* 👈 これが重要！左側の余白を全開にして右端に押しやる */
    text-align: right; /* 文字自体も右揃えにする */
    font-size: 0.85rem;
    color: #666; 
    font-weight: bold;
}

/* マップピンのアイコンの色 */
.location i {
    color: var(--main-color);
    margin-right: 4px;
}
/* =========================================
   5. メインコンテンツ共通
   ========================================= */
.container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-family: 'RocknRoll One', sans-serif;
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 40px;
    border-bottom: 4px solid var(--yellow);
    display: inline-block;
    padding-bottom: 5px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.info-list { list-style: none; padding: 0; margin-top: 20px; }
.info-list li { border-bottom: 1px solid #eee; padding: 15px 0; font-size: 1.1rem; }
.info-list li strong { color: var(--main-color); margin-right: 10px; font-size: 1.2rem; }

/* =========================================
   6. グリッド & カード (共通)
   ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-5px); }

.card-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; }
.card h3 { margin: 10px 0; color: var(--main-color); }

/* タグのデザイン */
.tag {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 50px;
    color: white;
    margin-bottom: 10px;
    display: inline-block;
    font-weight: bold;
}
.tag.food { background: #FF9F1C; }
.tag.game { background: #2EC4B6; }
.tag.exhibit { background: #E71D36; }
.tag.escape { background: #C1B597; }
.tag.casino { background: #FC7045; }
.tag.performance { background: #f39800; }

/* =========================================
   7. モーダル & その他
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer; 
}

.modal.active { display: flex; opacity: 1; }

.modal-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    position: relative;
}
#modal-img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.modal-text { color: white; text-align: left; }
#modal-title { font-size: 1.8rem; margin-bottom: 10px; color: white; font-family: 'RocknRoll One', sans-serif; }
#modal-desc { color: #ddd; white-space: pre-wrap; line-height: 1.8; }

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    line-height: 1;
}

/* 絞り込みボタン */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    margin-top: 30px;
}
.filter-btn {
    border: 2px solid var(--main-color);
    background: white;
    color: var(--main-color);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--main-color);
    color: white;
}
.project-item.hide { display: none; }
.project-item { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
    display: inline-block;
    background: var(--main-color);
    color: white;
    padding: 12px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-primary:hover { background: #e65b5b; }

.map-placeholder {
    width: 100%;
    height: 300px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}
.sns-links a { color: white; font-size: 1.5rem; margin: 0 10px; }

@media (max-width: 768px) {
    .main-title { font-size: 3rem; }
    .hamburger { display: flex; }
    nav {
        display: none;
        position: absolute;
        top: 60px; left: 0; width: 100%;
        background: white;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    nav.active { display: block; }
    nav ul { flex-direction: column; align-items: center; }
}

/* ご案内・お願いカードの並び（折り返しOK＆中央寄せ） */
.notice-grid {
    display: flex;
    flex-wrap: wrap; /* 横幅が足りなくなったら自動で折り返す */
    justify-content: center; /* 折り返した2行目のカードも中央に揃える */
    gap: 20px; /* カード同士のスキマ */
    margin-top: 20px;
}

/* カード1枚ずつのデザイン */
.notice-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    
    /* 👇 幅を大きめに設定（幅220px〜260px程度でゆったり表示） */
    width: 100%;
    max-width: 260px;
    flex: 1 1 220px; /* 最小幅220pxを確保して幅広に */
}

/* アイコン画像 */
.notice-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* カードの中の文字 */
.notice-card p {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.5; /* 行間を少し広げて読みやすく */
}

/* =========================================
   8. 検索ウィンドウ & フィルター調整 (横並び版)
   ========================================= */

.filter-wrapper {
    display: flex;             /* 横並びにする魔法 */
    justify-content: space-between; /* 両端に配置（左にボタン、右に検索） */
    align-items: center;       /* 上下の中心を揃える */
    flex-wrap: wrap;           /* 画面が狭いときは折り返す */
    gap: 20px;                 /* ボタンと検索窓の間隔 */
    margin-bottom: 30px;
    width: 100%;
}

.filter-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;           /* ボタンが多い場合も折り返す */
}

/* 検索ボックスのデザイン */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 10px 15px 10px 40px;
    border-radius: 50px;
    border: 2px solid #ddd;
    outline: none;
    font-size: 1rem;
    width: 250px; /* PCでの幅 */
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #ff6b6b; /* テーマカラーに合わせて変更OK */
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
}

.search-box i {
    position: absolute;
    left: 15px;
    color: #aaa;
}

/* --- スマホ対応（縦並びに戻す） --- */
@media (max-width: 768px) {
    .filter-wrapper {
        flex-direction: column; /* 縦並びにする */
        justify-content: center;
    }
    
    .filter-container {
        justify-content: center; /* ボタンを中央寄せ */
    }

    .search-box {
        width: 100%;             /* 検索窓を横幅いっぱいに */
        justify-content: center;
    }

    .search-box input {
        width: 90%;              /* スマホでは少し幅広に */
    }
}

/* =========================================
   マトリックス型タイムテーブル（場所ごと横並び）
   ========================================= */

/* スマホ向けのスクロール案内テキスト */
.scroll-instruction {
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

/* 横スクロール用の大枠 */
.timetable-matrix-wrapper {
    width: 100%;
    overflow-x: auto; /* ここでスマホでの横スクロールを可能にする */
    padding-bottom: 20px;
}

/* 表全体のレイアウト */
.timetable-matrix {
    display: flex;
    min-width: 900px; /* これより狭くならないようにしてスクロールさせる */
    gap: 15px;
}

/* 左端の「時間」列 */
.time-col {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.time-slot {
    height: 100px; /* 1時間を100pxの高さにする */
    font-weight: bold;
    color: #555;
    font-size: 0.95rem;
    border-top: 1px solid #ddd;
    padding-top: 5px;
    font-family: 'RocknRoll One', sans-serif;
}

/* 各場所の列（講堂、校庭など） */
.location-col {
    flex: 1;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.location-col.pink-bg { background-color: #FF9EBB; } /* 画像のピンク */
.location-col.blue-bg { background-color: #82B3D5; } /* 画像のブルー */

/* 各列の場所名ヘッダー */
.matrix-header {
    height: 40px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* 企画の白いカード */
.matrix-card {
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.m-time {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 5px;
}

.m-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #222;
}
/* =========================================
   タイムテーブル（時間ピッタリ絶対配置パッチ）
   ========================================= */

/* 1時間を120pxにする（1分＝2pxの計算で9:00〜16:00に対応） */
.time-slot {
    height: 120px !important;
}

/* 各場所の列の追加カラー（校庭・90周年ホール） */
.location-col.red-bg { background-color: #FF7676; }
.location-col.green-bg { background-color: #66C282; }

/* カードを指定の時間の位置に絶対配置する設定 */
.matrix-card {
    position: absolute;
    width: 100%;
    left: 0;
    margin-top: 0 !important; /* 古い余白設定を無効化 */
    min-height: 35px; /* 10分の短い企画でも文字が読めるように保護 */
    padding: 5px;
    box-sizing: border-box;
    z-index: 2;
}

/* 小さい枠でも文字がはみ出さないように調整 */
.m-time {
    font-size: 0.75rem;
    margin-bottom: 2px;
}
.m-title {
    font-size: 0.85rem;
    line-height: 1.2;
}

/* =========================================
   タイムテーブル位置・隙間の自動調整スタイル
   ========================================= */

/* すべてのカード：時間軸（グリッド）の正確さを保ったまま、カード同士がくっつかないように上下に隙間を作る */
.matrix-card {
    box-sizing: border-box;
    border-top: 3px solid transparent !important;   /* 上側に透明な隙間を作ってクッションにする */
    border-bottom: 3px solid transparent !important;/* 下側に透明な隙間を作ってクッションにする */
    background-clip: padding-box !important;        /* 背景色が透明な隙間にはみ出さないようにする */
}

/* （雨）カードの背景を薄く（半透明に）する */
.matrix-card.rain-card {
    background-color: rgba(255, 255, 255, 0.6) !important; /* 白背景を薄くしてステージカラーを透けさせる */
    box-shadow: 0 2px 4px rgba(0,0,0,0.04); /* 影を控えめにして馴染ませる */
    color: #444; /* 文字色を少し優しく */
    position: relative;
}

/* （雨）カードの内側にオシャレな点線の枠線をつける（background-clipの影響を受けない方法） */
.matrix-card.rain-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: 1px dashed rgba(0, 0, 0, 0.25); /* 内側に綺麗な点線を描く */
    border-radius: 6px; /* カードの角丸にフィットさせる */
    pointer-events: none; /* クリックイベントを邪魔しない */
}

/* =========================================
   自慢したくなるオシャレなタブボタン（カプセル型）
   ========================================= */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 15px auto;
    background-color: #eee; /* 背景のベースとなる薄いグレー */
    padding: 6px;
    border-radius: 40px;    /* 完全なカプセル型 */
    max-width: 340px;       /* ボタン全体の横幅 */
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.07); /* 内側の影で凹みを表現 */
}

.tab-btn {
    flex: 1;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    color: #666;            /* 選択されていない時の文字色 */
    background: transparent;
    border: none;
    border-radius: 35px;    /* ボタンも角丸に */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 動きを滑らかに */
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* マウスを乗せたとき（PC用） */
.tab-btn:hover {
    color: #222;
}

/* 🔥 アクティブ（選択中）のボタン：ふわっと浮き出る立体デザイン */
.tab-btn.active {
    background-color: #ffffff !important; /* 白い塊が浮き上がってくる */
    color: var(--main-color) !important;  /* 文字色をサイトのテーマピンクに */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important; /* 綺麗な影で立体感を出す */
    transform: translateY(-1px); /* ほんの少し上に浮く */
}

/* =========================================
   【重要】表示・非表示の強制コントロール
   ========================================= */
/* 他のどのCSSのバグにも負けないよう「!important」で強制固定します */
.timetable-content {
    display: none !important;
}

/* activeクラスがついている日だけを確実に引っ張り出す */
.timetable-content.active {
    display: block !important;
}

/* =========================================
   マトリックス型タイムテーブル（場所ごと横並び）
   ========================================= */

.scroll-instruction {
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.timetable-matrix-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
}

.timetable-matrix {
    display: flex;
    min-width: 900px;
    gap: 15px;
    position: relative; /* 優先時間バーの基準点 */
}

/* 左端の「時間」列 */
.time-col {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 20 !important; /* 時間の文字を最前面に浮き出させる */
}

.time-slot {
    height: 120px !important; /* 1時間 ＝ 120px */
    font-weight: bold;
    color: #555;
    font-size: 0.95rem;
    border-top: 1px solid #ddd;
    padding-top: 5px;
    font-family: 'RocknRoll One', sans-serif;
    box-sizing: border-box;
}

/* 各場所の列 */
.location-col {
    flex: 1;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.location-col.pink-bg { background-color: #FF9EBB; }
.location-col.blue-bg { background-color: #82B3D5; }
.location-col.red-bg { background-color: #FF7676; }
.location-col.green-bg { background-color: #66C282; }

.matrix-header {
    height: 40px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* 企画の白いカード */
.matrix-card {
    background-color: white;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    width: 100%;
    left: 0;
    box-sizing: border-box;
    z-index: 5;
}

.m-time {
    font-size: 0.75rem;
    color: #333;
    margin-bottom: 2px;
}

.m-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: #222;
    line-height: 1.2;
}

/* 💡 クラス優先時間の白い四角（1時間240pxの点線に完全に合わせるパッチ） */
.priority-overlay-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 530px;     /* 1日目・2日目の11:00の点線位置にジャストフィット */
    height: 240px;  /* 11:00〜13:00の2時間分（240px）に固定 */
    background-color: rgba(255, 255, 255, 0.96); 
    border-top: 2px dashed #ff6b6b;
    border-bottom: 2px dashed #ff6b6b;
    z-index: 10;    /* 時間軸(20)の下、背景の上 */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    box-sizing: border-box;
}

.priority-overlay-bar span {
    font-size: 1rem;
    font-weight: bold;
    color: #ff6b6b;
    letter-spacing: 2px;
    background: #fff;
    padding: 4px 16px;
    border-radius: 30px;
    border: 1px solid #ff6b6b;
}

/* =========================================
   マップ機能
   ========================================= */
   /* ピンのデザインと配置設定 */
.map-pin {
    position: absolute;   /* 地図の上で自由な位置に固定する魔法 */
    font-size: 24px;
    color: var(--main-color); /* あなたのサイトのピンク色 */
    cursor: pointer;
    transform: translate(-50%, -100%); /* ピンの先端を正確な座標に合わせる調整 */
    z-index: 10;
}

/* 軽くアニメーションをつけるとリッチになります */
.map-pin:hover {
    transform: translate(-50%, -100%) scale(1.2);
}

/* 1. ヒットボックス本体（アイソメマップに合わせた斜め長方形） */
.hitbox {
    position: absolute;
    transform: translate(-50%, -50%) skewY(34.7 deg) rotate(15deg);
    background: rgba(255, 0, 0, 0.35); /* 位置調整用の赤色半透明 */
    border: 2px dashed #ff0000;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    box-sizing: border-box;
    user-select: none;
    touch-action: manipulation;
    z-index: 20;
    transition: transform 0.2s, background 0.2s;
}

/* 2. 中の文字設定 */
.hitbox-text {
    display: inline-block;
    transform: rotate(12deg) skewY(28deg);
}

.modal-img-container {
    position: relative;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 5;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.project-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}