@charset "UTF-8";

 /* --- 全体を囲むラッパー --- */
 .watch-section-wrapper {
    max-width: 960px; /* デフォルトの最大幅 */
    margin: 30px auto;
    padding: 0 15px;
    font-family: sans-serif;
    
}




/* --- 大タイトル --- */
.section-title {
    background-color: #f0f4f8;
    color: #1976d2;
    padding: 12px 20px;
    margin-bottom: 30px; /* 各行セクションとのマージン */
    font-size: 1.3em;
    font-weight: bold;
    border-left: 5px solid #1976d2;
    border-radius: 4px 4px 0 0;
}

/* --- 各行セクション --- */
.watch-row {
    margin-bottom: 30px; /* 行セクション間のマージン */
}
.watch-row:last-child {
    margin-bottom: 0; /* 最後の行の下マージンは不要 */
}

/* --- 行ごとの小タイトル --- */
.row-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #424242; /* 少し濃いめのグレー */
    margin-bottom: 15px; /* 小タイトルとグリッドの間のマージン */
    padding-bottom: 8px; /* 下線のためのスペース */
    border-bottom: 2px solid #eeeeee; /* シンプルな下線 */
    display: flex; /* アイコンとテキストを横並びにするため */
    align-items: center; /* 垂直中央揃え */
}
/* アイコン用のスタイル (Font Awesome使用時) */
.row-title i {
    margin-right: 10px; /* アイコンとテキストの間隔 */
    color: #1976d2; /* アイコンの色 */
    font-size: 1.2em; /* アイコンサイズ調整 */
}

/* --- 4列グリッド（行ごと） --- */
.watch-banner-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列 */
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}








/* --- 各バナーのスタイル --- */
.watch-banner-item {
    display: block;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px 20px;
    text-decoration: none!important;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.watch-banner-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: #1976d2;
}
.watch-banner-item:hover h3 {
    color: #1976d2;
    text-decoration: none;
}
.watch-banner-item img.logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 15px;
    transition: opacity 0.2s ease;
}
.watch-banner-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.15em;
    color: #212121;
    transition: color 0.2s ease;
    text-decoration: none!important;
}
.watch-banner-item p {
    font-size: 0.9em;
    margin: 0;
    color: #757575;
    line-height: 1.4;
    text-decoration: none!important;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 960px) {
     .watch-banner-grid-row { /* .watch-banner-grid から変更 */
        grid-template-columns: repeat(3, 1fr);
     }
}
@media (max-width: 768px) {
    .watch-banner-grid-row { /* .watch-banner-grid から変更 */
        grid-template-columns: repeat(2, 1fr);
    }
}

@container watch-section-container (max-width: 710px) {
    /* コンテナが狭い場合にグリッドを2列にする */
    .watch-banner-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* gapは維持 */
    }

    /* コンテナが狭い場合(2列表示時)のバナースタイル調整 */
    .watch-banner-item {
        /* 2列表示向けのスタイル */
        padding: 25px 20px;
        min-height: 160px;
    }
    .watch-banner-item img.logo {
        max-height: 45px;
        margin-bottom: 15px;
    }
    .watch-banner-item h3 {
        font-size: 1.15em;
        margin-bottom: 8px;
    }
    .watch-banner-item p {
        font-size: 0.9em;
        line-height: 1.4;
    }
    .watch-banner-item img.logo {
        max-height: 80px;
        margin-bottom: 15px;
    }

}






@media (max-width: 480px) {
    .watch-section-wrapper { padding: 0 10px; }
    .section-title { font-size: 1.1em; padding: 10px 15px; margin-bottom: 20px; }
    .row-title { font-size: 1em; margin-bottom: 10px; }
    .watch-row { margin-bottom: 20px; }

    /* ★ 4列グリッドを1列に変更 */
    .watch-banner-grid-row {
        grid-template-columns: 1fr;
        gap: 10px; /* スマホ表示時のバナー間隔を少し詰める */
    }

    .watch-banner-grid-row2 {
        grid-template-columns: 1fr;
        gap: 10px; /* スマホ表示時のバナー間隔を少し詰める */
    }



    /* ★ スマホ用バナーアイテムスタイル */
    .watch-banner-item {
        display: flex;          /* Flexboxで中身を横並び */
        flex-direction: row;    /* 明示的に横方向を指定 */
        align-items: center;    /* 垂直中央揃え */
        text-align: left;       /* テキストを左揃えに */
        padding: 12px 15px;     /* パディングを調整して薄く見せる */
        min-height: auto;       /* 最小高さを解除 */
         /* ホバーエフェクトをスマホでは無効化（任意） */
         /* transform: none; */
         /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
    }
    /* スマホでのホバー効果調整（任意）*/
     .watch-banner-item:hover {
         transform: none; /* スマホでは浮き上がり効果をなくす */
         box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* 影も通常に戻す */
         border-color: #1976d2; /* 枠線だけ色が変わるように */
     }
     .watch-banner-item:hover h3 {
         color: #1976d2; /* タイトル色は変える */
     }


    /* ★ スマホ用ロゴスタイル */
    .watch-banner-item img.logo {
        max-height: 55px;       /* ロゴの高さを少し小さく */
        max-width: 70px;        /* ロゴの最大幅も指定（横長ロゴ対策）*/
        width: auto;
        margin-bottom: 0;       /* 下マージンを削除 */
        margin-right: 15px;     /* 右側にテキストとの間隔 */
        flex-shrink: 0;         /* ロゴがコンテナ幅で縮まないように */
    }

    /* ★ スマホ用テキストコンテンツラッパー */
    .banner-text-content {
        flex-grow: 1; /* 残りのスペースを埋める */
        min-width: 0; /* flexアイテム内のテキスト折り返しに必要 */
    }

    /* ★ スマホ用テキストスタイル */
    .watch-banner-item h3 {
        font-size: 1em;         /* フォントサイズ調整 */
        margin-bottom: 3px;     /* タイトルと説明文の間隔 */
        white-space: nowrap;      /* タイトルが改行しないように（任意） */
        overflow: hidden;         /* はみ出した部分を隠す */
        text-overflow: ellipsis;  /* はみ出した部分を...で表示 */
    }

    .watch-banner-item p {
        font-size: 0.8em;       /* フォントサイズ調整 */
        line-height: 1.3;
        /* 説明文が長すぎる場合に表示行数を制限する場合（任意）*/
        /* display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden; */
    }
}

