@charset "utf-8";
/*
  school-calendar.css
  --------------------------------------------------------------
  /calendar/（plan_2.php）用の差分CSS。基盤（.sch-detail の変数・パンくず・
  tit2/tit3・cta 等）は school-top.css を併読して再利用し、本ファイルは旧
  plan_2.php 内 $sty を .sch-detail 配下へ移植（青系→暖色）したもの。
  ※ school-top.css の後に読み込むこと（.title_search 等の上書きのため）。
*/

/* ===== 車種切り替え見出し ===== */
.sch-detail .car_day {
  position: relative;
  text-align: center;
  padding: 1em;
  font-size: 1.15em;
  margin: 1em 0.5em 1.5em;
  font-weight: 600;
  color: var(--sch-text);
}
.sch-detail .car_day::before,
.sch-detail .car_day::after {
  position: absolute;
  content: "";
  width: 100px;
  height: 2px;
  background: #ff6b35;
}
.sch-detail .car_day::before { left: 0; top: 0; }
.sch-detail .car_day::after { right: 0; bottom: 0; }

/* 車種ナビ / 月セレクタ */
.sch-detail .monthly {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 98%;
  margin: 0 auto;
  gap: 5px;
}
.sch-detail .monthly > * {
  flex-basis: 23%;
  margin: 0.1em 0.1em 1em;
  padding: 8px 0;
  display: block;
  background: rgba(var(--sch-accent-rgb), 0.9);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  font-size: 0.9em;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s;
}
.sch-detail .monthly > a:hover { opacity: .85; }
@media (max-width: 560px) { .sch-detail .monthly > * { flex-basis: 30%; } }

.sch-detail .monthly_box { text-align: center; }

/* ===== 吹き出し ===== */
.sch-detail .balloon1 {
  position: relative;
  display: inline-block;
  margin: 2em 0.5em 0.5em;
  padding: 0.7em 0.9em;
  min-width: 120px;
  max-width: 100%;
  color: #6b5b5e;
  background: #ffe9ec;
  border-radius: 8px;
}
.sch-detail .balloon1:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -15px;
  border: 15px solid transparent;
  border-top: 15px solid #ffe9ec;
}
.sch-detail .balloon1 p { margin: 0; padding: 0; }

