@charset "UTF-8";

/* ==========================================
   1. 全体基本設定（PC版共通ベース）
   ========================================== */
:root {
  --primary-color: #e63946;  /* メインレッド */
  --secondary-color: #457b9d;/* ネイビー・ブルー */
  --accent-color: #f4a261;   /* アクセントオレンジ */
  --bg-color: #f8f9fa;       /* 背景色 */
  --text-color: #2b2b2b;     /* テキスト色 */
  --card-bg: #ffffff;        /* カード背景 */
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", MeiRyo, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

p {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-top: 0;
  margin-bottom: 12px;
}

.text-red { color: var(--primary-color); }
.note-red { color: var(--primary-color); font-size: 12px; }

/* ==========================================
   2. ヘッダー & ハンバーガーメニュー
   ========================================== */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.site-title h1,
.card h2,
.card h3,
.btn-nav,
.action-btn,
.floating-btn,
.setup-day,
.legend-item,
.event-season {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
}

.site-title h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.site-title h1 a {
  color: var(--primary-color);
  text-decoration: none;
}

.sub-title {
  margin: 0;
  font-size: 11px;
  color: #666;
  font-weight: 700;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.btn-nav {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
  display: inline-block;
}

.btn-nav:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-member { background-color: #2a9d8f; }
.btn-link   { background-color: var(--accent-color); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================
   3. メインレイアウト & カードデザイン (PC)
   ========================================== */
.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 15px;
}

.card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card h2 {
  font-size: 24px;
  color: var(--primary-color);
  border-bottom: 3px solid #f1f1f1;
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
  text-align: left;
}

.card h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.card p { text-align: left; }

/* ==========================================
   4. 概要セクション (PC)
   ========================================== */
.hero-flex {
  display: flex;
  align-items: center;
  gap: 25px;
}

.hero-text { flex: 1; text-align: left; }

.hero-logo img {
  width: 140px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   5. 直近の練習予定セクション (PC)
   ========================================== */
.next-practice {
  border: 2px solid var(--accent-color);
  background-color: #fffdfa;
}

.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.practice-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.practice-list {
  margin: 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px 15px;
  align-items: center;
}

.practice-list dt {
  font-weight: 700;
  color: var(--secondary-color);
  background-color: #eef6fc;
  padding: 4px 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
}

.practice-list dd {
  margin: 0;
  font-size: 15px;
  text-align: left;
}

/* ==========================================
   6. 活動内容・募集要項 & 地図 (PC)
   ========================================== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.info-item {
  background-color: #f1f8fe;
  padding: 20px;
  border-radius: 12px;
  text-align: left;
}

.info-item h3 {
  margin-top: 0;
  font-size: 18px;
  color: var(--secondary-color);
}

.notes {
  margin: 10px 0 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 13px;
  color: #e63946;
}

.content-box {
  background-color: #fff9f2;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: left;
}

.map-section {
  margin-top: 20px;
  text-align: left;
}

.place-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 2px;
}

.place-address {
  font-size: 14px;
  color: #666;
  margin-top: 0;
  margin-bottom: 12px;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   7. 年間行事セクション (PC)
   ========================================== */
.section-desc {
  margin-top: -10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
  text-align: left;
}

.event-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-card {
  background-color: #ffffff;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}

.event-season {
  font-size: 18px;
  font-weight: 800;
  padding-bottom: 8px;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  text-align: left;
}

.summer .event-season { color: #0077b6; border-bottom-color: #90e0ef; }
.autumn .event-season { color: #d97706; border-bottom-color: #fde68a; }
.winter .event-season { color: #2b6cb0; border-bottom-color: #cbd5e1; }

.event-body h3 { font-size: 16px; margin: 15px 0 5px 0; color: #2d3748; }
.event-body h3:first-child { margin-top: 0; }
.event-body p { margin: 0 0 10px 0; font-size: 14px; line-height: 1.6; }

.event-photos {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 5px 5px 12px 5px;
  -webkit-overflow-scrolling: touch;
}

.event-photos img {
  flex: 0 0 auto;
  width: 160px;
  height: 110px;
  object-fit: cover;
  scroll-snap-align: start;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* PC版：open属性がなくても中身を強制表示し、矢印を隠して全表示固定にする */
@media screen and (min-width: 769px) {
  details.event-toggle-card .accordion-content {
    display: block !important;
  }
  details.event-toggle-card summary {
    pointer-events: none;
    list-style: none;
  }
  details.event-toggle-card summary::-webkit-details-marker {
    display: none;
  }
  details.event-toggle-card summary::after {
    display: none !important;
  }
}

/* ==========================================
   8. お問い合わせ & ボタン類
   ========================================== */
.lead-text { text-align: center; margin-bottom: 15px; }

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 450px;
  margin: 0 auto;
}

.action-btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-form { background-color: var(--primary-color); }
.btn-insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn-line  { background-color: #06c755; }

.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   9. 準備・保険・振込口座（メンバーページ用）
   ========================================== */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.setup-box {
  background-color: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  overflow: hidden;
}

.setup-day {
  background-color: var(--secondary-color);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  padding: 8px 15px;
  text-align: center;
}

.sunday .setup-day { background-color: var(--primary-color); }

.setup-list {
  list-style: none;
  padding: 15px;
  margin: 0;
  text-align: left;
}

.setup-list li {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.setup-list li span {
  display: inline-block;
  background-color: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 6px;
}

.blue-box {
  background-color: #f0f7ff;
  border-left: 5px solid #1a73e8;
}

.bank-table-wrapper {
  background-color: #ffffff;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  overflow: hidden;
}

.bank-table { width: 100%; border-collapse: collapse; }
.bank-table th, .bank-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.bank-table th { background-color: #f8f9fa; width: 120px; font-weight: 700; color: var(--secondary-color); }
.bank-table td { font-weight: 500; color: #2d3748; }

/* カレンダー基本スタイル */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 700;
}

.legend-blue   { color: #1a73e8; }
.legend-purple { color: #8e44ad; }
.legend-green  { color: #27ae60; }
.legend-red    { color: #dc2127; }
.legend-pink   { color: #e91e63; }
.legend-orange { color: #f2994a; }
.legend-gray   { color: #5f6368; }

.fullcalendar-wrapper {
  margin-top: 15px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 10px;
}

.fc .fc-toolbar-title { font-size: 18px !important; font-weight: 800; color: #333333; }
.fc .fc-button-primary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700;
  padding: 6px 14px !important;
}

.fc .fc-col-header-cell { background-color: #f1f8fe; padding: 8px 0; font-size: 13px; font-weight: 700; }
.fc-day-sun .fc-col-header-cell-cushion { color: #e63946; }
.fc-day-sat .fc-col-header-cell-cushion { color: #1a73e8; }
.fc-daygrid-event { border-radius: 6px !important; padding: 3px 6px !important; font-size: 11px !important; font-weight: 700; cursor: pointer; }

/* ==========================================
   10. アクセスカウンター
   ========================================== */
.counter-container { text-align: center; margin: 30px 0 10px 0; }
.counter-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #ffffff;
  border: 2px solid #eef6fc;
  border-radius: 30px;
  padding: 8px 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.counter-digits {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary-color);
  letter-spacing: 2px;
  background-color: #fff0f1;
  padding: 2px 12px;
  border-radius: 12px;
  border: 1px solid #fecdd3;
}
.counter-since { font-size: 12px; color: #888888; font-weight: 500; }

/* ==========================================
   11. お知らせスクロールボックス
   ========================================== */
.news-scroll-box {
  background-color: #ffffff;
  border: 2px solid #b8c4d1;
  border-radius: 6px;
  padding: 10px 15px;
  max-height: 160px;
  overflow-y: auto;
  text-align: left;
}
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { font-size: 14px; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; color: #333333; line-height: 1.5; }
.news-list li:last-child { border-bottom: none; }
.news-date { font-family: 'Courier New', Courier, monospace; font-weight: bold; color: #1a202c; }
.news-list a { color: #1a0dab; text-decoration: none; font-weight: 600; }

/* ==========================================
   12. 折りたたみ（アコーディオン）機能（共通）
   ========================================== */
details.card { cursor: pointer; transition: all 0.2s ease; }
details.card summary { list-style: none; position: relative; padding-right: 30px; user-select: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after {
  content: '▼';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}
details[open].card summary::after { transform: translateY(-50%) rotate(180deg); }
details.card summary h2 { display: inline-block; margin-bottom: 0 !important; border-bottom: none !important; padding-bottom: 0 !important; }
details[open].card .accordion-content { margin-top: 15px; padding-top: 15px; border-top: 1px dashed #e2e8f0; }

/* ==========================================
   13. レスポンシブ対応 (スマホ向け: 768px以下を徹底コンパクト化)
   ========================================== */
@media screen and (max-width: 768px) {
  /* ハンバーガーメニュー */
  .hamburger { display: block; }
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  header nav {
    position: absolute;
    top: 100%;
    right: 15px;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 15px;
    display: none;
    z-index: 100;
  }
  header nav.active { display: block; }
  header nav ul { flex-direction: column; gap: 10px; }
  .btn-nav { display: block; text-align: center; }

  /* コンテナ・カードの余白圧縮 */
  .container { padding: 0 10px !important; margin: 12px auto !important; }
  .card { padding: 14px 12px !important; margin-bottom: 12px !important; border-radius: 12px !important; }
  .card h2 { font-size: 17px !important; margin-bottom: 10px !important; padding-bottom: 6px !important; }
  p { font-size: 13.5px !important; margin-bottom: 8px !important; line-height: 1.6 !important; }

  /* 1. 概要（ロゴ横並び） */
  .hero-flex { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; }
  .hero-text { flex: 1 !important; }
  .hero-logo { flex-shrink: 0 !important; }
  .hero-logo img { width: 80px !important; height: 80px !important; object-fit: cover !important; border-radius: 12px !important; }

  /* 2. 直近の練習予定：スマホ時は住所（〒...）を非表示にしてスッキリ化 */
  .practice-address { display: none !important; }

  .practice-box { padding: 10px 12px !important; }
  .practice-list { grid-template-columns: 70px 1fr !important; gap: 6px 8px !important; }
  .practice-list dt { text-align: center !important; font-size: 11px !important; padding: 2px 4px !important; margin-top: 0 !important; border-radius: 4px !important; }
  .practice-list dd { font-size: 13px !important; padding-left: 0 !important; margin-bottom: 0 !important; line-height: 1.4 !important; }

  /* 3. 活動内容・募集要項：余白と注意書きのコンパクト化 */
  .info-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .info-item { padding: 10px 8px !important; }
  .info-item h3 { font-size: 13.5px !important; margin-bottom: 4px !important; }
  .notes { margin-top: 4px !important; font-size: 10.5px !important; line-height: 1.35 !important; }

  /* 4. 活動場所・Googleマップ：高さ短縮 (180px) */
  .place-name { font-size: 14px !important; margin-bottom: 2px !important; }
  .place-address { font-size: 11px !important; margin-bottom: 6px !important; }
  .map-container iframe { height: 180px !important; }

  /* 5. メンバーページ準備片付け・テーブル */
  .setup-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .setup-box { padding: 10px 8px !important; }
  .setup-day { font-size: 13px !important; padding: 4px 6px !important; }
  .setup-list { padding: 8px 6px !important; }
  .setup-list li { font-size: 11px !important; margin-bottom: 4px !important; }

  .content-box { padding: 10px 12px !important; margin-bottom: 12px !important; }
  .event-photos img { width: 130px !important; height: 90px !important; }

  .floating-btn { bottom: 12px; right: 12px; padding: 8px 14px; font-size: 12px; }
  .bank-table th, .bank-table td { padding: 6px 8px !important; font-size: 11.5px !important; }

  /* FullCalendar スマホ用調整 */
  .fc .fc-toolbar-title { font-size: 14px !important; }
  .fc .fc-button { padding: 3px 6px !important; font-size: 11px !important; }
  .fc .fc-daygrid-day-frame { min-height: 42px !important; max-height: 52px !important; }
  .fc .fc-daygrid-day-number { font-size: 10px !important; }
  .fc .fc-daygrid-event { font-size: 9px !important; padding: 1px 2px !important; }

  /* ギャラリーのスクロールバー非表示（スマホ版のみ） */
  .event-photos {
    -ms-overflow-style: none; /* IE, Edge用 */
    scrollbar-width: none;    /* Firefox用 */
  }
  .event-photos::-webkit-scrollbar {
    display: none;             /* Chrome, Safari用 */
  }
}