@charset "utf-8";
/* CSS Document */

/* ============================================
   カレンダーグリッド (JS自動生成部分)
   ============================================ */
#event p {
  text-align: center;
  font-size: 1.2rem;
  display: none;
}

/* クラス名を .calendar に統一 */
table.calendar,
table.calendar th,
table.calendar td {
  border: 1px solid black;
  border-collapse: collapse;
  font-size: 1.2rem;
}

/* テーブル自体は親に合わせて100% */
table.calendar {
  width: 100%;
  margin: auto;
  table-layout: fixed;
  text-align: center;
  word-break: break-all;
  word-wrap: break-all;
  box-sizing: border-box;
}

table.calendar th {
  padding: 0.3rem;
}

/* セルの高さと配置設定 */
table.calendar td {
  padding: 0.3rem;
  height: 100px; /* 中身に合わせて伸縮 */
  vertical-align: top;
}

/* 年月の帯（ヘッダー） */
table.calendar .cellTableHead {
  font-size: 1.4rem;
  font-weight: bold;
  background: #e2a2b1;
  color: #fff;
  line-height: 1.5;
  padding: 15px 0;
  height: auto;
  position: relative;
}

/* 曜日の色設定 */
.cellSunday {
  color: red;
}
.cellSaturday {
  color: blue;
}
.cellHoliday {
  color: red;
}

/* ============================================
   イベントリンクとタイトル帯
   ============================================ */
table.calendar td a.event-link {
  display: block;
  width: 100%;
  height: auto;
  min-height: 22px;
  margin-bottom: 3px;
  text-decoration: none;
  color: #000;
  background: transparent;
  text-align: left;
  line-height: 1.2;
  box-sizing: border-box;
}

.event-title {
  display: block;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-title.event {
  background-color: #e5004f;
}
.event-title.media {
  background-color: #ff801e;
}

/* ============================================
   自動生成カレンダー用 その他
   ============================================ */
.date-num {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 2px;
  padding-left: 2px;
}

table.calendar td.has-event {
  background-color: #fff0f5;
}

/* ============================================
   ★Swiper（全体幅・矢印）の修正【余白調整版】
   ============================================ */

/* 親枠の設定 */
.swiper {
  width: 100%;
  max-width: 1100px; /* サイト幅に合わせる */
  /* ★修正：下の余白を30px→10pxに詰める */
  margin: 0px auto 50px auto;
  /* ★修正：下の内側余白を20px→0pxに詰める */
  padding: 0 0 0 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden; /* はみ出し防止 */
}

/* ★最重要：SwiperがJSで計算する「最大の高さ」を強制キャンセルする */
.swiper-wrapper {
  height: auto !important;
}

/* スライド設定 */
.swiper-slide {
  box-sizing: border-box;
  height: auto !important; /* スライドも中身の高さに合わせる */
}

/* 中身のレール(#calendar) */
#calendar {
  width: 100%;
}

/* 矢印ボタンの設定 */
.swiper-button-next,
.swiper-button-prev {
  top: 12px !important;
  margin-top: 0 !important;
  width: 40px !important;
  height: 40px !important;
  background: transparent !important;
  color: #fff !important;
  border-radius: 0;
  box-shadow: none !important;
  z-index: 99;
}

/* 左右の位置調整 */
.swiper-button-next {
  right: 10px !important;
}
.swiper-button-prev {
  left: 10px !important;
}

/* 矢印アイコンのサイズ */
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.8rem !important;
  font-weight: bold;
}

/* ============================================
   レスポンシブ（760px以下で縦リスト化）
   ============================================ */
