/* ========================================
   一般社団法人勇払まちつくり隊 設立準備会
   スタイルシート
======================================== */

/* リセットと基本設定 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2c5f7c;
    --primary-dark: #1e4a5f;
    --primary-light: #4a8ba8;
    --accent-color: #3d8b6e;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #ffffff;
    --background-gray: #f5f7f9;
    --border-color: #dde3e8;
    --max-width: 1000px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* リンク */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ヘッダー */
.header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.site-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.site-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ナビゲーション */
.nav {
    background-color: var(--primary-dark);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-item {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    display: block;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.nav-link.active {
    background-color: var(--accent-color);
}

/* メインコンテンツ */
.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 300px);
}

/* ページタイトル */
.page-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 2rem;
}

/* セクション */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-dark);
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 4px solid var(--accent-color);
    background-color: var(--background-gray);
    margin-bottom: 1.5rem;
}

.section-content {
    padding: 0 0.5rem;
}

/* 準備中ボックス */
.preparing-box {
    background-color: var(--background-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

.preparing-box::before {
    content: "📋";
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.preparing-text {
    font-size: 1rem;
}

/* トップページ用 */
.hero {
    background-color: var(--background-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-text {
    color: var(--text-light);
    line-height: 2;
}

/* お知らせ */
.news-list {
    list-style: none;
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: var(--text-light);
    font-size: 0.875rem;
    min-width: 6rem;
}

.news-text {
    flex: 1;
}

/* カードリスト */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.card-text {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* テーブル */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

th, td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

th {
    background-color: var(--background-gray);
    font-weight: bold;
    color: var(--primary-dark);
}

/* フッター */
.footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-info {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.footer-copyright {
    font-size: 0.8125rem;
    opacity: 0.8;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .site-subtitle {
        font-size: 0.8125rem;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item:first-child {
        border-left: none;
    }

    .nav-link {
        padding: 0.875rem 1rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .hero {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .news-item {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* 印刷対応 */
@media print {
    .header, .nav, .footer {
        display: none;
    }

    .main {
        padding: 0;
    }
}

/* アクセシビリティ */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #ffffff;
    padding: 8px;
    z-index: 200;
}

.skip-link:focus {
    top: 0;
}
