@import url('./partials/header.css');
@import url('./partials/page-title.css');
@import url('./partials/footer.css');

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

/* 全体スタイル */
body {
    font-family: Montserrat, 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #222;
    line-height: 1.6;
    position: relative;
}

main, header, footer {
    position: relative;
}

/* ヘッダー */
header {
    position: relative;
    height: 80px;
}

@media (max-width: 600px) {
    /* スケジュールカードのモバイル調整 */
    .match-cards {
        padding: 0 15px;
        max-width: 100%;
    }

    .card {
        max-width: calc(100% - 32px);
        padding: 20px 16px 18px;
        margin: 0 16px;
        box-sizing: border-box;
        border-radius: 16px; /* 小さな画面でも丸みを少し調整 */
        overflow: hidden; /* はみ出し防止 */
        width: 100%; /* 幅を明示的に指定 */
    }

    /* 試合カードのevent-details用スペース確保 */
    .card.match {
        padding-top: 50px;
    }

    /* イベントカードのevent-details用スペース確保 */
    .card.event {
        padding-top: 50px;
    }

    /* カード内の要素も調整 */
    .card-info-row {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 1rem; /* 小さな画面でのフォントサイズ調整 */
    }

    .card-info-row .date,
    .card-info-row .time,
    .card-info-row .venue {
        font-size: 1rem; /* 小さな画面対応 */
    }

    .card .teams-large {
        gap: 15px;
        margin: 20px 0 12px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%; /* 親コンテナの幅に収める */
        overflow: hidden; /* はみ出し防止 */
    }

    /* チーム名のSP用設定は基本定義の@media (max-width: 600px)に統合済み */

    /* VSのSP用設定は基本定義の@media (max-width: 600px)に統合済み */

    .card-header {
        gap: 15px;
        flex-flow: column wrap;
        justify-content: center;
    }

    .card-header .event-name {
        order: -1;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
        font-size: 1.25rem; /* 430px設定から調整 */
        overflow: hidden; /* モバイルでの長いイベント名対応 */
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%; /* 親コンテナに収める */
    }

    .card-header .date,
    .card-header .time,
    .card-header .venue {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* モバイル版でも日付・時間・場所のスタイルを統一 */
    .card-header .date {
        font-size: 1rem; /* 430px設定を統合 */
        font-weight: 600;
        background: linear-gradient(135deg, #dc2626, #ef4444);
        background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: 0.5px;
    }

    .card-header .time {
        font-size: 1rem; /* 430px設定を統合 */
        color: #475569;
        font-weight: 500;
    }

    .card-header .venue {
        font-size: 1rem;
        color: #64748b;
        font-weight: 500;
    }

    /* セレクターも調整 */
    .selector {
        padding: 0 15px;
        flex-wrap: wrap;
    }

    .selector label {
        font-size: 1rem;
    }

    .selector select {
        font-size: 1rem;
        padding: 6px 12px;
    }

    /* セクション全体のパディング調整も統合 */
    .section {
        padding: 35px 15px; /* 430px設定から調整 */
    }

    /* event-detailsのモバイル対応 */
    .card .event-details {
        max-width: calc(100% - 32px); /* カードの幅に収める */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.9rem; /* モバイルでは少し小さく */
    }
}

/* セクション共通 */
.section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

/* 見出し */
.section h2 {
    color: #c40000;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

/* 月別セレクター */
.selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
}

.selector label {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 8px;
}

.selector select {
    font-size: 1.05rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,250,252,0.8));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(220, 38, 38, 0.2);
    color: #374151;
    border-radius: 12px;
    padding: 10px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.selector select:focus {
    border: 2px solid #dc2626;
    outline: none;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.selector select:hover {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* カレンダー型スケジュール */
.match-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* カレンダーコンテナ */
.calendar-container {
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.95) 0%, 
        rgba(248,250,252,0.9) 50%, 
        rgba(241,245,249,0.85) 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

/* カレンダーヘッダー */
.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c40000;
}

/* カレンダーグリッド */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

/* 曜日ヘッダー */
.calendar-day-header {
    background: #c40000;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

/* カレンダーの日付セル */
.calendar-day {
    background: white;
    min-height: 80px;
    max-height: 120px; /* 最大高さを制限 */
    padding: 8px;
    position: relative;
    cursor: default;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* はみ出し防止 */
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background: #f8fafc;
}

.calendar-day.other-month {
    background: #f3f4f6;
    color: #9ca3af;
}

.calendar-day.today {
    background: #fef2f2;
    border: 2px solid #dc2626;
}

/* 日付番号 */
.day-number {
    font-weight: 600;
    margin-bottom: 4px;
    color: #374151;
    flex-shrink: 0; /* 日付番号のサイズを固定 */
}

.calendar-day.other-month .day-number {
    color: #9ca3af;
}

.calendar-day.today .day-number {
    color: #dc2626;
    font-weight: 700;
}

/* スケジュールイベントコンテナ */
.schedule-events-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* スケジュールイベント */
.schedule-event {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%; /* 親コンテナの幅に合わせる */
    max-width: 100%;
    position: relative;
    display: block;
    min-height: 16px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* ホバー時の全文表示用ツールチップ */
.schedule-event:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    z-index: 1000;
    pointer-events: none;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    line-height: 1.2;
    max-width: 250px;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
}

/* ツールチップの矢印 */
.schedule-event:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    pointer-events: none;
}

.schedule-event:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    z-index: 100; /* ツールチップが他の要素の下に隠れないように */
}

.schedule-event.event-type {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.schedule-event.event-type:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    z-index: 100; /* ツールチップが他の要素の下に隠れないように */
}

/* イベントタイプのツールチップ色 */
.schedule-event.event-type:hover::after {
    background: rgba(37, 99, 235, 0.9);
}

.schedule-event.event-type:hover::before {
    border-top-color: rgba(37, 99, 235, 0.9);
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .calendar-container {
        padding: 15px;
    }
    
    .calendar-header {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .calendar-day {
        min-height: 60px;
        max-height: 90px; /* モバイルでは少し低く */
        padding: 4px;
    }
    
    .calendar-day-header {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
    
    .schedule-event {
        font-size: 0.65rem;
        padding: 1px 4px;
        min-height: 14px;
        width: 100%;
        max-width: 100%;
        white-space: normal; /* 改行を許可 */ /* はみ出しを表示 */
        text-overflow: initial; /* 三点リーダーを無効化 */
        line-height: 1.1; /* 行間を調整 */
        max-height: 28px; /* 2行分の高さを確保 */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 最大2行 */
        line-clamp: 2; /* 標準プロパティ */
        -webkit-box-orient: vertical;
        overflow: hidden; /* 2行を超えた場合は隠す */
    }
    
    /* モバイル版ツールチップの調整 */
    .schedule-event:hover::after {
        font-size: 0.65rem;
        max-width: 180px;
        bottom: 100%;
        margin-bottom: 3px;
        padding: 6px 8px;
    }
    
    .schedule-event:hover::before {
        bottom: 100%;
        border-width: 4px;
    }
    
    .day-number {
        font-size: 0.85rem;
    }
}

/* スケジュールが無い場合のメッセージ */
.no-schedules {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 1.1rem;
}

.no-schedules p {
    margin: 0;
}

/* PC版でのワイドレイアウト対応 */
@media (min-width: 1024px) {
    .match-cards {
        max-width: 1000px;
    }
}

@media (min-width: 1200px) {
    .match-cards {
        max-width: 1000px;
    }
}

.card {
    overflow: visible;
    width: calc(100% - 40px);
    min-width: 0;
    max-width: 680px;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.95) 0%, 
        rgba(248,250,252,0.9) 50%, 
        rgba(241,245,249,0.85) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: none;
    padding: 40px 48px 28px;
    margin-bottom: 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

/* モダンなカードバリエーション */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(196, 0, 0, 0.03) 0%, 
        rgba(255, 71, 87, 0.02) 50%, 
        rgba(255, 107, 122, 0.01) 100%);
    border-radius: 24px;
    pointer-events: none;
}

/* PC版でのカード幅とパディング調整 */
@media (min-width: 1024px) {
    .card {
        max-width: 950px;
        padding: 40px 60px 35px;
    }
    
    /* 試合カードの内部レイアウト最適化 */
    .card.match {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px 30px;
        align-items: center;
        padding-top: 70px; /* event-detailsのスペースを確保 */
    }
    
    .card.match .card-info-row {
        grid-column: 1 / -1;
        justify-content: space-evenly;
        margin-bottom: 0;
    }
    
    .card.match .teams-large {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        justify-self: center;
    }
    
    .card.match .event-details {
        /* Grid設定をリセット */
        position: absolute;
        top: 16px;
        left: 16px;
        margin: 0;

        /* Gridの影響を無効化 */
        grid-column: initial;
        grid-row: initial;
        justify-self: initial;
        align-self: initial;
        max-width: initial;
    }
    
    /* イベントカードの内部レイアウト最適化 */
    .card.event {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px 30px;
        align-items: center;
        padding-top: 70px; /* event-detailsのスペースを確保 */
    }
    
    .card.event .card-header {
        grid-column: 1 / -1;
        justify-content: space-evenly;
        margin-bottom: 0;
    }
    
    .card.event .event-details {
        /* Grid設定をリセット */
        position: absolute;
        top: 16px;
        left: 16px;
        margin: 0;

        /* Gridの影響を無効化 */
        grid-column: initial;
        grid-row: initial;
        justify-self: initial;
        align-self: initial;
    }
}

/* PC版でのevent-details位置確定 */
@media (min-width: 1024px) {
    .card .event-details {
        position: absolute !important;
        top: 20px !important;
        left: 20px !important;
        z-index: 15 !important;

        /* Grid レイアウトの影響を完全に無効化 */
        grid-column: initial !important;
        grid-row: initial !important;
        justify-self: initial !important;
        align-self: initial !important;
        margin: 0 !important;
        max-width: 250px;
        font-size: 1rem;

        /* 囲いを明示的に削除 */
        border: none !important;
        background-color: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        border-radius: 0 !important;
    }
}

@media (min-width: 1200px) {
    .card {
        max-width: 1100px;
        padding: 45px 70px 40px;
    }
    
    .card.match,
    .card.event {
        gap: 25px 40px;
    }
    
    /* 試合カードの追加パディング */
    .card.match {
        padding-top: 75px; /* event-detailsのスペースを確保 */
    }
    
    /* イベントカードの追加パディング */
    .card.event {
        padding-top: 75px; /* event-detailsのスペースを確保 */
    }
    
    /* PC版でのevent-details位置調整 */
    .card .event-details {
        top: 20px;
        left: 20px;
        font-size: 1.05rem;

        /* 囲いを明示的に削除 */
        border: none !important;
        background-color: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        border-radius: 0 !important;
    }
}

.card:hover {
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 10;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* PC版でのホバーエフェクト最適化 */
@media (min-width: 1024px) {
    .card:hover {
        box-shadow: 0 32px 80px 0 rgba(196,0,0,0.35), 0 12px 56px 0 rgba(0,0,0,0.2), 0 2px 0 #c40000 inset;
    }
    
    .card:hover .teams-large .vs {
        box-shadow: 0 6px 16px rgba(196, 0, 0, 0.4);
    }
    
    .card:hover .event-details {
        /* ホバー時の囲いも削除 */
        border: none !important;
        background-color: transparent !important;
        box-shadow: none !important;
        outline: none !important;
    }
    
    .card:hover .card-info-row .date i,
    .card:hover .card-info-row .time i,
    .card:hover .card-info-row .venue i,
    .card:hover .card-header .date i,
    .card:hover .card-header .time i,
    .card:hover .card-header .venue i {
        color: #c40000;
    }
}

.card.match {
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.95) 0%, 
        rgba(255,245,245,0.9) 50%, 
        rgba(254,242,242,0.85) 100%);
    border-left: 4px solid #dc2626; /* 角丸に対応した通常のborder */
    border-top-left-radius: 24px; /* 左上の角丸を維持 */
    border-bottom-left-radius: 24px; /* 左下の角丸を維持 */
    box-shadow: 
        0 25px 50px -12px rgba(220, 38, 38, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card.match::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 8px 0 0 8px;
}

.card.match .card-content::before {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.05) 0%, 
        rgba(239, 68, 68, 0.03) 50%, 
        rgba(252, 165, 165, 0.02) 100%);
}

