﻿@charset "utf-8";

/* 全体の基本設定 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: linear-gradient(180deg, #1c1c1e 0%, #080808 100%); /* 深い闇を思わせる黒 */
    color: #e0e0e0; /* 暗背景に映えるライトグレー */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ================================
   ヘッダー
   ================================ */
.site-header {
    background: linear-gradient(90deg, #111111 0%, #2a2a2a 100%);
    box-shadow: 0 2px 15px rgba(0,0,0,0.8);
    border-bottom: 2px solid #b89947; /* 欲望を暗示する鈍いゴールド */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #d4af37; /* ゴールド */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.section-subtitle {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #888888;
    font-weight: 400;
    letter-spacing: 0.05em;
    font-style: italic;
}

.btn-outline {
    color: #d4af37;
    border: 2px solid #d4af37;
    background: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 14px;
}

.btn-outline:hover {
    background-color: #d4af37;
    color: #111111;
    transform: scale(1.05);
}

/* ================================
   パズルグリッド：隙間ゼロ設定
   ================================ */
.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 0;
    width: 90%;
    max-width: 1000px; 
    margin: 40px auto;
    padding: 0;
    background: #000000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid #333333;
}

.puzzle-item {
    display: block;
    line-height: 0;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    position: relative;
}

.puzzle-item img {
    display: block;
    width: 100%;
    height: auto;
    border: none;
    margin: 0;
    padding: 0;
}

.puzzle-item:hover {
    z-index: 10;
    filter: brightness(1.1);
    transform: scale(1.02); 
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); /* ホバー時にうっすらゴールドの光 */
}

/* ================================
   登録済みピース（.active）の視覚表現
   ================================ */
.active { 
    box-shadow: inset 0 0 0 2px #d4af37; /* ゴールドの枠線 */
    position: relative;
}

.active::after {
    content: "編集中";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.8); /* ゴールドのバッジ */
    color: #111111;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    box-sizing: border-box;
    pointer-events: none;
}
/* 登録済みピースの画像自体を少し暗く・落ち着いた色にする */
.active img {
    /* 明るさを70%に落とし、少しセピア調にして「古い・確定した」感じを出します */
    /*filter: brightness(0.7) sepia(0.3);*/
    /*transition: filter 0.3s ease;*/
}

/* ホバー時は少し明るく戻す */
.puzzle-item.active:hover img {
    /*filter: brightness(0.9) sepia(0.1);*/
}


/* ================================
   フッター
   ================================ */
.site-footer {
    background: #080808;
    border-top: 1px solid #222222;
    color: #666666;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

.footer-inner p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}