@charset "utf-8";
/* CSS Document */

/* =========================================
   過去の戦績：レスポンシブ・カード型デザイン
========================================= */

.record-list-section {
    padding: 60px 0 60px 0;
}

.record-card-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* カード同士の隙間 */
}

.record-card-list li {
    margin: 0;
}

.record-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: #fff;
    border: 1px solid #eaeaea;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* 左端のアクセントライン（チームカラー） */
.record-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: var(--main-color, #7a549e);
    transition: width 0.3s ease;
}

/* マウスホバー時のリッチなアニメーション */
.record-card:hover {
    transform: translateY(-4px); /* フワッと浮く */
    box-shadow: 0 8px 20px rgba(122, 84, 158, 0.15); /* 紫色の影を落とす */
    border-color: transparent;
}

.record-card:hover::before {
    width: 10px; /* ホバー時にラインが少し太くなる */
}

.record-year {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.05em;
    padding-left: 12px; /* 左ラインと文字の間の余白 */
    transition: color 0.3s;
}

.record-link {
    font-size: 0.75rem;
    font-weight: bold;
    color: #888;
    transition: color 0.3s;
}

/* ホバー時に文字色もチームカラーへ変化 */
.record-card:hover .record-year,
.record-card:hover .record-link {
    color: var(--main-color, #7a549e);
}

/* =========================================
   スマホ用（画面幅768px以下）の微調整
========================================= */
@media screen and (max-width: 768px) {
    .record-card-list {
        grid-template-columns: 1fr; /* スマホでは確実に1列にする */
        gap: 15px;
        padding: 0 15px; /* スマホ画面両端の余白 */
    }
    
    .record-card {
        padding: 20px 24px;
    }
    
    .record-year {
        font-size: 1.15rem;
        padding-left: 10px;
    }
    
    .record-link {
        font-size: 0.85rem;
    }
}

/* 戦績一覧・個別テーブル共通CSS
-------------------------*/
:root {
  --main-color: #7a549e;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.match-record-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

.match-record-table thead th {
  background-color: var(--main-color);
  color: #fff;
  font-weight: bold;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #6b498b;
}

.match-record-table tbody td {
  padding: 10px;
  border: 1px solid #ddd;
  vertical-align: middle;
}

.match-record-table tbody tr:nth-child(even) {
  background-color: #f5f0fa;
}

/* 列設定: 1:日付, 2:大会名, 3:得点, 4:結果, 5:失点, 6:対戦相手 */
.match-record-table th:nth-child(1),
.match-record-table td:nth-child(1) {
  width: 12%;
  text-align: center;
  white-space: nowrap; /* 日付を改行させない */
}
.match-record-table th:nth-child(2),
.match-record-table td:nth-child(2) {
  width: 32%;
  text-align: left;
  white-space: normal;
}
.match-record-table th:nth-child(3),
.match-record-table td:nth-child(3) {
  width: 6%;
  text-align: center;
  font-weight: bold;
}
.match-record-table th:nth-child(4),
.match-record-table td:nth-child(4) {
  width: 6%;
  text-align: center;
}
.match-record-table th:nth-child(5),
.match-record-table td:nth-child(5) {
  width: 6%;
  text-align: center;
  font-weight: bold;
}
.match-record-table th:nth-child(6),
.match-record-table td:nth-child(6) {
  width: 38%;
  text-align: left;
  white-space: normal;
}

/* SP用 (max-width: 768px) */
@media screen and (max-width: 768px) {
  .match-record-table {
    min-width: 100%;
    font-size: 11px;
  }
  
  .match-record-table thead th {
    padding: 8px 2px;
    font-size: 10px;
  }
  
  .match-record-table tbody td {
    padding: 6px 2px;
    white-space: normal;
    word-break: break-word;
  }
  
  .match-record-table th:nth-child(1),
  .match-record-table td:nth-child(1) {
    width: 12%;
    font-size: 10px;
    letter-spacing: -0.5px;
    white-space: nowrap; /* SP時も日付を改行させない */
  }
  .match-record-table th:nth-child(2),
  .match-record-table td:nth-child(2) {
    width: 33%;
    line-height: 1.3;
  }
  .match-record-table th:nth-child(3),
  .match-record-table td:nth-child(3) {
    width: 6%;
    font-size: 11px;
  }
  .match-record-table th:nth-child(4),
  .match-record-table td:nth-child(4) {
    width: 8%;
    font-size: 12px; 
    padding: 6px 0;
  }
  .match-record-table th:nth-child(5),
  .match-record-table td:nth-child(5) {
    width: 6%;
    font-size: 11px;
  }
  .match-record-table th:nth-child(6),
  .match-record-table td:nth-child(6) {
    width: 35%;
    line-height: 1.3;
  }
}

/* 体験募集・お問い合わせフォーム
-------------------------*/

.contact_btn_wrap {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.btn_google_form {
    display: inline-block;
    background-color: var(--main-color);
    color: var(--text-color);
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn_google_form:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

@media screen and (max-width: 768px) {
    .btn_google_form {
        width: 90%;
        max-width: 400px;
        padding: 16px 20px;
    }
}

/* アクセス
-------------------------*/

.venue_nav {
    padding: 40px 0;
}

.venue_nav .venue_btn {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    margin: 3px 0;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* =========================================
   チーム紹介 変更点
========================================= */

.pattern09 ul li h3 {
    color: var(--main-color);
    margin: 0 0 20px 0;
}

.pattern09 ul li p {
    text-align: center;
}


.hero-container {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    width: 100vw;
    height: 60vh;
    min-height: 450px; /* テキストが増えた分少し最小高さを拡張 */

    display: flex;
    align-items: center;
    justify-content: flex-start;
    
    position: relative;
}

.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    z-index: 1;
}

.text-overlay {
    color: white;
    text-align: left;
    padding: 2rem;
    margin-left: 13vw;
    z-index: 2;
    max-width: 800px; /* テキストが広がりすぎないように制限 */
}

.text-overlay h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    padding-bottom: 2rem; /* 下線の入るスペース */
}

/* ::after疑似要素を使って見出しの下の直線を表現 */
.text-overlay h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--main-color);
}

.text-overlay .philosophy-ja {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    line-height: 1.8;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .hero-container {
        height: 50vh;
        background-position: 70% center; /* スマホ時は少し右側を見せる */
    }
    .text-overlay {
        margin-left: 4vw;
        padding: 1.5rem;
        max-width: 90%;
    }
    .hero-container::before {
        /* スマホ表示ではグラデーションの暗い部分を広げる */
        background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 80%, transparent 100%);
    }
    .hidden-mobile {
        display: none; /* スマホでは改行をなくして自然な流れに */
    }
}

