@import url('./partials/header.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Montserrat, 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    min-height: 100vh;
}

/* メインコンテンツ */
main {
    padding-top: 80px;
}

/* ヒーローセクション */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* 背景スライドショー */
.hero-background-slider {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transform: scale(1);
    will-change: opacity, transform;
    transition: opacity 2.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    animation: hero-slide-ken-burns 20s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

.hero-slide.next {
    opacity: 0;
    visibility: visible;
    animation: hero-slide-ken-burns 20s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

@keyframes hero-slide-ken-burns {
    0% {
        transform: scale(1) translateX(0) translateY(0);
        filter: brightness(1);
    }

    12.5% {
        transform: scale(1.02) translateX(-0.5%) translateY(-0.3%);
        filter: brightness(1.02);
    }

    25% {
        transform: scale(1.04) translateX(-0.8%) translateY(-0.4%);
        filter: brightness(1.04);
    }

    37.5% {
        transform: scale(1.06) translateX(0.3%) translateY(-0.7%);
        filter: brightness(1.06);
    }

    50% {
        transform: scale(1.08) translateX(0.6%) translateY(-0.8%);
        filter: brightness(1.08);
    }

    62.5% {
        transform: scale(1.06) translateX(-0.4%) translateY(0.5%);
        filter: brightness(1.06);
    }

    75% {
        transform: scale(1.04) translateX(0.7%) translateY(-0.6%);
        filter: brightness(1.04);
    }

    87.5% {
        transform: scale(1.02) translateX(0.8%) translateY(-0.4%);
        filter: brightness(1.02);
    }

    100% {
        transform: scale(1) translateX(0) translateY(0);
        filter: brightness(1);
    }
}

/* オーバーレイ */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* スクロールインジケーター（Smooth Flow） */
.scroll-indicator.smooth-flow {
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    color: #c40000;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15;
    animation: smooth-flow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.scroll-indicator.smooth-flow::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #c40000, transparent);
    transform: translateX(-50%);
    animation: flow-line 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.scroll-indicator.smooth-flow.hide {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(-20px) !important;
    pointer-events: none !important;
    animation: none !important;
}

.scroll-indicator.smooth-flow:hover {
    transform: translateX(-50%) translateY(-5px);
    color: #f00;
}

@keyframes smooth-flow {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes flow-line {
    0% {
        opacity: 0;
        height: 0;
    }

    50% {
        opacity: 1;
        height: 25px;
    }

    100% {
        opacity: 0;
        height: 0;
    }
}



.hero-section::before {
    display: none;
}

.hero-content {
    max-width: 800px;
    color: #fff;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: hero-content-fade-in 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes hero-content-fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-kana {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: hero-text-slide-up 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: Montserrat, sans-serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    opacity: 0;
    animation: hero-text-slide-up 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.hero-sport {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffcccb;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: hero-text-slide-up 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

.hero-team {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: hero-text-slide-up 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
}

.hero-bio {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: hero-text-slide-up 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.1s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: hero-text-slide-up 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.3s forwards;
}

@keyframes hero-text-slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #fff;
    color: #c40000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #f8f8f8;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 白背景のラッパー */
.white-background-wrapper {
    background: #fff;
    padding: 2rem 0 0;
    margin-top: 2rem;
}

/* コンテンツ部分 */
.content-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 2rem;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

/* プロフィールカード内の名前セクション */
.profile-name-section {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.profile-name-section .hero-kana {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #666;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.profile-name-section .hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    font-family: Montserrat, sans-serif;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.card-icon {
    font-size: 2rem;
    color: #c40000;
    margin-right: 0.75rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    font-family: Montserrat, sans-serif;
}

/* プロフィールカード */
.profile-stats {
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: #666;
    font-size: 0.95rem;
}

.stat-value {
    color: #333;
    font-weight: 600;
}

/* ブログカード */
.blog-list, .schedule-list {
    margin-bottom: 1.5rem;
}

.blog-item, .schedule-item {
    margin-bottom: 1rem;
}

.blog-item:last-child, .schedule-item:last-child {
    margin-bottom: 0;
}

.item-separator {
    height: 1px;
    background: #f0f0f0;
    margin: 1rem 0;
}

.blog-preview {
    margin-bottom: 1.5rem;
}

.blog-date, .schedule-date {
    font-size: 0.85rem;
    color: #c40000;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.blog-title, .schedule-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

.blog-excerpt {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* スケジュールカード */
.schedule-preview {
    margin-bottom: 1.5rem;
}

.schedule-details {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.schedule-venue {
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* チャートカード */
.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    height: 280px;
}

.chart-card .empty-state {
    margin-bottom: 1.5rem;
}

/* 空状態 */
.empty-state {
    text-align: center;
    padding: 2rem 0;
    color: #888;
    font-style: italic;
}

/* カードリンク */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c40000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin-top: auto;
}

.card-link:hover {
    color: #a00000;
    transform: translateX(5px);
}

/* フッター */
footer {
    background: #333;
    color: #fff;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem; /* ②両サイドに余白を追加 */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        min-height: auto;
        padding: 1.5rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .card-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .card-icon {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .profile-stats {
        margin-bottom: 1rem;
    }

    .stat-item {
        padding: 0.5rem 0;
    }

    .stat-label, .stat-value {
        font-size: 0.9rem;
    }

    .blog-title, .schedule-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .blog-excerpt, .schedule-details {
        font-size: 0.85rem;
    }

    .card-link {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .chart-container {
        height: 240px;
    }

    .footer-links {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }

    main {
        padding-top: 1;
        margin-top: -60px; /* ヘッダー高さ分の負のマージンで完全に上部余白を削除 */
    }

    .hero-section {
        min-height: 0; /* 最小高さを0にして余白を完全削除 */
        height: fit-content; /* コンテンツに合わせた高さ */
        padding: 0; /* 全てのパディングを削除 */
        margin-top: 0; /* 上部マージンも確実に0に */
        display: block; /* flexから変更して余計な余白を削除 */
        position: relative;
        overflow: hidden;
    }

    /* SP版の背景スライダーサイズ設定 */
    .hero-background-slider {
        position: relative;
        width: 100%;
        height: 75vw; /* 4:3のアスペクト比で画像に合わせて調整 */
        max-height: 60vh;
        min-height: 35vh;
        z-index: -2;
        margin: 0;
        padding: 0;
    }

    /* SP版では画像全体を表示し余白を完全削除 */
    .hero-slide {
        position: absolute; /* 正しい配置のために絶対位置に戻す */
        inset: 0;
        width: 100%;
        height: 100%;
        background-size: contain; /* 画像全体を確実に表示 */
        background-position: center; /* 中央配置 */
        background-repeat: no-repeat;
        margin: 0;
        padding: 0;

        /* SP版スライドアニメーション最適化 */
        will-change: opacity;
        transform: translateZ(0); /* GPU加速を有効化 */
        backface-visibility: hidden; /* チラつき防止 */
    }

    .hero-slide.active {
        animation: none; /* SP版ズームアニメーションを無効化 */
        opacity: 1;
        visibility: visible;

        /* SP版でのスムーズな表示 */
        transition: opacity 1.5s ease-in-out;
    }

    .hero-slide.next {
        animation: none; /* SP版ズームアニメーションを無効化 */
        opacity: 0;
        visibility: visible;
        transition: opacity 1.5s ease-in-out;
    }

    .hero-image {
        min-height: 50vh;
        margin-bottom: 0;
    }

    .white-background-wrapper {
        background: #fff;
        padding: 0; /* SP版でも上部パディングを削除 */
        margin-top: 0;
    }

    .content-container {
        padding: 2rem 1rem; /* 適切なパディングを復活 */
        margin: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        margin-bottom: 1.5rem; /* フッターとのギャップを追加 */
    }

    .profile-name-section .hero-title {
        font-size: 1.5rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .profile-name-section .hero-kana {
        font-size: 0.9rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    /* スクロールインジケーター モバイル対応 */
    .scroll-indicator.smooth-flow {
        bottom: 10px; /* 画像のすぐ下に配置 */
        font-size: 2rem;
        z-index: 25; /* より高いz-indexで確実に表示 */
        position: absolute; /* hero-section内での絶対位置 */
        left: 50%; /* 中央配置 */
        transform: translateX(-50%); /* 中央配置のためのtransform */
    }
}

/* フェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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