/* ============================================================
   タグ検索結果（design/conts_tag.png 準拠）
   ============================================================ */
.tag-hero {
    position: relative;
    background: #060911 url("/img/design/hero_wide.jpg") center 30% / cover no-repeat;
    overflow: hidden;
    border-bottom: 1px solid #16202f;
}
.tag-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(4, 7, 14, .96) 0%, rgba(4, 7, 14, .8) 42%, rgba(4, 7, 14, .42) 74%, rgba(4, 7, 14, .72) 100%);
}
.tag-hero__inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}
.tag-pan {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #7d8798;
    margin-bottom: 26px;
}
.tag-pan a { color: #9aa6b8; }
.tag-pan a:hover { color: #ff8a1e; }
.tag-hero__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 30px;
    align-items: center;
}
.tag-hero__chip {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 3px;
    background: #ff8a1e;
    color: #12160f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}
.tag-hero__title {
    margin-top: 12px;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1.2;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .8);
}
.tag-hero__title em { color: #ff8a1e; font-style: normal; }
.tag-hero__count {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #ff8a1e;
}
.tag-hero__count b { font-size: 20px; }
.tag-hero__lead {
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.9;
    color: #c8d2e0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.tag-hero__badge {
    justify-self: center;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 138, 30, .5);
    background: radial-gradient(circle at 50% 34%, rgba(255, 138, 30, .18), rgba(6, 9, 17, .2) 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.tag-hero__badge-ic {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 138, 30, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8a1e;
    font-size: 20px;
    margin-bottom: 8px;
}
.tag-hero__badge-title {
    font-size: 17px;
    font-weight: 800;
    color: #ff8a1e;
}
.tag-hero__badge-note {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.6;
    color: #c8d2e0;
}

/* ---------- レイアウト ---------- */
.tag-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 26px;
    padding: 26px 20px 10px;
    max-width: 1240px;
    margin: 0 auto;
}

/* ---------- ツールバー ---------- */
.tag-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}
.tag-sort select {
    height: 38px;
    padding: 0 34px 0 14px;
    border: 1px solid #22304a;
    border-radius: 4px;
    background: #0f1724;
    color: #d4dbe6;
    font-size: 13px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ff8a1e' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}
.tag-view {
    display: flex;
    border: 1px solid #22304a;
    border-radius: 4px;
    overflow: hidden;
}
.tag-view__btn {
    width: 40px;
    height: 38px;
    border: 0;
    background: #0f1724;
    color: #7d8798;
    font-size: 14px;
    cursor: pointer;
}
.tag-view__btn + .tag-view__btn { border-left: 1px solid #22304a; }
.tag-view__btn.is-active { background: #ff8a1e; color: #12160f; }

/* ---------- 結果リスト ---------- */
.tag-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tag-item.is-hidden-more { display: none; }
.tag-card {
    display: flex;
    gap: 18px;
    padding: 16px;
    border: 1px solid #1a2434;
    border-radius: 8px;
    background: #0c111c;
    transition: border-color .18s, transform .18s;
}
.tag-card:hover {
    border-color: #37475f;
    transform: translateY(-2px);
}
.tag-card__thumb {
    flex: none;
    width: 200px;
    height: 150px;
    border-radius: 5px;
    overflow: hidden;
    background: #0a0e17;
}
.tag-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tag-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.tag-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.tag-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #e6ecf5;
}
.tag-card:hover .tag-card__title { color: #ff8a1e; }
.tag-badge {
    flex: none;
    padding: 3px 10px;
    border: 1px solid #4a331c;
    border-radius: 3px;
    background: rgba(255, 138, 30, .08);
    color: #ff8a1e;
    font-size: 11px;
    white-space: nowrap;
}
.tag-new {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    background: #ff8a1e;
    color: #12160f;
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
}
.tag-card__meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #8d99ab;
}
.tag-card__pref i { color: #ff8a1e; margin-right: 4px; }
.tag-card__text {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.75;
    color: #a9b4c4;
}
/* 長いURL等でカラム幅が破綻するのを防ぐ */
.tag-card__title,
.tag-card__text,
.tag-card__meta {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.tag-card__stats {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #8d99ab;
}
.tag-card__stats i { color: #6f7c90; margin-right: 5px; }

/* グリッド表示 */
.tag-list--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
.tag-list--grid .tag-item { display: flex; min-width: 0; }
.tag-list--grid .tag-card {
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.tag-list--grid .tag-card__thumb { width: 100%; height: 150px; }
.tag-list--grid .tag-card__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.tag-list--grid .tag-card__title { font-size: 16px; }

.tag-empty {
    padding: 40px 0;
    text-align: center;
    color: #8d99ab;
    font-size: 14px;
}

/* さらに読み込む */
.tag-loadmore {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #4a331c;
    border-radius: 6px;
    background: rgba(255, 138, 30, .05);
    color: #ff8a1e;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s;
}
.tag-loadmore:hover { background: rgba(255, 138, 30, .12); }
.tag-loadmore i { margin-left: 6px; }

/* ---------- サイドバー ---------- */
.tag-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.tag-scard {
    border: 1px solid #1a2434;
    border-radius: 8px;
    background: #0c111c;
    overflow: hidden;
}
.tag-scard__head {
    padding: 13px 16px;
    border-bottom: 1px solid #1a2434;
    font-size: 14px;
    font-weight: 700;
    color: #ff8a1e;
}
.tag-scard__body { padding: 14px 16px 16px; }
.tag-scard__body--flush { padding: 4px 0; }
.tag-scard__foot { margin-top: 12px; text-align: right; }
.tag-ghost { font-size: 12px; color: #ff8a1e; }
.tag-ghost:hover { text-decoration: underline; }
.tag-ghost i { margin-left: 4px; }

/* サイト内検索 */
.tag-search { display: flex; }
.tag-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #22304a;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    background: #0f1724;
    color: #d4dbe6;
    font-size: 13px;
}
.tag-search input::placeholder { color: #5f6b7d; }
.tag-search button {
    flex: none;
    width: 48px;
    height: 42px;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: #ff8a1e;
    color: #12160f;
    font-size: 15px;
    cursor: pointer;
}
.tag-search button:hover { filter: brightness(1.07); }

/* 人気のタグ */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud__item {
    padding: 6px 11px;
    border: 1px solid #2a3850;
    border-radius: 3px;
    font-size: 11px;
    color: #a4b0c2;
}
.tag-cloud__item::before { content: "#"; color: #ff8a1e; margin-right: 2px; }
.tag-cloud__item:hover,
.tag-cloud__item.is-active {
    border-color: #ff8a1e;
    color: #ff8a1e;
    background: rgba(255, 138, 30, .06);
}

/* カテゴリー */
.tag-catlist { list-style: none; margin: 0; padding: 0; }
.tag-catlist a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #151f2e;
    font-size: 13px;
    color: #d4dbe6;
}
.tag-catlist li:last-child a { border-bottom: 0; }
.tag-catlist a > span { display: flex; align-items: center; gap: 10px; }
.tag-catlist a > span i { width: 18px; color: #ff8a1e; text-align: center; }
.tag-catlist a > i { color: #4f5b6e; font-size: 12px; }
.tag-catlist a:hover { background: #0f1724; color: #ff8a1e; }
.tag-catlist a:hover > i { color: #ff8a1e; }

/* サイドバーCTA */
.tag-sidecta {
    position: relative;
    padding: 24px 20px 26px;
    border: 1px solid #22304a;
    border-radius: 8px;
    background: linear-gradient(160deg, #101826 0%, #0a1220 60%, #060b14 100%);
    overflow: hidden;
}
.tag-sidecta__title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .01em;
}
.tag-sidecta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    height: 48px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ff8a1e, #ff6f00);
    color: #12160f;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 122, 24, .28);
}
.tag-sidecta__btn:hover { color: #12160f; filter: brightness(1.06); }

/* ---------- 下部CTA ---------- */
.tag-bottomcta {
    max-width: 1200px;
    margin: 24px auto 40px;
    padding: 26px 34px;
    border: 1px solid #4a331c;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a1108 0%, #14100c 55%, #0d1017 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}
.tag-bottomcta__lead { display: flex; align-items: center; gap: 20px; }
.tag-bottomcta__ic { color: #ff8a1e; font-size: 34px; }
.tag-bottomcta__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.4;
}
.tag-bottomcta__title em { color: #ff8a1e; font-style: normal; }
.tag-bottomcta__text { margin-top: 8px; font-size: 13px; color: #a9b4c4; }
.tag-bottomcta__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 30px;
    height: 54px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff8a1e, #ff6f00);
    color: #12160f;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(255, 122, 24, .3);
}
.tag-bottomcta__btn:hover { color: #12160f; filter: brightness(1.06); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 980px) {
    .tag-layout { grid-template-columns: 1fr; }
    .tag-hero__head { grid-template-columns: 1fr; gap: 22px; }
    .tag-hero__badge { justify-self: start; }
}
@media (max-width: 640px) {
    .tag-hero__title { font-size: 28px; }
    .tag-card { flex-direction: column; }
    .tag-card__thumb { width: 100%; height: 190px; }
    .tag-list--grid { grid-template-columns: minmax(0, 1fr); }
    .tag-bottomcta { padding: 22px; }
    .tag-bottomcta__lead { align-items: flex-start; gap: 14px; }
    .tag-bottomcta__title { font-size: 18px; }
    .tag-bottomcta__btn { width: 100%; justify-content: center; }
}

