
@charset "UTF-8";

/* =========================
   1. 基本設定
========================= */

:root {
    --mint: #b8e6d5;
    --mint-light: #edf9f4;
    --mint-dark: #548d78;
    --text: #526c62;
    --white: #ffffff;

    --border: #dcefe5;
    --muted: #91aa9e;
    --shadow: 0 8px 28px rgba(102, 161, 135, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            ellipse at 10% 10%,
            rgba(184, 230, 213, 0.32),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #f7fcf9,
            #ffffff 55%,
            #f4fbf7
        );
    font-family: "Yu Gothic", "Meiryo", sans-serif;
}


/* =========================
   2. 上部ナビゲーション
========================= */

.top-navigation {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    width: 100%;
    min-height: 58px;
    padding: 8px 5%;

    border-bottom: 1px solid #e5f1e9;
    background: rgba(255, 255, 255, 0.92);
}

.nav-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-logo img {
    display: block;
    width: 200px;
    max-width: 35vw;
    height: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 2.5vw, 32px);
}

.nav-link {
    color: #67977f;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #a0cdb7;
}

.nav-link.active {
    color: var(--mint-dark);
    font-weight: bold;
}

.deleted-link {
    color: #8ca99a;
}


/* =========================
   3. メインロゴ
========================= */

.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 20px 8px;
}

.site-logo {
    display: block;
    width: 440px;
    max-width: 90%;
    height: auto;
    object-fit: contain;
}


/* =========================
   4. メインエリア
========================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 65px 20px 40px;
    text-align: center;
}

.hero::before,
.hero::after {
    position: absolute;
    color: #a8d9c5;
    opacity: 0.7;
    pointer-events: none;
}

.hero::before {
    content: "♧";
    top: 15px;
    left: max(5%, calc(50% - 360px));
    font-size: 42px;
    transform: rotate(-15deg);
}

.hero::after {
    content: "✧";
    top: 95px;
    right: max(6%, calc(50% - 350px));
    font-size: 52px;
}

.eyebrow {
    margin: 0 0 15px;
    color: #82b8a2;
    font-size: 10px;
    letter-spacing: 0.25em;
}

.hero h1 {
    margin: 0;
    color: #619b82;
    font-family: Georgia, serif;
    font-size: clamp(32px, 6vw, 54px);
    font-weight: normal;
    letter-spacing: 0.04em;
}

.hero-description {
    margin: 16px 0 34px;
    font-size: 13px;
    letter-spacing: 0.08em;
}


/* =========================
   5. 検索フォーム
========================= */

.search-form {
    display: flex;
    align-items: center;
    gap: 12px;

    width: min(560px, 100%);
    margin: 0 auto;
    padding: 7px 8px 7px 26px;

    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-form:focus-within {
    border-color: #a5d7c0;
    box-shadow: 0 8px 30px rgba(102, 161, 135, 0.18);
}

.search-icon,
.button-search-icon {
    position: relative;
    display: block;
    flex: 0 0 auto;

    width: 16px;
    height: 16px;

    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.search-icon {
    color: #91b9a7;
    transform: translateY(-2px);
}

.search-icon::after,
.button-search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -2px;

    width: 7px;
    height: 1.5px;

    border-radius: 2px;
    background: currentColor;

    transform: rotate(45deg);
    transform-origin: left center;
}

.search-form input {
    flex: 1;
    min-width: 0;
    height: 42px;

    border: none;
    outline: none;
    background: transparent;

    color: var(--text);
    font-size: 13px;
}

.search-form input::placeholder {
    color: #aabeb4;
}

.search-button {
    display: grid;
    place-items: center;
    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    color: var(--white);
    background: linear-gradient(135deg, #c0e9d7, #83c7a9);
    box-shadow: 0 3px 10px rgba(112, 178, 146, 0.2);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 14px rgba(112, 178, 146, 0.3);
}

.button-search-icon {
    width: 15px;
    height: 15px;
    color: var(--white);
    transform: translate(-1px, -3px);
}

.search-note {
    margin-top: 16px;
    color: #9bb6a9;
    font-size: 11px;
    letter-spacing: 0.06em;
}


/* =========================
   6. セクション共通
========================= */

.content-section {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 8px 0 55px;
    border-top: 1px solid #e4f1e9;
}

.content-section .section-heading {
    margin-bottom: 14px;
}
#result-count {
    margin: 0;
    position: relative;
    top: 33px;
}

.section-heading {
    margin-bottom: 35px;
    text-align: center;
}

.section-label {
    color: #8dbba5;
    font-size: 10px;
    letter-spacing: 0.25em;
}

.section-heading h2 {
    margin: 8px 0;
    color: #67977f;
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: normal;
}

.section-heading p {
    margin: 0;
    color: #91a99d;
    font-size: 12px;
}

/* 旧セクション用 */

.video-section {
    width: min(900px, calc(100% - 36px));
    margin: 0 auto;
    padding: 45px 0 90px;
    border-top: 1px solid #e4f1e9;
}


/* =========================
   7. カテゴリ一覧
========================= */

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.category-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;

    width: 110px;
    height: 110px;
    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--white);
    color: #67977f;

    font-size: 13px;
    letter-spacing: 0.04em;
    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.category-item:hover {
    background-color: var(--mint-light);
}