.card.event {
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.95) 0%, 
        rgba(240,249,255,0.9) 50%, 
        rgba(235,246,255,0.85) 100%);
    border-left: 4px solid #2563eb; /* 角丸に対応した通常のborder */
    border-top-left-radius: 24px; /* 左上の角丸を維持 */
    border-bottom-left-radius: 24px; /* 左下の角丸を維持 */
    box-shadow: 
        0 25px 50px -12px rgba(37, 99, 235, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card.event::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 8px 0 0 8px;
}

.card.event .card-content::before {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(59, 130, 246, 0.03) 50%, 
        rgba(147, 197, 253, 0.02) 100%);
}

.card-glow {
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    pointer-events: none;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.02) 100%);
}

.card:hover .card-glow {
    opacity: 0.3;
}

/* カードヘッダー（日付とキックオフ時間を横並び） */
.card-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

/* PC版でのカードヘッダー調整 */
@media (min-width: 1024px) {
    /* 試合カードのcard-info-rowと同じスタイルを適用 */
    .card-header {
        gap: 60px;
        justify-content: space-between;
    }
    
    .card-header .event-name {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        order: -1; /* イベント名を最初に表示 */
    }
    
    .card-header .date,
    .card-header .time,
    .card-header .venue {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }
    
    .card-header .date i,
    .card-header .time i,
    .card-header .venue i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    /* イベントカードの日付アイコンも試合カードと同じグラデーションに */
    .card-header .date i {
        background: linear-gradient(135deg, #dc2626, #ef4444);
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 1px 2px rgba(220, 38, 38, 0.2));
    }
}