/* ===== カレンダー ===== */
.sch-detail .isdb_calendar { margin: 0.5em; display: none; }
.sch-detail .isdb_calendar.enable { display: block; }
.sch-detail .isdb_title {
  text-align: center;
  padding: 0.5em;
  margin: 0 0.45em;
  font-size: 1.1em;
  border: 1px solid rgba(var(--sch-accent-rgb), 0.55);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.sch-detail .isdb_right { margin: 0 0.5em 0.5em; overflow-x: auto; }
.sch-detail .isdb_right table { width: 100%; text-align: center; border-collapse: collapse; }
.sch-detail .isdb_right tr.eee td {
  vertical-align: middle;
  border: 1px solid rgba(var(--sch-accent-rgb), 0.4);
}
.sch-detail .isdb_right tr.eee td:nth-child(8) { display: none; }
.sch-detail .isdb_right tr:first-of-type th {
  width: calc(100% / 7);
  border: 1px solid rgba(var(--sch-accent-rgb), 0.4);
  background: rgba(var(--sch-pink-rgb), 0.26);
  color: var(--sch-text);
  padding: 0.5em;
}
.sch-detail .isdb_right .sun { color: #f95151; }
.sch-detail .isdb_right .st,
.sch-detail .isdb_right .ed { width: 100%; display: block; color: var(--sch-text); }
.sch-detail .isdb_right .st {
  padding: 0.2em 0;
  border-bottom: 1.5px dashed rgba(var(--sch-accent-rgb), 0.25);
  background: none;
  margin: auto;
}
.sch-detail .isdb_right .ed { padding: 0.8em 0; }
.sch-detail .isdb_right td.none { background: #fafafa; }

/* 価格ヒートスケール（最安→高） */
.sch-detail .p1 { background: #ffded2 !important; }
.sch-detail .p2 { background: #ffe7a8 !important; }
.sch-detail .p3 { background: #fff39a !important; }
.sch-detail .p4 { background: #eef292 !important; }
.sch-detail .p5 { background: #d7f4ba !important; }
.sch-detail .p6 { background: #c5f3d6 !important; }
.sch-detail .p7 { background: #caecf7 !important; }

/* 価格スケールの凡例 */
.sch-detail .sch_fee { text-align: center; margin: 0.5em; }
.sch-detail .color_set span {
  display: inline-block;
  width: 16px;
  height: 12px;
  margin: 0 1px;
  vertical-align: middle;
  border-radius: 2px;
}

/* ===== 料金表 ===== */
.sch-detail .title_search {
  position: relative;
  padding: 2.5em 10px 10px;
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1.4;
  color: var(--sch-text);
  text-align: center;
  margin-bottom: 1em;
  background: none;
  border-radius: 0;
}
.sch-detail .title_search::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 43px;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background-color: #ff6b35;
}
.sch-detail .title_search + p { margin: 0.5em; }

.sch-detail .sc { overflow-x: auto; }
.sch-detail .price { width: 97%; margin: 0.5em auto; border-collapse: collapse; }
.sch-detail .price td,
.sch-detail .price th,
.sch-detail .guarantee td,
.sch-detail .guarantee th {
  vertical-align: middle;
  text-align: center;
  font-weight: 600;
  padding: 0.5em;
  color: #333333d1;
  border: 1px solid rgba(var(--sch-accent-rgb), 0.4);
}
.sch-detail .price th,
.sch-detail .guarantee th { background: rgba(var(--sch-pink-rgb), 0.22); }
.sch-detail .price tr td div:first-child { color: #333333d1 !important; }
.sch-detail .price tr td div:last-child { color: #f95151; }
.sch-detail table.price + div { margin: 0.5em; font-size: 0.9em; color: var(--sch-text); }
.sch-detail table.price + div + br { display: none; }
.sch-detail .guarantee tr,
.sch-detail .guarantee th,
.sch-detail .guarantee td { table-layout: auto; }

/* ===== 見出し・注意事項 ===== */
.sch-detail .major,
.sch-detail .school_price {
  position: relative;
  font-size: 1.3em;
  font-weight: 600;
  color: var(--sch-text);
  margin: 1.5em 0 0.5em 1.6em;
}
.sch-detail .major::before,
.sch-detail .school_price::before {
  content: "";
  position: absolute;
  bottom: 25%;
  left: -0.9em;
  transform: translateY(-50%);
  display: block;
  width: 7px;
  height: 7px;
  background-color: #ff6b35;
  border-radius: 7px;
}
.sch-detail .major.max { color: #f95151; }
.sch-detail .red { color: #f95151; }

.sch-detail .warning { line-height: 1.7; color: var(--sch-text); }
.sch-detail ul.sche { margin: 0.5em; }
.sch-detail .warning li:not(.major),
.sch-detail ul.sche li {
  text-indent: -1em;
  margin: 0 0.5em 0 1.5em;
  color: var(--sch-text);
}
.sch-detail .warning li:not(.major)::before,
.sch-detail ul.sche li::before { content: "※"; color: var(--sch-text); }
.sch-detail .txt_box > p { font-size: 0.85em; }

/* 「料金のことを知る」ボックス */
.sch-detail .useful_item_tit { font-weight: bold; color: #333333d1; margin-top: 1em; }
.sch-detail .useful_item_txt {
  font-size: 0.9em;
  line-height: 2.2;
  padding: 3px 8px;
  background: #fff8de;
  border-radius: 6px;
  color: #333333d1;
}

/* ===== 車種セクションの表示順（旧 $sty の #main フレックス順）===== */
.sch-detail #main { display: flex; flex-direction: column; }
.sch-detail #main > #c2,  .sch-detail .monthly > .c2  { order: 1; }
.sch-detail #main > #c1,  .sch-detail .monthly > .c1  { order: 2; }
.sch-detail #main > #c4,  .sch-detail .monthly > .c4  { order: 3; }
.sch-detail #main > #c5,  .sch-detail .monthly > .c5  { order: 4; }
.sch-detail #main > #c23, .sch-detail .monthly > .c23 { order: 5; }
.sch-detail #main > #c6,  .sch-detail .monthly > .c6  { order: 6; }
.sch-detail #main > #c7,  .sch-detail .monthly > .c7  { order: 7; }
.sch-detail #main > #c8,  .sch-detail .monthly > .c8  { order: 8; }
.sch-detail #main > #c9,  .sch-detail .monthly > .c9  { order: 9; }
.sch-detail #main > #c10, .sch-detail .monthly > .c10 { order: 10; }
.sch-detail #main > #c11, .sch-detail .monthly > .c11 { order: 11; }
.sch-detail #main > #c12, .sch-detail .monthly > .c12 { order: 12; }
.sch-detail #main > .tit_com { order: 100; }
.sch-detail #main > .link_box { order: 101; }

/* p_box の表示切替（料金切替JS） */
.sch-detail div.p_box { display: none; }
.sch-detail div.p_box.enable { display: block; }