.category-item.active {
    border-color: #82b8a2;
    background-color: #eaf4ef;
}

.category-item:focus {
    outline: none;
}

.category-item:focus-visible {
    outline: 2px solid #a5d7c0;
    outline-offset: 2px;
}

.category-icon {
    color: #82b8a2;
    font-size: 24px;
    font-weight: normal;
    line-height: 1.2;
}

.category-item.active .category-icon {
    color: #82b8a2;
}

.category-name {
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: normal;
}


/* =========================
   8. 動画一覧・動画カード
========================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 16px;
}

.video-card {
    min-width: 0;
    overflow: hidden;

    border: 1px solid #e3efe8;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 12px rgba(102, 161, 135, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: #c8e5d6;
    box-shadow: 0 10px 26px rgba(102, 161, 135, 0.12);
}


/* HTML側のクラス名の違いにも対応 */

.video-card-info,
.video-info {
    padding: 9px 12px 12px;
}

.video-date {
    margin: 0;
    color: #91b3a1;
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.video-title {
    margin: 6px 0 4px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.video-singer {
    margin: 0 0 2px;
    color: #89a396;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}



.video-links a,
.video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;

    box-sizing: border-box;
    min-height: 44px;
    height: 44px;
    padding: 6px 10px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--white);
    color: #67977f;

    font-size: 11px;
    text-decoration: none;
    white-space: nowrap;

    transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.video-links a:hover,
.video-link:hover {
    border-color: var(--mint);
    background: #eaf7f0;
}

.video-link-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 18px;
    height: 18px;

    margin: 0;
    padding: 0;
}

.video-link-logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.video-link > span:not(.video-link-logo) {
    margin: 0;
    padding: 0;
}

/* YouTubeロゴ */

.video-link-youtube .video-link-logo {
    width: 24px;
    height: 24px;
}

/* ニコニコ動画ロゴ */

.video-link-nico {
    padding: 6px 10px;
}

.video-link-nico .video-link-logo {
    width: 32px;
    height: 32px;
}

.video-link-nico .niconico-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 動画がない場合 */

.empty-message {
    grid-column: 1 / -1;

    margin: 0;
    padding: 35px 20px;

    border: 1px solid #e5f1e9;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.75);
    color: #91aa9e;

    font-size: 13px;
    text-align: center;
}

.empty-message p {
    color: #91aa9e;
    font-size: 13px;
}

.empty-star {
    color: #a2d7bc;
    font-size: 28px;
}





/* =========================
   10. フッター
========================= */

.site-footer {
    padding: 30px 20px;
    border-top: 1px solid #e5f1e9;

    background: rgba(255, 255, 255, 0.6);
    color: #8caf9e;

    text-align: center;
    font-family: Georgia, serif;
    font-size: 12px;
}

.site-footer p {
    margin: 5px 0;
}


/* =========================
   11. スクロール位置調整
========================= */

/* PC */
#archive-section {
    scroll-margin-top: 50px;
}


/* =========================
   12. PC表示
========================= */

@media (min-width: 601px) {
    .empty-star {
        position: relative;
        top: -12px;
    }
}


/* =========================
   13. スマートフォン表示
========================= */

