@charset "UTF-8";

/* ==================================================
   1. 外部・アニメーション用スタイル
================================================== */
.p-section._schedule.js-inview {
  top: -45px;
}

@media (min-width: 768px) {
  .p-section._schedule.js-inview {
    top: 0;
  }
  .p-section._schedule.js-inview.-inview {
    transition-delay: 0s;
  }
}

.p-section.maintenance.js-inview.-inview {
  transition-delay: 2s;
}

/* ==================================================
   2. メンテナンスコンポーネント（ベース・PC基準）
================================================== */
.maintenance__wrapper {
  position: relative;
  padding-bottom: 56px; /* 下のScheduleセクションとの余白 */
}

/* 白枠本体 */
.maintenance {
  margin: 0;
  background: #fff;
  box-shadow: 0 0 30px #0000002b;
  padding: 32px 32px;
  border-radius: 1.5em;
  top: -45px;
  position: relative;
  transition-delay: 2s;
  overflow: visible;
  padding-bottom: 32px;
}

.maintenance__inner {
  padding: 32px;
  border-radius: 0.7em;
  border: 2px solid #AF3131;
  padding-bottom: 8px;
}

.maintenance__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  margin: 0 0 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #AF3131;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.maintenance__title {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin: 0 0 24px;
  color: #AF3131;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.maintenance__title svg {
  flex: 0 0 auto;
  margin-top: 4px;
}

.maintenance__body {
  display: grid;
  gap: 18px;
  font-size: 13px;
  line-height: 1.9;
  position: relative;
  display: block;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mente__text {
  margin-top: 14px;
}

.js-menteMoreTarget {
  margin-bottom: 32px;
}

.js-menteMoreTarget .maintenance__period {
  margin-top: 18px;
}

.maintenance__period {
  padding: 18px 20px;
  border-radius: 12px;
  background: #FFEDED;
  border: 1px solid rgba(255, 82, 82, 0.1);
}

.maintenance__periodTitle {
  margin: 0 0 4px;
  color: #AF3131;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.maintenance__periodDate {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.maintenance__periodService {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.maintenance__note {
  margin: 8px 0 0px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  line-height: 1.7;
}

/* 汎用テキスト装飾 */
em {
  font-weight: 900;
  font-style: normal;
}

.alert {
  color: #AF3131;
}

.maintenance__sp-only {
  display: none;
}

/* ==================================================
   3. 開閉（ボカシ＆枠外赤角丸ボタン）処理
================================================== */
/* 初期状態（閉じている時） */
.maintenance__body:not(.is-open) {
  max-height: 120px;
}

/* 開いた状態 */
.maintenance__body.is-open {
  max-height: none !important;
}

.maintenance__body.is-open .maintenance__mask {
  display: none !important;
  opacity: 0;
}

/* ボカシマスク */
.maintenance__mask {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 65%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}

/* もっと見るボタンエリア */
.maintenance__more {
  position: absolute;
  bottom: 34px; /* ボタンのちょうど半分（24px）を白枠の外へ出す */
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  margin-top: 0; /* マージンによる位置計算ズレをリセット */
}

.maintenance__moreBtn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 155px;
  height: 48px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  background: #AF3131;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.maintenance__moreBtn:hover {
  background-color: #8e2424;
}

.maintenance__moreBtn span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ボタン矢印アイコン */
.maintenance__moreBtn span::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.3s ease;
}

.maintenance__moreBtn.is-open span::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* ==================================================
   4. レスポンシブ（メディアクエリ）
================================================== */
/* 768px未満（スマホ・タブレット共通） */
@media not all and (min-width: 768px) {
  .maintenance {
    margin: 0 0 36px;
    padding: 16px;
    padding-bottom: 24px;
    transition-delay: 0s;
  }

  .maintenance__inner {
    padding: 16px;
  }

  .maintenance__label {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .maintenance__title {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.5;
  }

  .maintenance__body {
    gap: 16px;
    font-size: 13px;
    line-height: 1.8;
  }

  .maintenance__period {
    padding: 16px;
  }

  .maintenance__periodDate {
    font-size: 16px;
  }

  .maintenance__note {
    font-size: 12px;
  }

  .maintenance__more {
    bottom: 72px; /* ボタンのちょうど半分（24px）を白枠の外へ出す */
  }
}

/* 480px以下（スマホ特有の設定） */
@media screen and (max-width: 480px) {
  .maintenance__title svg {
    margin-top: 1px;
  }

  .maintenance__periodDate {
    font-size: 16px;
  }

  .maintenance__periodService {
    font-size: 16px;
  }

  .maintenance__sp-only {
    display: inline;
  }
}