@charset "UTF-8";
/* ============================================================
   クリーンライフPlus＋ 会員向けWebアプリ 共通スタイル
   土台: reference/app-mock.html（承認済みモック）から抽出
   - モックビューア用UI（サイドバー/iPhoneフレーム/ステータスバー）は除外
   - PC表示: body背景 #f1f5f9、.app-wrap で max-width:480px 中央寄せ
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --navy: #0A2342;
  --teal: #028090;
  --mint: #02C39A;
  --white: #FFFFFF;
  --bg: #F1F5F9;
  --surface: #FFFFFF;
  --dark: #1E293B;
  --gray1: #64748B;
  --gray2: #E2EBF0;
  --gray3: #F1F5F9;
  --ok-bg: #E1F5EE; --ok-tx: #085041;
  --wn-bg: #FAEEDA; --wn-tx: #633806;
  --rd-bg: #FCEBEB; --rd-tx: #791F1F;
  --of-bg: #F1EFE8; --of-tx: #5F5E5A;
  --bl-bg: #E6F1FB; --bl-tx: #185FA5;
  --amber: #854F0B;
  --red: #A32D2D;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f1f5f9;
  color: var(--dark);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ── PC中央寄せラッパー（SPではフル幅） ── */
.app-wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
@media (min-width: 481px) {
  .app-wrap { box-shadow: 0 0 32px rgba(15, 23, 42, .12); }
}

/* ── SCREEN ── */
.screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
}

.app-header {
  background: var(--navy);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-header h2 {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  text-align: center;
}
.bk { color: var(--mint); font-size: 12px; cursor: pointer; min-width: 48px; }
.bkr { color: var(--mint); font-size: 12px; text-align: right; min-width: 48px; }
.ct { flex: 1; padding: 14px; background: var(--bg); }

.card {
  background: var(--surface);
  border-radius: 12px;
  border: 0.5px solid var(--gray2);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
a.card { display: block; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 0.5px solid var(--gray2);
}
.row:last-child { border-bottom: none; }
.rl { font-size: 12px; color: var(--gray1); }
.rv { font-size: 13px; color: var(--dark); font-weight: 500; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}
.g-ok { background: var(--ok-bg); color: var(--ok-tx); }
.g-wn { background: var(--wn-bg); color: var(--wn-tx); }
.g-rd { background: var(--rd-bg); color: var(--rd-tx); }
.g-of { background: var(--of-bg); color: var(--of-tx); }
.g-bl { background: var(--bl-bg); color: var(--bl-tx); }

.inp {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  border: 0.5px solid var(--gray2);
  border-radius: 9px;
  background: var(--gray3);
  color: var(--dark);
  margin-top: 4px;
}
.lbl { font-size: 11px; color: var(--gray1); margin-top: 10px; display: block; }

.btn-p {
  width: 100%;
  padding: 12px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  margin-top: 10px;
}
.btn-o {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  margin-top: 8px;
}
.btn-d {
  width: 100%;
  padding: 11px;
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 10px;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  margin-top: 8px;
}
.btn-call {
  width: 100%;
  padding: 14px;
  background: var(--mint);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
}
a.btn-p, a.btn-o, a.btn-d, a.btn-call { display: block; text-align: center; }

/* 会員証カード */
.mc {
  background: var(--navy);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.mc::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.sec {
  font-size: 10px;
  color: var(--gray1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}

/* 下部タブバー */
.tbar {
  display: flex;
  background: var(--surface);
  border-top: 0.5px solid var(--gray2);
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  cursor: pointer;
  font-size: 9px;
  color: var(--gray1);
  gap: 3px;
  transition: color .15s;
}
.tab svg { width: 18px; height: 18px; }
.tab.on { color: var(--teal); }

.dl { display: block; font-size: 13px; color: var(--teal); padding: 10px 0; border-bottom: 0.5px solid var(--gray2); cursor: pointer; }
.dl:last-child { border-bottom: none; }

.prose { font-size: 12px; color: var(--gray1); line-height: 1.9; }
.prose h3 { font-size: 13px; font-weight: 500; color: var(--dark); margin: 14px 0 4px; }
.prose h3:first-child { margin-top: 0; }

/* バナー（ホーム） */
.bnr { display: block; border-radius: 12px; overflow: hidden; margin-bottom: 10px; cursor: pointer; border: 0.5px solid var(--gray2); }
.bnr-img { width: 100%; height: 84px; display: flex; align-items: center; justify-content: center; position: relative; }
.bnr-body { padding: 10px 12px 12px; background: var(--surface); }
.btag { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 10px; font-weight: 500; margin-bottom: 4px; }

/* お知らせ 未読ドット */
.notif-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 5px; flex-shrink: 0; }
.notif-dot.read { background: #B4B2A9; }

/* ---- お知らせ本文（管理画面のリッチテキスト出力） ----
   Trix が出す div / h1 / ul / blockquote / pre をアプリの文字組みに合わせる。 */
.rich { font-size: 12px; color: var(--gray1); line-height: 1.9; }
.rich > *:first-child { margin-top: 0; }
.rich > *:last-child { margin-bottom: 0; }
.rich h1 { font-size: 14px; font-weight: 500; color: var(--dark); margin: 14px 0 4px; }
.rich strong { font-weight: 500; color: var(--dark); }
/* 文字色を付けた範囲の中では、強調の既定色より指定色を優先する */
.rich [style] strong, .rich [style] em, .rich [style] u { color: inherit; }
.rich a { color: var(--teal); text-decoration: underline; word-break: break-all; }
.rich ul, .rich ol { padding-left: 20px; margin: 6px 0; }
.rich li { margin: 2px 0; }
.rich blockquote {
  border-left: 3px solid var(--gray2);
  margin: 8px 0;
  padding-left: 10px;
}
.rich pre {
  background: var(--gray3);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-all;
}
