@charset "utf-8";

/* =========================================================
   ClipRise — yutura版専用CSS (css/yutura.css)
   ========================================================= */

:root {
    --yt-red: #BA1C1D;
    --yt-text: #333333;
    --yt-link: #BA1C1D;
    --yt-link-hover: #e02f2f;
    --yt-border: #E8E8E8;
    --yt-bg: #F4F4F4;
    --yt-white: #FFFFFF;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--yt-bg);
    color: var(--yt-text);
    line-height: 1.6;
}

a {
    color: var(--yt-text);
    text-decoration: none;
}

a:hover {
    color: var(--yt-link-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -------------------------------------
   Header
------------------------------------- */
.yt-header {
    background-color: var(--yt-red);
    padding: 15px 0;
    text-align: center;
}

.yt-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.yt-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: var(--yt-white) !important;
}

.yt-logo-sub {
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.yt-logo-main {
    font-family: 'Joti One', cursive;
    font-weight: 400;
    font-size: 28px;
    letter-spacing: -0.5px;
}

/* -------------------------------------
   Layout Container
------------------------------------- */
.yt-container {
    max-width: 1240px;
    margin: 20px auto;
    padding: 0 15px;
}

.yt-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.yt-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    background-color: var(--yt-white);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.yt-sidebar {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .yt-sidebar {
        width: 330px;
    }
}

/* -------------------------------------
   Ad Spaces (スタイリッシュなCSSプレースホルダー)
------------------------------------- */
.yt-ad-space {
    margin: 30px 0;
    position: relative;
    /* 外枠の線や背景色はプレースホルダー自身に持たせます */
}

.yt-ad-label {
    position: absolute;
    top: -24px;
    left: 0;
    font-size: 11px;
    color: #999;
    z-index: 2;
}

/* 画像風プレースホルダー共通スタイル (プロフェッショナルなワイヤーフレーム調) */
.yt-ad-placeholder {
    width: 100%;
    background-color: #f1f2f6;
    border: 2px dashed #ced6e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* テキストスタイル: ミニマルでおしゃれなグレー */
    color: #747d8c;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

/* メインカラム用 (16:9) */
.yt-ad-main-top .yt-ad-placeholder,
.yt-ad-main-bottom .yt-ad-placeholder {
    aspect-ratio: 16 / 9;
    max-height: 250px;
}

.yt-ad-main-top .yt-ad-placeholder::after,
.yt-ad-main-bottom .yt-ad-placeholder::after {
    content: '(16:9)';
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* サイドバー用 (1:1) */
.yt-ad-placeholder--sidebar {
    aspect-ratio: 1 / 1;
}

.yt-ad-placeholder--sidebar::after {
    content: '(1:1)';
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    letter-spacing: 1px;
}


/* -------------------------------------
   Main Column Components
------------------------------------- */
/* Top News */
.yt-top-news {
    margin-bottom: 30px;
}

.yt-top-card {
    display: block;
}

.yt-top-card__img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.yt-top-card__title {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    line-height: 1.4;
}

.yt-top-card__meta {
    font-size: 12px;
    color: #888;
}

/* Section Title */
.yt-section-title {
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid var(--yt-text);
    padding-bottom: 8px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Article List */
.yt-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dotted var(--yt-border);
}

.yt-list-item:last-child {
    border-bottom: none;
}

.yt-list-item__img {
    width: 30%;
    flex-shrink: 0;
}

.yt-list-item__img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.yt-list-item__body {
    flex: 1;
}

.yt-list-item__title {
    margin: 0 0 5px 0;
    font-size: 15px;
    line-height: 1.4;
}

.yt-list-item__desc {
    font-size: 12px;
    color: #555;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.yt-list-item__meta {
    font-size: 11px;
    color: #999;
}

.yt-more-btn-wrap {
    text-align: right;
    margin-top: 10px;
}

.yt-more-btn {
    display: inline-block;
    background-color: var(--yt-text);
    color: var(--yt-white) !important;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 2px;
}

.yt-more-btn:hover {
    background-color: #555;
}

/* -------------------------------------
   Sidebar Components
------------------------------------- */
.yt-side-box {
    background-color: var(--yt-white);
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.yt-side-title {
    font-size: 14px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--yt-border);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--yt-red);
}

.yt-side-title span {
    color: var(--yt-red);
}

.yt-pickup-grid {
    display: grid;
    /* クライアント指定の項目数に合わせるため3列（またはAuto）に変更 */
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.yt-pickup-item {
    text-align: center;
    font-size: 10px;
}

.yt-pickup-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 5px;
    border: 1px solid #eee;
}

/* Ranking List */
.yt-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yt-ranking-list li {
    margin-bottom: 12px;
}

.yt-ranking-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.yt-ranking-num {
    width: 20px;
    height: 20px;
    background-color: #999;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    flex-shrink: 0;
}

.yt-ranking-num.rank-1 {
    background-color: #e53935;
}

.yt-ranking-num.rank-2 {
    background-color: #fb8c00;
}

.yt-ranking-num.rank-3 {
    background-color: #fdd835;
    color: #333;
}

.yt-ranking-img {
    width: 60px;
    flex-shrink: 0;
}

.yt-ranking-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.yt-ranking-text {
    font-size: 12px;
    line-height: 1.3;
    color: #333;
}

.yt-ranking-list a:hover .yt-ranking-text {
    text-decoration: underline;
    color: var(--yt-link);
}

.yt-side-more-btn {
    display: inline-block;
    background-color: #666;
    color: #fff !important;
    font-size: 12px;
    padding: 5px 20px;
    border-radius: 20px;
}

.yt-side-more-btn:hover {
    background-color: #333;
}

/* -------------------------------------
   New Portal Components (カテゴリ・グリッド用)
------------------------------------- */

/* カテゴリタグ一覧 */
.yt-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.yt-category-tags a {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--yt-bg);
    border: 1px solid var(--yt-border);
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.yt-category-tags a:hover {
    background-color: var(--yt-text);
    color: var(--yt-white);
    border-color: var(--yt-text);
}

/* 動画グリッド (4列またはレスポンシブな列数へ修正) */
.yt-video-grid {
    display: grid;
    /* アイテム数4個に対して、隙間ができないように均等割り付けに変更 */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.yt-video-card {
    display: flex;
    flex-direction: column;
}

.yt-video-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 8px;
    border-radius: 4px;
}

.yt-video-card__title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: bold;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.yt-video-card__meta {
    font-size: 11px;
    color: #888;
}

/* -------------------------------------
   Footer
------------------------------------- */
.yt-footer {
    background-color: #fff;
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 12px;
    color: #666;
}