/* gcal.css */
.fc .fc-event { cursor: pointer; }
.fc .fc-toolbar { flex-wrap: wrap; gap: 6px; }
.gc-loading { opacity: .6; transition: opacity .2s; }

/* 顔アイコン（レッスン） */
.fc .gc-lesson-ev { background: transparent !important; border: 0 !important; }
.gc-lesson { display: inline-flex; align-items: center; gap: 3px; padding: 1px 2px; }
.gc-face {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: #fff; border: 3px solid #999; box-sizing: border-box; vertical-align: middle;
}
.gc-time { font-size: 11px; color: #333; }

/* ポップアップ */
.tippy-box[data-theme~='gc'] {
  background: #fff; color: #222; border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2); font-size: 13px; line-height: 1.6;
}
.tippy-box[data-theme~='gc'] > .tippy-arrow { color: #fff; }
.gc-pop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.gc-pop-head .gc-face { width: 50px; height: 50px; flex: none; border-width: 3px; border-color: var(--gc-color, #999); }
.gc-pop-meta { color: #555; font-size: 12px; }
.gc-pop-desc { margin-top: 6px; padding-top: 6px; border-top: 1px solid #eee; word-break: break-word; }
.gc-pop-desc a { color: #1565c0; text-decoration: underline; }

/* 凡例・エラー */
.gc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; font-size: 13px; line-height: 1.2; }
.gc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.gc-error {
  background: #fdecea; color: #b71c1c; padding: 8px 12px;
  margin-bottom: 8px; border-radius: 4px; font-size: 13px;
}

/* 凡例の案内文（コーチページ）: 1行使って表示 */
.gc-legend .gc-legend-note { flex: 0 0 100%; }

/* サイト既存CSSの影響を打ち消す（.gc-cal はJSが自動で付与） */
.gc-cal .fc-daygrid-event-harness { visibility: visible !important; }
.gc-cal .fc-daygrid-event,
.gc-cal .fc-h-event {
  height: auto !important;
  min-height: 18px !important;
  margin: 1px 2px !important;
  padding: 1px 4px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  border-radius: 3px !important;
  overflow: hidden;
  white-space: nowrap;
}
.gc-cal .fc-event-main,
.gc-cal .fc-event-main-frame,
.gc-cal .fc-event-title-container,
.gc-cal .fc-event-title,
.gc-cal .fc-event-time {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  font-size: inherit !important;
  color: inherit !important;
  text-indent: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.gc-cal .fc-event-title { font-weight: 600; }
.gc-cal .gc-lesson-ev { min-height: 28px !important; padding: 0 !important; }
.gc-cal .gc-lesson { display: inline-flex !important; }
.gc-cal .gc-face { display: inline-block !important; visibility: visible !important; }

/* 通常イベントの表示（時刻＋タイトル） */
.gc-cal .gc-default { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-cal .gc-dtime { margin-right: 4px; font-size: 11px; opacity: .9; }
.gc-cal .gc-dtitle { font-weight: 600; }

/* スマホ: 予定名を短縮表示(gc-short)にしたとき、左右の余白を詰めて中央寄せ（1日の幅が狭く、2文字が省略(…)されないように） */
@media (max-width: 600px) {
  .gc-cal .fc-daygrid-event:has(.gc-short) { padding-left: 0 !important; padding-right: 0 !important; }
  .gc-cal .fc-daygrid-event:has(.gc-short) .fc-event-main { display: block !important; width: 100%; text-align: center; }
  .gc-cal .gc-default.gc-short { text-overflow: clip; font-size: 10px; }   /* 短縮表示の文字サイズ（1行・2行とも共通） */
  /* 2行表示（前半/ﾉｰｽﾀｯﾌ、無料/体験 など）: 1行目は .gc-two の font-size、2行目は .gc-dsub の font-size（どちらも10px）
     1行表示（見学会 など）の文字サイズは、上の .gc-short の font-size */
  .gc-cal .gc-default.gc-two { font-size: 10px; line-height: 1.1; }
  .gc-cal .gc-dsub { display: block; font-size: 10px; font-weight: 600; line-height: 1.1; letter-spacing: 0; }
}

/* 予定の中身は背景透明にして、外側の色を見せる */
.gc-cal .fc-event-main, .gc-cal .gc-default { background: transparent !important; }

/* 顔アイコンが読み込めない場合の代替（頭文字バッジ） */
.gc-cal .gc-initial {
  display: inline-flex !important; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #333; background: #fff;
}

/* ポップアップの自動注記 */
.gc-pop-note { margin-top: 6px; padding: 6px 8px; background: #fff7e0; border-radius: 4px; font-size: 12px; line-height: 1.6; }

/* 自動注記: 文中の改行(\n)を反映 */
.gc-pop-note { white-space: pre-line; }

/* 顔アイコンの横並び（1日1行・入りきらなければ折り返し） */
.gc-cal .gc-icons { display: flex; flex-wrap: wrap; gap: 3px; padding: 2px; cursor: pointer; }
.gc-cal .gc-lesson-ev { min-height: 0 !important; }
.gc-cal .gc-lesson-ev .fc-event-main { display: block !important; width: 100%; overflow: visible; }
@media (max-width: 600px) {
  /* スマホ: 顔が分かる大きさ・押しやすさを優先して、1列の縦並び */
  .gc-cal .gc-icons { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 3px 0; }
}

/* 週表示ヘッダー: PCは「8(日)」、スマホは日付と曜日の2段 */
.gc-cal .gc-hd-w::before { content: '('; }
.gc-cal .gc-hd-w::after  { content: ')'; }

@media (max-width: 600px) {
  /* ヘッダー: 1段目=年月(中央)、2段目=左に前後・今日 / 右に月・週 */
  .gc-cal .fc-header-toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 8px; margin-bottom: 10px;
  }
  .gc-cal .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) { order: -1; flex: 0 0 100%; text-align: center; }
  .gc-cal .fc-toolbar-title { font-size: 1.3rem; margin: 0; line-height: 1.3; }
  .gc-cal .fc-button { min-height: 38px; }

  /* 週表示の見出し: 日付と曜日を2段にして、枠内に収める */
  .gc-cal .fc-col-header-cell-cushion { padding: 4px 0; }
  .gc-cal .gc-hd { display: block; line-height: 1.3; }
  .gc-cal .gc-hd-d, .gc-cal .gc-hd-w { display: block; }
  .gc-cal .gc-hd-d { font-size: 1.1em; }
  .gc-cal .gc-hd-w { font-size: .85em; }
  .gc-cal .gc-hd-w::before, .gc-cal .gc-hd-w::after { content: none; }
}

/* 顔アイコンの予定: タップ後にFullCalendarが重ねる灰色の選択オーバーレイを無効化（アイコンへのタップを妨げるため） */
.gc-cal .gc-lesson-ev:focus::before, .gc-cal .gc-lesson-ev:focus::after,
.gc-cal .gc-lesson-ev.fc-event-selected::before, .gc-cal .gc-lesson-ev.fc-event-selected::after { display: none !important; }
.gc-cal .gc-lesson-ev:focus, .gc-cal .gc-lesson-ev.fc-event-selected { box-shadow: none !important; outline: none; }

/* ---------- コーチページ ---------- */
/* リスト表示: 時間の列は隠し、「レッスン（店舗）」の次に時間を出す */
.gc-cal.gc-coach .fc-list-event-time { display: none; }
.gc-cal.gc-coach .gc-lrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.gc-cal.gc-coach .gc-ltime { color: #555; font-size: .92em; }

/* 月・週表示: スマホは1列が狭いので、半角カナ(ﾏﾝﾂｰﾏﾝ)＋13px にして店舗の頭文字は省略（店舗は色で区別）。文字サイズは 12〜13px で調整 */
@media (max-width: 600px) {
  .gc-cal.gc-coach .fc-daygrid-event { font-size: 13px !important; padding: 1px 0 !important; text-align: center; }
  .gc-cal.gc-coach .gc-cshop { display: none; }
}

/* スクール = 淡い色の塗り。リストの丸印はリング状にする */
/* 枠線は月・週表示の予定にだけ付ける（リスト表示の行には付けない） */
.gc-cal .fc-daygrid-event.gc-outline { border-width: 2px !important; border-style: solid !important; }
.gc-cal.gc-coach .gc-outline .fc-list-event-dot { width: 4px; height: 4px; border-width: 3px; background: var(--gc-tint, #fff); }

/* リスト表示: 日付見出しを左寄せ */
.gc-cal.gc-coach .fc-list-day-cushion {
  display: flex !important; justify-content: flex-start !important;
  text-align: left !important; padding: 8px 14px;
}

/* スマホ: 予定をタップしやすいよう高さを約2倍・太字に */
@media (max-width: 600px) {
  .gc-cal.gc-coach .fc-daygrid-event {
    display: flex !important; align-items: center; justify-content: center;
    min-height: 36px !important; margin: 2px 1px !important; font-weight: 700;
  }
  .gc-cal.gc-coach .gc-default { white-space: nowrap; }
}

/* スマホ: 「スクール」など4文字が省略(…)されないよう、余白と字間を詰める */
@media (max-width: 600px) {
  .gc-cal.gc-coach .fc-daygrid-event { margin: 2px 0 !important; letter-spacing: 0 !important; }
  .gc-cal.gc-coach .fc-event-main,
  .gc-cal.gc-coach .gc-default { overflow: visible !important; text-overflow: clip !important; }
  .gc-cal.gc-coach .gc-ctype { letter-spacing: 0; overflow: visible; text-overflow: clip; }
}

/* PC・タブレット: レッスン(塗りつぶし)とスクール(淡い塗り)の高さを揃え、少し高くする */
@media (min-width: 601px) {
  .gc-cal.gc-coach .fc-daygrid-event {
    box-sizing: border-box;
    border-width: 2px !important;      /* 塗りつぶしもスクールと同じ太さの枠線にして、高さを揃える */
    border-style: solid !important;
    min-height: 28px !important;       /* 枠線を含めた最低の高さ */
    display: flex !important;
    align-items: center;               /* 文字を上下中央に */
    font-weight: 700;                  /* レッスン・スクールとも太字 */
  }
}

/* 種別名: 広い画面は短縮名(マンツーマン)、狭い画面(スマホ・小さいタブレット)は半角カナ(ﾏﾝﾂｰﾏﾝ) */
.gc-cal.gc-coach .gc-t-sp { display: none; }
@media (max-width: 767px) {
  .gc-cal.gc-coach .gc-t-pc { display: none; }
  .gc-cal.gc-coach .gc-t-sp { display: inline; }
}
/* 予定の中身: 種別名が長いときだけ省略(…)し、店舗の頭文字「(草)」は常に見えるようにする */
.gc-cal.gc-coach .gc-default { display: flex; align-items: center; min-width: 0; }
.gc-cal.gc-coach .gc-ctype { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-cal.gc-coach .gc-cshop { flex: none; font-size: .9em; }
/* 読み上げ用の正式名（画面には出さない） */
.gc-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 色の適用（色そのものはこのファイル末尾の「色の設定」で設定） ---------- */
/* 予定（月・週表示） */
.gc-cal .fc-daygrid-event.gc-ev {
  background-color: var(--gc-color, #607d8b) !important;
  border-color: var(--gc-border, var(--gc-color, #607d8b)) !important;
  color: var(--gc-text, #fff) !important;
}
/* 店舗ページ: 枠線は1px（コーチページは別の指定で2pxのまま） */
.gc-cal:not(.gc-coach) .fc-daygrid-event.gc-ev { border-width: 1px !important; border-style: solid !important; }
/* スクール: 淡い色で塗り、枠線は店舗色、文字は濃い色
   --gc-tint（淡い色）・--gc-dark（濃い文字色）は末尾の「色の設定」で個別に指定できる（省略すると自動で作る） */
.gc-cal .fc-daygrid-event.gc-ev.gc-outline {
  background-color: var(--gc-tint, #eceff1) !important;
  color: var(--gc-dark, #222) !important;
}
@supports (background-color: color-mix(in srgb, red 15%, white)) {
  .gc-cal .fc-daygrid-event.gc-ev.gc-outline {
    background-color: var(--gc-tint, color-mix(in srgb, var(--gc-color, #607d8b) 15%, #fff)) !important;
    color: var(--gc-dark, color-mix(in srgb, var(--gc-color, #607d8b) 70%, #000)) !important;
  }
}
/* リスト表示の丸印 */
.gc-cal .fc-list-event.gc-ev .fc-list-event-dot { border-color: var(--gc-color, #607d8b) !important; }
/* 顔アイコンの枠線（種別の色） */
.gc-cal .gc-icons .gc-face { border-color: var(--gc-color, #999); }
/* 凡例の四角 */
.gc-legend .gc-sw { background: var(--gc-color, #666); box-shadow: inset 0 0 0 1px var(--gc-border, transparent); }
.gc-legend .gc-sw-fill { background: #666; border: 2px solid #666; box-sizing: border-box; }
.gc-legend .gc-sw-outline { background: #dcdcdc; border: 2px solid #666; box-sizing: border-box; }

/* ==========================================================
 * 色の設定（ここだけ編集すれば色を変えられます）
 *
 *  --gc-color : 予定の背景色（スクールの場合は枠線の色）
 *  --gc-text  : 予定の文字色（背景が明るい色のときは暗い色にする）
 *  --gc-tint  : （任意）スクールの淡い塗りの色。省略すると --gc-color を薄めて自動で作ります
 *  --gc-dark  : （任意）スクールの文字色。省略すると --gc-color を濃くして自動で作ります
 *
 *  クラス名は gcal-config.js の TYPE_CLASSES / SHOP_CLASSES の値に対応します
 *    .gc-type-<値>  … 店舗ページの種別の色（顔アイコンの枠・凡例にも使われます）
 *    .gc-shop-<値>  … コーチページの店舗の色
 * ========================================================== */

/* ---------- 種別の色（店舗ページ） ---------- */
.gc-type-campaign { --gc-color: #23C35F; --gc-text: #fff; --gc-border: #188140; }
.gc-type-event    { --gc-color: #FFBE00; --gc-text: #222; --gc-border: #FF5F00; }
.gc-type-nostaff  { --gc-color: #F50004; --gc-text: #fff; }
.gc-type-lesson   { --gc-color: #00a0e9; --gc-text: #fff; }
.gc-type-school   { --gc-color: #A100FF; --gc-text: #fff; }
.gc-type-other    { --gc-color: #607d8b; --gc-text: #fff; }   /* 設定に無い種別 */

/* ---------- 店舗の色（コーチページ） ----------
   マンツーマンレッスン = --gc-color で塗りつぶし / スクール = --gc-tint で淡く塗り、枠線は --gc-color、文字は --gc-dark */
.gc-shop-kusatsu     { --gc-color: #43a047; --gc-text: #fff; --gc-tint: #e8f5e9; --gc-dark: #2e7d32; }
.gc-shop-otsukyo     { --gc-color: #1e88e5; --gc-text: #fff; --gc-tint: #e3f2fd; --gc-dark: #1565c0; }
.gc-shop-hikone     { --gc-color: #fb8c00; --gc-text: #fff; --gc-tint: #fff3e0; --gc-dark: #c25e00; }
.gc-shop-other { --gc-color: #607d8b; --gc-text: #fff; }       /* 店舗名が判別できないとき（淡い色・文字色は自動） */


/* 凡例の〇 */

.gc-info ul {
	list-style: none;
	padding-left: 0;
}
.gc-info li {
	font-size: 14px;
	position: relative;
	padding-left: 1.5em;
	line-height: 1.4;
	padding-bottom: 1em;
}
.gc-info li::before {
	content: "✤";
	position: absolute;
	left: 0;
}
.gc-info .gc-info_ls strong {
	color: #A100FF;
	font-size: 14px;
}
.gc-info .gc-info_ml strong {
	color: #00a0e9;
	font-size: 15px;
}
.gc-info .circle {
	background: #FFF;
	border-width: 3px;
	border-style: solid;
	border-radius: 50%;
	display: inline-block;
	width: 15px;
	height: 15px;
	aspect-ratio: 1 / 1;
	vertical-align: baseline;
}
.gc-info .gc-info_ls .circle {
	border-color: #A100FF;
}
.gc-info .gc-info_ml .circle {
	border-color: #00a0e9;
}