@media (min-width: 1200px) {
    .card-header {
        gap: 80px;
    }
    
    .card-header .event-name {
        font-size: 1.6rem;
    }
    
    .card-header .date i,
    .card-header .time i,
    .card-header .venue i {
        font-size: 1.3rem;
    }
    
    /* イベントカードの日付アイコンも試合カードと同じグラデーションに */
    .card-header .date i {
        background: linear-gradient(135deg, #dc2626, #ef4444);
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 1px 2px rgba(220, 38, 38, 0.2));
    }
}

.card-header .event-name {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-shadow: none;
    position: relative;
}

.card-header .event-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    border-radius: 1px;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.card:hover .card-header .event-name::after {
    opacity: 0.6;
    transform: scaleX(1);
}

.card-header .date, .card-header .time, .card-header .venue {
    margin-bottom: 0;
}

/* 日付・時間・会場を横並びに */
.card-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* PC版での情報行の間隔調整 */
@media (min-width: 1024px) {
    .card-info-row {
        gap: 60px;
        justify-content: space-between;
    }
    
    .card-info-row .date,
    .card-info-row .time,
    .card-info-row .venue {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }
    
    .card-info-row .date i,
    .card-info-row .time i,
    .card-info-row .venue i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
}

@media (min-width: 1200px) {
    .card-info-row {
        gap: 80px;
    }
    
    .card-info-row .date i,
    .card-info-row .time i,
    .card-info-row .venue i {
        font-size: 1.3rem;
    }
}

