@charset "UTF-8";

/* =======================================
   タクソノミー（スタジオ一覧）のモダンUI
   ======================================= */

/* ▼ 1. 全体の1カラム化と左寄り修正（!important不使用） */
#content #main.taxonomy-main {
    width: 100%;
    max-width: 1080px; /* PCで広がりすぎないように制限 */
    margin: 0 auto;
    float: none;
    padding-right: 0; /* サイドバー用の右余白を打ち消す */
    padding-left: 0;  /* 念のため左の余白もゼロにリセット */
}

/* ▼ 2. グリッドレイアウト */
.studio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px; /* 余白を少し広げてゆったり見せる */
}

/* ▼ 3. カード全体の高さを揃える魔法（Flexbox） */
.studio-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    transition: 0.2s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%; /* グリッドの高さにピッタリ合わせる */
}

/* リンクエリアもカード全体に広げる */
.studio-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: #333333;
}

.studio-card:hover {
    border-color: #A6A29C; 
    transform: translateY(2px);
}

/* ▼ 画像エリア（無い時も形が崩れないように固定） */
.studio-card-img {
    width: 100%;
    aspect-ratio: 1200 / 630; /* ★ 2.5/1 から、アイキャッチ本来のサイズ比率に変更！ */
    background-color: #f7f7f7; /* No Imageの時の背景色 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e5e5e5; /* 画像とテキストの間にさりげない境界線を */
}

.studio-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ▼ テキストエリア（下に押し広げる） */
.studio-card-body {
    padding: 15px 20px;
    flex-grow: 1; /* 余ったスペースをテキストエリアが埋めることで、ボタン等を下に揃えられる */
    display: flex;
    flex-direction: column; /* タグを下に配置するために追加 */
}

.studio-card-title {
    font-size: 1.15em;
    font-weight: bold;
    margin: 0;
    padding: 0;
    border: none;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* =======================================
   ▼ 新設：特長タグのデザイン
   ======================================= */
.studio-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* タグ同士の隙間 */
    margin-top: 12px; /* タイトルとの距離 */
}


.studio-tag {
    font-size: 0.75em;
    color: #8ca1b3; /* サイトカラーのくすみブルーで統一 */
    border: 1px solid #8ca1b3;
    padding: 4px 8px;
    border-radius: 2px; /* 丸めすぎないモダンな直線型 */
    line-height: 1;
    background: #ffffff;
    transition: 0.2s;
}

/* =======================================
   ▼ 4. ページネーションのズレと配置を修正
   ======================================= */
.taxonomy-main .pagination-wrap {
    margin-top: 50px;
    margin-bottom: 30px;
}

/* ページ送り全体を真ん中に寄せる */
.taxonomy-main .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 数字と●のズレを完璧に直す魔法（Flexbox） */
.taxonomy-main .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: #666666;
    background: #f7f7f7;
    font-weight: bold;
    line-height: 1; /* 余計な行の高さを消す */
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* 現在いるページの●（グレージュでハイライト） */
.taxonomy-main .page-numbers.current {
    background: #A6A29C; 
    color: #ffffff;
}

/* 「...」の部分 */
.taxonomy-main .page-numbers.dots {
    background: transparent;
    color: #999999;
}

/* 「次へ」「前へ」は丸ではなく、横長のスマートなボタンにする */
.taxonomy-main .page-numbers.next,
.taxonomy-main .page-numbers.prev {
    width: auto;
    padding: 0 20px;
    border-radius: 20px; 
    background: #f7f7f7;
}

/* ホバー時のアクション */
.taxonomy-main .page-numbers:hover:not(.dots):not(.current) {
    background: #e5e5e5;
}

/* =======================================
   ▼ 5. 見出しエリアの枠線と影をリセット
   ======================================= */
#main.taxonomy-main .archive-header {
    border: none;
    box-shadow: none;
    background: transparent; /* 念のため背景色がついていたら完全にフラット化 */
}
