/* 保守レポート：見た目（暗い画面。スマホ 390px が基準） */

@font-face {
  font-family: "NDJP";
  src: url("fonts/noto-sans-jp.woff2?v=e7567f27") format("woff2");
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: "NDNum";
  src: url("fonts/inter.woff2?v=9436ca9a") format("woff2");
  font-weight: 200 600;
  font-display: swap;
}

:root {
  --bg: #070b1a;
  --card: #0d1430;
  --card-2: #121b3d;
  --line: rgba(150, 170, 255, .14);
  --line-2: rgba(150, 170, 255, .24);
  --text: #f2f5ff;
  --sub: #a3aed0;
  --mute: #6f7aa0;
  --blue: #5b8cff;
  --violet: #9d6bff;
  --grad: linear-gradient(90deg, #4f86ff, #9d6bff);
  --ok: #3ddc97;
  --warn: #ffa53d;
  --info: #5b8cff;
  --none: #6f7aa0;
  --bad: #ff5d63;
  --r: 16px;
  --gap: 16px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --f-jp: "NDJP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-num: "NDNum", "NDJP", -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-jp);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.num { font-family: var(--f-num); font-feature-settings: "tnum" 1; letter-spacing: -.01em; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--s { width: 16px; height: 16px; }

/* ===== 上の帯（ヘッダー） ===== */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px;
  background: rgba(7, 11, 26, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.top.is-home:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top.is-scrolled { background: rgba(7, 11, 26, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.top__site { flex: 1; min-width: 0; margin: 0; font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__month {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  font-size: 14px; font-weight: 400; cursor: pointer;
}
.top__new { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 400; }
.top__logout { margin: 0; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; color: var(--sub); border-radius: 12px; cursor: pointer; }

/* ===== 中身 ===== */
.view {
  padding: 4px 16px calc(var(--tab-h) + var(--safe-b) + 28px);
  max-width: 560px; margin: 0 auto;
  outline: none;
}
.loading, .msg { color: var(--sub); text-align: center; padding: 48px 0; }
.page-title { font-size: 24px; font-weight: 300; margin: 10px 0 6px; letter-spacing: .02em; }
.page-lead { margin: 0 0 18px; color: var(--sub); font-size: 13px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)) , var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  margin: 0 0 14px;
}
.card__title { margin: 0 0 14px; font-size: 15px; font-weight: 400; display: flex; align-items: center; gap: 8px; }
.card__title small { margin-left: auto; color: var(--mute); font-size: 12px; font-weight: 300; }
.card__note { margin: 10px 0 0; font-size: 11.5px; color: var(--mute); }

/* 押せる1行（ホームの行など） */
.row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 16px 18px; margin: 0 0 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  text-align: left; cursor: pointer;
}
.row__label { font-weight: 400; }
.row__val { margin-left: auto; color: var(--sub); font-size: 14px; text-align: right; }
.row__sub { display: block; font-size: 11.5px; color: var(--mute); }
.row .chev { color: var(--mute); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--none); box-shadow: 0 0 10px currentColor; color: var(--none); }
.dot--ok { background: var(--ok); color: rgba(61,220,151,.6); }
.dot--warn { background: var(--warn); color: rgba(255,165,61,.6); }
.dot--info { background: var(--info); color: rgba(91,140,255,.6); }
.dot--none { background: var(--none); color: transparent; }
.t-warn { color: var(--warn); }
.t-ok { color: var(--ok); }

/* 前の月との差 */
.pill { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 400; background: rgba(91,140,255,.16); color: #9fbcff; white-space: nowrap; }
.pill--down { background: rgba(255,255,255,.08); color: var(--sub); }
.pill--light { background: rgba(255,255,255,.18); color: #fff; }

/* ===== ホーム：光る帯 ===== */
.band {
  position: relative; overflow: hidden;
  margin: 0 -16px; padding: 18px 20px 64px;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(157,107,255,.75), transparent 60%),
    radial-gradient(90% 80% at 10% 0%, rgba(79,134,255,.55), transparent 65%),
    linear-gradient(160deg, #0b1640 0%, #1a3aa8 55%, #5a3ee0 100%);
  border-radius: 0 0 36px 36px;
  text-align: center;
}
.band::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(7,11,26,.35)); pointer-events: none; }
.band__ring {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; transform: translate(-50%, -52%);
  border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 0 40px rgba(160,190,255,.25), inset 0 0 40px rgba(160,190,255,.12);
  pointer-events: none;
}
.band__ring::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.band__title { position: relative; margin: 6px 0 2px; font-size: 18px; font-weight: 400; letter-spacing: .04em; }
.band__date { position: relative; margin: 0 0 6px; font-size: 11.5px; color: rgba(255,255,255,.7); }
.hero { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__n { font-size: 76px; font-weight: 200; line-height: 1.05; letter-spacing: -.03em; }
.hero__side { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 14px; font-weight: 400; }

.overlap { position: relative; z-index: 1; margin-top: -40px; display: grid; grid-template-columns: 1fr 1px 1fr; align-items: stretch; padding: 16px 8px; background: rgba(16, 24, 56, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: var(--line-2); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.overlap__sep { background: var(--line); }
.stat { text-align: center; padding: 0 6px; }
.stat__n { font-size: 34px; font-weight: 200; line-height: 1.2; }
.stat__n--word { font-family: var(--f-jp); font-size: 26px; font-weight: 300; color: var(--sub); }
.stat__label { margin: 2px 0 0; font-size: 12px; color: var(--sub); }
.stat .pill { margin-top: 6px; }

/* ===== グラフ ===== */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: rgba(150,170,255,.09); stroke-width: 1; }
.chart .axis { fill: var(--mute); font-family: var(--f-num); font-size: 10px; }
.chart .line { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart .glow { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .28; filter: blur(4px); }
.chart .pt { fill: var(--bg); stroke-width: 1.6; }
.chart .pt.is-on { fill: #fff; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .bar { fill: rgba(91,140,255,.55); }
.chart .val { fill: var(--sub); font-family: var(--f-num); font-size: 10px; }
.readout { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; min-height: 30px; }
.readout__m { color: var(--sub); font-size: 13px; }
.readout__v { font-size: 24px; font-weight: 300; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--sub); }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* 切り替えボタン */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); margin: 0 0 14px; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--sub); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--grad); color: #fff; }

/* メーター（表示の速さ） */
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.gauge svg { width: 100%; max-width: 74px; height: auto; display: block; margin: 0 auto; }
.gauge .bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 4; }
.gauge .fg { fill: none; stroke-width: 4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.gauge text { font-family: var(--f-num); font-size: 17px; font-weight: 300; fill: var(--text); text-anchor: middle; dominant-baseline: central; }
.gauge p { margin: 6px 0 0; font-size: 10px; color: var(--sub); line-height: 1.35; white-space: nowrap; letter-spacing: -.02em; }
.c-good { stroke: var(--ok); } .c-mid { stroke: var(--warn); } .c-bad { stroke: var(--bad); }

/* 横棒 */
.bars { margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: minmax(0, 9em) 1fr auto; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.bars__name { color: var(--sub); line-height: 1.4; overflow-wrap: anywhere; }
.bars__track { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.05); overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: 3px; background: var(--grad); box-shadow: 0 0 10px rgba(91,140,255,.5); }
.bars__val { min-width: 3em; text-align: right; }

/* 割合の帯（デバイス） */
.split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: rgba(255,255,255,.04); }
.split span { display: block; height: 100%; }
.split .s1 { background: #5b8cff; } .split .s2 { background: #9d6bff; } .split .s3 { background: #6fd3ff; } .split .s4 { background: #c7b8ff; }
.legend .s1 { background: #5b8cff; } .legend .s2 { background: #9d6bff; } .legend .s3 { background: #6fd3ff; } .legend .s4 { background: #c7b8ff; }
.sub-head { margin: 18px 0 8px; font-size: 12px; color: var(--mute); }

/* 表 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font-weight: 300; color: var(--mute); font-size: 11px; text-align: right; padding: 0 0 6px 8px; }
.tbl th:first-child { text-align: left; padding-left: 0; }
.tbl td { padding: 9px 0 9px 8px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl td:first-child { text-align: left; padding-left: 0; white-space: normal; word-break: break-all; color: var(--text); }
.tbl td.num { color: var(--text); }

/* 数字のまとめ（2×2） */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.kpi__n { font-size: 26px; font-weight: 200; line-height: 1.2; }
.kpi__l { margin: 0; font-size: 11.5px; color: var(--sub); }

/* ===== 健康診断 ===== */
.counts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 16px; font-size: 13px; color: var(--sub); }
.counts span { display: inline-flex; align-items: center; gap: 6px; }
.hlist { margin: 0; padding: 0; list-style: none; }
.hitem { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.hitem.is-warn { border-color: rgba(255,165,61,.35); }
.hitem__btn { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 14px 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.hitem__btn .dot { margin-top: 7px; }
.hitem__btn .chev { margin-top: 3px; }
.hitem__txt { flex: 1; min-width: 0; }
.hitem__name { display: block; font-size: 14px; font-weight: 400; }
.hitem__val { display: block; margin-top: 2px; color: var(--sub); font-size: 12.5px; }
.hitem.is-warn .hitem__val { color: var(--warn); }
.hitem .chev { color: var(--mute); transition: transform .2s; }
.hitem.is-open .chev { transform: rotate(180deg); }
.hitem__body { padding: 0 16px 16px 34px; }
.hitem__big { margin: 0 0 6px; }
.hitem__big b { font-family: var(--f-num); font-weight: 200; font-size: 30px; }
.hitem__big .u { margin-left: 4px; color: var(--sub); font-size: 13px; }
.hitem__big .s { display: block; color: var(--mute); font-size: 12px; }
.hitem__note { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.75; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; }

/* ===== アドバイス ===== */
.adv__pri { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; color: var(--sub); }
.adv__stars { color: #ffcf6b; letter-spacing: 2px; font-size: 13px; text-shadow: 0 0 8px rgba(255,200,90,.45); }
.adv__title { margin: 0 0 14px; font-size: 17px; font-weight: 400; line-height: 1.6; }
.adv__chart { margin: 0 0 16px; padding: 14px; border-radius: 12px; background: rgba(0,0,0,.18); border: 1px solid var(--line); }
.adv__chart-title { margin: 0 0 8px; font-size: 12.5px; color: var(--sub); }
.adv__img { display: block; width: 100%; height: auto; margin: 0 0 16px; border-radius: 12px; border: 1px solid var(--line); }
.adv__sec { display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.adv__sec .ico { width: 20px; height: 20px; color: var(--blue); margin-top: 1px; }
.adv__sec h3 { margin: 0; font-size: 12.5px; font-weight: 400; color: var(--sub); }
.adv__sec p { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }

/* ===== 保守の記録 ===== */
.upd { margin: 0; padding: 0; list-style: none; }
.upd li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.upd li:first-child { border-top: 0; padding-top: 0; }
.tag { justify-self: start; padding: 1px 8px; border-radius: 6px; font-size: 10.5px; color: var(--sub); background: rgba(255,255,255,.06); border: 1px solid var(--line); white-space: nowrap; }
.tag--new { color: #b9a3ff; border-color: rgba(157,107,255,.4); }
.tag--del { color: var(--mute); }
.upd__name { font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
.upd__ver { grid-column: 2; font-family: var(--f-num); font-size: 13px; color: var(--mute); }
.upd__ver b { font-weight: 400; color: #9fbcff; }
.more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary .chev { transform: rotate(180deg); }
.more .upd { margin-top: 10px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 0 6px; font-size: 13px; line-height: 1.45; }
.checks .ico { width: 16px; height: 16px; margin-top: 2px; }
.checks small { grid-column: 2; font-size: 11px; }
.ok-ico { color: var(--ok); } .warn-ico { color: var(--warn); }
.dl { margin: 0; }
.dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.dl div:first-child { border-top: 0; padding-top: 0; }
.dl dt { color: var(--sub); }
.dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.big-date { margin: 0; font-size: 30px; font-weight: 200; }

/* ===== 下のタブ ===== */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(7, 11, 26, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--mute); font-size: 10.5px; cursor: pointer; }
.tab[aria-current="page"] { color: #8fb0ff; }
.tab[aria-current="page"] .ico { filter: drop-shadow(0 0 6px rgba(91,140,255,.8)); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 10px rgba(91,140,255,.8); }

/* ===== 月を選ぶ ===== */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet__bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 75vh; overflow: auto;
  padding: 18px 16px calc(16px + var(--safe-b));
  background: var(--card-2); border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0;
}
.sheet__title { margin: 0 0 10px; text-align: center; font-size: 14px; color: var(--sub); }
.sheet__list { margin: 0 0 12px; padding: 0; list-style: none; }
.sheet__list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 8px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 16px; cursor: pointer; }
.sheet__list button[aria-current="true"] { color: #8fb0ff; }
.sheet__list .top__new { margin-left: 4px; }
.sheet__list .ico { margin-left: auto; }

/* ===== ボタン・入力 ===== */
.btn { display: block; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); font-size: 15px; font-weight: 400; cursor: pointer; text-align: center; }
.btn--main { border: 0; background: var(--grad); color: #fff; box-shadow: 0 8px 26px rgba(91,140,255,.35); }
.btn:disabled { opacity: .55; cursor: default; }
.field { display: block; margin: 0 0 14px; }
.field__label { display: block; margin: 0 0 6px; font-size: 12.5px; color: var(--sub); }
.field__input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); color: var(--text); font: inherit; font-size: 16px; }
.field__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91,140,255,.2); }

/* ===== ログイン ===== */
.login { max-width: 460px; margin: 0 auto; padding: 0 16px 40px; }
.band--login { padding: calc(env(safe-area-inset-top, 0px) + 72px) 20px 96px; }
.band--login .band__ring { width: 340px; height: 340px; }
.login__title { position: relative; margin: 0; font-size: 34px; font-weight: 300; letter-spacing: .12em; }
.login__lead { position: relative; margin: 10px 0 0; font-size: 13px; color: rgba(255,255,255,.78); }
.login__card { position: relative; z-index: 1; margin-top: -48px; padding: 22px; background: rgba(16, 24, 56, .94); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.login__card .btn { margin-top: 6px; }
.login__note { margin: 16px 0 0; font-size: 12px; color: var(--mute); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.sub-head.first { margin-top: 0; }
.kpi__n small { margin-left: 2px; font-size: 13px; color: var(--sub); }
/* ホームでは光る帯を上の帯（ヘッダー）の裏まで伸ばす */
.view--home .band { margin-top: calc(-1 * (env(safe-area-inset-top, 0px) + 65px)); padding-top: calc(env(safe-area-inset-top, 0px) + 61px + 14px); }
.chart .val--line { fill: #c3a3ff; }
.band__plan { position: relative; margin: 0; font-size: 11.5px; color: rgba(255,255,255,.72); letter-spacing: .04em; }
.hero__n.is-long { font-size: 54px; }
.stat__prev { display: block; margin-top: 4px; font-size: 11px; color: var(--mute); }
.t-none { color: var(--mute); }
.notice { margin: 8px 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,165,61,.4); background: rgba(255,165,61,.08); color: #ffd3a1; font-size: 13px; }
.tbl td { overflow-wrap: anywhere; }
.tbl td:not(.num) { white-space: normal; }
.login__note { text-wrap: balance; }
/* ===== ログイン：お知らせ・コード入力 ===== */
.flash { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.flash--warn { border: 1px solid rgba(255,165,61,.4); background: rgba(255,165,61,.08); color: #ffd3a1; }
.flash--ok { border: 1px solid rgba(61,220,151,.4); background: rgba(61,220,151,.08); color: #9cf0c9; }
.field__input--code { font-family: var(--f-num); font-size: 28px; letter-spacing: .3em; text-align: center; padding: 10px 0 10px .3em; }
.login__links { display: flex; justify-content: center; gap: 24px; margin-top: 18px; }
.login__links form { margin: 0; }
.link-btn { border: 0; background: none; padding: 8px 0; color: var(--sub); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nw { white-space: nowrap; }
.offline__text { margin: 0 0 18px; text-align: center; color: var(--sub); font-size: 14px; }
a.btn { text-decoration: none; color: #fff; }

/* ===== 開いたときのローディング ===== */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(55% 40% at 50% 45%, rgba(79,134,255,.18), transparent 70%), var(--bg);
  transition: opacity .55s ease .1s, visibility 0s linear .65s;
  /* JS が動かないときの逃げ道：8秒で消える */
  animation: spGone .5s ease 8s forwards;
}
.splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
/* ログインの画面では、ホーム画面のアプリとして開いたときだけ出して、自分で消える */
.splash--auto { display: none; }
@media (display-mode: standalone) {
  .splash--auto { display: flex; animation: spGone .55s ease 1.75s forwards; }
}
.splash__mark { width: 150px; height: 150px; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; animation: spIn 1.6s cubic-bezier(.2,.7,.2,1) both; }
.splash.is-done .splash__mark { animation: spMarkOut .6s cubic-bezier(.6,0,.8,.4) forwards; }
@keyframes spMarkOut { from { transform: scale(1); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.sp-ring { stroke-width: 3.4; stroke-dasharray: 208; stroke-dashoffset: 208; animation: spDraw .95s cubic-bezier(.65,0,.35,1) .1s forwards; }
.sp-line { stroke-width: 2.6; stroke-dasharray: 104; stroke-dashoffset: 104; animation: spDraw .45s cubic-bezier(.5,0,.3,1) .8s forwards; }
.splash__glow .sp-ring { stroke-width: 7; }
.splash__glow .sp-line { stroke-width: 6; }
.splash__glow { opacity: .9; animation: spBreathe 1.8s ease-in-out 1.5s infinite alternate; }
.sp-dot { fill: #fff; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: spPop .5s cubic-bezier(.3,1.6,.5,1) 1.2s forwards; }
.sp-dot-glow { fill: #cfe0ff; transform-box: fill-box; transform-origin: center; opacity: 0; animation: spFlash .9s ease-out 1.2s forwards; }
.splash__name { margin: 0; font-family: var(--f-num); font-size: 13px; font-weight: 300; letter-spacing: .22em; padding-left: .22em; color: rgba(220,228,255,.78); opacity: 0; animation: spName .7s ease 1.05s forwards; }
.splash__name span { margin-right: .2em; font-size: 11px; color: rgba(163,174,208,.75); font-style: italic; letter-spacing: .12em; }
.splash.is-done .splash__name { animation: spNameOut .3s ease forwards; }
@keyframes spNameOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes spIn { from { transform: scale(.86); } to { transform: scale(1); } }
@keyframes spDraw { to { stroke-dashoffset: 0; } }
@keyframes spPop { to { transform: scale(1); } }
@keyframes spFlash { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(2.2); } 100% { opacity: .75; transform: scale(1); } }
@keyframes spBreathe { from { opacity: .9; } to { opacity: .45; } }
@keyframes spName { from { opacity: 0; transform: translateY(6px); letter-spacing: .4em; } to { opacity: 1; transform: none; letter-spacing: .22em; } }
@keyframes spGone { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
  .splash__mark, .sp-ring, .sp-line, .sp-dot, .sp-dot-glow, .splash__name, .splash__glow { animation: none !important; }
  .sp-ring, .sp-line { stroke-dashoffset: 0; }
  .sp-dot { transform: none; }
  .sp-dot-glow { opacity: .75; }
  .splash__name { opacity: 1; }
  .splash.is-done .splash__mark, .splash.is-done .splash__name { animation: none !important; }
}

/* ===== ログアウト（ヘッダー） ===== */
.icon-btn--label { color: rgba(242,245,255,.82); width: auto; height: 44px; padding: 0 4px; margin-right: -6px; grid-auto-flow: row; gap: 0; align-content: center; font-size: 9.5px; line-height: 1.2; letter-spacing: .02em; }
.icon-btn--label .ico { width: 20px; height: 20px; }

/* ===== 確かめ・案内の画面（下から出る） ===== */
.dlg__title { margin: 4px 0 8px; text-align: center; font-size: 16px; font-weight: 400; }
.dlg__text { margin: 0 0 18px; text-align: center; font-size: 13px; color: var(--sub); }
.dlg__actions { display: grid; gap: 10px; margin-top: 16px; }
.sheet__panel--in { animation: sheetUp .28s cubic-bezier(.2,.8,.2,1); }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== ホーム画面に追加の案内 ===== */
.inst { margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.inst__head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.inst__badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(91,140,255,.35); flex: none; }
.inst__badge .ico { width: 20px; height: 20px; stroke-width: 1.6; }
.inst__title { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; font-weight: 400; }
.inst__title small { font-size: 11.5px; font-weight: 300; color: var(--sub); }
.inst__chev { color: var(--mute); transition: transform .2s; }
.inst__head[aria-expanded="true"] .inst__chev { transform: rotate(180deg); }
.inst__panel { padding-top: 14px; }
.inst__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.inst__step { display: grid; grid-template-columns: 20px 34px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.inst__n { font-family: var(--f-num); font-size: 13px; color: #8fb0ff; text-align: center; }
.inst__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(91,140,255,.12); color: #b9ccff; }
.inst__ico .ico { width: 19px; height: 19px; }
.inst__txt { display: flex; flex-direction: column; font-size: 13px; font-weight: 400; line-height: 1.5; }
.inst__txt small { margin-top: 2px; font-size: 11px; font-weight: 300; color: var(--mute); }
.inst__lead { margin: 0 0 10px; font-size: 13px; color: var(--sub); }
.inst__after { margin: 12px 0 0; font-size: 12px; color: #c9d6ff; text-align: center; text-wrap: balance; }
.inst__url { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line); font-family: var(--f-num); font-size: 13px; text-align: center; -webkit-user-select: all; user-select: all; overflow-wrap: anywhere; }
.inst__copy { display: flex; align-items: center; justify-content: center; gap: 8px; }
.inst__copy .ico { width: 18px; height: 18px; }
.inst__copied { display: block; margin-top: 8px; font-size: 12px; color: #9cf0c9; text-align: center; }
.inst__copied:empty { display: none; }
.inst__skip { display: block; margin: 12px auto 0; }

/* ホームの案内のカード */
.inst-card { display: grid; grid-template-columns: auto 1fr; gap: 12px 12px; align-items: center; margin: 0 0 14px; padding: 16px; border-radius: var(--r); border: 1px solid rgba(143,176,255,.35); background: linear-gradient(135deg, rgba(79,134,255,.16), rgba(157,107,255,.12)), var(--card); }
.inst-card__title { margin: 0; font-size: 14px; font-weight: 400; }
.inst-card__text { margin: 2px 0 0; font-size: 12px; color: var(--sub); }
.inst-card__btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.inst-card__btns .btn { padding: 11px; font-size: 14px; }
.inst-card__later { padding: 11px 14px; border: 0; background: none; color: var(--sub); font-size: 13px; cursor: pointer; }

/* ホームの一番下 */
.foot-links { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.foot-links button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--sub); font-size: 14px; text-align: left; cursor: pointer; }
.foot-links .ico { width: 20px; height: 20px; color: var(--mute); }
.foot-links .chev { margin-left: auto; }
.splash.is-skip { display: none !important; }
.inst__lead--time { margin: 0 0 10px; font-size: 12px; color: #c9d6ff; text-align: center; }
.inst__step--pic { grid-template-columns: 20px 1fr; row-gap: 10px; padding: 12px; }
.inst__pic { grid-column: 1 / -1; display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }

/* ===== サイトを切り替える（見られるサイトが2つ以上のとき） ===== */
button.top__site { display: flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: none; text-align: left; font: inherit; font-size: 13px; color: var(--sub); }
button.top__site:disabled { opacity: 1; cursor: default; }
.top__site-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__site-chev { display: none; color: var(--mute); }
button.top__site.is-many { cursor: pointer; color: var(--text); }
button.top__site.is-many .top__site-chev { display: block; }
.top__dot { width: 7px; height: 7px; border-radius: 50%; background: #a873ff; box-shadow: 0 0 8px rgba(168,115,255,.9); flex: none; }
.site-opt { display: flex; flex-direction: column; min-width: 0; }
.site-opt small { font-size: 11.5px; color: var(--mute); }
.sheet__list.dlg__body { margin: 0; }

/* ===== ログインの画面：ロゴ ===== */
.login__logo { position: relative; margin: 0; display: flex; justify-content: center; }
.login__logo-img {
  display: block; width: min(260px, 70vw); aspect-ratio: 366 / 91;
  background: #fff;
  -webkit-mask: url("logo.svg") center / contain no-repeat; mask: url("logo.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.35));
}
.login__logo--s .login__logo-img { width: min(200px, 56vw); }
.band--code { padding-top: calc(env(safe-area-inset-top, 0px) + 56px); }
.band--code .login__lead { margin-top: 18px; }

/* ===== ログインの画面：パスキー ===== */
.pk-login { margin: 0 0 4px; }
.pk-login__btn { display: flex; align-items: center; justify-content: center; gap: 10px; border-color: rgba(143,176,255,.45); background: rgba(91,140,255,.12); color: #dfe8ff; }
.pk-login__btn .ico { width: 20px; height: 20px; }
.pk-login__msg { margin: 10px 0 0; font-size: 12.5px; color: #ffd3a1; text-align: center; }
.pk-login__msg:empty { display: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: var(--mute); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== アプリ：パスキー ===== */
.pk-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 0 0 14px; padding: 16px; border-radius: var(--r); border: 1px solid rgba(143,176,255,.35); background: linear-gradient(135deg, rgba(79,134,255,.16), rgba(157,107,255,.12)), var(--card); }
.pk-card .inst__badge .ico { stroke-width: 1.5; }
.pk-list { margin: 0 0 12px; padding: 0; list-style: none; }
.pk-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.pk-item__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(91,140,255,.12); color: #b9ccff; flex: none; }
.pk-item__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.pk-item__txt small { font-size: 11.5px; color: var(--mute); }
.pk-item.is-off .pk-item__txt { color: var(--sub); }
.pk-item__off { font-size: 11.5px; color: var(--warn); }
.pk-item__del { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: none; color: var(--sub); font-size: 12.5px; cursor: pointer; flex: none; }
.pk-empty { margin: 4px 0 14px; text-align: center; color: var(--sub); font-size: 13px; }
.dlg__note { margin: 10px 0 0; font-size: 12px; color: var(--mute); text-align: center; text-wrap: balance; }
.dlg__msg { margin: 8px 0 0; font-size: 12.5px; color: #ffd3a1; text-align: center; }
.dlg__msg:empty { display: none; }
.dlg__field { margin: 0; }

/* ===== ホーム：サイトの今の姿 ===== */
.shot { padding: 16px 16px 14px; }
.shot__frame { border: 1px solid var(--line-2); border-radius: 12px; background: #0a1024; overflow: hidden; }
.shot__img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 750; object-fit: cover; }
.shot__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: #9fbcff; text-decoration: none; }
.shot__link::after { content: "↗"; font-size: 12px; }

/* ===== グラフ：左端の目安の数字 ===== */
.chart .yax { fill: var(--mute); font-family: var(--f-num); font-size: 10px; opacity: .85; }
.chart .yax--mini { font-size: 9px; }

/* ===== プラン：鍵 ===== */
.tab .tab__lock { position: absolute; top: 6px; right: calc(50% - 20px); width: 11px; height: 11px; stroke-width: 2; color: var(--mute); }
.tab.is-locked { color: var(--mute); opacity: .75; }
.lock { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 16px 18px; border-style: dashed; border-color: var(--line-2); background: rgba(13, 20, 48, .6); }
.lock--tall { padding: 28px 18px; }
.lock__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(150,170,255,.08); color: var(--sub); grid-row: span 2; }
.lock__ico .ico { width: 20px; height: 20px; }
.lock__txt { min-width: 0; }
.lock__title { margin: 0; font-size: 14px; font-weight: 400; color: var(--sub); }
.lock__sub { margin: 2px 0 0; font-size: 12px; color: var(--mute); }
.lock__btn { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 7px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12.5px; text-decoration: none; }
.lock__arrow { font-size: 11px; }
.stat--lock { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.stat__lock { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(150,170,255,.08); color: var(--mute); }
.stat__lock .ico { width: 18px; height: 18px; }
.stat__up { font-size: 11.5px; color: #9fbcff; text-decoration: none; }
.row__val--lock .ico { width: 16px; height: 16px; color: var(--mute); }

/* ===== 健康診断 ===== */
.hsum { margin: 0 0 16px; }
.hbar { display: flex; gap: 3px; height: 8px; border-radius: 999px; overflow: hidden; }
.hbar__seg { flex: 1 1 0; border-radius: 999px; }
.hbar__seg--warn { background: var(--warn); box-shadow: 0 0 12px rgba(255,165,61,.6); }
.hbar__seg--info { background: var(--info); }
.hbar__seg--ok { background: var(--ok); }
.hbar__seg--none { background: rgba(150,170,255,.2); }
.hlead { margin: 10px 0 12px; font-size: 13px; color: var(--sub); }
.hlead b { font-weight: 400; font-size: 15px; }
.hfilter { display: flex; flex-wrap: wrap; gap: 8px; }
.hpill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--sub); font-size: 12.5px; cursor: pointer; }
.hpill .dot { width: 7px; height: 7px; box-shadow: none; }
.hpill__n { font-size: 12px; color: var(--mute); }
.hpill[aria-pressed="true"] { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(91,140,255,.3); }
.hpill[aria-pressed="true"] .hpill__n { color: rgba(255,255,255,.8); }
.hpill[aria-pressed="true"] .dot { background: #fff; }
.hitem { position: relative; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--card); overflow: hidden; }
.hitem::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--none); }
.hitem--warn::before { background: var(--warn); box-shadow: 0 0 10px rgba(255,165,61,.7); }
.hitem--ok::before { background: var(--ok); }
.hitem--info::before { background: var(--info); }
.hitem--none::before { background: rgba(150,170,255,.25); }
.hitem--warn { border-color: rgba(255,165,61,.35); }
.hitem.is-open { border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)), var(--card); }
.hitem__btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px 13px 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.hitem__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(150,170,255,.08); color: var(--sub); flex: none; }
.hitem__ico .ico { width: 19px; height: 19px; }
.hitem__ico--warn { background: rgba(255,165,61,.14); color: var(--warn); }
.hitem__ico--ok { background: rgba(61,220,151,.1); color: var(--ok); }
.hitem__ico--info { background: rgba(91,140,255,.14); color: #9fbcff; }
.hitem__ico--lock { color: var(--mute); }
.hitem__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.hitem__side .chev { margin: 0; }
.hbadge { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; white-space: nowrap; }
.hbadge--warn { background: rgba(255,165,61,.16); color: var(--warn); }
.hbadge--ok { background: rgba(61,220,151,.12); color: var(--ok); }
.hbadge--info { background: rgba(91,140,255,.16); color: #9fbcff; }
.hbadge--none { background: rgba(150,170,255,.1); color: var(--mute); }
.hitem__name { font-size: 14.5px; }
.hitem__val { color: var(--mute); }
.hitem--warn .hitem__val { color: var(--sub); }
.hitem.has-big.is-open .hitem__val { display: none; } /* 開いたときは、大きな数字のほうだけにする */
.hitem__body { padding: 0 16px 16px 64px; }
.hitem--lock .hitem__btn { cursor: default; }
.hitem--lock .hitem__name { color: var(--sub); }
.hitem__up { flex: none; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11.5px; color: #9fbcff; text-decoration: none; white-space: nowrap; }
/* ライト：訪問数の代わりに健康診断のまとめを出すときは、文字なので少し小さく */
.hero__n--word { font-size: 40px; font-weight: 300; letter-spacing: .02em; margin: 6px 0 2px; }
.hero__n--word.t-ok { color: #9cf0c9; }
.hero__n--word.t-warn { color: #ffcf8f; }
/* 読み上げだけの文字 */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ライトのホーム：健康診断のまとめは押せる（健康診断のタブへ） */
.hero--btn { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
.hero--btn .hero__side .chev { color: rgba(255,255,255,.7); }
