/* src/public/css/youtube.css */
/*
 * YouTube Media（運営チャンネルのご案内）ページ専用のスタイル
 * ・blade（テンプレート）は構造だけを持ち、見た目はこのファイルが担当する
 * ・読み込みは youtube.blade.php の <link> から
 */

/* ---------- ページ冒頭の案内文 ---------- */

.yt-lead {
    background: #ffffff;
    border-left: 4px solid #ff0000;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 20px 0 22px;
    line-height: 1.85;
    color: #444444;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.yt-lead strong {
    color: #1e3c72;
}

/* ---------- チャンネル一覧 ---------- */

.yt-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.yt-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.yt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.09);
}

/* ---------- カードの見出し（アイコン＋チャンネル名） ---------- */

.yt-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.yt-card-icon {
    flex: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    font-size: 1.25rem;
}

.yt-card-title {
    min-width: 0;
}

.yt-card-title h2 {
    font-size: 1.15rem;
    color: #1e3c72;
    margin: 0 0 6px;
    line-height: 1.4;
    word-break: break-word;
}

/* ---------- ジャンルのタグ ---------- */

.yt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.yt-tags li {
    background: #eef2f8;
    color: #2a5298;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
}

/* ---------- 本文 ---------- */

.yt-summary {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333333;
    margin: 0 0 10px;
}

.yt-detail {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666666;
    margin: 0 0 18px;
}

/* ---------- チャンネルへのボタン ---------- */
/* 💡 .btn-primary（style.css）はサイト共通の青いボタンなので、
   YouTube 色のこのボタンは専用クラスとして別に定義します */

.yt-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ff0000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: 8px;
    transition: background 0.2s;
}

.yt-link:hover {
    background: #cc0000;
}

.yt-link i {
    font-size: 1.05rem;
}

.yt-link-ext {
    font-size: 0.8rem !important;
    opacity: 0.85;
}

/* ---------- 注意書き ---------- */

.yt-note {
    margin: 22px 0 0;
    font-size: 0.83rem;
    line-height: 1.8;
    color: #777777;
}

/* ---------- タブレット（iPad など）〜スマホ対応 ---------- */
/* プロジェクト共通のブレークポイント 768px に合わせる */

@media (max-width: 768px) {
    .yt-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .yt-lead {
        padding: 15px 16px;
        font-size: 0.92rem;
    }

    .yt-card {
        padding: 18px 18px;
    }

    .yt-card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .yt-card-title h2 {
        font-size: 1.05rem;
    }

    .yt-summary {
        font-size: 0.92rem;
    }

    .yt-detail {
        font-size: 0.87rem;
    }
}

/* ---------- 小さいスマホ ---------- */

@media (max-width: 480px) {
    .yt-card {
        padding: 16px 15px;
    }

    .yt-card-head {
        gap: 11px;
        margin-bottom: 12px;
    }

    .yt-link {
        width: 100%;
        padding: 12px 10px;
    }
}

/* ============================================================
   トップページに置く案内バナー
   （top.blade.php から @push('styles') でこのファイルを読み込んでいます）
   ============================================================ */

.yt-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 25px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 5px solid #ff0000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.yt-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.09);
}

.yt-banner-icon {
    flex: none;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ff0000;
    color: #ffffff;
    font-size: 1.6rem;
}

.yt-banner-text {
    flex: 1 1 auto;
    min-width: 0;
}

.yt-banner-text h2 {
    font-size: 1.15rem;
    color: #1e3c72;
    margin: 0 0 5px;
}

.yt-banner-text p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #666666;
    margin: 0;
}

.yt-banner-arrow {
    flex: none;
    color: #b9c4d1;
    font-size: 1rem;
}

/* ---------- タブレット〜スマホ対応 ---------- */

@media (max-width: 768px) {
    .yt-banner {
        gap: 14px;
        padding: 16px 16px;
        margin-top: 20px;
    }

    .yt-banner-icon {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }

    .yt-banner-text h2 {
        font-size: 1.05rem;
    }

    .yt-banner-text p {
        font-size: 0.85rem;
    }

    /* 💡 狭い画面では矢印を隠して、本文の幅を確保する */
    .yt-banner-arrow {
        display: none;
    }
}