@media (max-width: 600px) {
    /* ロゴ */

    .site-header {
        padding-top: 18px;
    }

    .site-logo {
        width: 320px;
        max-width: 90%;
    }

    .nav-logo {
        justify-content: flex-start;
        width: 100%;
    }

    .nav-logo img {
        width: 160px;
        max-width: 60vw;
    }

    /* ナビゲーション */

    .top-navigation {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        min-height: auto;
        padding: 12px 8px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
        width: 100%;
    }

    .nav-link {
        font-size: 11px;
    }

    /* メインエリア */

    .hero {
    padding: 48px 18px 12px;
}

    .hero::before {
        top: 5px;
        left: 4%;
        font-size: 28px;
    }

    .hero::after {
        top: 100px;
        right: 4%;
        font-size: 35px;
    }

    .hero-description {
        font-size: 12px;
    }

    /* 検索フォーム */

    .search-form {
        gap: 9px;
        padding-left: 14px;
    }

    .search-form input {
        font-size: 12px;
    }

    .search-button {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    /* セクション */

    .video-section {
        padding-top: 35px;
    }

    .content-section {
    width: calc(100% - 28px);
    padding: 15px 0 40px;
}

    .section-heading h2 {
        font-size: 26px;
    }

    #category-section {
    scroll-margin-top: 40px;
}

#archive-section {
    scroll-margin-top: 50px;
}

    /* カテゴリ */

    .category-list {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        justify-content: center;
        gap: 6px;
    }

    .category-item {
        width: 100%;
        height: 82px;
        min-width: 0;
        padding: 4px 2px;

        border-radius: 12px;

        font-size: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .category-name {
        font-size: 9px;
        overflow-wrap: anywhere;
    }

    .spade-icon {
        position: relative;
        top: 4px;
    }

    /* 動画カード */

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 10px;
    }

    .video-card-info,
    .video-info {
        padding: 9px;
    }

    .video-title {
        font-size: 12px;
    }

    .video-date {
        font-size: 10px;
    }

    /* 動画リンク：ロゴのみ横一列 */

    .video-links {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

        .video-links .video-link,
    .video-links a.video-link {
        flex: 0 0 44px;
        min-width: 44px;
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;

        justify-content: center;
        gap: 0;

        background: var(--white);
        border-radius: 50%;
    }
    .video-link > span:not(.video-link-logo) {
        display: none;
    }

    .video-link-logo {
        width: 18px;
        height: 18px;
    }

    .video-link-youtube .video-link-logo {
        width: 24px;
        height: 24px;
    }

    .video-link-nico .video-link-logo {
        width: 32px;
        height: 32px;
    }

    /* 動画がない場合 */

    .empty-message {
        padding: 28px 12px;
        font-size: 12px;
    }

    /* 人気のタグ */

    .popular-tags {
        gap: 8px;
        margin-top: 20px;
    }

    .popular-tags-label {
        width: 100%;
    }

    .popular-tags-list {
        flex: 1 1 auto;
        gap: 6px;
    }

    .tag-button,
    .tag-list-button {
        padding: 7px 10px;
        font-size: 11px;
    }

    .tag-list-button {
    margin: 32px auto 0;
}
}


/* =========================
   動画詳細モーダル
========================= */

.video-modal[hidden] {
    display: none;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(48, 75, 62, 0.45);
}

.video-modal-panel {
    position: relative;
    z-index: 1;
    width: min(600px, 100%);
    max-height: 85vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    clip-path: inset(0 round 18px);
    background: var(--white);
    box-shadow: 0 12px 40px rgba(60, 100, 80, 0.2);
    color: var(--text);
}

.video-modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 36px;
    height: 36px;
    margin: -12px -12px 8px 8px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: #67977f;
    font-size: 24px;
    cursor: pointer;
}

.modal-thumbnail {
    display: block;
    width: 100%;
    max-height: 320px;
    margin-bottom: 18px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--mint-light);
}

.modal-title {
    margin: 8px 0;
    color: var(--text);
    font-size: 22px;
    overflow-wrap: anywhere;
}

.modal-date {
    color: #91b3a1;
    font-size: 12px;
}

.modal-details {
    margin: 20px 0 0;
}

.modal-detail-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf4ef;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.modal-detail-label {
    color: #82b8a2;
}

.modal-detail-value {
    white-space: pre-wrap;
}

.modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.modal-detail-row a,
.modal-detail-link,
.modal-links a {
    color: var(--mint-dark);
    text-decoration: underline;
}

.modal-detail-row a:visited,
.modal-detail-link:visited,
.modal-links a:visited {
    color: var(--mint-dark);
}

.modal-detail-row a:hover,
.modal-detail-link:hover,
.modal-links a:hover {
    color: var(--text);
    text-decoration: underline;
}

.modal-detail-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--mint-dark);
    text-decoration: underline;
}





/* モーダル内の動画リンク */

.modal-platform-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.modal-platform-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
}

.modal-platform-link .video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
}

.modal-platform-link .video-link-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
}

.modal-platform-link .video-link-logo img,
.modal-platform-link .video-link-logo svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* YouTubeロゴ：動画一覧と同じ24px */
.modal-platform-link .video-link-youtube .video-link-logo {
    width: 24px;
    height: 24px;
}

/* ニコニコ動画ロゴ：動画一覧と同じ32px */
.modal-platform-link .video-link-nico .video-link-logo {
    width: 32px;
    height: 32px;
}


/* =========================
   本家欄
========================= */

.video-original {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.video-original-label {
    flex-shrink: 0;
}

.video-original-name {
    overflow-wrap: anywhere;
}

.original-link-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--mint-dark);
    text-decoration: none;
}

.original-link-logo img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}


/* =========================
   動画カード下部
========================= */

.video-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.video-card-footer .video-links {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.video-card-footer .video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
}

