.secCalendar{display: none!important;}
.secCalendar2{
  margin: 150px 0;
  padding: 100px 0;
  background: #f8f8f8;
}
.secCalendar2 .secHead{
  justify-content: center;
  border-bottom: none;
  padding: 0;
}
.secCalendar2 .secHead .boxTitHead{
    flex-direction: column;
    gap: 30px;
}
.secCalendar2 .secHead .titHeadJpn {
  margin-left: 0;
}
@media only screen and (max-width:767px){
  .secCalendar2{
    margin: 50px 0;
    padding: 40px 0;
  }
  .secCalendar2 .secHead .boxTitHead{
      flex-direction: column;
      gap: 10px;
  }
}

/* --- ガントチャートカレンダー --- */
.secGantt {
  position: relative;
  width: 100%;
  min-width: 1200px;
}

/* タイトル */
.txtTitle {
  text-align: center;
  font-size: 24px;
}

/* レジェンド */
.boxLegend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 45px 0 40px 0;
}

.boxLegendItem {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  letter-spacing: 0.03em;
  background: inherit!important;
}
.boxLegendItem:before{
  position: absolute;
  content: '';
  margin: auto;
  display: block;
  top: 0;
  left: 0;
  display: inline-block;
  width: 12px;
  height: 12px;
}
.secCalendar2 .clEventType01,
.boxLegendItem.clEventType01:before {
  background: #0b8043; /* お知らせ */
}
.secCalendar2 .clEventType02,
.boxLegendItem.clEventType02:before {
  background: #33b679; /* キャンペーン */
}
.secCalendar2 .clEventType03,
.boxLegendItem.clEventType03:before {
  background: #039be5; /* オープンハウス */
}
.secCalendar2 .clEventType04,
.boxLegendItem.clEventType04:before {
  background: #e67c73; /* 完成見学会 */
}
.secCalendar2 .clEventType05,
.boxLegendItem.clEventType05:before {
  background: #f7c436; /* 販売開始 */
}
.secCalendar2 .clEventType06,
.boxLegendItem.clEventType06:before {
  background: #7986cb; /* 完成 */
}
.secCalendar2 .clEventType07,
.boxLegendItem.clEventType07:before {
  background: #8e24aa; /* お得情報 */
}
.secCalendar2 .clEventType08,
.boxLegendItem.clEventType08:before {
  background: #ea733b; /* セミナー */
}
.secCalendar2 .clEventType99,
.boxLegendItem.clEventType99:before {
  background: #616161; /* その他 */
}

.secGantt .boxBgWrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.secGantt .boxContentWrapper {
  position: relative;
  z-index: 2;
}

/* 共通テーブルスタイル */
.secGantt .boxBgTable,
.secGantt .boxMainTable {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  min-width: 1200px;
}

.secGantt .boxBgTable {
  background: #fff;
}

.secGantt .boxMainTable {
  background: transparent;
  border: 1px solid #cdcdcd;
}

.secGantt .boxContentWrapper .boxBgTable {
  border-bottom: 1px solid #cdcdcd;
}

/* 共通セルスタイル */
.secGantt .boxBgTable th,
.secGantt .boxBgTable td,
.secGantt .boxMainTable th,
.secGantt .boxMainTable td {
  border: none;
  padding: 11px 3px 17px;
  text-align: center;
  min-width: 40px;
  vertical-align: middle;
  font-size: 13px;
  font-family:'Oswald', sans-serif;
  font-weight: 400;
}

/* 共通ヘッダースタイル */
.secGantt .boxBgTable th,
.secGantt .boxMainTable th {
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 40px;
  max-width: 40px;
  width: 40px;
  color: #333;
  border-bottom: none;
}

.secGantt .boxBgTable th {
  background: #f7f7f7;
  font-size: 0!important;
}

.secGantt thead tr:not(.boxMonthHeader) th,
.secGantt .boxBgTable th,
.secGantt .boxBgTable td{
  border-right: 1px solid #cdcdcd!important;
}

.secGantt .boxMainTable th {
  background: transparent;
}

