/* =====================================================================
   tomarin 管理画面（新デザイン）の見た目
   ヒーローの製品モック（.pms）と機能カード（.pc-card）で共通。
   色・罫線・角丸は tomarin PMS の新デザインの値。管理画面に合わせて常にライト表示。
   ===================================================================== */
.pms, .pc-card {
  --pm-ink: #333333; --pm-ink-sub: #6A6A6A; --pm-ink-muted: #6E6E6E;
  --pm-surface: #F5F5F5; --pm-line: #D9D9D9; --pm-link: #0083C9;
  --pm-alert: #E53935; --pm-danger: #C62828; --pm-ocher: #B57A00;
  --pm-teal-25: #EDF8FB; --pm-teal-50: #E9F5F8; --pm-teal-100: #CFEEF0; --pm-teal-300: #9FD9DF;
  --pm-green-100: #F1F9E8; --pm-green-200: #D9F1C0; --pm-green-400: #8DC84C;
  --pm-yellow-100: #FEF9D2; --pm-yellow-300: #FCE57D; --pm-red-200: #FFEBEE; --pm-gray-100: #F2F2F2; --pm-lightblue: #A8DFE6;
  --pm-latin: var(--font-en);
  font-family: var(--font-body);
  color: var(--pm-ink); color-scheme: light; text-align: left;
}
.pms *, .pc-card * { box-sizing: border-box; }

