/* ========== 大会記録ページ専用スタイル ========== */

/* ページタイトルのスタイル */
.records-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.records-subtitle {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin-bottom: 60px;
}

/* 記録カードのコンテナ */
#records-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 個々の記録カード */
.record-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.record-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* カードのヘッダー（日付と大会名） */
.record-header {
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.record-date {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.record-name {
    font-size: 22px;
    font-weight: 700;
    color: #343a40;
    margin: 0;
}

/* カードの本文（成績） */
.record-body {
    padding: 25px;
    line-height: 1.8;
    color: #495057;
    white-space: normal; /* pre-wrapから変更 */
    word-wrap: break-word; /* 長い単語でも折り返す */
}

/* 画像ギャラリー */
.record-gallery {
    padding: 0 25px 25px 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.record-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.record-gallery img:hover {
    opacity: 0.8;
}

/* ローディング表示のスタイル */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #999;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .records-title {
        font-size: 28px;
    }
    .record-name {
        font-size: 20px;
    }
    .record-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
/* 拡大表示時の背景 */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* 拡大表示される画像 */
.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* 閉じるボタン */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

/* 画像ギャラリーのデフォルトサイズを少し大きくする */
.record-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 最小幅を150pxから200pxに変更 */
}