/* =========================================
   トップページ用 リスト型CSS (稲城SSS 紫ベース)
========================================= */

.schedule-list-wrapper {
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
}

/* --- タブデザイン --- */
.list-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    /* スマホで横スクロールさせるための設定 */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap; /* タブが折り返さないようにする */
}

.list-tabs::-webkit-scrollbar {
    display: none;
}

.list-tab-btn {
    flex: 1; 
    min-width: 80px; /* スマホでもタップしやすい最小幅 */
    text-align: center;
    padding: 15px 15px; /* 左右の余白を広げて押しやすく */
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--main-color, #7a549e);
    background-color: #f3eef7;
    border-bottom: 2px solid var(--main-color, #7a549e);
    transition: all 0.2s;
}

.list-tab-btn:first-child { border-top-left-radius: 6px; }
.list-tab-btn:last-child { border-top-right-radius: 6px; }

/* アクティブなタブ */
.list-tab-btn.active { 
    background-color: var(--main-color, #7a549e); 
    color: #fff;
    border-bottom-color: var(--main-color, #7a549e);
}

/* パネルの切り替え */
.list-tab-panel { display: none; animation: calFadeIn 0.3s; }
.list-tab-panel.active { display: block; }

/* --- リスト部分のデザイン --- */
/* 枠内スクロール用の設定（高さ固定） */
.front-events-scroll-area {
    max-height: 400px; /* 約4〜5件分表示される高さ。必要に応じて調整してください */
    overflow-y: auto;
    border: 1px solid var(--main-color, #7a549e);
    border-radius: 0 0 6px 6px;
    background: #fff;
    /* スクロールバーの装飾（任意） */
    scrollbar-width: thin;
    scrollbar-color: var(--main-color, #7a549e) #f3eef7;
}

.front-events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.front-event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

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

.front-event-left {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 上下の行の間隔を開ける */
}

.front-event-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* 長い場合は折り返す */
    gap: 8px;
}

/* 新しく追加した日付・時間の表示部分 */
.front-date-time {
    font-family: 'Arial', sans-serif;
}

.front-date-time .day.sat { color: #0066cc; }
.front-date-time .day.sun { color: #e60000; }

/* 予定名の表示部分 */
.front-event-type {
    font-size: 1rem;
    color: #444;
    padding-left: 2px; /* バッジと少し左端を合わせる */
}

/* ミニバッジ */
.front-grade-badge {
    font-size: 0.75rem;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: normal;
    line-height: 1;
}

.front-grade-badge[data-grade="6年"] { background-color: var(--color-6); }
.front-grade-badge[data-grade="5年"] { background-color: var(--color-5); }
.front-grade-badge[data-grade="4年"] { background-color: var(--color-4); }
.front-grade-badge[data-grade="3年"] { background-color: var(--color-3); }
.front-grade-badge[data-grade="2年"] { background-color: var(--color-2); color: #333; font-weight: bold; }
.front-grade-badge[data-grade="1年"] { background-color: var(--color-1); }
.front-grade-badge[data-grade="幼児"] { background-color: var(--color-k); }

.front-event-right {
    text-align: right;
}

.front-event-location {
    font-size: 0.95rem;
    color: #666;
}

.list-no-events {
    padding: 40px;
    text-align: center;
    color: #888;
    border: 1px solid var(--main-color, #7a549e);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

/* --- 一覧へボタン --- */
.list-more-btn-wrap {
    text-align: center;
    margin-top: 30px;
}

.list-more-btn {
    display: inline-block;
    background-color: var(--main-color, #7a549e);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 60px;
    border-radius: 30px;
    transition: 0.2s;
    font-size: 1.05rem;
}

.list-more-btn:hover {
    background-color: #5d3f7a; 
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(122, 84, 158, 0.3);
}

/* スマホ対応 */
@media (max-width: 600px) {
    .front-event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .front-event-right {
        /* 横幅を100%にして、中のテキストを右寄せにする */
        width: 100%;
        text-align: right;
    }
}

/* --- スクロール注意書き --- */
.scroll-hint-text {
    text-align: right;
    font-size: 0.8rem;
    color: #fff;
    padding: 5px 10px 5px 0;
    font-weight: bold;
    background: #7a549e;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* =========================================
   チームスケジュール表示用CSS (リッチデザイン版)
========================================= */

/* 操作ヘッダー周り */
.schedule-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.schedule-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.schedule-section-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    border-left: 5px solid var(--main-color, #7a549e);
    padding-left: 12px;
    color: #222;
}

/* セレクトボックス */
.cal-select {
    appearance: none;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 36px 8px 12px;
    font-size: 0.95rem;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: 0.2s;
}

.cal-select:hover { border-color: var(--main-color, #7a549e); }
.cal-select:focus { outline: none; border-color: var(--main-color, #7a549e); box-shadow: 0 0 0 3px rgba(122, 84, 158, 0.15); }

/* コピー・LINEボタンコンテナ */
.cal-copy-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.cal-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    color: var(--main-color, #7a549e);
    border: 2px solid var(--main-color, #7a549e);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.cal-copy-btn:hover {
    background: var(--main-color, #7a549e);
    color: #fff;
}

.cal-line-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #06C755;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.cal-line-btn:hover {
    background: #05b34c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
}

.cal-copy-msg {
    position: absolute;
    margin-top: -45px;
    right: 0;
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cal-copy-msg.show { opacity: 1; }

/* タブデザイン */
.cal-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 2px solid #eaeaea;
    scrollbar-width: none;
}

.cal-tabs::-webkit-scrollbar { display: none; }

.cal-tab-btn {
    padding: 12px 20px;
    white-space: nowrap;
    cursor: pointer;
    color: #888;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.cal-tab-btn:hover { color: var(--main-color, #7a549e); }

/* パネル */
.cal-tab-panel { display: none; animation: calFadeIn 0.3s ease-out; }
.cal-tab-panel.active { display: block; }

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

/* 予定リスト（カードデザイン） */
.cal-events-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cal-event-item {
    display: flex;
    padding: 16px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cal-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(122, 84, 158, 0.08);
    border-color: rgba(122, 84, 158, 0.3);
}

.cal-event-date {
    width: 90px;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 1.05rem;
    line-height: 1.4;
    color: #222;
    border-right: 1px dashed #ddd;
    padding-right: 12px;
    margin-right: 12px;
}

.cal-event-date .time {
    font-size: 0.8rem;
    font-weight: 600;
}

.cal-event-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }

.cal-event-info .title {
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #222;
}

.cal-event-info .location {
    font-size: 0.85rem;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cal-event-info .location svg { width: 14px; height: 14px; color: #999; }

/* 予定なしメッセージ */
.no-events-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #aaa;
    background: #fafafa;
    border-radius: 10px;
    border: 1px dashed #ddd;
    gap: 10px;
}

.no-events-msg svg { width: 40px; height: 40px; color: #ccc; }
.no-events-msg p { margin: 0; font-weight: bold; font-size: 0.95rem; }

/* 曜日だけの文字色変更 */
.cal-event-date .day.color-sat {
    color: #0066cc; /* 土曜日の青 */
}

.cal-event-date .day.color-sun {
    color: #e60000; /* 日曜日の赤 */
}

/* =========================================
   学年ごとのカラーパレット定義
========================================= */

:root {
    --color-all: #546e7a; /* すべてタブ用（落ち着いたブルーグレー） */
    --color-6: #7a549e;   /* 6年（ご指定の紫・ベースカラー） */
    --color-5: #1976d2;   /* 5年（クリアなブルー） */
    --color-4: #00897b;   /* 4年（深みのある青緑・ティール） */
    --color-3: #43a047;   /* 3年（鮮やかなグリーン） */
    --color-2: #fbc02d;   /* 2年（明るいイエロー・文字が見やすいよう調整） */
    --color-1: #e53935;   /* 1年（エネルギッシュなレッド） */
    --color-k: #f4511e;   /* 幼児（元気なオレンジ） */
}

/* 2年（イエロー）のバッジのみ、白文字だと読みにくいため文字色を暗くする調整 */
.grade-badge[data-grade="2年"] { 
    color: #333; 
    font-weight: bold; 
}

.cal-tab-btn[data-grade="2年"]:hover, 
.cal-tab-btn.active[data-grade="2年"] { 
    color: #333; 
}

/* =========================================
   学年バッジのデザインと色分け
========================================= */

.grade-badge {
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: normal;
    margin-right: 6px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
}

/* 各学年のバッジ背景色 */
.grade-badge[data-grade="6年"] { background-color: var(--color-6); }
.grade-badge[data-grade="5年"] { background-color: var(--color-5); }
.grade-badge[data-grade="4年"] { background-color: var(--color-4); }
.grade-badge[data-grade="3年"] { background-color: var(--color-3); }
.grade-badge[data-grade="2年"] { background-color: var(--color-2); }
.grade-badge[data-grade="1年"] { background-color: var(--color-1); }
.grade-badge[data-grade="幼児"] { background-color: var(--color-k); }

/* =========================================
   タブのデザイン（背景色ベタ塗り・ボタン風）
========================================= */

.cal-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px; /* タブ同士の隙間をあける */
    border-bottom: none; /* 下線を削除 */
}

.cal-tabs::-webkit-scrollbar { display: none; }

.cal-tab-btn {
    padding: 10px 18px;
    white-space: nowrap;
    cursor: pointer;
    color: #fff; /* 文字はすべて白 */
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 8px; /* 角丸ボタンにする */
    opacity: 0.4; /* 通常時は少し薄くして「選ばれていない感」を出す */
    transition: all 0.2s ease-out;
    border-bottom: none;
}

/* 各学年の背景色を割り当て */
.cal-tab-btn[data-grade="すべて"] { background-color: var(--color-all); }
.cal-tab-btn[data-grade="6年"] { background-color: var(--color-6); }
.cal-tab-btn[data-grade="5年"] { background-color: var(--color-5); }
.cal-tab-btn[data-grade="4年"] { background-color: var(--color-4); }
.cal-tab-btn[data-grade="3年"] { background-color: var(--color-3); }
.cal-tab-btn[data-grade="2年"] { background-color: var(--color-2); }
.cal-tab-btn[data-grade="1年"] { background-color: var(--color-1); }
.cal-tab-btn[data-grade="幼児"] { background-color: var(--color-k); }

/* ホバー時＆アクティブ時（選択中）のスタイル */
.cal-tab-btn:hover, 
.cal-tab-btn.active {
    color: #fff; /* 白文字をキープ */
    opacity: 1; /* 色を100%濃くする */
}

/* タイトルの配置調整（バッジとテキストがズレないように） */
.cal-event-info .title {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* 長い場合は折り返し */
}

/* コード追加
-------------------------*/

#header_top .wrap ul li a img, 
#menu_panel ul li a span.icon img {
    filter: brightness(100);
}

header h1, 
header h2 {
    max-width: 210px;
}

@media (max-width: 599px) {
    /* small devices */
    .pattern09 ul li p {
        text-align: left;
    }

    header h1, 
    header h2 {
        max-width: 130px;
    }
}

@media (min-width: 600px) and (max-width: 960px) {
    /* tablets */
    header h1, 
    header h2 {
        max-width: 160px;
    }
}

@media (min-width: 961px) and (max-width: 1209px) {
    header h1, 
    header h2 {
        max-width: 160px;
    }
}

@media (min-width: 1210px) {
    /* large desktops */
}