@charset "UTF-8";
/* ==========================================================
   メンテナンス表示（静的メンテナンスサイト共通）
   - 既存テーマ CSS（style.css / style.sp.css / style.mypage.css）の後に読み込む
   - 配色はテーマの主要色（ネイビー #003f65 / オレンジ #ef832b / 本文 #22221f）に合わせる
   - html.is-sp / html.is-pc は device.js が付与する
   ========================================================== */

/* ---------- PC/SP 専用ブロックの出し分け ---------- */
html:not(.is-sp) [data-maint-sp-only] { display: none !important; }
html.is-sp [data-maint-pc-only] { display: none !important; }

/* ---------- サイト共通バナー（</header> の直後に配置） ---------- */
/* ヘッダーがネイビーのため、バナーは淡いオレンジ地にして境目を明確にする */
.maint-banner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 20px;
  border-top: 3px solid #ef832b;
  border-bottom: 1px solid #f3d3b5;
  background: #fff4ea;
  color: #22221f;
  text-align: center;
  line-height: 1.7;
  font-size: 14px;
}
.maint-banner__title {
  margin: 0;
  color: #003f65;
  font-size: 15px;
  font-weight: 700;
}
.maint-banner__label,
.maint-notice__label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 2px;
  background: #ef832b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.maint-banner__label { margin-right: 10px; vertical-align: 1px; }
.maint-banner__text {
  margin: 4px 0 0;
  color: #53646d;
  font-size: 13px;
  text-wrap: balance; /* 2行目に数文字だけ残るのを防ぐ（未対応ブラウザでは通常の折り返し） */
}
html.is-sp .maint-banner { padding: 12px 4%; text-align: left; }
html.is-sp .maint-banner__title { font-size: 14px; }
html.is-sp .maint-banner__label { margin-bottom: 4px; }
html.is-sp .maint-banner__text { font-size: 12px; text-wrap: wrap; }

/* マイページ系ヘッダー（style.mypage.css）は 768px 以下で position:fixed・高さ 4rem になる。
   バナーがロゴの上に重ならないよう、ヘッダーの高さ分だけ下げて重なり順もヘッダーより下にする */
@media screen and (max-width: 768px) {
  .mypageHeader + .maint-banner { margin-top: 4rem; z-index: 0; }
}

/* ---------- 機能停止のお知らせ（一覧・詳細など DB 由来の領域を置き換える） ---------- */
.maint-notice {
  box-sizing: border-box;
  max-width: 760px;
  margin: 40px auto;
  padding: 32px 28px;
  border: 2px solid #ef832b;
  border-radius: 4px;
  background: #fff;
  color: #22221f;
  text-align: center;
  line-height: 1.8;
}
.maint-notice__title {
  margin: 12px 0 0;
  color: #003f65;
  font-size: 20px;
  font-weight: 700;
}
.maint-notice__text {
  margin: 10px 0 0;
  font-size: 14px;
}
.maint-notice__links {
  margin: 16px 0 0;
  font-size: 14px;
}
.maint-notice__links a { color: #003f65; text-decoration: underline; }
.maint-notice__links a + a { margin-left: 1.5em; }
/* 固定ページ本文（.post-content）内では、下の同意文ボックスと幅をそろえる（本文側の div 余白指定に負けないよう !important） */
.post-content > .maint-notice { max-width: none !important; margin: 0 0 28px !important; }
html.is-sp .maint-notice { margin: 6% 4%; padding: 6% 5%; }
html.is-sp .post-content > .maint-notice { margin: 0 0 6% !important; }
html.is-sp .maint-notice__title { font-size: 17px; }
html.is-sp .maint-notice__text { font-size: 13px; text-align: left; }

/* ---------- フォーム等のロック（見た目は残し、操作不可にしてお知らせを重ねる） ---------- */
.maint-lock { position: relative; }
.maint-lock > :not(.maint-lock__overlay) {
  opacity: 0.4;
  filter: grayscale(0.5);
  pointer-events: none;
  user-select: none;
}
.maint-lock__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.maint-lock__overlay .maint-notice {
  width: 100%;
  max-width: 560px;
  margin: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
/* 縦に短い領域ではお知らせを上に寄せる */
.maint-lock--top .maint-lock__overlay { align-items: flex-start; }

/* ---------- 単体ボタン・リンクの無効化 ---------- */
.maint-disabled {
  opacity: 0.45 !important;
  filter: grayscale(0.6);
  cursor: not-allowed !important;
  pointer-events: none !important;
}
.maint-caption {
  display: block;
  margin-top: 6px;
  color: #ef832b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
