/* ================================
   Rider Page Styles
   File: css/rider-page.css
================================ */

/* ================================
   ページヒーロー
================================ */
.page-hero {
    margin-top: 80px;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/rider/rider-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
}

.page-hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

/* ================================
   ライダープロフィール
================================ */
.rider-profile {
    padding: 0;
    background: white;
}

.rider-profile .section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-blue);
    margin-bottom: 0;
    padding: 3rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    text-align: center;
    background: white;
}

.rider-profile .section-title span {
    position: relative;
    display: inline-block;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    z-index: 2;
}

.rider-profile .section-title::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(150px, 40vw, 300px);
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(14, 95, 216, 0.3) 20%,
        rgba(14, 95, 216, 0.8) 50%,
        rgba(14, 95, 216, 0.3) 80%,
        transparent 100%
    );
}

.rider-profile .section-title::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 
        0 0 0 3px rgba(14, 95, 216, 0.3),
        0 0 20px rgba(14, 95, 216, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

/* プロフィールコンテナ */
.profile-container {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 0;
    align-items: stretch;
    max-width: 100%;
    margin: 0;
}

.rider-photo {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 600px;
}

.rider-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.rider-info {
    background: linear-gradient(135deg, #0E5FD8 0%, #1976D2 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rider-info h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    font-weight: 700;
}

.rider-name-en {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.profile-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.profile-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.profile-value {
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.rider-bio {
    line-height: 1.8;
    color: white;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.rider-bio p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
}

/* ================================
   戦績セクション
================================ */
.career-section {
    padding: 5rem 0;
    background: #f0f4f8;
}

.career-section .section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-blue);
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    text-align: center;
}

.career-section .section-title span {
    position: relative;
    display: inline-block;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    z-index: 2;
}

.career-section .section-title::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(150px, 40vw, 300px);
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(14, 95, 216, 0.3) 20%,
        rgba(14, 95, 216, 0.8) 50%,
        rgba(14, 95, 216, 0.3) 80%,
        transparent 100%
    );
}

.career-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 
        0 0 0 3px rgba(14, 95, 216, 0.3),
        0 0 20px rgba(14, 95, 216, 0.5);
    animation: pulse 4s ease-in-out infinite;
}

.career-list {
    max-width: 800px;
    margin: 0 auto;
}

.career-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
}

.career-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(14, 95, 216, 0.2);
}

.career-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--primary-blue);
    min-width: 80px;
}

.career-content {
    flex: 1;
}

.career-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.career-description {
    color: #666;
    line-height: 1.6;
}

.career-highlight {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ================================
   アニメーション
================================ */
/* 完全に置き換える */
@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 
            0 0 0 3px rgba(14, 95, 216, 0.3),
            0 0 20px rgba(14, 95, 216, 0.5);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        box-shadow: 
            0 0 0 5px rgba(14, 95, 216, 0.2),
            0 0 30px rgba(14, 95, 216, 0.7);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
}

.fade-in-text {
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
}


/* ================================
   レスポンシブ - 1024px
================================ */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .rider-photo {
        min-height: 400px;
    }
    
    .rider-info {
        padding: 2.5rem;
    }
}

/* ================================
   レスポンシブ - タブレット
================================ */
@media (max-width: 768px) {
    .page-hero {
        margin-top: 60px;
        height: 60vh;
        min-height: 400px;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .rider-photo {
        min-height: 350px;
    }
    
    .rider-info {
        padding: 2rem;
    }
    
    .rider-info h2 {
        font-size: 2rem;
    }
    
    .profile-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .career-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .career-item:hover {
        transform: translateX(0) translateY(-5px);
    }
}

/* ================================
   レスポンシブ - スマートフォン
================================ */
@media (max-width: 480px) {
    .page-hero {
        margin-top: 60px;
        height: 50vh;        /* ← 追加 */
        min-height: 350px;   /* ← 追加 */
    }
    
    /* ライダーページ専用の追加設定 */
    .rider-profile .section-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
        padding: 1.5rem 0;
    }
    
    .rider-info {
        padding: 1.5rem;
    }
    
    .rider-info h2 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .profile-details {
        gap: 0.8rem;
    }
    
    .profile-label {
        font-size: 0.8rem;
    }
    
    .profile-value {
        font-size: 0.9rem;
    }
    
    .rider-bio p {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    .career-section {
        padding: 3rem 0;
    }
    
    .career-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }
    
    .career-item {
        padding: 1.5rem;
    }
    
    .career-year {
        font-size: 1.5rem;
        min-width: 60px;
    }
    
    .career-title {
        font-size: 1rem;
    }
    
    .career-description {
        font-size: 0.85rem;
    }
    
    .career-highlight {
        font-size: 0.75rem;
        padding: 0.15rem 0.6rem;
    }
}

/* ================================
   縦書きタイトル（TOPページと同じスタイル）
================================ */

/* パーティクルコンテナ */
.page-hero .particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

/* 縦書きテキストラッパー */
.page-hero .vertical-text-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 縦書きメインテキスト */
.page-hero .vertical-text {
    /* 縦書き設定 */
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    
    /* テキストの向き */
    -webkit-text-orientation: upright;
    -ms-text-orientation: upright;
    text-orientation: upright;
    
    /* フォント設定 */
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.8rem;
    line-height: 1;
    white-space: nowrap;
    
    /* YAMAHAブルーのエフェクト */
    text-shadow: 
        0 0 20px rgba(14, 95, 216, 0.8),
        0 0 40px rgba(14, 95, 216, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    
    /* アニメーション */
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1.5s ease-out forwards;
    animation-delay: 0.5s;
    margin: 0 auto;
}

/* 英語サブタイトル */
.page-hero .english-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #0E5FD8;
    letter-spacing: 0.5rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1.5s;
    text-shadow: 0 0 10px rgba(14, 95, 216, 0.6);
}

/* 装飾的な線 */
.page-hero .decoration-line {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #0E5FD8, transparent);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: expandLine 1.5s ease-out forwards;
}

.page-hero .line-top {
    top: -100px;
    height: 80px;
    animation-delay: 0.3s;
}

.page-hero .line-bottom {
    bottom: -100px;
    height: 80px;
    animation-delay: 0.8s;
}

/* パーティクル */
.page-hero .particle {
    position: absolute;
    background: #0E5FD8;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 
        0 0 6px #0E5FD8,
        0 0 12px rgba(14, 95, 216, 0.5);
}

.page-hero .spark {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, #66a3ff, #0E5FD8, transparent);
    border-radius: 2px;
    pointer-events: none;
    box-shadow: 0 0 4px #0E5FD8;
}

/* アニメーション定義 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 80px;
        opacity: 0.8;
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    .page-hero .vertical-text {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
        letter-spacing: 0.5rem;
    }
    
    .page-hero .english-subtitle {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
        margin-top: 1.5rem;
    }
    
    .page-hero .line-top,
    .page-hero .line-bottom {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .page-hero .vertical-text {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
    }
    
    .page-hero .english-subtitle {
        font-size: 1.2rem;
        letter-spacing: 0.3rem;
    }
}