﻿@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, #fffdf0 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #5a4a42;
}

/* ================================
   ヘッダー（パステル）
   ================================ */
.site-header {
    background: linear-gradient(90deg, #ffcfd2 0%, #fde4cf 50%, #fbf8cc 100%);
    color: #7d5a5a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    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;
    text-shadow: 1px 1px 0px #ffffff;
    color: #7d5a5a; /* ブラウン */
}

.section-subtitle {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px; /* パズルグリッドとの距離を適度にとる */
    font-size: 0.95rem;
    color: #a68a7b; /* メインより少し薄めのココアブラウン */
    font-weight: 400;
    letter-spacing: 0.05em;
    font-style: italic; /* 少し斜体にすると、よりサブタイトルらしくなります */
}

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

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

/* ================================
   パズルグリッド：隙間ゼロ設定
   ================================ */
.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); 
    gap: 0; /* ★隙間を完全にゼロにする */
    width: 90%;
    max-width: 1000px; 
    margin: 40px auto;
    padding: 0;

    background: #000000; /* ★ここを真っ黒にします */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* 影も少し濃く */
    border: 1px solid #faedcd;
}

.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.05);
    /* 隙間なくつめている場合、拡大(scale)すると隣に重なります */
    transform: scale(1.02); 
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* ================================
   登録済みピース（.active）の視覚表現
   ================================ */
/* 登録済みピースの視覚効果 */
.active { 
    /* 枠線をサイトカラーのテラコッタピンクに変更 */
    box-shadow: inset 0 0 0 2px #e29578; 
    position: relative; /* ラベルを配置するための基準点 */
}
/* 登録済みピースの画像自体を少し暗く・落ち着いた色にする */
.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);*/
}

/* 画像の上に「登録済」ラベルをふんわり重ねる */
.active::after {
    content: "編集中"; /* もし文字が不要な場合は content: ""; としてください */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* ど真ん中に配置 */
    
    /* 円のサイズと形 */
    width: 80px;
    height: 80px;
    border-radius: 50%; /* ★これで完全な円になります */
    
    /* 色とデザイン */
    background-color: rgba(226, 149, 120, 0.5); /* テラコッタピンク（少し透ける） */
    color: #ffffff;
    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; /* 重要: クリックの邪魔にならないようにする */
}

/* ================================
   フッター
   ================================ */
.site-footer {
    background: linear-gradient(135deg, #f8edeb 0%, #fcd5ce 100%);
    color: #9d8189;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

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