/* 共通セルスタイル */
.secGantt .boxBgTable td,
.secGantt .boxMainTable td {
  position: relative;
  border-bottom: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.secGantt .boxBgTable td {
  background: #fff;
  padding: 0;
}

.secGantt .boxMainTable td {
  background: transparent;
  padding: 5px 0;
}
.secGantt .boxMainTable tr:first-child td {
  padding-top: 30px;
}

/* 背景色の状態クラス */
.secGantt .boxBgTable td.isSat,
.secGantt .boxBgTable td.isSun,
.secGantt .boxBgTable td.isHoliday {
  background: #f7f7f7 !important;
}
.secGantt .boxBgTable td.isCustomHoliday {
  background: #ffefef !important;
}

.secGantt .boxBgTable td.isToday {
  background: #fffddc !important;
}

/* テキスト色の状態クラス */
.secGantt .txtHoliday {
  color: #ff344a !important;
}

.secGantt .txtSaturday {
  color: #2967ff !important;
}

.secGantt .txtToday {
  background-color: #fffddc !important;
}
.secGantt .boxMonthHeader .txtToday {
  border-top: 1px solid #cdcdcd !important;
}

/* イベントボタン */
.secGantt .btnEvent {
  margin: 2px !important;
  min-height: 24px !important;
  border-right: 1px solid #cdcdcd;
  position: relative;
  transition: all 0.2s ease;
}

/* バー要素 */
.secGantt .boxBar {
  position: relative;
  cursor: pointer;
  color: #fff;
  font-size: var(--pcFontSize12);
  font-weight: bold;
  text-align: left;
  padding: 0;
  overflow: visible;
  min-width: 40px;
  border-right: 1px solid #cdcdcd;
  background: transparent;
}

.secGantt .boxBarInner {
  margin: 2px 0;
  padding: 0 12px;
  height: 23px;
  display: flex;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.secGantt .boxBarInner.isRadiusAll {
  border-radius: 16px !important;
}

.secGantt .boxBarInner.isRadiusLeft {
  border-radius: 16px 0 0 16px !important;
}

.secGantt .boxBarInner.isRadiusRight {
  border-radius: 0 16px 16px 0 !important;
}
.secGantt .isTodayEvent .boxBarInner {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* テキスト要素 */
.secGantt .txtEventText {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
  font-size: 11px;
  padding: 0;
  font-weight: normal;
}

/* ポップアップ */
.boxEventPop {
    position: absolute;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 17px 16px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 10px;
    line-height: 1.6;
    pointer-events: none;
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
}

/* スマホ用ポップアップ */
.boxEventPopSp {
    /* position: fixed; */
    position: absolute;
    z-index: 9999;
    background: rgba(34, 34, 34);
    color: #fff;
    padding: 15px 12px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    max-width: 280px;
    min-width: 200px;
    word-wrap: break-word;
    white-space: normal;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: translateZ(0); /* ハードウェアアクセラレーション */
}
.boxEventPopSp:hover {
    background: rgba(34, 34, 34, 1);
    transform: translateZ(0) scale(1.02);
}
.boxEventPopSp .txtPopupContent {
    margin-bottom: 12px;
    font-weight: normal;
}
.boxEventPopSp .txtPopupLink {
    font-size: 11px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: #32b7fc;
}

/* ポップアップの矢印（上向き） */
.boxEventPopSp::before {
    content: '';
    position: absolute;
    top: -8px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(34, 34, 34, 0.95);
}

/* ポップアップの矢印（下向き） */
.boxEventPopSp.isPopupBelow::before {
    top: auto;
    bottom: -8px;
    border-bottom: none;
    border-top: 8px solid rgba(34, 34, 34, 0.95);
}

/* ヘッダー行 */
.secGantt .boxMonthHeader {
  background: #f0faff;
  border-bottom: 1px solid #cdcdcd;
}
.secGantt .boxMonthHeader .txtMonth {
  position: relative;
  right: -10px;
  display: flex;
  align-items: flex-end;
  white-space: nowrap;
}
.secGantt .boxMonthHeader .txtEng {
  font-size: 18px;
  font-weight: normal;
}
.secGantt .boxMonthHeader .txt {
  font-size: 14px;
}

.secGantt .boxMonthHeader th {
  font-weight: bold;
  color: #495057;
  padding: 14px 4px;
  text-align: center;
  min-width: 40px;
  max-width: 40px;
  width: 40px;
  border-right: none;
}

.secGantt .boxMonthHeader th.isMonthBoundary {
  border-right: 1px solid #cdcdcd;
}

.secGantt .boxWeekdayRow th {
  font-size: 11px;
  border-bottom: 1px solid #cdcdcd;
  padding: 0 0 10px 0;
}

/* スクロール */
.boxGanttScroll {
  overflow-x: auto;
  cursor: grab;
  max-width: calc(100% - 50px);
  margin: 0 0 0 auto;
}

.boxGanttScroll::-webkit-scrollbar {
  width: 15px;
  background: #f8f8f8;
}

.boxGanttScroll::-webkit-scrollbar-thumb {
  background-color: #c2c2c2;
  border-radius: 10px;
  border: 5px solid #f8f8f8;
}

.boxGanttScroll.isDragging {
  cursor: grabbing;
}

/* レスポンシブ対応 */
@media only screen and (max-width:767px){
  .boxLegend {
    justify-content: space-between;
    flex-wrap: wrap;
    width: 92%;
    margin: 20px auto 0;
    gap: 8px 0;
  }
  .boxLegendItem {
    font-size: 12px;
    letter-spacing: 0;
    width: 33%;
    white-space: nowrap;
  }
  .boxGanttScroll{
    position: relative;
    overflow-y: hidden;
    max-width: calc(100% - 4%);
    margin-top: 20px;
  }
  .boxGanttScroll::-webkit-scrollbar,
  .boxGanttScroll::-webkit-scrollbar-thumb {
    display: none;
  }
  .boxGanttScroll::before{
      content: "";
      display: block;
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      background: url(../img/index/iconScroll.png) center center / 145px auto no-repeat;
      transition: all 0.2s ease-out 0.2s;
      animation: scrollItemAnimation 1s linear infinite;
      z-index: 10;
      pointer-events: none;
  }
  .boxGanttScroll.scrolled::before{
      opacity: 0;
  }
  @keyframes scrollItemAnimation {
      0%   { transform:translateX(0); }
      25%   { transform:translateX(10px) }
      50% { transform:translateX(0); }
      75% { transform:translateX(-10px); }
      100% { transform:translateX(0); }
  }
  /* スマホでは最初の5行のみ表示 */
  .secGantt .boxMainTable tbody tr:nth-child(n+6) {
    display: none;
  }
  /* アコーディオン展開時は全行表示 */
  .secGantt .boxMainTable tbody.isAccordionOpen tr {
    display: table-row !important;
  }
  /* スマホ用のテーブル幅調整 */
  .secGantt {
    min-width: auto;
  }
  .secGantt .boxBarInner {
    padding: 0 3px 0 10px;
  }
  .secGantt thead tr:not(.boxMonthHeader) th,
  .secGantt .boxBgTable th,
  .secGantt .boxBgTable td {
    border: none !important;
  }
  .secGantt .boxBgTable thead tr:not(.boxMonthHeader) th,
  .secGantt .boxBgTable th,
  .secGantt .boxBgTable td {
    border-right: 1px solid #cdcdcd !important;
  }
  .secGantt .boxBgTable thead .boxWeekdayRow th{
    border-bottom: 1px solid #cdcdcd !important;
  }
  .secGantt .boxMainTable .txtToday {
    background-color: inherit !important;
  }
  .secGantt .boxBgTable,
  .secGantt .boxMainTable {
    min-width: auto;
  }
  .secGantt .boxBgTable th,
  .secGantt .boxBgTable td,
  .secGantt .boxMainTable th,
  .secGantt .boxMainTable td {
    min-width: 30px;
    max-width: 30px;
    width: 30px;
    padding: 4px 0;
    font-size: 10px;
  }
  .secGantt .boxBgTable th,
  .secGantt .boxMainTable th {
    max-width: 30px;
    width: 30px;
  }
  .secGantt .boxMainTable .boxMonthHeader{
    border-bottom: none !important;
  }
  /* .boxAccordionToggle */
  .boxAccordionToggle {
    width: 275px;
    margin: 0 auto;
  }
  .boxAccordionToggle .btnAccordionToggle {
    width: 100%;
    font-size: var(--fSp13Fs);
    letter-spacing: var(--fSp13Ls);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #32b7fc;
    border-radius: 25px;
    height: 50px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    margin-top: 20px;
  }
}