/* home.css - ホームページ固有のスタイル */

/* ヒーローセクションのスタイル */
.hero-section {
    position: relative;
    background-image: url('../../img/soccer-field.jpg'); /* 背景画像 */
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: white;
    margin-bottom: 50px;
    border-radius: 0 0 10px 10px;
}

/* 背景画像の上に暗いオーバーレイを追加して文字を見やすくする */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
    z-index: 1;
}

/* ヒーローセクション内のコンテンツを前面に出す */
.hero-section h1,
.hero-section p,
.hero-section .btn-hero {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* テキストの影 */
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* テキストの影 */
}

/* ヒーローボタンのスタイル */
.btn-hero {
    font-size: 1.1rem;
    padding: 12px 30px;
}

/* ニュースセクションのスタイル */
.news-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0c0675; /* 紺色に変更 */
}

/* ニュースコンテナのスタイル - フレックスボックスレイアウト */
.news-container {
    display: grid;
    grid-template-columns: 1fr; /* モバイルでは1列 */
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch; /* グリッドアイテムの高さを統一 */
}





/* インスタグラム埋め込み投稿のスタイル調整 */
.news-instagram-embed {
    margin: 0;
    max-width: 100%;
    overflow: hidden;
}

/* インスタグラム埋め込みのレスポンシブ対応 */
.news-instagram-embed iframe {
    max-width: 100% !important;
}

/* お知らせがない場合のスタイル */
.no-news {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

/* お知らせ一覧ボタンのスタイル */
.btn-news {
    display: block;
    width: 200px;
    margin: 0 auto;
    text-align: center;
}

/* ホームページ用ニュースプレビューのスタイル */
.news-preview {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-preview-header {
    padding: 20px 20px 0 20px;
}

.news-preview-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.4;
    min-height: 2.8em; /* 2行分の高さを確保 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.news-preview-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.news-preview-content {
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-preview-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-preview-footer {
    padding: 0 20px 20px 20px;
    margin-top: auto;
}

.read-more-link {
    color: #0611e3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #0c0675;
    text-decoration: underline;
}

/* コーチセクションのスタイル */
.coach-section {
    background-color: #f0f0f0; /* 背景色を少し濃いグレーに */
    padding: 40px 20px;
    margin-bottom: 50px;
}

.coach-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0c0675;
}

.coach-philosophy {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.coach-philosophy p {
    margin-bottom: 30px;
}

/* 指導方針ポイントのスタイル */
.philosophy-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.philosophy-point {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.philosophy-point h3 {
    color: #0c0675;
    margin-top: 0;
    margin-bottom: 10px;
}

/* 詳細ボタンのスタイル */
.btn-more {
    display: block;
    width: 200px;
    margin: 0 auto;
    text-align: center;
}

/* ローディング表示のスタイル */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .hero-section {
        padding: 150px 20px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .news-container {
        grid-template-columns: repeat(2, 1fr); /* タブレットでは2列 */
    }
    
    .philosophy-points {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .news-container {
        grid-template-columns: repeat(3, 1fr); /* デスクトップでは3列 */
    }
    
    /* PCサイズでのみニュースプレビューのタイトル高さを統一 */
    .news-preview-title {
        min-height: 2.8em; /* 2行分の高さを確保 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    /* ニュースプレビューをフレックスボックスで高さ統一 */
    .news-preview {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .news-preview-content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
}

/* お問い合わせセクションのスタイル */
.contact-section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.contact-section h2 {
    color: #05095a;
    margin-bottom: 20px;
}

.contact-content {
    background-color: #f0f0f0; /* 背景色を少し濃いグレーに */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-contact {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
}