@charset "utf-8";
/*
Theme Name: Lightning Child Plus
Template: lightning
Description: ★ イラスト・キャラクター制作　株式会社ルノテオ★
Author: ★ Hiroko Kaimiya ★
Tags: 
Version: 0.1.2
*/

/* ==========================================
   サムネイル画像スタイル（共通化）
   ========================================== */

/* #artwork または .artwork-gallery 内のサムネイル画像に適用 */ #artwork img, .artwork-gallery img {
    width: 180px;
    height: 180px;
    object-fit: cover;        /* 縦横比を崩さず中心で切り抜き */
    object-position: center;   /* 画像の中心を基準にして表示 */
    border-radius: 4px;       /* 角丸設定 */
    cursor: zoom-in;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;

    /* 上下左右 5px のスペース */
    margin: 5px;

    /* 二重線枠・影・文字色 */
    border: double 5px #d3bd91;
    box-shadow: 0 0 5px;
    color: #fff;
}

/* ホバー時の効果 */
#artwork img:hover,
.artwork-gallery img:hover {
    opacity: 0.85;
    box-shadow: 0 0 10px rgba(211, 189, 145, 0.8); /* ホバー時に少し光る演出 */ }


/* ==========================================
   モーダル（拡大表示）スタイル
   ========================================== */

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.image-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-overlay img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border: none;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transform: scale(0.85);
    transition: transform 0.3s ease;
    cursor: zoom-out;
}

.image-modal-overlay.active img {
    transform: scale(1);
}

.image-modal-close {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: background-color 0.2s ease, transform 0.2s ease;
    user-select: none;
    z-index: 100000;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) scale(1.05); }

.image-modal-close span {
    font-size: 18px;
    line-height: 1;
}

