/* front-page.css */

/* ファーストビュー背景 */
.fv-section {
    background-color: rgba(212, 252, 247, 0.5);
    width: 100%;
}

/* ファーストビュー画像ラッパー */
.fv-container {
    margin-bottom: 2rem;
}

/* ファーストビュー画像本体 */
.fv-image {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* スライダー全体（画像高さに合わせて中央揃え） */
.top-banner-slider {
    position: relative;
    display: flex;
    align-items: center;  /* ← これが矢印の縦位置を中央にする */
    justify-content: center;
    background-color: #f5f5f5;
    padding: 0;
}

/* スライドごとの画像 */
.top-banner-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* スライド間の余白 */
.top-banner-slider .swiper-slide {
    box-sizing: border-box;
    padding: 0 10px;
}

/* ホバー時のフェード効果 */
.img-hover-fade {
    opacity: 1;
    transition: opacity 0.3s ease;
}
.img-hover-fade:hover {
    opacity: 0.7;
}

/* Swiper標準の矢印アイコンのサイズ・色 */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
    line-height: 1;
    color: #fff;
}


/* セクション背景 */
.tag-section {
    background-color: #dfffff;
    padding: 2rem 0;
}

/* タイトルと右上リンクを横並び */
.tag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* タイトル中央寄せ風（flexで制御） */
.tag-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: #4d4d4d;
}

/* すべてのタグを見るリンク */
.top-link {
    font-size: 0.9rem;
    text-decoration: underline;
}

/* タグ一覧 */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* タグボタン */
.tag-button {
    display: inline-block;
    padding: 0.4em 1.2em;
    border: 1px solid #999;
    border-radius: 9999px;
    font-size: 1rem;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-button:hover {
    background-color: #eee;
}

.media-partner {
    background-color: #fff;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.media-partner-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #4d4d4d;
}

.media-partner-logo img {
    max-width: 30vw;
    height: auto;
    max-height: 300px;
}



/* SP時（幅768px未満）は1列に */
@media (max-width: 767px) {
    /* ファーストビュー画像本体 */
    .fv-image {
        width: 100%;
    }
    .article-card {
        width: 100%;
    }
    /* タグ一覧 */
    .tag-list {
        gap: 0;
    }
    .tag-button {
        font-size: 0.8rem;
    }

    .media-partner-logo img {
        max-width: 50vw;
    }
}
