@charset "UTF-8";

/* ============================================================
   下層ページ共通レイアウト（横並び維持用）
   ============================================================ */
.under-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}
.side-left { width: 250px; flex-shrink: 0; }
.under-main { width: 920px; flex-shrink: 0; }

.system-main-title {
    background-color: #3ec6f0;
    color: #fff;
    padding: 12px 20px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
}
.system-main-title span { font-size: 14px; margin-left: 10px; font-weight: normal; }

/* ============================================================
   コスチュームページ専用スタイル
   ============================================================ */
.costume-page-container {
    background-color: #fff;
    padding-bottom: 50px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.costume-intro {
    padding: 0 20px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 3列グリッドの設定 */
.costume-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 20px; /* 縦30px、横20pxの隙間 */
    padding: 0 20px;
}

.costume-item {
    width: calc(33.333% - 14px); /* 横3列計算 */
    text-align: center;
}

.costume-img-box {
    border: 1px solid #eee;
    padding: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
}

.costume-img-box:hover {
    opacity: 0.8;
    border-color: #3ec6f0;
}

.costume-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

.costume-name {
    margin-top: 10px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #3ec6f0;
    display: inline-block;
    padding: 0 10px 2px;
}

/* ============================================================
   モーダル（ポップアップ）スタイル
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #fff;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}