@charset "UTF-8";

/* stylelint-disable property-no-vendor-prefix */
/* -webkit-line-clamp is widely supported and necessary for multi-line text truncation */

/* ========================================
   リセット&基本設定
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff69b4;
    --primary-dark: #ff1493;
    --primary-light: #ffb6d9;
    --accent-color: #ff85c1;
    --text-color: #212121;
    --text-secondary: #757575;
    --bg-color: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* ========================================
   コンテナ
======================================== */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 0;
}

/* ========================================
   パンくずリスト
======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    font-size: 14px;
    margin-bottom: 24px;
    background: var(--bg-white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--text-secondary);
    font-size: 16px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb li:last-child span,
.breadcrumb li:last-child a {
    color: var(--text-color);
    font-weight: 500;
}

/* ========================================
   グリッドレイアウト
======================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding: 32px 0;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}

/* ========================================
   カード - モダンデザイン
======================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 140%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
}

/* ★ 修正: 右下の三角形ランク表示 - 小さめで白文字の数字 */
.card-rank {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 36px 36px;
    border-color: transparent transparent var(--primary-color) transparent;
    z-index: 2;
}

/* 修正後（推奨コード） */
.card-rank::after {
    content: attr(data-rank);
    position: absolute;
    top: 0;          /* 三角形の上端に合わせる */
    right: 0;        /* 三角形の右端に合わせる */
    width: 36px;
    height: 36px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 0 5px 2px 0;
    pointer-events: none; /* 数字がリンクの邪魔をしないように念のため追加 */
}

@media (max-width: 768px) {
    .card-rank {
        border-width: 0 0 32px 32px;
    }
    
    .card-rank::after {
        font-size: 11px;
        bottom: -29px;
        right: -27px;
        width: 32px;
        height: 32px;
        padding: 0 4px 2px 0;
    }
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
}

.card-title:hover {
    color: var(--primary-color);
}

/* ========================================
   評価・星
======================================== */
.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.custom-star {
    display: flex;
    gap: 2px;
    color: #F7B46B;
    font-size: 14px;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
   価格表示
======================================== */
.price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* ========================================
   キャンペーン情報
======================================== */
.campaign {
    display: inline-flex;
    font-size: 11px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin: 8px 0;
}

.campaign-label {
    background: linear-gradient(135deg, #e53935, #d32f2f);
    color: white;
    padding: 6px 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.campaign-date {
    background: var(--bg-white);
    color: #e53935;
    padding: 6px 12px;
    font-weight: 600;
    border: 1px solid #e53935;
    border-left: none;
}

/* ========================================
   ボタン - やわらかいデザイン
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 14px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c1 50%, #ffb6d9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    border-radius: 25px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 50%, #ff85c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    gap: 12px;
}

.card-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   シェアボタン
======================================== */
.share {
    display: flex;
    gap: 12px;
    margin: 32px 0;
}

.btn-social-square,
.share-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.btn-social-square:hover,
.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-social-square--x,
.share-btn.twitter {
    background: #000;
}

.btn-social-square--line,
.share-btn.line {
    background: #00B900;
}

.btn-social-square--whatsapp,
.share-btn.whatsapp {
    background: #25d366;
}

/* ========================================
   カテゴリ一覧
======================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.category-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 32px 20px;
    text-align: center;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   アイドル一覧
======================================== */
.idol-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.idol-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.idol-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.idol-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.idol-count {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   ページタイトル
======================================== */
.page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 32px 0 24px;
    padding-bottom: 16px;
    position: relative;
    color: var(--text-color);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }
}

/* ========================================
   更新日時
======================================== */
.update-time {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

/* ========================================
   詳細ページ専用
======================================== */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.detail-image {
    width: 100%;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.detail-info {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .detail-info {
        padding: 24px;
    }
}

.detail-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.4;
    color: var(--text-color);
}

.detail-meta {
    display: grid;
    gap: 0;
    margin: 24px 0;
}

.detail-meta-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-meta-row:last-child {
    border-bottom: none;
}

.detail-meta-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-meta-row > div:last-child {
    color: var(--text-color);
    font-weight: 500;
}

/* アイドル名リンクのホバー効果 */
.idol-link {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition-fast);
}

.idol-link:hover {
    color: var(--primary-color);
}

/* ========================================
   トップに戻るボタン
======================================== */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    font-size: 26px;
    line-height: 56px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    z-index: 999;
    padding: 0;
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

#back-to-top.show {
    display: block;
}

/* ========================================
   ユーティリティ
======================================== */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* ========================================
   レスポンシブ調整
======================================== */
@media (max-width: 768px) {
    .container {
        width: 94%;
        padding: 24px 0;
    }

    .detail-meta-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .detail-meta-label {
        font-size: 13px;
    }
}

/* ランキングページ用追加スタイル */

/* 女優名リンク（作品タイトルと同じスタイル） */
.idol-name-link {
    color: var(--text-color); /* 黒 */
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.idol-name-link:hover {
    color: var(--primary-color); /* ホバー時にピンク */
}

/* リンクなしのカード（無効状態） - ホバー効果を無効化 */
.card.card-disabled {
    cursor: default;
}

.card.card-disabled:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* デフォルトのshadow-mdのまま */
    transform: none; /* ホバー時の浮き上がりを無効化 */
}

/* リンクなしの画像（無効状態） */
.card-image-disabled {
    cursor: default;
    position: relative;
    opacity: 0.7;
}

.card-image-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* リンクなしのタイトル（無効状態） */
.card-title-disabled {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #999;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

/* アイドル名（リンクなし）のスタイル */
.idol-name-disabled {
    color: #999;
    font-weight: 500;
}

/* カテゴリカードのグリッド */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 新発売ページ用追加スタイル */

/* 日付別カテゴリカードのフォントサイズ調整 */
.new-release .category-card > div:first-child {
    font-size: 18px;
}

.new-release .category-card > div:last-child {
    font-size: 14px;
}