/* ==========================================================================
   PRIMA! Links Page - 専用スタイル（最終版）
   ========================================================================== */

/* ==========================================================================
   1. 変数定義
   ========================================================================== */
:root {
    --spacing-links-xs: 8px;
    --spacing-links-sm: 16px;
    --spacing-links-md: 24px;
    --spacing-links-lg: 40px;
    --spacing-links-xl: 80px;
}

/* ==========================================================================
   2. カテゴリータイトル（背景色同化で擬似的に非表示）
   ========================================================================== */
.page-links .category-title {
    font-family: var(--font-headline);
    font-size: 8px;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #fafafa;
    opacity: 0.02;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

/* ==========================================================================
   3. ヒーローセクション
   ========================================================================== */
.page-links .hero-section {
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-links-lg) var(--spacing-links-md);
    position: relative;
    margin-top: 80px;
    background-color: #fff;
}

.page-links .hero-content {
    text-align: center;
    position: relative;
}

.page-links .vertical-text {
    writing-mode: vertical-rl;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--color-black);
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
}

.page-links .hero-title {
    font-family: var(--font-headline);
    font-size: 100px;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-links-sm);
    line-height: 1.1;
    color: var(--color-black);
}

.page-links .hero-subtitle {
    font-family: var(--font-headline);
    font-style: italic;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.15em;
    opacity: 0.5;
    color: var(--color-dark-gray);
}

/* ==========================================================================
   4. リンクセクション
   ========================================================================== */
.page-links .links-section {
    padding: var(--spacing-links-xl) var(--spacing-links-md);
    background-color: #fafafa;
}

.page-links .links-container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-links .links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-links-md);
}

/* ==========================================================================
   5. リンクカード（スリム版）
   ========================================================================== */
.page-links .link-card {
    display: block;
    background-color: #fff;
    border: 1px solid var(--color-light-gray);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-links .link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(26, 26, 26, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-links .link-card:hover {
    border-color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.page-links .link-card:hover::before {
    opacity: 1;
}

.page-links .card-inner {
    padding: var(--spacing-links-lg);
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.page-links .card-number {
    font-family: var(--font-headline);
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.25;
    margin-bottom: var(--spacing-links-sm);
    color: var(--color-black);
}

.page-links .card-title {
    font-family: var(--font-headline);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-links-xs);
    line-height: 1.3;
    color: var(--color-black);
}

.page-links .card-subtitle {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: var(--spacing-links-md);
    opacity: 0.5;
    color: var(--color-dark-gray);
}

.page-links .card-description {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: auto;
    opacity: 0.7;
    color: var(--color-dark-gray);
}

.page-links .card-arrow {
    position: absolute;
    bottom: var(--spacing-links-lg);
    right: var(--spacing-links-lg);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-links .link-card:hover .card-arrow {
    opacity: 0.6;
    transform: translateX(0);
}

/* ==========================================================================
   6. アニメーション
   ========================================================================== */
.page-links .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-links .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* カード順次表示（7枚対応） */
.page-links .link-card:nth-child(1) { transition-delay: 0.1s; }
.page-links .link-card:nth-child(2) { transition-delay: 0.15s; }
.page-links .link-card:nth-child(3) { transition-delay: 0.2s; }
.page-links .link-card:nth-child(4) { transition-delay: 0.25s; }
.page-links .link-card:nth-child(5) { transition-delay: 0.3s; }
.page-links .link-card:nth-child(6) { transition-delay: 0.35s; }
.page-links .link-card:nth-child(7) { transition-delay: 0.4s; }

/* ==========================================================================
   7. レスポンシブスタイル
   ========================================================================== */

/* 大型デスクトップ向け (1400px以上) */
@media screen and (min-width: 1400px) {
    .page-links .hero-title {
        font-size: 120px;
    }
    
    .page-links .card-inner {
        padding: 50px;
        min-height: 260px;
    }
    
    .page-links .card-title {
        font-size: 32px;
    }
}

/* 中型デスクトップ向け (1200px以下) */
@media screen and (max-width: 1200px) {
    .page-links .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-links-md);
    }
}

/* タブレット・小型デスクトップ向け (991px以下) */
@media screen and (max-width: 991px) {
    .page-links .hero-title {
        font-size: 80px;
    }
    
    .page-links .vertical-text {
        left: -40px;
        font-size: 11px;
    }
    
    .page-links .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-links-md);
    }
    
    .page-links .card-inner {
        padding: var(--spacing-links-lg);
        min-height: 220px;
    }
    
    .page-links .card-title {
        font-size: 26px;
    }
}

/* タブレット・モバイル向け (767px以下) */
@media screen and (max-width: 767px) {
    :root {
        --spacing-links-lg: 32px;
        --spacing-links-xl: 60px;
    }
    
    .page-links .hero-section {
        min-height: 30vh;
        padding: var(--spacing-links-lg) var(--spacing-links-md);
        margin-top: 60px;
    }
    
    .page-links .hero-title {
        font-size: 64px;
    }
    
    .page-links .hero-subtitle {
        font-size: 14px;
    }
    
    .page-links .vertical-text {
        display: none;
    }
    
    .page-links .links-section {
        padding: var(--spacing-links-lg) var(--spacing-links-md);
    }
    
    .page-links .links-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-links-md);
    }
    
    .page-links .card-inner {
        padding: var(--spacing-links-lg);
        min-height: 200px;
    }
    
    .page-links .card-title {
        font-size: 24px;
    }
    
    .page-links .card-description {
        font-size: 13px;
    }
}

/* スマートフォン向け (576px以下) */
@media screen and (max-width: 576px) {
    .page-links .hero-title {
        font-size: 52px;
    }
    
    .page-links .hero-subtitle {
        font-size: 13px;
    }
    
    .page-links .card-inner {
        padding: var(--spacing-links-md) var(--spacing-links-md) 50px;
        min-height: 180px;
    }
    
    .page-links .card-title {
        font-size: 22px;
    }
    
    .page-links .card-number {
        font-size: 11px;
    }
    
    .page-links .card-subtitle {
        font-size: 12px;
    }
    
    .page-links .card-description {
        font-size: 12px;
    }
    
    .page-links .card-arrow {
        bottom: var(--spacing-links-md);
        right: var(--spacing-links-md);
        width: 28px;
        height: 28px;
    }
}

/* 極小デバイス向け (375px以下) */
@media screen and (max-width: 375px) {
    .page-links .hero-title {
        font-size: 44px;
    }
    
    .page-links .card-title {
        font-size: 20px;
    }
    
    .page-links .card-description {
        font-size: 12px;
    }
}

/* ==========================================================================
   8. ヘッダー背景色の調整（Linksページ専用）
   ========================================================================== */
.page-links .header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.page-links .header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