.card-info-row .date,
.card-info-row .time,
.card-info-row .venue {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-info-row .venue {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: normal;
}

/* チーム名・VSをさらに大きく中央寄せで強調 */
.card .card-info-row .date {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card .card-info-row .date i {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(220, 38, 38, 0.2));
}

.card .card-info-row .time {
    font-size: 1.05rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card .card-info-row .venue {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card .teams-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 32px 0 18px;
    flex-direction: column;
}

/* PC版でのチーム名表示の調整 */
@media (min-width: 1024px) {
    .card .teams-large {
        gap: 60px;
        margin: 40px 0 25px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    


}

@media (min-width: 1200px) {
    .card .teams-large {
        gap: 80px;
        margin: 45px 0 30px;
    }
    


}

.card .teams-large .team {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1f2937, #374151, #4b5563);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    line-height: 1.1;
    position: relative;
    transition: all 0.3s ease;
    
    /* 基本レイアウト設定 */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 17ch;
}

/* PC版（1024px以上）での調整 */
@media (min-width: 1024px) {
    .card .teams-large .team {
        max-width: 14ch;
        font-size: 1.6rem;
    }
}

/* PC版（1200px以上）での調整 */
@media (min-width: 1200px) {
    .card .teams-large .team {
        max-width: 11ch;
        font-size: 1.8rem;
    }
}

/* SP版（600px以下）での調整 */
@media (max-width: 600px) {
    .card .teams-large .team {
        width: 100%;
        font-size: 0.8rem;
        max-width: none;
    }
}

.card .teams-large .vs {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #dc2626, #ef4444, #f87171);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 3px;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;

    /* 囲いを明示的に削除 */
    border: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none;
}

/* PC版（1024px以上）での調整 */
@media (min-width: 1024px) {
    .card .teams-large .vs {
        font-size: 1.2rem;
        border-radius: 0;
    }
}

/* PC版（1200px以上）での調整 */
@media (min-width: 1200px) {
    .card .teams-large .vs {
        font-size: 1.3rem;
    }
}

/* SP版（600px以下）での調整 */
@media (max-width: 600px) {
    .card .teams-large .vs {
        font-size: 1.15rem;
        letter-spacing: 2px;
        margin: 0 4px;
    }
}

.card .card-header .event-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0077b6;
    margin-bottom: 8px;
}

.card .card-header .date {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card .card-header .time {
    font-size: 1.05rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card .card-header .venue {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card .event-details {
    color: #dc2626;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;

    /* 囲いを明示的に削除 */
    border: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
}

.card .event-details i {
    color: #ef4444;
    filter: drop-shadow(0 1px 2px rgba(239, 68, 68, 0.2));
}

/* イベントカード用のevent-details */
.card.event .event-details {
    color: #2563eb;
}

.card.event .event-details i {
    color: #3b82f6;
    filter: drop-shadow(0 1px 2px rgba(59, 130, 246, 0.2));
}

/* メニューフェードインアニメーション */
@keyframes fade-in-menu {
    0% {
        opacity: 0;
        backdrop-filter: blur(0);
    }

    100% {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

/* メニューフェードアウトアニメーション */
@keyframes fade-out-menu {
    0% {
        opacity: 1;
        backdrop-filter: blur(10px);
    }

    100% {
        opacity: 0;
        backdrop-filter: blur(0);
    }
}

/* オーバーレイのスタイル */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

/* スケジュール詳細モーダル */
.schedule-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.schedule-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: calc(90% - 32px);
    margin: 0 16px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.schedule-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 16px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.1);
}

.schedule-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-modal-header h3.match-title {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.schedule-modal-header h3.event-title {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.schedule-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.schedule-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    transform: scale(1.1);
}

.schedule-modal-body {
    padding: 24px 32px 32px;
}

.schedule-detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.6));
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
}

.schedule-detail-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.schedule-detail-item i {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 24px;
    flex-shrink: 0;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-label {
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.detail-content {
    color: #1f2937;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.5;
    padding-left: 36px;
}

/* イベント用のアイコン色調整 */
.schedule-modal-header h3.event-title ~ .schedule-modal-body .schedule-detail-item i {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* モバイル対応 */
@media (max-width: 600px) {
    .schedule-modal {
        width: calc(96% - 24px); /* 430px設定を統合して少し調整 */
        margin: 0 12px;
        max-height: 85vh;
        border-radius: 14px; /* 430px設定を統合して少し調整 */
    }

    .schedule-modal-header {
        padding: 18px 22px 10px; /* 430px設定を統合して少し調整 */
    }

    .schedule-modal-header h3 {
        font-size: 1.25rem; /* 430px設定を統合して少し調整 */
    }

    .schedule-modal-body {
        padding: 18px 22px 22px; /* 430px設定を統合して少し調整 */
    }

    .schedule-detail-content {
        gap: 18px; /* 430px設定を統合 */
    }

    .schedule-detail-item {
        gap: 6px;
        padding: 14px; /* 430px設定を統合して少し調整 */
    }

    .detail-header {
        gap: 8px;
    }

    .detail-label {
        font-size: 0.95rem; /* 430px設定を統合して少し調整 */
    }

    .detail-content {
        padding-left: 32px;
        font-size: 0.95rem; /* 430px設定を統合して少し調整 */
    }

    .schedule-detail-item span:last-child {
        font-size: 0.95rem; /* 430px設定を統合 */
    }
}

/* プロフィールページスタイル */
h1, h2, h3 {
    color: #c40000;
    font-family: Montserrat, 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

a {
    color: #c40000;
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    header {
       height: 60px;
    }
}
