/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
:root {
    --primary-color: #ffffff;
    --secondary-color: #cccccc;
    --accent-color: #b8860b;
    --background-color: #000000;
    --surface-color: #111111;
    --border-color: #333333;
    --text-muted: #888888;
    --year: "2025";
}

body {
    font-family: 'Noto Serif JP', 'Noto Serif', serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #c0c0c0;
}

/* メインコンテンツ */
.main {
    min-height: calc(100vh - 140px);
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/main01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #c0c0c0;
    color: var(--background-color);
    transform: translateY(-2px);
}

/* セクション共通 */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* h2の装飾（hero-titleを除く） */
h2:not(.hero-title) {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 2rem 0;
    padding: 1rem 0;
    border-bottom: 2px solid var(--accent-color);
    position: relative;
}

h2:not(.hero-title)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* 概要セクション */
.outline {
    background-color: var(--surface-color);
}

.outline p {
    margin-bottom: 1em;
}

.outline p:last-child {
    margin-bottom: 0;
}

.outline h3,
.map h3 {
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin: 1.5rem 0 1rem 0;
    font-weight: bold;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

/* トップに戻るボタン */
.totop {
    text-align: center;
    margin: 2rem 0;
}

.totop a {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.totop a:hover {
    background-color: #c0c0c0;
    color: var(--background-color);
    transform: translateY(-2px);
}

/* マップ要素の非表示 */
#map01, #map02, #map03, #map04, #map05 {
    display: none;
}

/* モーダルウインドウ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--surface-color);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 左右分割レイアウト */
.left-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1em;
}

.left-right > div {
    width: 100%;
}

.left-right img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 768px) {
    .left-right {
        flex-direction: row;
        gap: 3rem;
    }
    
    .left-right > div {
        width: 50%;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    display: block;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

/* レポートセクション */
.reports {
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.report-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
}

.report-image {
    height: 200px;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    font-size: 4rem;
    opacity: 0.7;
}

.report-content {
    padding: 1.5rem;
}

.report-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.report-description {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.report-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.report-link:hover {
    color: #c0c0c0;
}

/* お問い合わせセクション */
.contact {
    background-color: var(--surface-color);
    text-align: center;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-value {
    color: var(--primary-color);
    font-weight: bold;
}

/* フッター */
.footer {
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-list {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero {
        min-height: 50vh;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .stat-item {
        flex: 1;
        margin: 0 0.5rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero {
        min-height: 40vh;
        padding: 2rem 0;
    }

    .about-stats {
        flex-direction: column;
    }

    .stat-item {
        margin: 0;
    }
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス表示 */
a:focus,
button:focus {
    outline: 2px solid #c0c0c0;
    outline-offset: 2px;
}
