/* ============================================================
トップページ - ヒーロー部分
============================================================ */
.hero {
background: linear-gradient(to right, #003366, #005599);
color: white;
padding: 60px 20px;
text-align: center;
}

.hero-content {
max-width: 1200px;
margin: 0 auto;
}

.hero-title {
font-size: 2.5em;
margin-bottom: 15px;
font-weight: 300;
letter-spacing: 2px;
}

.hero-info {
font-size: 1.2em;
opacity: 0.9;
margin-top: 10px;
}

.hero-date {
font-size: 1.3em;
margin-bottom: 8px;
}

.hero-venue {
font-size: 1.1em;
}

/* ============================================================
トップページ - 写真スライダー
============================================================ */
.photo-slider-section {
background: white;
padding: 0;
}

.slider-container {
max-width: 1200px;
margin: 0 auto;
position: relative;
height: 400px;
overflow: hidden;
}

.slider-track {
display: flex;
transition: transform 0.5s ease;
height: 100%;
}

.slide {
min-width: 100%;
height: 100%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}

.slide img {
width: 100%;
height: 100%;
object-fit: cover;
}

.slide.placeholder {
background: linear-gradient(135deg, #003366 0%, #005599 100%);
color: white;
}

.slide-content {
font-size: 4em;
}

.slider-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
padding: 30px;
color: white;
}

.slider-title {
font-size: 1.3em;
margin-bottom: 5px;
}

.slider-subtitle {
font-size: 0.9em;
opacity: 0.9;
}

.slider-dots {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 10px;
z-index: 10;
}

.dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: all 0.3s;
}

.dot.active {
background: white;
width: 30px;
border-radius: 5px;
}

/* ============================================================
トップページ - クイックリンク
============================================================ */
.quick-links {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 40px;
}

.link-card {
background: white;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 30px 20px;
text-align: center;
text-decoration: none;
color: #333;
transition: all 0.3s;
}

.link-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transform: translateY(-2px);
border-color: #003366;
}

.link-icon {
font-size: 2.5em;
margin-bottom: 15px;
}

.link-title {
font-size: 1.1em;
font-weight: bold;
margin-bottom: 8px;
}

.link-description {
font-size: 0.9em;
color: #666;
}

/* ============================================================
試合速報 - 試合カード
============================================================ */
.game-section {
background: white;
border: 1px solid #e0e0e0;
border-radius: 8px;
overflow: hidden;
margin-bottom: 30px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
transition: all 0.3s;
}

.game-section:hover {
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
cursor: pointer;
}

.game-section-header {
background: #003366;
color: white;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 15px;
}

.game-title {
font-size: 1.3em;
font-weight: bold;
}

.status-badge {
padding: 6px 15px;
border-radius: 20px;
font-size: 0.9em;
font-weight: bold;
white-space: nowrap;
}

.status-badge.playing {
background: #ff6b6b;
color: white;
animation: pulse 2s infinite;
}

.status-badge.waiting {
background: rgba(255, 255, 255, 0.2);
color: white;
}

.status-badge.finished {
background: #2ecc71;
color: white;
}

@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}

/* ============================================================
試合速報 - スコアボード
============================================================ */
.scoreboard-wrapper {
padding: 20px;
overflow-x: auto;
}

table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
min-width: 600px;
}

th, td {
padding: 12px 8px;
text-align: center;
border: 1px solid #ddd;
border-left: none;
}

th:first-child, td:first-child {
border-left: 1px solid #ddd;
}

th {
background: #f8f8f8;
color: #333;
font-weight: bold;
font-size: 0.9em;
white-space: nowrap;
}

td {
background: white;
font-size: 1.1em;
}

.team-name {
text-align: left;
font-weight: bold;
color: #333;
width: 120px;
min-width: 120px;
padding: 12px 15px;
position: sticky;
left: 0;
z-index: 10;
background-color: white !important;
border-right: 2px solid #ddd !important;
}

.team-name.placeholder {
color: #999;
font-style: italic;
}

th.team-header {
position: sticky;
left: 0;
z-index: 11;
background-color: #f8f8f8 !important;
border-right: 2px solid #ddd !important;
}

.score-zero {
color: #999;
}

.score-positive {
color: #003366;
font-weight: bold;
}

.score-empty {
color: #ddd;
}

.total {
background: #fff3cd !important;
font-weight: bold;
font-size: 1.4em;
color: #856404;
}

/* ============================================================
試合速報 - スコア要約
============================================================ */
.live-games-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 20px;
margin-bottom: 20px;
}

.score-summary {
padding: 20px 15px;
}

.score-line-single {
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
padding: 15px 10px 5px;
}

.team-label {
font-size: 1.3em;
color: #333;
font-weight: 600;
}

.score-number {
font-size: 2.8em;
font-weight: bold;
color: #003366;
}

.score-dash {
font-size: 2.2em;
font-weight: bold;
color: #003366;
}