@media screen and (max-width: 760px) {
  /* スマホの時の余白と幅設定 */
  .swiper {
    /* ★修正：スマホ時も下余白を詰める */
    margin: 30px auto 20px auto;
    padding: 0 0 0 0;
    width: 100%; /* 幅は画面いっぱい */
  }

  /* 矢印位置 */
  .swiper-button-next,
  .swiper-button-prev {
    top: 12px !important;
    right: 0 !important;
    left: auto !important;
  }
  .swiper-button-prev {
    left: 0 !important;
    right: auto !important;
  }

  /* テーブル構造解除（カレンダーのリスト化） */
  table.calendar,
  table.calendar tbody,
  table.calendar tr,
  table.calendar th,
  table.calendar td {
    display: block;
    width: 100%;
    border: none;
    box-sizing: border-box;
  }

  table.calendar tr:nth-child(2) {
    display: none;
  }

  /* ヘッダーデザイン */
  table.calendar .cellTableHead {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    border: 1px solid black;
    font-size: 1.2rem;
    padding: 12px 0;
  }

  table.calendar td:empty {
    display: none;
  }

  /* 縦リストの1行 */
  table.calendar td {
    height: auto;
    min-height: auto;
    text-align: left;
    padding: 15px 10px;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    margin-top: -1px;
  }

  table.calendar tr:nth-child(3) td:first-child {
    border-top: 1px solid #ccc;
  }

  .date-num {
    display: inline-block;
    font-size: 1.1rem;
    margin-right: 10px;
    background: #eee;
    padding: 2px 8px;
    border-radius: 4px;
  }

  .event-title {
    white-space: normal;
    font-size: 0.9rem;
    padding: 5px;
    margin-top: 5px;
  }

  table.calendar td a.event-link {
    margin-bottom: 8px;
  }

  table.calendar,
  table.calendar th,
  table.calendar td {
    font-size: 1rem;
  }
}

/* ============================================
   イベント詳細エリア・その他テーブル装飾
   ============================================ */
#event .info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}
#event .info .img-area {
  width: 40%;
}
#event .info .img-area img {
  width: 100%;
}
#event .info .text-area {
  width: 55%;
  margin-left: 5%;
}

.title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
.sub {
  text-align: center;
  font-size: 1rem;
  line-height: 1.5rem;
}
.special-page {
  margin-bottom: 20px;
  font-weight: bold;
}
.back-calendar {
  text-align: center;
  margin: auto;
  font-size: 1rem;
  line-height: 1.5rem;
  padding-top: 70px;
}
@media screen and (max-width: 1100px) {
  #event .info {
    display: block;
  }
  #event .info .img-area {
    width: 100%;
  }
  #event .info .text-area {
    width: 100%;
    margin: 0px;
  }
}

/* ============================================
   詳細テーブル設定（左寄せ・下線のみ）
   ============================================ */
.table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: none;
  margin-bottom: 30px;
}

.table th,
.table td {
  border: none;
  border-bottom: 1px solid #ccc; /* 下線のみ */
  text-align: left; /* 左寄せ */
  padding: 15px 10px;
  vertical-align: top;
  word-break: break-all;
  word-wrap: break-all;
  color: #555;
}

/* 項目名（左側） */
.koumoku {
  width: 30%;
  font-weight: bold;
  box-sizing: border-box;
  vertical-align: middle;
}

/* 詳細内容（右側） */
.shousai {
  width: 70%;
  box-sizing: border-box;
}

/* スマホ対応 */
@media screen and (max-width: 760px) {
  .koumoku,
  .shousai {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }
  .koumoku {
    background-color: transparent;
    font-weight: bold;
    border-bottom: none;
    padding-bottom: 5px;
    padding-top: 20px;
  }
  .shousai {
    border-top: none;
    padding-top: 0;
    padding-bottom: 20px;
  }
  .table tr:first-child .koumoku {
    padding-top: 10px;
  }
}

/* ============================================
   モーダル内テーブル
   ============================================ */
.modaal-container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border: none;
}
.modaal-container table th,
.modaal-container table td {
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 10px;
  font-size: 1rem;
  vertical-align: top;
  background: transparent;
}
.modaal-container table th {
  background-color: transparent;
  width: 30%;
  font-weight: bold;
  color: #e5004f;
  text-align: left;
  vertical-align: top;
}

.modaal-container table .koumoku {
  vertical-align: top;
}

@media screen and (max-width: 760px) {
.modaal-container table th,
.modaal-container table td {
  display: block;
  width: 100%;
  border-bottom: none;
  vertical-align: top;
}
  .modaal-container table th {
    border-bottom: 1px solid #eee;
  }
  .modaal-container table td {
    border-bottom: 1px solid #ccc;
  }
}
