@charset "utf-8";

/* ============================================================
   maintenance.css — 障害・メンテナンス情報ページ
   トップページ(Nagato PR #218)のモダンデザインに準拠。
   共通ヘッダー/フッター/ナビは components.css 参照。
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; overflow-x: hidden; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
  overflow-x: clip;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #06617f; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #30a1af; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: #646464;
}
.breadcrumb a { color: #30a1af; }
.breadcrumb a:hover { color: #06617f; }
.breadcrumb__sep {
  margin: 0 0.5rem;
  color: #cacaca;
}

/* ============================================================
   PAGE HERO (下層ページ共通のティールヒーロー / Nagato PR #218)
   ============================================================ */

.page-hero {
  background: var(--c-teal);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.page-hero__label::before {
  content: '';
  display: inline-block;
  width: 3rem;
  height: 0.25rem;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.page-hero__title {
  font-size: clamp(1.25rem, 3.2vw, 2.375rem);
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 1rem;
}
.page-hero__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 40rem;
}
.page-hero__deco {
  position: absolute;
  border-radius: 50%;
  border: 2.5rem solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.page-hero__deco--br {
  width: 24rem;
  height: 24rem;
  bottom: -5rem;
  right: -5rem;
}

/* ============================================================
   SECTION
   ============================================================ */

.section-pad { padding: 5rem 0; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 0.1875rem;
  background: #30a1af;
  margin: 0.75rem 0 0;
  border-radius: 0.125rem;
}

/* ============================================================
   LAYOUT (サイドバー目次 + 本文)  ※policy ページと共通構造
   ============================================================ */

.mnt-layout {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

/* ---- サイドバー目次（PC: 左固定 / スマホ: 上部追従バー） ---- */
.mnt-sidebar {
  position: sticky;
  top: 6rem;
  flex: 0 0 16rem;
  background: var(--c-teal);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.08);
}
.mnt-sidebar__heading {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.75rem 1rem 0.5rem;
}
.mnt-sidebar__list { list-style: none; margin: 0; padding: 0; }
.mnt-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  border-radius: 0.5rem;
  transition: background .2s, color .2s;
}
.mnt-sidebar__link .material-symbols-outlined { font-size: 1.25rem; flex-shrink: 0; }
.mnt-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.mnt-sidebar__link.active {
  background: #fff;
  color: #06617f;
}

.mnt-main { flex: 1 1 auto; min-width: 0; }

/* ============================================================
   CATEGORY (カテゴリーごとのお知らせ群)
   ============================================================ */

.mnt-category { scroll-margin-top: 6rem; }
.mnt-category + .mnt-category { margin-top: 3.5rem; }

/* ============================================================
   NOTICE CARD (お知らせ1件分)
   ============================================================ */

.notice {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(208, 208, 208, 0.3);
  padding: 2.5rem;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.06);
}
.notice + .notice { margin-top: 2rem; }

.notice__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e9eef0;
}
.notice__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
}
.notice__badge {
  flex-shrink: 0;
  background: #d8453b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
}
.notice__date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #646464;
  white-space: nowrap;
}
.notice__date .material-symbols-outlined { font-size: 1.125rem; }

/* ---- 詳細テーブル（日時・対象・内容） ---- */
.notice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}
.notice-table th,
.notice-table td {
  border: 1px solid #d8e3e6;
  padding: 0.875rem 1.125rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.notice-table th {
  background: #f1f8f9;
  color: #06617f;
  font-weight: 700;
  white-space: nowrap;
  width: 11rem;
}
.notice-table__note {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #646464;
}

.notice__body { color: #333; }
.notice__body p + p { margin-top: 1rem; }

/* ============================================================
   RESPONSIVE（≤768px: サイドバーを上部追従バーに）
   ============================================================ */

@media (max-width: 48rem) {
  .section-pad { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }
  .page-hero { padding: 3.5rem 0; }

  .mnt-layout { display: block; }
  /* スマホではサイドバー目次を非表示にし、本文を全幅で表示 */
  .mnt-sidebar { display: none; }

  .notice { padding: 1.75rem; }
  .notice__title { font-size: 1.125rem; }
}

@media (max-width: 30rem) {
  .section-pad { padding: 2.5rem 0; }
  .notice { padding: 1.25rem; }

  /* テーブルを縦積みに */
  .notice-table,
  .notice-table tbody,
  .notice-table tr,
  .notice-table th,
  .notice-table td {
    display: block;
    width: 100%;
  }
  .notice-table th { border-bottom: none; }
  .notice-table td { border-top: none; }
}

/* ============================================================
   ワイド画面（≥94rem）: サイドバーをコンテンツ枠の外（左余白）へ
   ============================================================ */
@media (min-width: 94rem) {
  .mnt-layout {
    margin-left: -17.5rem;  /* サイドバー幅(16rem)+gap(1.5rem) 分だけ左へ */
    gap: 1.5rem;
  }
  .mnt-sidebar { flex: 0 0 16rem; }
}