/* 予約経路のマーク */
.pm-ota { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 4px 0 1px; border-radius: 2px; background: #fff; box-shadow: inset 0 0 0 1px var(--pm-line); vertical-align: middle; }
.pm-ota-m { width: 18px; height: 18px; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; line-height: 1; flex: none; }
.pm-ota-l { font-family: var(--pm-latin); font-size: 12px; font-weight: 700; color: var(--pm-ink-muted); white-space: nowrap; }
.pm-m-tomarin { background: #fff; }
.pm-m-tomarin img { width: 14px; height: auto; display: block; }
.pm-m-rakuten { background: #00B900; }
.pm-m-jalan { background: #F08300; }
.pm-m-ikkyu { background: #1D4778; }
.pm-m-booking { background: #23387E; font-family: var(--pm-latin); font-weight: 700; font-size: 12px; }
.pm-m-airbnb { background: #E11860; font-family: var(--pm-latin); font-weight: 700; }
.pm-m-expedia { background: #FEBF4F; color: #1E243A; font-family: var(--pm-latin); font-weight: 700; font-size: 12px; }
.pm-m-tel { background: #fff; color: var(--pm-ink-sub); box-shadow: inset 0 0 0 1px var(--pm-line); font-size: 10px; }

/* ---------------- ヒーローの製品モック ---------------- */
.pms { font-size: 14px; line-height: 1.5; background: #fff; }
.pm-fit { width: 100%; overflow: hidden; position: relative; }
.pm-fit-inner { transform-origin: top left; }
.pm-app { position: relative; height: 640px; background: #fff; }
.pm-header { height: 40px; display: flex; align-items: center; gap: 20px; padding: 0 16px; }
.pm-logo { height: 20px; width: auto; display: block; }
.pm-hmenu { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 300; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.pm-hmenu:hover { background: rgba(0,0,0,.04); }
.pm-hmenu.on { font-weight: 600; }
.pm-hmenu.dim { cursor: default; }
.pm-hmenu.dim:hover { background: none; }
.pm-hright { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 300; }
.pm-hright > span { display: inline-flex; align-items: center; }
.pm-bell { position: relative; }
.pm-bell b { position: absolute; top: -2px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--pm-alert); }
.pm-side { position: absolute; top: 40px; left: 0; bottom: 0; width: 184px; padding: 4px 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.pm-fac { background: var(--pm-teal-50); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.pm-fac strong { font-size: 16px; font-weight: 600; }
.pm-fac small { font-size: 12px; font-weight: 300; color: var(--pm-ink-muted); display: inline-flex; gap: 4px; align-items: center; }
.pm-nav { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 4px; font-size: 14px; font-weight: 300; cursor: pointer; }
.pm-nav:hover { background: rgba(0,0,0,.04); }
.pm-nav.on { background: var(--pm-surface); font-weight: 600; }
.pm-nav.dim { cursor: default; }
.pm-nav.dim:hover { background: none; }
.pm-chev { margin-left: auto; display: inline-flex; }
.pm-nav svg, .pm-hmenu svg, .pm-hright svg, .pm-fac svg { flex: none; }
.pm-close { margin-top: auto; font-size: 12px; font-weight: 300; color: var(--pm-ink-sub); padding: 0 8px; display: flex; gap: 6px; align-items: center; }
.pm-content { position: absolute; top: 40px; left: 184px; right: 0; bottom: 0; background: var(--pm-surface); border: 1px solid var(--pm-line); border-right: 0; border-bottom: 0; border-top-left-radius: 8px; overflow: hidden; }
.pm-view { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
/* 狭い画面：サイドメニューを畳む */
.pm-fit.compact .pm-side, .pm-fit.compact .pm-hmenu.dim, .pm-fit.compact .pm-hright > span:first-child, .pm-fit.compact .pm-lg-help { display: none; }
.pm-fit.compact .pm-content { left: 0; border-left: 0; border-top-left-radius: 0; }

.pm-crumb { font-size: 12px; font-weight: 300; color: var(--pm-ink-sub); }
.pm-crumb a, .pm-table td a { color: var(--pm-link); text-decoration: underline; }
.pm-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pm-h1 { font-size: 20px; font-weight: 600; }
.pm-btn1, .pm-btn2 { display: inline-flex; align-items: center; height: 36px; padding: 0 20px; border-radius: 4px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.pm-btn1 { background: var(--pm-link); color: #fff; }
.pm-btn2 { background: #fff; color: var(--pm-link); box-shadow: inset 0 0 0 1px var(--pm-link); }
.pm-filters { display: flex; gap: 8px; }
.pm-input, .pm-select { height: 40px; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--pm-line); display: inline-flex; align-items: center; padding: 0 12px; font-size: 14px; font-weight: 300; gap: 6px; white-space: nowrap; }
.pm-input { flex: 1; min-width: 0; overflow: hidden; color: #757575; }
.pm-select svg { margin-left: 8px; }
.pm-card { background: #fff; border: 1px solid var(--pm-line); border-radius: 8px; overflow: hidden; }
.pm-table { width: 100%; border-collapse: collapse; }
.pm-table th { height: 36px; background: var(--pm-surface); border-bottom: 1px solid var(--pm-line); padding: 0 10px; text-align: left; font-size: 12px; font-weight: 600; color: var(--pm-ink-sub); white-space: nowrap; }
.pm-table td { height: 46px; border-bottom: 1px solid var(--pm-line); padding: 4px 10px; font-size: 14px; font-weight: 300; white-space: nowrap; vertical-align: middle; }
.pm-table tr:last-child td { border-bottom: 0; }
.pm-table td a { font-family: var(--pm-latin); font-weight: 400; }
.pm-table td a.pm-name { font-family: inherit; font-weight: 300; }
.pm-num { font-family: var(--pm-latin); font-variant-numeric: tabular-nums; }
.pm-table .pm-mute { color: var(--pm-ink-sub); }
.pm-table .pm-r { text-align: right; }
.pm-pay { display: inline-flex; height: 20px; align-items: center; border-radius: 2px; padding: 0 5px; font-size: 12px; font-weight: 600; color: #fff; }
.pm-pay.unpaid { background: var(--pm-alert); }
.pm-pay.done { background: #00A116; }
.pm-pay.part { background: var(--pm-ocher); }
.pm-chip { display: inline-flex; height: 20px; align-items: center; border-radius: 2px; padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--pm-ink); }
.pm-st-ok { color: #008D13; font-weight: 600; }
.pm-st-tent { color: var(--pm-ocher); font-weight: 600; }

/* 宿泊台帳 */
.pm-lg-bar { display: flex; align-items: center; gap: 8px; }
.pm-lg-period { display: inline-flex; align-items: center; height: 40px; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--pm-line); }
.pm-pn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 100%; font-size: 10px; color: var(--pm-ink-sub); line-height: 1.2; }
.pm-rng { padding: 0 18px; font-size: 16px; font-weight: 300; border-left: 1px solid var(--pm-line); border-right: 1px solid var(--pm-line); height: 100%; display: flex; align-items: center; }
.pm-lg-today { height: 40px; display: inline-flex; align-items: center; padding: 0 14px; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--pm-line); font-size: 14px; }
.pm-lg-seg { margin-left: auto; display: inline-flex; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--pm-line); padding: 2px; }
.pm-lg-seg span { padding: 6px 16px; border-radius: 3px; font-size: 14px; color: var(--pm-ink-sub); }
.pm-lg-seg span.on { background: var(--pm-link); color: #fff; font-weight: 600; }
.pm-lg-help { font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.pm-lg-grid { background: #fff; border: 1px solid var(--pm-line); border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 148px repeat(7, 1fr); }
.pm-fit.compact .pm-lg-grid { grid-template-columns: 112px repeat(7, 1fr); }
.pm-lg-corner { grid-row: span 2; border-right: 1px solid var(--pm-line); border-bottom: 1px solid var(--pm-line); font-size: 12px; font-weight: 600; color: var(--pm-ink-sub); padding: 8px 12px; display: flex; align-items: center; background: var(--pm-surface); }
.pm-lg-month { grid-column: span 7; height: 26px; border-bottom: 1px solid var(--pm-line); font-size: 12px; font-weight: 300; padding: 0 10px; display: flex; align-items: center; background: var(--pm-surface); }
.pm-lg-day { height: 26px; border-bottom: 1px solid var(--pm-line); border-right: 1px solid var(--pm-line); font-size: 12px; font-weight: 600; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; }
.pm-lg-day:nth-child(9) { border-right: 0; }
.pm-lg-day.sat { color: var(--pm-link); }
.pm-lg-day.sun { color: var(--pm-alert); }
.pm-lg-day.today { background: var(--pm-link); color: #fff; }
.pm-lg-room { border-right: 1px solid var(--pm-line); border-bottom: 1px solid var(--pm-line); padding: 6px 12px; display: flex; flex-direction: column; justify-content: center; height: 68px; min-width: 0; }
.pm-lg-room small { font-size: 11px; font-weight: 300; color: var(--pm-ink-sub); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-lg-room strong { font-size: 14px; font-weight: 600; white-space: nowrap; }
.pm-lg-cell { border-right: 1px solid var(--pm-line); border-bottom: 1px solid var(--pm-line); height: 68px; position: relative; }
.pm-lg-cell.hi { background: var(--pm-yellow-100); }
.pm-lg-card { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 4px; padding: 4px 6px; display: flex; flex-direction: column; overflow: hidden; z-index: 1; }
.pm-nm { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.pm-nm em { margin-left: auto; font-style: normal; display: inline-flex; gap: 3px; }
.pm-sb { font-size: 11px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-ft { margin-top: auto; display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 300; color: var(--pm-ink-muted); white-space: nowrap; overflow: hidden; }
.pm-ft .pm-ota-m { width: 16px; height: 16px; font-size: 10px; }
.pm-dots { margin-left: auto; font-weight: 600; letter-spacing: -1px; }
.pm-lg-card.before, .pm-lg-card.tentative { background: var(--pm-green-100); }
.pm-lg-card.tentative { outline: 2px dashed var(--pm-green-400); outline-offset: -2px; }
.pm-lg-card.checkedin { background: var(--pm-teal-100); }
.pm-lg-card.late { background: var(--pm-red-200); }
.pm-lg-card.checkedout { background: var(--pm-gray-100); color: #8A8A8A; }
.pm-lg-card.alert { background: var(--pm-yellow-100); }
.pm-lg-card.block { background: var(--pm-gray-100); align-items: center; justify-content: center; font-size: 13px; font-weight: 300; flex-direction: row; gap: 6px; }
.pm-warn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--pm-danger); font-size: 11px; font-weight: 600; border-radius: 4px; padding: 2px 6px; box-shadow: 0 0 4px rgba(51,51,51,.3); display: inline-flex; align-items: center; gap: 3px; }
.pm-lg-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 300; color: var(--pm-ink-sub); }
.pm-lg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pm-lg-legend i { width: 18px; height: 12px; border-radius: 2px; display: inline-block; }

/* 売上 */
.pm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pm-kpi { background: #fff; border: 1px solid var(--pm-line); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.pm-kpi small { font-size: 12px; font-weight: 300; color: var(--pm-ink-sub); }
.pm-kpi strong { font-family: var(--pm-latin); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pm-seg2 { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 300; }
.pm-seg2 b { font-weight: 600; font-size: 12px; color: var(--pm-ink-sub); margin-right: 4px; }
.pm-pill { height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--pm-line); background: #fff; }
.pm-pill.on { background: var(--pm-link); color: #fff; box-shadow: none; font-weight: 600; }

/* ---------------- 機能カード ---------------- */
.screen-card.pc-card {
  height: 468px; padding: 0; border-radius: 20px; overflow: hidden;
  border: 0; box-shadow: none;
  font-size: 12px; line-height: 1.5; font-weight: 300;
}
.screen-card.pc-card { background: #F6F6F4; }
/* 上：見出しと説明（LP の文字） */
.pc-head { flex: none; padding: 20px 20px 16px; font-family: var(--font-jp); }
.screen-card .pc-title { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; color: var(--black); }
.pc-flag { margin-left: auto; flex: none; font-size: 10px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--pm-teal-50); color: var(--pm-link); white-space: nowrap; }
.pc-cap { margin: 0; font-size: 12.5px; font-weight: 400; line-height: 1.65; color: var(--text-dim); min-height: 41px; }
/* 下：浮いた画面。右下へはみ出させる */
.pc-window {
  flex: 1; min-height: 0; margin-left: 16px; display: flex; flex-direction: column;
  background: #fff; border-radius: 12px 0 0 0; overflow: hidden;
  box-shadow: 0 12px 32px -12px rgba(30,60,80,.2);
  transition: transform 300ms cubic-bezier(.16,1,.3,1);
}
.screen-card.pc-card:hover .pc-window { transform: translate(-4px, -4px); }
.pc-top { height: 30px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid #EDEDED; font-size: 10.5px; color: var(--pm-ink-sub); white-space: nowrap; overflow: hidden; }
.pc-top::before { content: ""; width: 14px; height: 14px; flex: none; background: url(/tomarin/assets/pms/symbol.png) center / contain no-repeat; }
.pc-top b { color: var(--pm-ink); font-weight: 600; }
.pc-body { flex: 1; min-height: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pc-body.center { justify-content: center; gap: 14px; }
.pc-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--pm-line); min-width: 0; }
.pc-row:last-child { border-bottom: 0; }
.pc-row.flat { padding: 0 0 4px; border: 0; }
.pc-row > span { min-width: 0; white-space: nowrap; }
.pc-row > span:not([class]) { color: var(--pm-ink-sub); overflow: hidden; text-overflow: ellipsis; }
.pc-row > span.ink { color: var(--pm-ink); font-weight: 600; }
.pc-row > span.name { color: var(--pm-ink); }
.pc-row > strong, .pc-row > .r { margin-left: auto; font-weight: 600; white-space: nowrap; }
.pc-row > strong.up { color: #008D13; }
.pc-row > .r.plain { font-weight: 300; color: var(--pm-ink-sub); }
.pc-row.total { border-top: 1px solid var(--pm-line); border-bottom: 0; margin-top: auto; }
.pc-field { display: flex; flex-direction: column; gap: 3px; }
.pc-fl { font-size: 11px; font-weight: 600; color: var(--pm-ink-sub); }
.pc-in { height: 30px; border: 1px solid var(--pm-line); border-radius: 4px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; background: #fff; }
.pc-in em { font-style: normal; color: var(--pm-ink-sub); font-size: 10px; }
.pc-in.ph { color: var(--pm-ink-sub); }
.pc-btn { height: 32px; border-radius: 4px; background: var(--pm-link); color: #fff; font-weight: 600; font-size: 12.5px; display: flex; align-items: center; justify-content: center; flex: none; }
.pc-btn2 { height: 28px; border-radius: 4px; color: var(--pm-link); box-shadow: inset 0 0 0 1px var(--pm-link); font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; margin-top: auto; }
.pc-seg { display: inline-flex; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--pm-line); overflow: hidden; font-size: 11px; }
.pc-seg i { font-style: normal; padding: 2px 8px; }
.pc-seg i.on { background: var(--pm-link); color: #fff; font-weight: 600; }
.pc-pay { display: inline-flex; height: 18px; align-items: center; border-radius: 2px; padding: 0 5px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; background: #00A116; }
.pc-tag { display: inline-flex; align-items: center; border-radius: 2px; padding: 1px 7px; font-size: 11px; font-weight: 300; color: var(--pm-ink); white-space: nowrap; }
.pc-tag.green { background: var(--pm-green-200); }
.pc-tag.yellow { background: var(--pm-yellow-300); }
.pc-tag.blue { background: var(--pm-lightblue); }
.pc-tag.gold { background: var(--pm-yellow-100); color: var(--pm-ocher); font-weight: 600; }
.pc-tag.silver { background: var(--pm-gray-100); color: var(--pm-ink-sub); font-weight: 600; }
.pc-st { display: inline-flex; align-items: center; border-radius: 2px; padding: 1px 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pc-st.ok { color: #008D13; background: var(--pm-green-100); }
.pc-st.wait { color: var(--pm-ocher); background: var(--pm-yellow-100); }
.pc-st.need { color: var(--pm-danger); background: var(--pm-red-200); }
.pc-st.link { color: #fff; background: var(--pm-link); }
.pc-who { display: flex; align-items: center; gap: 8px; }
.pc-who strong { font-size: 13px; font-weight: 600; }
.pc-who .r { margin-left: auto; font-size: 11px; color: var(--pm-ink-sub); }
.pc-av { width: 26px; height: 26px; border-radius: 50%; background: var(--pm-teal-50); color: var(--pm-link); font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pc-memo { background: var(--pm-surface); border-radius: 4px; padding: 7px 9px; font-size: 11.5px; display: flex; flex-direction: column; gap: 2px; }
.pc-memo small { font-size: 10.5px; font-weight: 600; color: var(--pm-ink-sub); }
.pc-tags { display: flex; gap: 5px; margin-top: auto; }
/* 台帳の縮小版 */
.pc-lg { display: grid; grid-template-columns: 44px repeat(5, 1fr); border-top: 1px solid var(--pm-line); border-left: 1px solid var(--pm-line); font-size: 10.5px; }
.pc-lg > span { border-right: 1px solid var(--pm-line); border-bottom: 1px solid var(--pm-line); height: 30px; position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.pc-lg > .d { height: 20px; background: var(--pm-surface); font-weight: 600; }
.pc-lg > .d.t { background: var(--pm-link); color: #fff; }
.pc-lg > .rm { justify-content: flex-start; padding-left: 5px; font-weight: 600; }
.pc-lg i { position: absolute; top: 3px; bottom: 3px; left: 2px; z-index: 1; border-radius: 3px; font-style: normal; font-size: 10px; font-weight: 600; display: flex; align-items: center; gap: 3px; padding: 0 3px; white-space: nowrap; overflow: hidden; }
.pc-lg i.mv { outline: 1.5px dashed var(--pm-link); outline-offset: -1.5px; }
.pc-lg i.done { color: #8A8A8A; }
.pc-lg .pm-ota-m { width: 13px; height: 13px; font-size: 8.5px; }
.pc-lg .pm-ota-m img { width: 10px; }
.pc-lg .empty { grid-column: span 5; color: var(--pm-ink-sub); font-size: 10px; background: var(--pm-teal-25); }
/* オプション */
.pc-body.list { gap: 0; }
.pc-opt { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--pm-line); }
.pc-opt .th { width: 30px; height: 30px; border-radius: 4px; background: var(--pm-surface); color: var(--pm-ink-sub); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pc-opt .mn { display: flex; flex-direction: column; min-width: 0; }
.pc-opt .mn strong { font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-opt .mn em { font-style: normal; font-size: 10px; color: var(--pm-ink-sub); }
.pc-opt .pr { margin-left: auto; font-weight: 600; white-space: nowrap; }
/* カレンダー */
.pc-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 9px; }
.pc-cal .w { text-align: center; color: var(--pm-ink-sub); font-weight: 600; }
.pc-cal .w.su { color: var(--pm-alert); }
.pc-cal .w.sa { color: var(--pm-link); }
.pc-cal .c { border: 1px solid var(--pm-line); border-radius: 2px; height: 30px; padding: 1px 3px; display: flex; flex-direction: column; justify-content: space-between; }
.pc-cal .c b { font-weight: 600; font-size: 9.5px; text-align: right; font-family: var(--pm-latin); }
.pc-cal .c.hi { background: var(--pm-teal-100); }
.pc-cal .c.pk { background: var(--pm-yellow-300); }
.pc-cal .c.sel { box-shadow: inset 0 0 0 1.5px var(--pm-link); }
.pc-legend { display: flex; gap: 10px; font-size: 10px; color: var(--pm-ink-sub); }
.pc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 3px; vertical-align: -1px; }
/* その他 */
.pc-pin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pc-pin i { font-style: normal; height: 40px; border: 1px solid var(--pm-line); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--pm-latin); font-size: 20px; font-weight: 600; }
.pc-qr { width: 136px; height: 136px; padding: 8px; background: #fff; border: 1px solid var(--pm-line); border-radius: 4px; align-self: center; position: relative; flex: none; }
.pc-qr svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }
.pc-qr .lg { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; background: #fff url(/tomarin/assets/pms/symbol.png) center / 18px no-repeat; border-radius: 4px; }
.pc-qrcap { text-align: center; font-size: 11px; color: var(--pm-ink-sub); margin-top: -6px; }
.pc-bub { max-width: 88%; padding: 7px 10px; border-radius: 8px; font-size: 11.5px; line-height: 1.55; }
.pc-bub.u { align-self: flex-end; background: var(--pm-surface); }
.pc-bub.a { align-self: flex-start; background: var(--pm-teal-50); }
.pc-brands { display: flex; gap: 4px; flex-wrap: wrap; }
.pc-brands span { font-family: var(--pm-latin); font-size: 8.5px; font-weight: 700; color: var(--pm-ink-sub); border: 1px solid var(--pm-line); border-radius: 2px; padding: 1px 4px; }
.pc-recap { background: var(--pm-teal-50); border-radius: 4px; padding: 7px 9px; }
.pc-recap strong { display: block; font-weight: 600; font-size: 11.5px; }
.pc-recap em { font-style: normal; font-size: 10px; color: var(--pm-ink-sub); }
.pc-secure { font-size: 10px; color: var(--pm-ink-sub); text-align: center; }

/* 機能カードの並び：少し広く */
.sg-set .sg-item { width: 272px; }
@media (max-width: 1000px) { .sg-set .sg-item { width: 256px; } }

/* ---------------- 紹介動画（ヒーローの「1分半で見る」） ---------------- */
.hero-video-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; color: var(--black); cursor: pointer; font-family: inherit; }
.hero-video-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.hvb-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--black); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding-left: 2px; flex: none; }
.iv-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(17,17,17,.62); display: flex; align-items: center; justify-content: center; padding: 24px; }
.iv-panel { width: min(1120px, 100%); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.iv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; }
.iv-title { font-size: 14px; font-weight: 600; }
.iv-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #F3F3F0; color: var(--black); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iv-close:hover { background: #E8E8E4; }
.iv-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #F3F3F0; min-height: 0; }
.iv-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 14px 20px; font-size: 12px; color: var(--text-dim); }
@media (max-width: 640px) {
  .iv-backdrop { padding: 12px; }
  .iv-foot { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .iv-foot .btn { padding: 11px 22px; font-size: 13px; }
}

/* ---------- Flow — 導入の流れ ---------- */
.flow-steps{list-style:none;margin:0 auto;padding:0;max-width:1040px;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;counter-reset:none}
.flow-step{position:relative;padding:22px 20px 24px;background:#fff;border-radius:14px}
.flow-step:not(:last-child)::after{content:"";position:absolute;top:38px;right:-14px;width:8px;height:8px;border-top:1.5px solid var(--brand-green,#6FAF2A);border-right:1.5px solid var(--brand-green,#6FAF2A);transform:rotate(45deg)}
.flow-step .fs-num{font-family:var(--font-en);font-size:11px;font-weight:500;letter-spacing:.12em;color:var(--green-text,#4A8A1C);margin-bottom:12px}
.flow-step .fs-t{font-size:16px;font-weight:500;line-height:1.5;color:var(--black,#1A1D19);margin-bottom:8px}
.flow-step .fs-b{font-size:12.5px;line-height:1.85;color:var(--text-dim,#686E68)}
.flow-after{max-width:1040px;margin:24px auto 0;text-align:center;font-size:13px;line-height:1.8;color:var(--text-dim,#686E68)}
@media (max-width:900px){
  .flow-steps{grid-template-columns:1fr 1fr;gap:14px}
  .flow-step:not(:last-child)::after{display:none}
}
@media (max-width:540px){
  .flow-steps{grid-template-columns:1fr;gap:10px}
  .flow-step{padding:18px 18px 20px}
  .flow-after{text-align:left}
}

/* ---------- Proof — 数字の枠と注記の間隔 ---------- */
.proof-grid .proof-cell{border-radius:0 !important}
.proof-grid{margin-bottom:0}
.proof-source{margin:14px 0 56px;line-height:1.7}
@media (max-width:540px){
  .proof-grid{grid-template-columns:1fr 1fr}
  .proof-grid .proof-cell{padding:24px 16px 22px;border-bottom:none;border-right:0.5px solid var(--border-subtle)}
  .proof-grid .proof-cell:nth-child(2n){border-right:none}
  .proof-grid .proof-cell:nth-child(-n+2){border-bottom:0.5px solid var(--border-subtle)}
  .proof-grid .proof-label{margin-bottom:12px}
  .proof-grid .proof-num{font-size:40px}
  .proof-grid .proof-unit{font-size:15px}
  .proof-grid .proof-note{font-size:11px;text-wrap:pretty}
  .proof-source{text-align:left;margin:12px 0 40px}
}
/* Flow — 文節で改行し、行末に数文字だけ残さない */
.flow-step .fs-t,.flow-step .fs-b,.flow-after{word-break:auto-phrase;text-wrap:pretty}
@media (max-width:540px){
  .flow-step{display:grid;grid-template-columns:30px 1fr;column-gap:6px;padding:16px 18px 17px;border-radius:12px}
  .flow-step .fs-num{grid-row:1 / span 2;margin:3px 0 0;font-size:12px}
  .flow-step .fs-t{font-size:15px;margin-bottom:4px}
  .flow-step .fs-b{font-size:12px;line-height:1.75}
  .flow-steps{gap:8px}
  .flow-after{margin-top:18px;font-size:12.5px}
}

/* Pricing — phrase breaking + compact mobile */
#pricing .section-sub,.pv2-blurb,.pv2-caption,.aib-sub,.pricing-note{word-break:auto-phrase;text-wrap:pretty}
@media (max-width:540px){
  .pv2-blurb{min-height:0;margin-bottom:20px}
  .pv2-caption{min-height:0}
  .pv2-btn{margin-top:20px}
  .pricing-note{text-align:left;font-size:11.5px;line-height:1.8}
  .pricing-note .pricing-more{display:inline-block;margin-top:10px}
}
.aim-body{word-break:auto-phrase;text-wrap:pretty}
@media (max-width:540px){
  .aib-right{gap:10px}
  .aim-card{padding:12px 13px}
  .aim-body{font-size:11.5px;line-height:1.7}
}
/* Proof (導入事例) — phrase breaking */
#case .section-sub,.proof-note,.proof-source,.pp-t,.pp-b{word-break:auto-phrase;text-wrap:pretty}
