/**
 * TinyMCE Templates CSS
 * テンプレートプラグイン用のスタイル
 */

/* 共通スタイル */
.template-container {
  width: 100%;
  margin: 30px 0;
  box-sizing: border-box;
}

/* 画像3列レイアウト */
#showcase-01 {
  width: 100%;
}

#showcase-01 .image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

#showcase-01 .image-item {
  width: calc((100% - 40px) / 3);
  margin-bottom: 0;
}

#showcase-01 .image-item img {
  width: 100%;
  height: auto;
  display: block;
}

#showcase-01 .image-caption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
}

/* スマホ表示（768px以下）*/
@media screen and (max-width: 768px) {
  #showcase-01 .image-grid {
    gap: 15px;
  }

  #showcase-01 .image-item {
    width: 100%;
    margin-bottom: 0;
  }
}

/* ページネーションスタイル */
.pagination {
  margin: 30px 0;
}

.pagination .nav-links {
  text-align: center;
}

.pagination .nav-links span,
.pagination .nav-links a,
.pagination .nav-links .fas {
  display: inline-block;
  padding: 12px 14px;
  line-height: 1;
  margin: 0px 8px;
}

.pagination .nav-links .fas {
  color: #145fa9;
  margin: 0;
  border: 1px solid;
  border-radius: 5px;
}

.pagination .nav-links .current,
.pagination .nav-links span.page-number {
  color: #145fa9;
  margin: 0;
  border-bottom: 2px solid #145fa9;
  font-weight: 700;
  position: relative;
  top: -1px;
}

.pagination a.prev,
.pagination a.next {
  padding: 0;
}

/* 日程表スタイル */
#schedule-table {
  width: 100%;
  margin: 30px 0;
}

#schedule-table table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

#schedule-table table tr {
  border-bottom: 1px solid #ddd;
}

#schedule-table table tr:first-child {
  border-top: 1px solid #ddd;
}

#schedule-table table td {
  padding: 15px;
  vertical-align: top;
  line-height: 1.6;
}

#schedule-table table td:first-child {
  width: 30%;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  #schedule-table table,
  #schedule-table table tbody,
  #schedule-table table tr,
  #schedule-table table td {
    display: block;
    width: 100%;
  }

  #schedule-table table tr {
    padding: 10px 0;
  }

  #schedule-table table td {
    padding: 5px 10px;
  }

  #schedule-table table td:first-child {
    width: 100%;
    font-weight: bold;
    padding-bottom: 0;
  }
}