.inning-info {
font-size: 1em;
color: #666;
text-align: center;
padding: 5px 0 10px;
font-weight: 500;
}

.view-all-btn {
display: inline-block;
padding: 15px 40px;
background: linear-gradient(to right, #003366, #005599);
color: white;
text-decoration: none;
border-radius: 50px;
font-size: 1.1em;
font-weight: bold;
transition: all 0.3s;
box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.view-all-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
background: linear-gradient(to right, #004080, #0066b3);
}

/* ============================================================
試合速報 - 次の試合カード
============================================================ */
.next-game-card {
background: white;
border: 2px dashed #003366;
border-radius: 8px;
padding: 30px 20px;
text-align: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
transition: all 0.3s;
}

.next-game-card:hover {
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.next-game-icon {
font-size: 3em;
margin-bottom: 15px;
}

.next-game-title {
font-size: 1.3em;
color: #003366;
font-weight: bold;
margin-bottom: 10px;
}

.next-game-info {
font-size: 1.1em;
color: #666;
line-height: 1.8;
}

.next-game-teams {
font-size: 1.2em;
font-weight: bold;
color: #333;
margin: 15px 0;
}

.next-game-time {
font-size: 1em;
color: #999;
margin-top: 10px;
}

.status-message {
padding: 60px 20px;
text-align: center;
}

.status-message-icon {
font-size: 4em;
margin-bottom: 20px;
}

.status-message-text {
font-size: 1.3em;
color: #666;
margin-bottom: 10px;
}

.status-message-subtext {
font-size: 1em;
color: #999;
}

.status-message-subtext.placeholder {
font-style: italic;
}

/* ============================================================
写真ギャラリー - コンテナ
============================================================ */
.gallery-container {
padding: 0;
max-width: 100%;
width: 100%;
}

/* ============================================================
写真ギャラリー - コントロールバー
============================================================ */
.gallery-controls {
background: white;
border-bottom: 1px solid #e0e0e0;
padding: 20px;
margin-bottom: 0;
}

.gallery-stats {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
max-width: 1200px;
margin: 0 auto;
}

.photo-count {
font-size: 1.1em;
color: #666;
}

.photo-count strong {
color: #003366;
font-size: 1.3em;
}

.gallery-refresh-btn {
padding: 10px 25px;
background: #003366;
color: white;
border: none;
border-radius: 5px;
font-size: 1em;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0, 51, 102, 0.2);
}

.gallery-refresh-btn:hover:not(:disabled) {
background: #004080;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 51, 102, 0.3);
}

.gallery-refresh-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}

/* ============================================================
写真ギャラリー - グリッドレイアウト
============================================================ */
.gallery-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2px;
margin-bottom: 40px;
background: #f5f5f5;
max-width: 100%;
overflow: hidden;
}

/* ============================================================
写真ギャラリー - 写真カード
============================================================ */
.photo-card {
background: #fff;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
position: relative;
aspect-ratio: 1 / 1;
width: 100%;
}

.photo-card::before {
content: ‘’;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
opacity: 0;
transition: opacity 0.3s ease;
z-index: 1;
pointer-events: none;
}

.photo-card:hover::before {
opacity: 1;
}

.photo-card:hover {
transform: scale(0.98);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-image-wrapper {
width: 100%;
height: 100%;
overflow: hidden;
background: #f0f0f0;
position: relative;
}

.photo-image {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
transition: transform 0.5s ease, opacity 0.3s ease;
}

.photo-image.loading {
opacity: 0.5;
}

.photo-card:hover .photo-image {
transform: scale(1.1);
}

.photo-placeholder {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 3em;
color: #ddd;
background: #f0f0f0;
}

/* ============================================================
写真ギャラリー - 写真情報
============================================================ */
.photo-info {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 15px;
z-index: 2;
transform: translateY(100%);
transition: transform 0.3s ease;
}

.photo-card:hover .photo-info {
transform: translateY(0);
}

.photo-user {
font-weight: 600;
color: #fff;
margin-bottom: 3px;
font-size: 0.95em;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
word-break: break-word;
}

.photo-time {
font-size: 0.8em;
color: rgba(255, 255, 255, 0.9);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ============================================================
写真ギャラリー - 空状態
============================================================ */
.gallery-empty {
text-align: center;
padding: 80px 20px;
background: white;
border-radius: 8px;
border: 2px dashed #e0e0e0;
grid-column: 1 / -1;
margin: 20px;
}

.gallery-empty-icon {
font-size: 5em;
margin-bottom: 20px;
opacity: 0.3;
}

.gallery-empty-text {
font-size: 1.3em;
color: #666;
margin-bottom: 10px;
font-weight: 500;
}

.gallery-empty-subtext {
font-size: 1em;
color: #999;
}

/* ============================================================
写真ギャラリー - モーダル
============================================================ */
.modal {
display: none;
position: fixed;
z-index: 2000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.95);
animation: modalFadeIn 0.3s ease;
}

.modal.active {
display: flex;
align-items: center;
justify-content: center;
}

@keyframes modalFadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

/* モーダルコンテンツ */
.modal-content {
position: relative;
max-width: 90%;
max-height: 90%;
margin: auto;
}

/* モーダル画像 */
.modal-image {
width: 100%;
height: auto;
max-height: 85vh;
object-fit: contain;
border-radius: 4px;
transition: opacity 0.3s ease;
}

.modal-image.loading {
opacity: 0.3;
}

/* モーダル情報バー */
.modal-info {
background: rgba(0, 0, 0, 0.85);
color: white;
padding: 15px 20px;
border-radius: 0 0 4px 4px;
position: absolute;
bottom: 0;
left: 0;
right: 0;
backdrop-filter: blur(10px);
}

.modal-user {
font-size: 1.1em;
font-weight: 600;
margin-bottom: 5px;
word-break: break-word;
}

.modal-time {
font-size: 0.9em;
opacity: 0.8;
}

/* モーダル閉じるボタン */
.modal-close {
position: absolute;
top: 20px;
right: 30px;
color: white;
font-size: 40px;
font-weight: bold;
cursor: pointer;
z-index: 2001;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.5);
border: 2px solid transparent;
border-radius: 50%;
transition: all 0.3s ease;
line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}

