@charset "UTF-8";

/* ==================================================
   基本設定
   ================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #fffafb; /* ほんのりピンクがかった白 */
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* ==================================================
   ヘッダー
   ================================================== */
header {
    background-color: #F783AC; /* 朱鷺色 */
    color: white;
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px; /* 要素同士の間隔を均等に */
}

nav ul li a {
    color: white;
    font-weight: bold;
    padding: 4px 8px;
}

/* ==================================================
   メインコンテンツ & ヒーロー
   ================================================== */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

.section-title {
    border-left: 5px solid #F783AC;
    padding-left: 15px;
    color: #d65a83;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* ヒーローエリア（トップ） */
.hero {
    background-color: #fce4ec;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.hero h2 {
    color: #c2185b;
    margin-bottom: 0.5rem;
}

/* ==================================================
   写真ギャラリー
   ================================================== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 10px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.photo-item {
    background: white;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 8px;
    text-align: center;
}

.photo-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    display: block; /* 隙間防止 */
}

.photo-item p {
    margin-top: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #555;
}

/* ==================================================
   お知らせリスト
   ================================================== */
.news-list article {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid #fce4ec;
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* スマホで折返し許可 */
    gap: 10px;
}

.news-list .date {
    color: #777;
    font-size: 0.9rem;
}

.label {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: white;
    font-weight: bold;
}

.result { background-color: #F783AC; }
.info { background-color: #666; }

.news-list p {
    margin: 0;
    flex: 1; /* 残りの幅をいっぱいに使う */
    min-width: 200px;
}

/* ==================================================
   事務局テーブル（office.html用）
   ================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
}

th, td {
    padding: 15px;
    border: 1px solid #fce4ec;
    text-align: left;
}

th {
    background-color: #fff0f3;
    width: 30%;
    color: #d65a83;
}

/* ==================================================
   フッター
   ================================================== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 4rem;
    font-size: 0.85rem;
}

/* ==================================================
   レスポンシブ（スマホ対応）
   ================================================== */
@media (max-width: 600px) {
    header {
        position: static; /* スマホでは固定を解除して画面を広く使う */
    }
    
    nav ul {
        flex-direction: column;
        gap: 8px;
    }

    th, td {
        display: block;
        width: 100%;
    }

    th {
        background-color: #fce4ec;
    }
}