/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    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;
    background-color: #f9f9f9;
}

/* 1. メニューバー */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

/* 2. 画像エリア */
.image-area {
    width: 100%;
}

.image-placeholder {
    position: relative;
    width: 100%;
    height: 400px; /* 必要に応じて調整 */
    overflow: hidden;
    background-color: #ddd;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠いっぱいに収める */
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* 3. 文章エリア */
.content-area {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.content-area h1 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.content-area p {
    margin-bottom: 15px;
    text-align: left; /* 文章は左揃えが読みやすい */
}

/* 4. フッター */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
/* 追加：お知らせエリア */
.news-area {
    background-color: #ffffff;
    padding: 60px 5%;
}

.news-area .container {
    max-width: 900px; /* ニュースエリアの幅 */
    margin: 0 auto;
}

.news-area h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

/* タイトルの下の飾り線 */
.news-area h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #007bff;
}

.news-list {
    list-style: none;
    border-top: 1px solid #eee;
}

.news-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* スマホで折り返せるように */
}

.news-list .date {
    font-family: Arial, sans-serif;
    color: #888;
    margin-right: 20px;
    min-width: 100px;
}

.news-list .label {
    background-color: #007bff;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 20px;
}

/* ラベルの色（重要などは赤くするなど調整可） */
.news-list li:first-child .label {
    background-color: #e63946;
}

.news-list a {
    text-decoration: none;
    color: #333;
    flex: 1; /* 残りの幅をすべて使う */
    transition: color 0.2s;
}

.news-list a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* もっと見るボタン */
.news-more {
    text-align: center;
    margin-top: 30px;
}

.btn-more {
    display: inline-block;
    padding: 10px 40px;
    border: 1px solid #007bff;
    color: #007bff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-more:hover {
    background-color: #007bff;
    color: #fff;
}

/* スマホ対応（横並びを縦にする） */
@media (max-width: 600px) {
    .news-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-list .date, .news-list .label {
        margin-bottom: 5px;
    }
}
/* 3カラムエリアのスタイル */
.features-area {
    background-color: #f4f7f9; /* 少し色を変えてエリアの区切りを明確に */
    padding: 80px 5%;
}

.features-area .container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* カラム間の隙間 */
}

.feature-item {
    flex: 1; /* 均等な幅にする */
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px); /* ホバー時に少し浮き上がる演出 */
}

.feature-image {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 5px;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
}

.feature-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    text-align: left; /* テキストは左揃えが読みやすい */
}

/* スマホ対応：600px以下は縦並び */
@media (max-width: 768px) {
    .features-grid {
        flex-direction: column;
    }
    
    .feature-item {
        margin-bottom: 20px;
    }
}