.video-card-footer .video-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-card-footer .video-link:hover {
    border-color: var(--mint-dark);
    background: var(--mint-light);
}

.video-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--mint-dark);
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.video-detail-link:hover {
    transform: translateX(3px);
    background: var(--mint-light);
}


/* =========================
   動画一覧のサムネイル
========================= */

.video-thumbnail-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: var(--mint-light);
}

.video-thumbnail,
.video-thumbnail-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: var(--mint-light);
}

.video-thumbnail-wrap img {
    border-radius: 15px 15px 0 0;
}

.video-thumbnail-wrap .thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background: var(--mint-light);
    color: var(--muted);
    font-size: 13px;
}


/* =========================
   動画クレジット
========================= */

.video-credits {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 12px;
    min-width: 0;
}

.video-credit {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    min-width: 0;
}

.video-credit-label {
    color: var(--text-muted, #777);
}

.video-credit-value {
    min-width: 0;
    overflow-wrap: anywhere;
}


/* =========================
   スマートフォン表示
========================= */

@media (max-width: 600px) {
    .video-modal {
        padding: 12px;
    }

    .video-modal-panel {
        max-height: 90vh;
        padding: 20px;
    }

    .modal-detail-row {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 8px;
    }

    .video-credit {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 6px;
        font-size: 11px;
    }
}
#search-results {
    scroll-margin-top: 230px;
}




/* =========================
   動画一覧：並び替え
========================= */

.sort-control {
    display: flex;
width: fit-content;
    align-items: center;
    gap: 14px;
    min-height: 42px;
    padding: 0 4px 0 14px;

    position: relative;
top: -10px;
left: auto;

    margin-left: auto;
    margin-right: 0;

    border-bottom: 1px solid #dcefe5;
    color: #67977f;
    transition: border-color 0.2s ease;
}

.sort-control:focus-within {
    border-bottom-color: #82b8a2;
}

.sort-label {
    position: relative;
    top: 10px;

    flex-shrink: 0;
    color: #91b3a1;
    font-family: Georgia, serif;
    font-size: 10px;
    letter-spacing: 0.16em;
}

.sort-divider {
    width: 1px;
    height: 16px;
    flex-shrink: 0;
    background: #dcefe5;
}

.sort-control #sort-select {
    position: relative;
    top: 10px;

    appearance: none;
    -webkit-appearance: none;

    min-width: 0;
    width: 85px;
    padding: 9px 0;

    border: none;
    outline: none;
    background: transparent;

    color: #526c62;
    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
}

.sort-control #sort-select option {
    color: #526c62;
    background: #ffffff;
}

.sort-arrow {
    position: relative;
    top: 5px; 

    flex-shrink: 0;
    margin-left: -20px;
    color: #82b8a2;
    font-size: 17px;
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 600px) {
    .sort-control {
        gap: 10px;
        min-height: 40px;
        padding-left: 10px;
    }

    .sort-control #sort-select {
        min-width: 0;
        max-width: 190px;
        font-size: 12px;
    }

    .sort-label {
        font-size: 9px;
    }
}

.content-section .search-sort-control {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: 0;
    left: 0;
    transform: none;
}
.search-page .site-logo {
    display: block;
    width: 488px;
    max-width: 90%;
    height: auto;
    margin: 0 auto;
}

.home-page .popular-tags {
    display: none;
}



/* タグ一覧ボタン */
.tag-list-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    margin: 32px auto 0;
    padding: 0;

    border: none;
    background: transparent;
    color: #789b89;

    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.16em;

    cursor: pointer;
    transition: color 0.25s ease;
}


.rose-vine {
    display: block;
    width: 130px;
max-width: 65vw;
height: 22px;
    flex-shrink: 0;

    color: #91b9a3;
    transition: color 0.25s ease;
}


.rose-vine-bottom {
    transform: scaleY(-1);
}

.tag-list-button:hover {
    color: #548d78;
}

.tag-list-button:hover .rose-vine {
    color: #6eaa89;
}

@media (max-width: 600px) {
    .tag-list-button {
        gap: 3px;
        font-size: 11px;
    }

    
.rose-vine {
    display: block;
width: 130px;
max-width: 65vw;
height: 22px;
    flex-shrink: 0;

    color: #91b9a3;
    transition: color 0.25s ease;
}

}
.video-card-detail-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.video-card-detail-link .video-title {
    transition: color 0.2s ease;
}

.video-card-detail-link:hover .video-title {
    color: #75bca6;
}

.video-card-detail-link:focus-visible {
    outline: 2px solid #75bca6;
    outline-offset: 4px;
    border-radius: 8px;
}

.detail-original-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    vertical-align: middle;
}

.detail-original-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.detail-original-logo img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.detail-original-logo:hover {
    opacity: 0.7;
}