/* モーダルナビゲーションボタン */
.modal-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.5);
color: white;
border: 2px solid transparent;
padding: 20px 15px;
font-size: 30px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
z-index: 2001;
border-radius: 5px;
line-height: 1;
}

.modal-nav:hover,
.modal-nav:focus {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.3);
transform: translateY(-50%) scale(1.1);
}

.modal-nav:disabled {
opacity: 0.3;
cursor: not-allowed;
}

.modal-nav.prev {
left: 20px;
}

.modal-nav.next {
right: 20px;
}

/* ============================================================
タブ（試合速報用）
============================================================ */
.tabs {
display: flex;
gap: 2px;
margin-bottom: 30px;
border-bottom: 2px solid #e0e0e0;
overflow-x: auto;
}

.tab {
padding: 15px 30px;
background: #f5f5f5;
border: none;
font-size: 1em;
color: #666;
cursor: pointer;
transition: all 0.3s;
border-top: 3px solid transparent;
white-space: nowrap;
flex-shrink: 0;
}

.tab.active {
background: white;
color: #003366;
border-top-color: #003366;
font-weight: bold;
}

.tab:hover:not(.active) {
background: #fff;
}

.content {
min-height: 400px;
}

/* ============================================================
レスポンシブ対応（ページ固有）
============================================================ */
@media (max-width: 768px) {
/* ヒーロー */
.hero-title {
font-size: 1.8em;
}

```
.hero-date, .hero-venue {
    font-size: 1em;
}

.slider-container {
    height: 250px;
}

/* 試合速報 */
.live-games-container {
    grid-template-columns: 1fr;
}

.game-section-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.game-title {
    font-size: 1.1em;
    flex: 1;
    min-width: 150px;
}

.status-badge {
    flex-shrink: 0;
}

.score-line-single {
    gap: 12px;
    padding: 12px 8px 5px;
}

.team-label {
    font-size: 1.2em;
}

.score-number {
    font-size: 2.5em;
}

.score-dash {
    font-size: 2em;
}

.inning-info {
    font-size: 0.9em;
    padding: 5px 0 8px;
}

.next-game-card {
    padding: 20px 15px;
}

.next-game-icon {
    font-size: 2.5em;
}

.next-game-title {
    font-size: 1.1em;
}

.next-game-teams {
    font-size: 1.1em;
}

.quick-links {
    grid-template-columns: 1fr;
}

.view-all-btn {
    padding: 12px 30px;
    font-size: 1em;
}

table {
    font-size: 0.9em;
}

th, td {
    padding: 8px 5px;
}

/* ギャラリー */
.gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
}

.photo-card {
    aspect-ratio: 1 / 1;
}

.photo-info {
    padding: 10px 12px;
}

.photo-user {
    font-size: 0.85em;
    margin-bottom: 2px;
}

.photo-time {
    font-size: 0.75em;
}

.gallery-controls {
    padding: 15px;
}

.gallery-stats {
    gap: 10px;
}

.photo-count {
    font-size: 1em;
}

.photo-count strong {
    font-size: 1.2em;
}

.gallery-refresh-btn {
    padding: 8px 20px;
    font-size: 0.95em;
}

/* モーダル */
.modal-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
}

.modal-nav {
    padding: 15px 10px;
    font-size: 24px;
}

.modal-nav.prev {
    left: 10px;
}

.modal-nav.next {
    right: 10px;
}

.modal-info {
    padding: 12px 15px;
}

.modal-user {
    font-size: 1em;
}

.modal-time {
    font-size: 0.85em;
}

}