/* タブレット常時表示・画面案（ライト・クリーム） */
:root {
  --bg: #f3ecdc;
  --text: #3d3d3d;
  --muted: #6b6b6b;
  --accent: #4a5a6a;
  --error: #b42318;
  --error-bg: #fde8e6;
  --config-bg: #fff3cd;
  --config-text: #664d03;
  --grid-border: rgba(74, 90, 106, 0.2);
  --footer-alert: #2c2c2c;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Yu Gothic Medium", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.app {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem);
  max-width: 56rem;
  margin: 0 auto;
}

.config-banner[hidden] {
  display: none;
}

.config-banner {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.35rem;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 600;
  background: var(--config-bg);
  color: var(--config-text);
}

.config-banner code {
  font-size: 0.92em;
}

.app-dialog {
  margin: auto;
  border: 0;
  border-radius: 0.65rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  max-width: min(24rem, calc(100vw - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  font-family: inherit;
  color: var(--text);
  background: #fffdf8;
  box-shadow:
    0 0 0 1px rgba(70, 75, 86, 0.08),
    0 0.5rem 1.5rem rgba(70, 75, 86, 0.12);
}

.app-dialog::backdrop {
  background: rgba(45, 45, 45, 0.42);
}

.app-dialog__message {
  margin: 0 0 1rem;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  font-weight: 600;
  line-height: 1.55;
}

.app-dialog--error .app-dialog__message {
  color: var(--error);
}

.app-dialog--config .app-dialog__message {
  color: var(--config-text);
}

.app-dialog__actions {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.app-dialog__actions .btn {
  min-width: 5.5rem;
}

/* 音声アンロック案内：画面上部フローではなく中央の小ダイアログ */
.audio-unlock-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5000;
  margin: 0;
  max-width: min(20.5rem, calc(100vw - 1.75rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  padding: 1rem 1.2rem;
  border-radius: 0.65rem;
  text-align: center;
  line-height: 1.55;
  box-shadow:
    0 0 0 1px rgba(102, 77, 3, 0.1),
    0 0.35rem 1rem rgba(70, 75, 86, 0.14),
    0 1.25rem 2.5rem rgba(70, 75, 86, 0.12);
}

.brand-logo {
  display: block;
  height: clamp(2.5rem, 9vw, 3.75rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.time-grid {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: clamp(0.65rem, 2vw, 0.9rem) 0;
  border-bottom: 1px solid var(--grid-border);
}

.time-row:first-child {
  border-top: 1px solid var(--grid-border);
}

.time-grid dt {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 500;
  color: var(--muted);
  text-align: left;
}

.time-grid dd {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 600;
  text-align: right;
  color: var(--text);
}

.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ----- 本番 ROOM 画面（目標モック寄せ） ----- */
.screen--live {
  min-height: 100%;
  min-height: 100dvh;
  background: #f3ecdc;
}

.app--live {
  --live-header-band: clamp(4.25rem, 24vw, 9.375rem);
  --live-text: #464b56;
  --live-muted: #61646c;
  --live-line: rgba(70, 75, 86, 0.16);
  background: transparent;
  color: var(--live-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: none;
  width: 100%;
  padding: 0 clamp(0.575rem, 2.25vw, 1.4rem) clamp(1rem, 3.6vw, 1.8rem);
  padding-top: 0;
}

.live-header {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  width: 100%;
  min-height: var(--live-header-band);
  margin-bottom: 0;
  box-sizing: border-box;
  padding-top: clamp(0.75rem, 2.8vw, 1.35rem);
}

.live-brand {
  position: static;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  align-self: center;
  flex: 0 1 auto;
  width: auto;
  max-height: var(--live-header-band);
  height: auto;
  overflow: visible;
  line-height: 0;
}

.live-brand-logo {
  display: block;
  height: auto;
  max-height: var(--live-header-band);
  width: auto;
  max-width: min(18rem, 72vw, calc(var(--live-header-band) * 300 / 190));
  object-fit: contain;
  object-position: left center;
}

/* 本番 ROOM：暗色カード＋ベージュ文字（ヘッダー行では上端揃え） */
.live-room-card {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  align-self: flex-start;
  flex: 0 0 auto;
  height: var(--live-header-band);
  box-sizing: border-box;
}

.live-room-title {
  margin: 0;
  /* 上をごくわずかだけ詰める（当初の均等と、やや上寄せの中間） */
  padding: clamp(0.51rem, 1.68vw, 0.78rem) clamp(0.85rem, 3vw, 1.5rem)
    clamp(0.6rem, 1.95vw, 0.9rem);
  text-align: center;
  font-size: clamp(1.65rem, 5.2vw, 2.55rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.25;
  color: #f3ecdc;
  background: #45405a;
  border-radius: 0.3rem;
  text-transform: uppercase;
}

.live-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.app--live .live-time-grid {
  max-width: min(30rem, 92vw);
  width: 100%;
  --live-time-row-pad-y: clamp(1.5rem, 4.2vw, 2.3rem);
}

.app--live .live-time-grid .time-row {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: center;
  align-items: center;
  column-gap: clamp(1.9rem, 5vw, 3.2rem);
  padding: var(--live-time-row-pad-y) 0;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* 開始・終了の間だけ縦方向の余白を約 1/3 に（終了〜残りは従来のまま） */
.app--live .live-time-grid .time-row:first-child {
  padding-bottom: calc(var(--live-time-row-pad-y) / 3);
}

.app--live .live-time-grid .time-row:nth-child(2) {
  padding-top: calc(var(--live-time-row-pad-y) / 3);
}

/* display:grid の子でも [hidden] を確実に効かせる（一部 WebView 対策） */
.app--live .live-time-grid #liveRemainingRow[hidden] {
  display: none !important;
}

.app--live .live-time-grid dt {
  margin: 0;
  text-align: right;
  font-size: clamp(1.8rem, 4.5vw, 2.85rem);
  letter-spacing: 0.22em;
  color: var(--live-muted);
  font-weight: 500;
  line-height: 1.02;
  transform: translateY(0.06em);
}

.app--live .live-time-grid dd {
  margin: 0;
  text-align: left;
  color: var(--live-text);
  font-weight: 400;
  line-height: 1;
}

.app--live .live-time-value {
  font-size: clamp(2.85rem, 6.75vw, 4.35rem);
  letter-spacing: 0.06em;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-variant-numeric: tabular-nums;
}

.live-bottom {
  height: var(--live-header-band);
  min-height: var(--live-header-band);
  padding-top: 0;
  padding-bottom: clamp(0.65rem, 2vw, 1.15rem);
}

.app--live .live-alert-footer {
  width: 100%;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  color: var(--live-text);
  text-align: center;
}

.app--live .live-alert-line1 {
  margin: 0;
  font-size: clamp(2.35rem, 6.3vw, 3.1rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: keep-all;
  max-width: 100%;
}

.app--live .live-alert-line2 {
  color: var(--live-muted);
  font-weight: 500;
  font-size: clamp(2.55rem, 7vw, 3.35rem);
  letter-spacing: 0.1em;
}

.title-line {
  text-align: center;
  margin: clamp(0.75rem, 2.5vw, 1.1rem) 0 0;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  color: var(--muted);
}

.title-line[hidden] {
  display: none;
}

.alert-footer[hidden] {
  display: none;
}

.alert-footer {
  text-align: center;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  color: var(--footer-alert);
}

.alert-footer-line1 {
  margin: 0 0 0.35em;
  font-size: clamp(1.15rem, 3.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
}

.alert-footer-line2 {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.foot {
  width: 100%;
  padding-top: 0.25rem;
}

.hint {
  color: var(--muted);
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
  margin: 0 0 0.65rem;
  text-align: center;
}

.audio-tests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
}

.btn-label {
  color: var(--muted);
  font-size: 0.82rem;
  width: 100%;
  text-align: center;
}

.btn {
  appearance: none;
  min-height: 2.5rem;
  min-width: 5.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(74, 90, 106, 0.45);
  background: #fff;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover, .btn:focus {
  border-color: var(--accent);
  background: #fffefb;
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* ----- 設定画面 ----- */
.app--setup {
  --setup-header-rhythm: clamp(1.35rem, 4.5vw, 2.25rem);
}

.app--setup .setup-header {
  padding-top: var(--setup-header-rhythm);
  margin-bottom: calc(var(--setup-header-rhythm) + clamp(0.55rem, 1.8vw, 1.1rem));
}

.setup-header-row {
  width: 100%;
}

.app--setup .setup-header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(0.35rem, 1.5vw, 0.75rem);
}

.app--setup .setup-heading {
  grid-column: 1;
  margin: 0;
  text-align: center;
  line-height: 1.2;
  justify-self: center;
  min-width: 0;
  white-space: nowrap;
  font-size: clamp(1.2rem, 3.15vw, 1.85rem);
}

.app--setup .setup-header-right {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.setup-manual-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(2.35rem, 5.5vw, 2.75rem);
  padding: 0.4rem 0.95rem;
  flex-shrink: 0;
  border-radius: 0.35rem;
  border: 1px solid rgba(74, 90, 106, 0.38);
  background: #fff;
  color: var(--accent);
  text-decoration: none;
  font-family: inherit;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(70, 75, 86, 0.04);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.setup-manual-btn:hover,
.setup-manual-btn:focus {
  background: #fffdf8;
  color: #3d4d5c;
  border-color: rgba(74, 90, 106, 0.5);
}

.setup-manual-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 90, 106, 0.22);
}

.setup-heading {
  margin: 0;
  font-size: clamp(1.2rem, 3.8vw, 1.6rem);
  font-weight: 700;
  text-align: center;
  color: var(--accent);
}

.setup-lead {
  margin: 0.65rem 0 0;
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.setup-main {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

/* ヘッダーと同じ左端に揃える（中央寄せによる段差を解消） */
.app--setup .setup-main {
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
}

.setup-block {
  width: 100%;
}

.setup-block-title {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.app--setup .setup-section-title {
  display: block;
  margin: 0 0 0.65rem;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.field-label {
  display: block;
  font-size: clamp(0.9rem, 2.4vw, 1rem);
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.input-url {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  border: 1px solid rgba(74, 90, 106, 0.4);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--text);
}

.setup-row {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-url:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(74, 90, 106, 0.15);
}

.btn-primary {
  width: 100%;
  max-width: 22rem;
  min-height: 2.85rem;
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover, .btn-primary:focus {
  background: #3d4d5c;
  border-color: #3d4d5c;
  color: #fff;
}

.btn-icon {
  position: relative;
  min-width: 2.5rem;
  width: 2.5rem;
  min-height: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-layer--idle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-layer--busy {
  display: none;
  align-items: center;
  justify-content: center;
}

.btn-icon:not(.is-loading) .btn-icon-layer--busy {
  display: none !important;
}

.btn-icon.is-loading .btn-icon-layer--idle {
  display: none;
}

.btn-icon.is-loading .btn-icon-layer--busy {
  display: inline-flex;
}

.btn-icon-layer--success {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.btn-icon.is-success .btn-icon-layer--idle,
.btn-icon.is-success .btn-icon-layer--busy {
  display: none !important;
}

.btn-icon.is-success .btn-icon-layer--success {
  display: inline-flex;
}

.btn-icon .app-save-fab-success-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.app-calendar-board-toolbar #btnImportCalendars.is-success .btn-icon-layer--success {
  color: #202636;
}

.btn-icon.is-success .app-save-fab-success-icon {
  animation: app-save-fab-success-pop 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.btn-icon.is-success .app-save-fab-success-check {
  animation: app-save-fab-success-draw 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.12s forwards;
}

.btn-icon-svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.btn-icon-svg--save {
  color: var(--accent);
}

.btn-spinner-ring {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(74, 90, 106, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.app--setup .btn:not(:disabled):hover,
.app--setup .btn:not(:disabled):focus {
  border-color: var(--accent);
  background: rgba(74, 90, 106, 0.1);
  color: var(--text);
  outline: none;
}

.app--setup .btn:not(:disabled):focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.room-grid--loading {
  min-height: 3rem;
  align-items: center;
}

.room-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.room-loading-spinner {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid rgba(74, 90, 106, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.room-section {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
}

.room-section[hidden] {
  display: none;
}

.room-section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 700;
  color: var(--text);
}

.room-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.55rem 0.65rem;
  width: 100%;
  max-width: 100%;
}

.btn-room {
  min-width: 6.75rem;
  min-height: 2.5rem;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
}

.setup-foot {
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

.setup-foot .audio-tests {
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
}

.setup-foot .btn {
  min-width: 6.75rem;
  min-height: 2.5rem;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
}

/* アラート時：本文下・字間広め（オレンジ枠は使わない） */
body.is-alerting .alert-footer {
  padding: clamp(0.85rem, 2.5vw, 1.25rem) clamp(0.5rem, 2vw, 1rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.is-alerting .alert-footer-line1 {
  font-size: clamp(1.12rem, 3.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.55;
  color: #3d3a36;
}

body.is-alerting .alert-footer-line2 {
  font-size: clamp(0.96rem, 2.9vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* 本番のみ：長文フッタを ROOM／時計に近いスケールに */
body.is-alerting .app--live .alert-footer-line1 {
  font-size: clamp(1.9rem, 5.2vw, 2.45rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.55;
  color: var(--live-text);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: keep-all;
}

body.is-alerting .app--live .alert-footer-line2 {
  font-size: clamp(1.9rem, 5.2vw, 2.45rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--live-muted);
}

.live-setup-row {
  margin: 0.85rem 0 0;
  text-align: center;
}

.btn-text {
  appearance: none;
  border: none;
  background: none;
  color: var(--accent);
  font-size: clamp(0.82rem, 2.1vw, 0.92rem);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.35rem;
}

.btn-text:hover, .btn-text:focus {
  color: #2f3a46;
  outline: none;
}

.btn-text:focus-visible {
  box-shadow: 0 0 0 2px rgba(74, 90, 106, 0.35);
  border-radius: 0.2rem;
}

.is-selected-url {
  font-weight: 700;
  color: #2f3a46;
  text-decoration-thickness: 2px;
}

.status-chip {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 90, 106, 0.35);
  background: #fff;
}

.status-chip--alert {
  background: #fff0c9;
  border-color: #c08b2d;
}

.display-url-grid {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.display-url-item {
  background: #fff;
  border: 1px solid var(--grid-border);
  border-radius: 0.35rem;
  padding: 0.45rem 0.6rem;
}

.copy-toast {
  margin: 0.5rem 0 0;
  color: #1f6f43;
  font-size: 0.9rem;
  font-weight: 600;
}

.display-theme-10min {
  background: #fff7df;
}

.display-theme-5min {
  background: #ffeeda;
}

.display-theme-end {
  background: #ffe2e2;
}

/* ----- display.html（タブレット表示専用） ----- */
#displayBody {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  margin: 0;
  min-height: 100dvh;
  background: #fff;
  display: flex;
  flex-direction: column;
}

#displayBody .screen--live {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

#displayBody.display-state--using .screen--live,
#displayBody.display-state--soon .screen--live,
#displayBody.display-state--ended .screen--live,
#displayBody.display-theme-soon .screen--live {
  background: #fff;
}

/* アラート系：画面端の内側に細い枠（モックの赤枠に近い） */
#displayBody.display-theme-soon {
  box-shadow: inset 0 0 0 4px #e53935;
}

#displayBody.display-theme-ended {
  box-shadow: inset 0 0 0 4px #c62828;
}

#displayBody .display-app,
#displayBody .app.app--live.display-app {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: max(0.5rem, env(safe-area-inset-top, 0px))
    max(0.65rem, env(safe-area-inset-right, 0px))
    max(0.65rem, env(safe-area-inset-bottom, 0px))
    max(0.65rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.display-card {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(0.65rem, 1.8dvh + 0.35rem, 1.35rem) clamp(0.55rem, 3vw, 1.1rem)
    clamp(0.75rem, 2dvh + 0.35rem, 1.35rem);
  border: 1px solid transparent;
  box-sizing: border-box;
  gap: clamp(0.55rem, 2.2dvh, 1.2rem);
}

#displayBody.display-theme-soon .display-card,
#displayBody.display-theme-ended .display-card {
  border-color: transparent;
  box-shadow: none;
}

.display-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  margin-bottom: clamp(0.75rem, 2.4dvh, 1.25rem);
  min-width: 0;
  flex-shrink: 0;
}

.display-header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: clamp(1rem, 3vmin, 1.65rem);
  row-gap: 0.55rem;
  min-width: 0;
}

.display-room-title {
  margin: 0;
  font-size: clamp(1.2rem, min(5.6vmin, 6.5vh), 3.35rem);
  font-weight: 700;
  color: #1a237e;
  letter-spacing: 0.04em;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.display-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-size: clamp(0.78rem, min(2.85vmin, 3.35vh), 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  min-height: clamp(2rem, min(5.5vmin, 6vh), 2.85rem);
  white-space: nowrap;
  max-width: 100%;
  flex-shrink: 0;
}

#displayBody.display-theme-next .display-time-value,
#displayBody.display-state--vacant .display-time-value {
  color: #757575;
}

#displayBody.display-theme-next .display-badge,
#displayBody.display-state--vacant .display-badge {
  background: #9e9e9e;
  color: #fff;
}

#displayBody.display-theme-using .display-badge {
  background: #1e6fe0;
  color: #fff;
}

#displayBody.display-theme-soon .display-badge {
  background: #ff5722;
  color: #fff;
}

#displayBody.display-theme-ended .display-badge,
#displayBody.display-state--billing .display-badge {
  background: #c62828;
  color: #fff;
}

#displayBody.display-state--fault .display-badge {
  background: #5c5c5c;
  color: #fff;
}

.display-header-meta {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.4vmin, 0.9rem);
  flex-shrink: 0;
  color: #333;
}

.display-bell {
  display: flex;
  align-items: center;
  color: #e53935;
}

.display-bell svg {
  width: clamp(22px, min(4.5vmin, 5vh), 34px);
  height: clamp(22px, min(4.5vmin, 5vh), 34px);
}

.display-bell[hidden] {
  display: none !important;
}

.display-clock {
  font-size: clamp(0.92rem, min(3.25vmin, 3.85vh), 2.05rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.display-menu-wrap {
  position: relative;
  flex-shrink: 0;
  margin-left: clamp(0.2rem, 0.8vmin, 0.45rem);
}

.display-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.15rem, min(5vmin, 5.5vh), 2.75rem);
  height: clamp(2.15rem, min(5vmin, 5.5vh), 2.75rem);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(44, 53, 79, 0.14);
  border-radius: 0.45rem;
  background: #fff;
  color: #1f3f90;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(18, 24, 40, 0.06);
}

.display-menu-btn:hover,
.display-menu-btn:focus-visible {
  background: #f8fafe;
  border-color: rgba(15, 47, 124, 0.28);
  outline: none;
}

.display-menu-btn-icon {
  font-size: clamp(1.1rem, min(2.8vmin, 3.2vh), 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.display-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 10020;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.35rem 0;
  border: 1px solid rgba(44, 53, 79, 0.12);
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 24, 40, 0.14);
}

.display-menu[hidden] {
  display: none !important;
}

.display-menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 1rem;
  border: 0;
  background: transparent;
  color: #1f2430;
  font: inherit;
  font-size: clamp(0.85rem, min(2.5vmin, 2.8vh), 1rem);
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.display-menu-item:hover,
.display-menu-item:focus-visible {
  background: #f8fafe;
  color: #0f2f7c;
  outline: none;
}

.display-audio-test-dialog-title {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 700;
  text-align: center;
}

.display-audio-test-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.display-audio-test-actions .btn {
  width: 100%;
  min-width: 0;
}

.display-times {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
  /* メイン時刻エリア（大フォント用の縦確保） */
  min-height: clamp(38vmin, 50vh, 72vmin);
  flex: 1 1 auto;
  margin: 0;
  align-content: center;
  justify-items: stretch;
}

/*
 * 列ラッパに display:contents → 親グリッド上で「1行目ラベル3つ・2行目の値3つ」が揃う
 * （列ごと縦センターだとブロック高が異なり 残り時間 だけラベル位置がずれるため）
 */
.display-times--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr);
  grid-auto-flow: column;
}

.display-times--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  align-content: center;
}

.display-times--cols-2 > .display-time-col:not([hidden]),
.display-times--cols-3 > .display-time-col:not([hidden]) {
  display: contents;
}

.display-times--cols-2 > .display-time-col:nth-child(1) > .display-time-label,
.display-times--cols-2 > .display-time-col:nth-child(1) > .display-time-value-slot {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.display-times--cols-3 > .display-time-col:nth-child(1) > .display-time-label,
.display-times--cols-3 > .display-time-col:nth-child(1) > .display-time-value-slot,
.display-times--cols-3 > .display-time-col:nth-child(2) > .display-time-label,
.display-times--cols-3 > .display-time-col:nth-child(2) > .display-time-value-slot {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.display-times--cols-2 > .display-time-col > .display-time-label,
.display-times--cols-2 > .display-time-col > .display-time-value-slot,
.display-times--cols-3 > .display-time-col > .display-time-label,
.display-times--cols-3 > .display-time-col > .display-time-value-slot {
  padding-left: clamp(0.12rem, 1.6vmin, 0.45rem);
  padding-right: clamp(0.12rem, 1.6vmin, 0.45rem);
  box-sizing: border-box;
}

.display-times--cols-2 > .display-time-col > .display-time-label,
.display-times--cols-3 > .display-time-col > .display-time-label {
  justify-self: center;
}

.display-times--cols-2 .display-time-col .display-time-value-slot,
.display-times--cols-3 .display-time-col .display-time-value-slot {
  flex: unset;
  min-height: 0;
  align-self: stretch;
}

/* 残り時間列：一部 WebView で [hidden] が効きにくい対策 */
#displayBody #colRemaining[hidden],
#displayBody .display-time-col--remaining[hidden] {
  display: none !important;
}

/* 予約なし：開始時刻／終了時刻エリアごと非表示 */
#displayBody.display-state--vacant #displayTimes {
  display: none !important;
}

/* 次の予約：2行とも auto でラベルと時刻を近づける（親は align-content で塊ごと縦中央） */
#displayBody.display-state--next .display-times--cols-2 {
  grid-template-rows: auto auto;
  align-content: center;
}

#displayBody.display-state--next .display-times--cols-2 .display-time-value-slot {
  min-height: 0;
}

#displayBody.display-state--next .display-time-label {
  margin-bottom: clamp(0.22rem, 0.95dvh, 0.45rem);
}

/* 縦長（高さ > 幅）：開始・終了・残りを縦並び */
@media (max-aspect-ratio: 1 / 1) {
  #displayBody .display-times--cols-2,
  #displayBody .display-times--cols-3 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.65rem, 2dvh, 1.25rem);
    grid-template-columns: unset;
    grid-template-rows: unset;
    grid-auto-flow: unset;
  }

  #displayBody .display-times--cols-2 > .display-time-col:not([hidden]),
  #displayBody .display-times--cols-3 > .display-time-col:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0 clamp(0.12rem, 1.6vmin, 0.45rem) clamp(0.55rem, 1.5dvh, 0.95rem);
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  #displayBody .display-times--cols-2 > .display-time-col:not([hidden]):last-of-type,
  #displayBody .display-times--cols-3 > .display-time-col:not([hidden]):last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  #displayBody .display-times--cols-2 > .display-time-col > .display-time-label,
  #displayBody .display-times--cols-2 > .display-time-col > .display-time-value-slot,
  #displayBody .display-times--cols-3 > .display-time-col > .display-time-label,
  #displayBody .display-times--cols-3 > .display-time-col > .display-time-value-slot,
  #displayBody .display-times--cols-2 > .display-time-col:nth-child(1) > .display-time-label,
  #displayBody .display-times--cols-2 > .display-time-col:nth-child(1) > .display-time-value-slot,
  #displayBody .display-times--cols-3 > .display-time-col:nth-child(1) > .display-time-label,
  #displayBody .display-times--cols-3 > .display-time-col:nth-child(1) > .display-time-value-slot,
  #displayBody .display-times--cols-3 > .display-time-col:nth-child(2) > .display-time-label,
  #displayBody .display-times--cols-3 > .display-time-col:nth-child(2) > .display-time-value-slot {
    border-right: none;
    justify-self: center;
  }

  #displayBody .display-times--cols-2 .display-time-col .display-time-value-slot,
  #displayBody .display-times--cols-3 .display-time-col .display-time-value-slot {
    flex: 0 1 auto;
    min-height: clamp(4.5rem, 18vmin, 10rem);
    align-self: stretch;
  }
}

/* 利用中・まもなく終了・利用終了：グリッド1行目をラベルで共享するためラベル下余白のみ調整（列 flex の縦センターは不要） */
#displayBody.display-theme-using .display-time-label,
#displayBody.display-theme-soon .display-time-label,
#displayBody.display-theme-ended .display-time-label {
  margin-bottom: clamp(0.28rem, 1.05dvh, 0.52rem);
}

/* 次の予約：要素は非表示だが下段エリアの高さは確保して縦位置を揃える */
#displayBody.display-state--next #displayProgress[hidden] {
  display: block !important;
  visibility: hidden !important;
}

#displayBody.display-state--next #alertFooter[hidden] {
  display: flex !important;
  visibility: hidden !important;
}

.display-time-col {
  text-align: center;
  padding: 0 clamp(0.12rem, 1.6vmin, 0.45rem);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.display-time-col:last-child {
  border-right: 0;
}

.display-time-label {
  display: block;
  flex-shrink: 0;
  font-size: clamp(1.05rem, min(3.5vmin, 4.25vh), 1.92rem);
  font-weight: 500;
  color: #616161;
  margin-bottom: clamp(0.35rem, 1.15dvh, 0.55rem);
  line-height: 1.25;
}

.display-time-value-slot {
  flex: 1 1 auto;
  min-height: clamp(7.5rem, min(48vmin, 42vh), 24rem);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
}

/* 残り分は視認優先で大きく。開始・終了は折返し防止のため従来サイズ維持。 */
.display-time-value,
.display-remaining-min {
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.display-time-value {
  font-size: clamp(1.25rem, min(15vmin, min(12vw, 32vh)), min(9.25rem, 36vmin));
  color: #1a237e;
}

.display-remaining-min {
  font-size: clamp(1.85rem, min(22.5vmin, min(18vw, 48vh)), min(13.5rem, 54vmin));
  color: #1e6fe0;
}

.display-time-value.is-empty {
  visibility: hidden;
}

.display-times--empty .display-time-value {
  visibility: hidden;
}

.display-remaining-suffix {
  font-size: clamp(1.15rem, min(7.5vmin, min(12vw, 9vh)), min(3.75rem, 18vmin));
  font-weight: 600;
  color: #1a237e;
  margin-left: 0.06em;
  flex-shrink: 0;
  line-height: 1;
  transform: translateY(clamp(3px, 0.18em, 8px));
}

#displayBody.display-theme-using .display-remaining-suffix {
  color: #1a237e;
}

.display-remaining-min--zero,
#displayBody.display-theme-ended .display-remaining-min {
  color: #c62828 !important;
}

#displayBody.display-theme-soon .display-remaining-min {
  color: #ff5722 !important;
}

#displayBody.display-theme-soon .display-remaining-suffix {
  color: #333;
}

.display-time-value-slot--remaining {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.06em;
  max-width: 100%;
  padding-inline: clamp(0, 1.5vmin, 0.35rem);
  box-sizing: border-box;
}

.display-progress {
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
  margin: clamp(0.35rem, 1.5dvh, 0.85rem) 0 clamp(1rem, 3.5dvh, 2rem);
}

.display-progress-track {
  position: relative;
  height: clamp(14px, min(2.8vh, 3.2vmin), 28px);
  background: #e0e0e0;
  border-radius: 999px;
  overflow: visible;
}

.display-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #1e6fe0;
  transition: width 0.35s ease-out;
}

.display-progress-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: clamp(16px, min(3.5vw, 4.5vh), 28px);
  height: clamp(16px, min(3.5vw, 4.5vh), 28px);
  margin-left: 0;
  border-radius: 50%;
  background: #1e6fe0;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: left 0.35s ease-out;
}

#displayBody.display-theme-soon .display-progress-fill,
#displayBody.display-theme-soon .display-progress-knob {
  background: #ff5722;
}

#displayBody.display-theme-ended .display-progress-fill,
#displayBody.display-theme-ended .display-progress-knob {
  background: #c62828;
}

.display-thanks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: clamp(0.65rem, 1.8dvh, 0.95rem) clamp(0.85rem, 2.2dvh, 1.15rem);
  border-radius: 12px;
  background: #eceff1;
  color: #263238;
  border: 1px solid #cfd8dc;
  margin-top: 0;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  text-align: center;
}

.display-thanks[hidden] {
  display: none !important;
}

.display-thanks-icon {
  flex-shrink: 0;
  width: clamp(1.65rem, min(4vmin, 5vh), 2.35rem);
  height: clamp(1.65rem, min(4vmin, 5vh), 2.35rem);
  border-radius: 50%;
  background: #1976d2;
  color: #fff;
  font-size: clamp(0.95rem, min(2.5vmin, 3vh), 1.35rem);
  font-weight: 700;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.display-thanks-text {
  margin: 0;
  font-size: clamp(1rem, min(3.1vw, 3.9vh), 1.85rem);
  font-weight: 600;
  text-align: center;
}

.display-alert-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.8vmin, 0.85rem);
  flex-wrap: wrap;
  padding: clamp(0.85rem, 2.2dvh, 1.25rem) clamp(0.85rem, 2.8vw, 1.35rem);
  border-radius: 12px;
  margin-top: 0;
  text-align: center;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.display-alert-copy {
  min-width: 0;
  flex: 0 1 auto;
  text-align: center;
}

.display-alert-panel[hidden] {
  display: none !important;
}

#displayBody.display-theme-soon .display-alert-panel {
  background: #ffebee;
  border: 1px solid rgba(229, 57, 53, 0.45);
}

#displayBody.display-theme-ended .display-alert-panel {
  background: #ffebee;
  border: 1px solid rgba(198, 40, 40, 0.25);
}

.display-alert-icon {
  flex-shrink: 0;
  width: clamp(2rem, min(4.5vmin, 5.5vh), 2.75rem);
  height: clamp(2rem, min(4.5vmin, 5.5vh), 2.75rem);
  margin-top: 0;
  border-radius: 4px;
  background: #ff5722;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1rem, min(2.5vmin, 3vh), 1.45rem);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#displayBody.display-theme-ended .display-alert-icon {
  background: #c62828;
}

.display-alert-line1 {
  margin: 0;
  font-size: clamp(1.08rem, min(3.7vw, 4.6vh), 2.35rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

#displayBody.display-theme-soon .display-alert-line1 {
  color: #e65100;
}

#displayBody.display-theme-ended .display-alert-line1 {
  color: #b71c1c;
}

#displayBody.display-state--fault .display-card {
  border-color: rgba(0, 0, 0, 0.12);
}

.display-exit-capture-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 24, 32, 0.72);
  pointer-events: none;
}

.display-exit-capture-overlay[hidden] {
  display: none !important;
}

.display-exit-capture-overlay-text {
  margin: 0;
  max-width: 28rem;
  text-align: center;
  font-size: clamp(1.05rem, 3.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}

.display-camera-test-dialog .app-dialog-panel {
  max-width: 32rem;
}

.display-camera-test-hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted, #5a6270);
}

.display-camera-test-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.display-camera-select {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.65rem;
  font-size: 1rem;
}

.display-camera-preview {
  display: block;
  width: 100%;
  max-height: 240px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #111;
  object-fit: cover;
}

.display-camera-test-result {
  margin-bottom: 1rem;
}

.display-camera-test-result[hidden] {
  display: none !important;
}

.display-camera-test-result-label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #5a6270);
}

.display-camera-test-preview-img {
  display: block;
  width: 100%;
  max-height: 240px;
  border-radius: 8px;
  background: #111;
  object-fit: contain;
}

.display-camera-test-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-exit-records-page .app-shell-page-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.app-exit-records-page .app-exit-records-head-row .app-shell-page-title {
  margin-bottom: 0;
}

.app-exit-records-page .app-exit-records-head-text {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.app-exit-records-page .app-exit-records-head-text .app-shell-page-title {
  min-width: 0;
}

.app-exit-records-page .app-shell-page-title:has(.app-option-icon) {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.app-exit-records-page .app-shell-page-title .app-option-icon {
  transform: translateY(0.12em);
}

.app-exit-records-page .app-board-head-actions .lp-google-btn--icon-only {
  min-width: 3rem;
  width: 3rem;
  padding: 0;
  gap: 0;
  justify-content: center;
}

.app-exit-records-page .app-board-head-actions .lp-google-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex: 0 0 auto;
}

.app-exit-records-page #btnExitRecordsRefresh .btn-spinner-ring {
  border-color: rgba(44, 53, 79, 0.18);
  border-top-color: #202636;
}

.app-exit-records-page #btnExitRecordsRefresh:disabled {
  cursor: wait;
}

.app-exit-records-page .app-exit-records-intro {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted, #5a6270);
}

.app-exit-records-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.app-exit-record-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
}

.app-exit-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.app-exit-record-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.app-exit-record-type {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #5a6270);
}

.app-exit-record-time {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.app-exit-record-view-btn {
  flex: 0 0 auto;
  min-width: 4.25rem;
  max-width: 5rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.app-exit-record-image {
  width: 100%;
  max-width: min(100%, 520px);
  height: auto;
  max-height: min(70vh, 400px);
  object-fit: contain;
  border-radius: 8px;
  background: #e8e8ec;
}

.app-exit-record-image[hidden] {
  display: none;
}

.app-exit-record-image--zoomable:not([hidden]) {
  cursor: zoom-in;
}

.app-exit-record-image--zoomable:focus-visible {
  outline: 2px solid #1565c0;
  outline-offset: 2px;
}

.app-exit-record-image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.app-exit-records-empty {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted, #5a6270);
}

.app-cal-th-records {
  width: 3.25rem;
  text-align: center !important;
  white-space: nowrap;
}

.app-calendar-records-td {
  text-align: center !important;
  vertical-align: middle;
}

.app-calendar-records-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 0;
  color: #0f2f7c;
  border-radius: 0.35rem;
}

.app-calendar-records-btn svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.app-calendar-records-btn:hover,
.app-calendar-records-btn:focus {
  color: #1f3f90;
  background: rgba(15, 47, 124, 0.08);
}

.app-cal-th-guide {
  width: 3.25rem;
  min-width: 3.25rem;
  text-align: center !important;
  white-space: nowrap;
}

.app-calendar-guide-td {
  text-align: center !important;
  vertical-align: middle;
}

.app-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  color: var(--app-calendar-kpi-blue, #3b82f6);
}

.app-option-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}

.app-calendar-guide-btn.is-disabled .app-option-icon-svg,
.app-calendar-records-btn.is-disabled .app-option-icon-svg {
  color: var(--app-calendar-kpi-blue, #3b82f6);
  opacity: 0.55;
}

.app-exit-support-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.app-exit-support-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.app-exit-support-toolbar-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
}

.app-calendar-support-btn-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-calendar-support-btn-wrap .app-calendar-guide-btn.is-disabled,
.app-calendar-support-btn-wrap .app-calendar-records-btn.is-disabled {
  pointer-events: none;
}

.app-calendar-guide-btn.is-disabled,
.app-calendar-records-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.app-calendar-guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 0;
  color: #0f2f7c;
  border-radius: 0.35rem;
}

.app-calendar-guide-btn svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.app-calendar-guide-btn:hover,
.app-calendar-guide-btn:focus {
  color: #1f3f90;
  background: rgba(15, 47, 124, 0.08);
}

/* ----- LP ----- */
.lp-page {
  --lp-header-offset: 6.25rem;
  background: #f2f2f4;
  color: #1f2430;
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", "Yu Gothic Medium", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  padding-top: var(--lp-header-offset);
}

.lp-page {
  scroll-behavior: smooth;
}

.lp-page main [id] {
  /* 固定ヘッダー分 + 見出しとの視覚的な余白（JSスクロールと共通） */
  scroll-margin-top: calc(var(--lp-header-offset) + 0.5rem);
}

.lp-wrap {
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
}

.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(44, 53, 79, 0.08);
  backdrop-filter: saturate(120%) blur(6px);
}

.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.18rem 0 0.1rem;
}

.lp-logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  padding: 0.18rem 0.2rem 0.2rem;
}

.lp-logo-brand-img {
  width: 3.15rem;
  height: 3.15rem;
  object-fit: contain;
}

.lp-logo-brand-texts {
  display: grid;
}

.lp-logo-brand-title {
  color: #0f2f7c;
  font-size: clamp(1.45rem, 2.55vw, 2.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.lp-logo-brand-sub {
  color: #5f687a;
  font-size: clamp(0.72rem, 1.1vw, 0.96rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.lp-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(46rem, 62%);
  border-top: 1px solid rgba(44, 53, 79, 0.09);
  background: #fff;
}

.lp-nav a:first-child {
  border-left: 1px solid rgba(44, 53, 79, 0.09);
}

.lp-nav a,
.lp-nav button.lp-nav-oauth-modal-trigger {
  color: #5d667c;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 6.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.48rem;
  border-right: 1px solid rgba(44, 53, 79, 0.09);
  background: #fff;
  border-bottom: 4px solid transparent;
}

.lp-nav button.lp-nav-oauth-modal-trigger {
  margin: 0;
  width: 100%;
  cursor: pointer;
  border-top: none;
  border-left: none;
  border-bottom: 4px solid transparent;
  -webkit-appearance: none;
  appearance: none;
}

.lp-nav a:hover,
.lp-nav a:focus,
.lp-nav button.lp-nav-oauth-modal-trigger:hover,
.lp-nav button.lp-nav-oauth-modal-trigger:focus-visible {
  color: #1f3f90;
}

.lp-nav-icon {
  width: 34px;
  height: 34px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 1;
}

.lp-nav-label {
  line-height: 1.15;
}

.lp-nav-icon--scene {
  background-image: url("images/nav-features.png");
}

.lp-nav-icon--features {
  background-image: url("images/nav-scene.png");
}

.lp-nav-icon--pricing {
  background-image: url("images/nav-pricing.png");
}

.lp-nav-icon--manual {
  background-image: url("images/nav-manual.png");
}

.lp-nav-icon--faq {
  background-image: url("images/nav-faq.png");
}

.lp-nav-icon--login {
  background-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-nav-icon--login img {
  display: block;
  width: 22px;
  height: 22px;
}

.lp-nav a.is-current,
.lp-nav button.lp-nav-oauth-modal-trigger.is-current {
  color: #5d667c;
  border-bottom-color: transparent;
  background: #fff;
}

.lp-nav-actions {
  margin-left: auto;
}

.lp-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #1a1f2e;
  color: #fff;
  background: #121828;
  font-size: 0.9rem;
  font-weight: 700;
}

.lp-hero {
  padding: 0;
}

.lp-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 20rem);
  gap: 0;
  align-items: stretch;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(18, 24, 40, 0.1);
}

.lp-hero-visual-card {
  position: relative;
  min-height: 32.5rem;
}

.lp-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.93) brightness(0.8);
}

.lp-hero-badge {
  position: absolute;
  right: clamp(1rem, 2.2vw, 1.7rem);
  top: clamp(1rem, 2.6vw, 1.7rem);
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, rgba(55, 86, 189, 0.92), rgba(45, 67, 137, 0.96));
  color: #fff;
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 8px 18px rgba(12, 22, 56, 0.45);
}

.lp-hero-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.2rem, 3.2vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 70% 18%, rgba(77, 110, 220, 0.34), transparent 44%),
    linear-gradient(90deg, rgba(8, 12, 24, 0.7), rgba(8, 12, 24, 0.2));
}

.lp-hero-kicker {
  margin: 0 0 0.6rem;
  color: #e6e9f4;
  font-size: clamp(0.84rem, 1.7vw, 1rem);
  font-weight: 600;
}

.lp-hero-overlay h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 5.6vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: 0.015em;
  font-weight: 800;
}

.lp-hero-overlay p {
  margin: 1.65rem 0 0;
  color: #f2f5fb;
  font-size: clamp(1.16rem, 2.2vw, 1.62rem);
  line-height: 1.42;
  font-weight: 700;
}

.lp-hero-facilities {
  margin: 1.35rem 0 0;
}

.lp-hero-facilities-label {
  margin: 0 0 0.55rem;
  color: rgba(235, 239, 250, 0.88);
  font-size: clamp(0.72rem, 1.4vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lp-facility-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem 0.45rem;
}

.lp-facility-chips li {
  margin: 0;
  padding: 0.32rem 0.65rem;
  font-size: clamp(0.72rem, 1.55vw, 0.82rem);
  font-weight: 700;
  line-height: 1.35;
  color: #eef2ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
}

.lp-hero-cta {
  margin-top: 1rem;
}

.lp-hero-cta .btn {
  min-width: 10.5rem;
}

.lp-signup-panel {
  background: #f8f9fc;
  padding: 1.25rem 1.1rem 1.2rem;
  border-left: 1px solid rgba(44, 53, 79, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.8rem, 1.7vh, 1.15rem);
}

.lp-signup-panel h2 {
  margin: 0;
  color: #161a24;
  font-size: 1.95rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
}

.lp-signup-caption {
  margin: 0;
  color: #5d667c;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.06em;
}

.lp-auth-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.5rem, 1.15vh, 0.7rem);
}

.lp-auth-actions .lp-signup-caption {
  margin-top: clamp(1.2rem, 2.6vh, 1.75rem);
}

.lp-auth-actions > br {
  display: none;
}

.lp-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4.5rem;
  border: 1px solid rgba(44, 53, 79, 0.16);
  border-radius: 999px;
  text-decoration: none;
  color: #202636;
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.lp-page button.lp-google-btn {
  box-sizing: border-box;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lp-page button.lp-google-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 47, 124, 0.22);
}

.lp-google-btn--secondary {
  background: #f4f7fc;
  min-height: 3rem;
}

.lp-auth-actions .lp-google-btn--secondary {
  background: #fff;
  gap: 0.55rem;
}

.lp-google-btn--compact {
  min-height: 3rem;
  width: auto;
  min-width: 11rem;
  padding: 0.35rem 1rem;
}

.lp-google-btn img {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
}

.lp-google-btn-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.lp-google-btn-mainline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.lp-google-btn-subnote {
  font-size: 0.76rem;
  font-weight: 600;
  color: #6e7585;
  margin-top: 0;
}

.lp-signup-note {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  color: #6e7585;
}

.lp-signup-or {
  margin: 0.85rem 0 0.75rem;
  text-align: center;
  color: #737a89;
  font-size: 0.9rem;
}

.lp-signup-form {
  display: grid;
  gap: 0.35rem;
}

.lp-signup-form label {
  margin-top: 0.2rem;
  color: #171d2b;
  font-size: 0.85rem;
  font-weight: 700;
}

.lp-signup-form label span {
  color: #d94141;
  margin-left: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.lp-signup-form input {
  width: 100%;
  min-height: 2.8rem;
  border-radius: 0.75rem;
  border: 1px solid #d9deec;
  background: #eef1f8;
  padding: 0.58rem 0.7rem;
  font-size: 0.92rem;
  color: #222838;
}

.lp-signup-form .btn.btn-primary {
  width: 100%;
  max-width: none;
  margin-top: 0.8rem;
  border-radius: 999px;
  min-height: 2.85rem;
  font-size: 1rem;
}

.lp-login-link {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: #6e7585;
}

.lp-login-link a {
  color: #1f3f90;
  font-weight: 700;
}

.lp-intro {
  padding: 2.35rem 0 1.8rem;
}

.lp-intro h2 {
  margin: 0;
  color: #161d2f;
  font-size: clamp(1.45rem, 4.2vw, 2.2rem);
  line-height: 1.2;
  font-weight: 800;
}

.lp-intro .lp-intro-lead {
  margin: 0.85rem auto 1.35rem;
  max-width: 36rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.72;
  color: #494f61;
}

.lp-intro .lp-intro-lead strong {
  color: #252a39;
}

.lp-intro p {
  margin: 0.35rem 0 0;
  color: #2f3650;
  font-size: 1.18rem;
}

.lp-intro-sub {
  color: #535b6e !important;
  font-size: 1rem !important;
}

.lp-intro .lp-section-eyebrow {
  font-size: 0.82rem;
}

.lp-intro .lp-ops-visual {
  margin: 1rem 0 0;
}

.lp-intro .lp-ops-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.7rem;
  border: 1px solid rgba(44, 53, 79, 0.11);
  background: #fff;
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lp-section {
  padding: clamp(2.55rem, 5.8vw, 4.15rem) 0;
}

.lp-section h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.45rem, 4.2vw, 2.2rem);
  color: #161d2f;
  line-height: 1.2;
  font-weight: 800;
}

.lp-section-eyebrow {
  margin: 0 0 0.35rem;
  color: #5a6276;
  font-size: 0.92rem;
  font-weight: 600;
}

.lp-section-soft {
  background: #fff;
  border-top: 1px solid rgba(44, 53, 79, 0.08);
  border-bottom: 1px solid rgba(44, 53, 79, 0.08);
}

.lp-grid {
  display: grid;
  gap: 0.9rem;
}

.lp-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lp-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lp-worries-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.62rem;
}

@media (min-width: 40rem) {
  .lp-worries-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
  }
}

.lp-worries-list li {
  position: relative;
  margin: 0;
  padding: 0.62rem 0.72rem 0.62rem 2.05rem;
  background: rgba(44, 53, 79, 0.045);
  border: 1px solid rgba(44, 53, 79, 0.1);
  border-radius: 0.72rem;
  color: #3a4358;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.52;
}

.lp-worries-list li::before {
  content: "・";
  position: absolute;
  left: 0.85rem;
  top: 0.58rem;
  font-weight: 800;
  color: #2e4a96;
}

.lp-worries-arrow {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 1.35rem;
  color: #5f6780;
}

.lp-worries-option {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  background: rgba(15, 47, 124, 0.05);
  border: 1px solid rgba(15, 47, 124, 0.12);
  border-radius: 0.65rem;
}

.lp-worries-option-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1a1f2b;
}

.lp-worries-option-features {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4b5563;
}

.lp-worries-option-features li + li {
  margin-top: 0.3rem;
}

.lp-worries-outro {
  margin: 0.95rem 0 0 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #293041 !important;
  line-height: 1.65 !important;
}

.lp-ba-section .lp-ba-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: stretch;
  margin-top: 0.85rem;
}

.lp-ba-between {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1.85rem;
  color: rgba(44, 53, 79, 0.35);
  line-height: 1;
}

.lp-ba-arrow-icon {
  display: inline-block;
}

.lp-ba-card {
  border: 1px solid rgba(44, 53, 79, 0.11);
  border-radius: 0.9rem;
  padding: 1.05rem 1.05rem 1.15rem;
  background: #fff;
  box-shadow: 0 10px 22px rgba(18, 24, 40, 0.04);
}

.lp-ba-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  color: #1c2131;
}

.lp-ba-card--before {
  border-color: rgba(180, 90, 90, 0.22);
  background: linear-gradient(180deg, rgba(252, 240, 240, 0.55), #fff);
}

.lp-ba-card--before h3 {
  color: #8b3333;
}

.lp-ba-card--after {
  grid-column: 3;
  border-color: rgba(55, 120, 175, 0.28);
  background: linear-gradient(180deg, rgba(237, 245, 253, 0.65), #fff);
}

.lp-ba-card--after h3 {
  color: #255a82;
}

.lp-ba-ul {
  margin: 0;
  padding: 0 0 0 1.08rem;
  color: #4c5569;
  font-size: 0.95rem;
  line-height: 1.7;
}

.lp-ba-ul li {
  margin: 0.25rem 0 0;
}

.lp-ba-ul li:first-child {
  margin-top: 0;
}

.lp-steps {
  list-style: none;
  margin: 1.05rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.lp-step-card {
  margin: 0;
  border: 1px solid rgba(44, 53, 79, 0.11);
  border-radius: 0.9rem;
  padding: 1.05rem 1rem 1.12rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 24, 40, 0.045);
}

.lp-step-card h3 {
  margin: 0.42rem 0 0.4rem;
  font-size: 1.06rem;
  color: #1c2131;
  line-height: 1.35;
}

.lp-step-card > p {
  margin: 0;
  font-size: 0.93rem !important;
  color: #5a6274 !important;
  line-height: 1.65 !important;
}

.lp-step-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #3a5897;
}

.lp-video-section {
  text-align: center;
}

.lp-video-section h2 {
  margin-bottom: 0.65rem;
}

.lp-video-lead {
  margin: 0 auto 1.2rem;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #4a5266;
}

.lp-video-embed {
  position: relative;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto 1.15rem;
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(44, 53, 79, 0.12);
  box-shadow: 0 14px 32px rgba(18, 24, 40, 0.08);
  background: #1c2131;
}

.lp-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lp-voice-spotlight {
  text-align: center;
}

.lp-voice-spotlight .lp-section-eyebrow {
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.lp-voice-spotlight h2 {
  margin-bottom: 0.75rem;
}

.lp-voice-spotlight-body {
  margin: 0 auto;
  max-width: 37rem;
  color: #3f475b;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.78;
}

.lp-voice-spotlight-body strong {
  color: #25304e;
}

.lp-trust-block {
  margin: 1.05rem auto 1.25rem;
  max-width: 40rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(44, 53, 79, 0.12);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(245, 248, 255, 0.65), rgba(253, 254, 255, 0.95));
}

.lp-trust-block-title {
  margin: 0 0 0.55rem;
  text-align: center;
  font-size: 0.96rem;
  font-weight: 800;
  color: #273143;
}

.lp-trust-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.lp-trust-points li {
  position: relative;
  margin: 0;
  padding: 0.28rem 0 0.28rem 1.35rem;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.52;
  color: #474f61;
}

.lp-trust-points li::before {
  content: "✓";
  position: absolute;
  left: 0.15rem;
  top: 0.38rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: #367a53;
}

.lp-pricing-value {
  margin: 0 auto 1.2rem !important;
  max-width: 40rem !important;
  text-align: center !important;
  font-size: 0.97rem !important;
  font-weight: 600 !important;
  line-height: 1.7 !important;
  color: #4b5366 !important;
}

.lp-pricing-note {
  margin: 0.75rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #666;
}

.lp-card {
  border: 1px solid rgba(44, 53, 79, 0.11);
  border-radius: 0.9rem;
  padding: 1rem 1rem 1.05rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 24, 40, 0.045);
}

.lp-scene-no {
  margin: 0 0 0.3rem;
  color: #5c6580;
  font-size: 0.82rem !important;
  font-weight: 700;
}

.lp-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  color: #1c2131;
  line-height: 1.35;
}

.lp-card p {
  margin: 0;
  color: #5a6274;
  line-height: 1.65;
  font-size: 0.95rem;
}

.lp-price-main {
  margin: 0.25rem 0 0.55rem !important;
  font-size: 1.2rem !important;
  color: #21293e !important;
  font-weight: 700;
}

.lp-faq details {
  border: 1px solid rgba(44, 53, 79, 0.11);
  border-radius: 0.7rem;
  padding: 0.95rem 1rem;
  background: #fff;
  margin-bottom: 0.75rem;
}

.lp-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #1e2434;
  font-size: 1rem;
  list-style: none;
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary::marker {
  content: "";
}

.lp-faq details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.35rem;
  transition: transform 0.28s ease;
}

.lp-faq details[open] summary::before {
  transform: rotate(90deg);
}

.lp-faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.3s ease;
}

.lp-faq details[open] .lp-faq-answer {
  max-height: 1200px;
  opacity: 1;
}

.lp-faq-answer > p {
  overflow: hidden;
}

.lp-faq-answer > .lp-faq-answer-body {
  min-height: 0;
  overflow: hidden;
}

.lp-faq-table-wrap {
  margin-top: 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lp-faq-voice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: #5f687b;
}

.lp-faq-voice-table th,
.lp-faq-voice-table td {
  border: 1px solid rgba(44, 53, 79, 0.12);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.lp-faq-voice-table th {
  background: rgba(44, 53, 79, 0.05);
  color: #1e2434;
  font-weight: 700;
  white-space: nowrap;
}

.lp-faq-voice-table code {
  font-size: 0.82em;
  word-break: break-all;
}

.lp-faq p {
  margin: 0.6rem 0 0;
  color: #5f687b;
  line-height: 1.65;
  font-size: 0.95rem;
}

.lp-faq-visible-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(44, 53, 79, 0.1);
}

.lp-faq-visible-item:last-child {
  border-bottom: none;
}

.lp-faq-visible-q {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e2434;
  line-height: 1.55;
}

.lp-faq-q-label,
.lp-faq-a-label {
  font-weight: 700;
  color: #c45a28;
  margin-right: 0.25rem;
}

.lp-faq-visible-a {
  margin-top: 0.45rem;
}

.lp-faq-visible-a p {
  margin: 0;
  color: #5f687b;
  line-height: 1.65;
  font-size: 0.95rem;
}

.lp-faq-category {
  margin-top: 1.5rem;
}

html.app-auth-unauthenticated body > *:not(#appLoginRequired) {
  display: none !important;
}

.app-login-gate {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: #f3ecdc;
}

.app-login-gate-panel {
  max-width: 28rem;
  width: 100%;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 32px rgba(30, 36, 52, 0.08);
  text-align: center;
}

.app-login-gate-panel h1 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #1e2434;
}

.app-login-gate-panel p {
  margin: 0 0 1.25rem;
  color: #5f687b;
  line-height: 1.6;
}

.app-login-gate-panel .lp-google-btn {
  width: 100%;
  justify-content: center;
}

.lp-contact-card {
  padding: 1.35rem 1.35rem 1.5rem;
}

.lp-contact-note {
  margin: 0 0 0.95rem;
  color: #5b6376;
  font-weight: 600;
  font-size: 0.95rem;
}

.lp-contact-type-hint {
  margin-top: 0.2rem;
  margin-bottom: 0.55rem;
  font-weight: 500;
  line-height: 1.55;
}

.lp-contact-card form {
  margin: 0;
}

.lp-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1rem;
}

.lp-contact-form .full {
  grid-column: 1 / -1;
}

.lp-contact-field label {
  display: block;
  font-weight: 700;
  color: #2a3041;
  font-size: 0.97rem;
  margin: 0 0 0.32rem;
}

.lp-contact-field .lp-oauth-consent-checklabel {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #3a4252;
  cursor: pointer;
}

.lp-contact-field .lp-oauth-consent-checklabel input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  padding: 0;
  background: #fff;
}

.lp-contact-field input,
.lp-contact-field select,
.lp-contact-field textarea {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid #dde2ee;
  padding: 0.78rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  background: #f2f5fb;
  color: #1e2436;
}

.lp-contact-field textarea {
  min-height: 8.4rem;
  resize: vertical;
}

.lp-contact-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.lp-final-cta {
  text-align: center;
}

.lp-final-cta h3 {
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(1.2rem, 3.8vw, 1.72rem);
  font-weight: 800;
  line-height: 1.42;
  color: #171d2b;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.lp-final-google-btn {
  max-width: 26rem;
  margin: 0.8rem auto 0;
}

/* .lp-page button.lp-google-btn の margin:0 より詳細度高く、auto で中央寄せを効かせる */
.lp-page .lp-final-cta button.lp-google-btn.lp-final-google-btn {
  margin-block: 0.8rem 0;
  margin-inline: auto;
}

.lp-oauth-consent-dialog .lp-oauth-consent-dialog-panel {
  max-width: min(26rem, calc(100vw - 2rem));
}

.lp-oauth-consent-dialog-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f2f7c;
  line-height: 1.35;
}

.lp-oauth-consent-dialog-lead {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.65;
  color: #5a6274;
}

.lp-oauth-consent-checklist {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lp-oauth-consent-checklabel {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
  color: #3a4252;
  cursor: pointer;
}

.lp-oauth-consent-checklabel input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.lp-oauth-consent-checklabel a {
  color: #1f3f90;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.lp-oauth-consent-checklabel a:hover {
  color: #0f2f7c;
}

.lp-oauth-consent-dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.lp-oauth-consent-dialog-google {
  width: 100%;
}

.lp-oauth-consent-dialog .lp-oauth-consent-dialog-google:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lp-oauth-consent-dialog-close-form {
  margin: 0;
  display: flex;
  justify-content: center;
}

.lp-oauth-consent-dialog-cancel {
  margin: 0;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #5a6274;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lp-oauth-consent-dialog-cancel:hover,
.lp-oauth-consent-dialog-cancel:focus-visible {
  color: #3a4252;
}

.lp-footer {
  background: #000;
  color: #fff;
  padding: 2.5rem 0 2rem;
}

.lp-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.lp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 1.35rem;
}

.lp-footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.lp-footer-nav a:hover {
  text-decoration: underline;
}

.lp-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.lp-footer-brand-link:hover .lp-footer-brand-title {
  text-decoration: underline;
}

.lp-footer-brand-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.lp-footer-brand-title {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lp-footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.88;
  letter-spacing: 0.04em;
}

.lp-legal-wrap {
  max-width: 48rem;
}

.lp-legal-wrap h1 {
  margin: 0 0 1.15rem;
  color: #1a2030;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.legal-doc {
  padding: 1.25rem 1.15rem 1.35rem;
}

.legal-doc h2 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
  color: #1a2030;
  line-height: 1.4;
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc p {
  margin: 0;
  color: #5a6274;
  line-height: 1.7;
  font-size: 0.95rem;
}

.legal-doc p + p {
  margin-top: 0.65rem;
}

.legal-doc-lead {
  font-size: 0.9rem !important;
  color: #4a5162 !important;
  padding: 0.65rem 0.85rem !important;
  background: #f7f8fc;
  border-radius: 0.5rem;
  border: 1px solid rgba(44, 53, 79, 0.08);
}

.legal-doc-lead + p {
  margin-top: 0.75rem;
}

.lp-footer-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}

.legal-doc ol,
.legal-doc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
  color: #5a6274;
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal-doc ol ol {
  margin-top: 0.45rem;
  margin-bottom: 0.15rem;
  list-style-type: lower-alpha;
}

.legal-doc li + li {
  margin-top: 0.35rem;
}

/* お問い合わせ・法務ページ: 固定ヘッダー用の body 上余白は不要（LP と同じヘッダー帯の見た目に揃える） */
.lp-page.lp-contact-page {
  padding-top: 0;
}

.lp-contact-page .lp-header {
  position: sticky;
  top: 0;
}

/* 法務/お問い合わせページは本文幅（48rem）にTopバー幅を揃える */
.lp-contact-page .lp-header-inner.lp-contact-header-inner {
  width: min(48rem, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

/* 戻るはコンテンツ幅左端、ブランドはビューポート中央（左右対称の空列で相殺） */
.lp-contact-page .lp-header-inner.lp-contact-header-inner {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0;
  justify-content: stretch;
}

.lp-contact-page .lp-header-inner.lp-contact-header-inner > .lp-logo-brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.lp-contact-page .lp-header-inner.lp-contact-header-inner > .google-manager-topbar-back {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.lp-contact-main {
  padding-top: 1.2rem;
}

.lp-contact-wrap {
  max-width: 52rem;
}

.lp-contact-wrap h1 {
  margin: 0 0 1.15rem;
  color: #1a2030;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.lp-contact-page .lp-contact-actions {
  justify-content: center;
}

.lp-contact-page .lp-contact-actions .lp-google-btn {
  min-height: 2.9rem;
  min-width: 12.5rem;
  padding-inline: 1.4rem;
}

@media (max-width: 1100px) {
  .lp-hero {
    padding-top: 0;
  }

  .lp-hero-shell {
    grid-template-columns: 1fr;
  }

  .lp-signup-panel {
    border-left: 0;
    border-top: 1px solid rgba(44, 53, 79, 0.1);
  }

  .lp-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-hero-badge {
    font-size: 1rem;
  }
}

@media (max-width: 860px) {
  .lp-page {
    --lp-header-offset: 5.35rem;
  }

  .lp-header-inner {
    display: block;
    padding-top: 0.45rem;
  }

  .lp-contact-page .lp-header-inner.lp-contact-header-inner {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    align-items: center;
    gap: 0;
    justify-items: stretch;
    padding-top: 0.18rem;
    padding-bottom: 0.1rem;
  }

  .lp-logo-brand {
    width: 100%;
    justify-content: center;
    padding-bottom: 0.55rem;
  }

  .lp-contact-page .lp-logo-brand {
    width: auto;
    max-width: 100%;
    padding-bottom: 0;
  }

  .lp-logo-brand-img {
    width: 2.6rem;
    height: 2.6rem;
  }

  .lp-logo-brand-sub {
    letter-spacing: 0.04em;
  }

  .lp-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .lp-nav a,
  .lp-nav button.lp-nav-oauth-modal-trigger {
    min-height: 4.7rem;
    font-size: 0.79rem;
    gap: 0.35rem;
    border-bottom-width: 3px;
  }

  .lp-nav-icon {
    width: 30px;
    height: 30px;
  }

  .lp-hero {
    padding-top: 0;
  }

  .lp-page main [id] {
    scroll-margin-top: calc(var(--lp-header-offset) + 0.5rem);
  }

  .lp-hero-visual-card {
    /* オーバーレイ内のチップ等が signup パネルへはみ出さないよう余裕とクリップ */
    min-height: clamp(26rem, 88vw, 34rem);
    overflow: hidden;
  }

  .lp-hero-overlay {
    padding-inline: clamp(1rem, 5vw, 1.85rem);
    padding-block: clamp(1rem, 3.2vw, 2rem);
  }

  .lp-hero-overlay h1 {
    font-size: clamp(1.65rem, 6.2vw, 2.35rem);
  }

  .lp-hero-badge {
    right: 0.8rem;
    top: 0.8rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.84rem;
  }

  .lp-hero-overlay p {
    font-size: clamp(1rem, 3.4vw, 1.4rem);
  }

  .lp-intro {
    padding: 1.6rem 0 1.35rem;
  }

  .lp-grid-4,
  .lp-grid-2 {
    grid-template-columns: 1fr;
  }

  .lp-ba-section .lp-ba-columns {
    grid-template-columns: 1fr;
  }

  .lp-ba-card--after {
    grid-column: auto;
  }

  .lp-ba-between {
    padding: 0.2rem 0;
    font-size: 1.35rem;
  }

  .lp-steps {
    grid-template-columns: 1fr;
  }

  .lp-contact-form {
    grid-template-columns: 1fr;
  }
}

/* ----- Google 連携管理（LP 寄せ） ----- */
.google-manager-page {
  /* LP の .lp-wrap と同じ幅感: min(76rem, calc(100% - 2rem)) */
  --gm-content-max: min(76rem, calc(100% - 2rem));
  --gm-pad-x: clamp(1rem, 4vw, 2rem);
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: #f2f2f4;
  color: #1f2430;
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", "Yu Gothic Medium", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.google-manager-page .lp-section-eyebrow {
  margin: 0 0 0.35rem;
  color: #5a6276;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.google-manager-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(44, 53, 79, 0.08);
  backdrop-filter: saturate(120%) blur(6px);
}

.google-manager-topbar-inner {
  box-sizing: border-box;
  max-width: var(--gm-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--gm-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gm-pad-x), env(safe-area-inset-right, 0px));
  padding-bottom: 0.55rem;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.google-manager-topbar-back {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  border-radius: 0.4rem;
  border: 1px solid rgba(44, 53, 79, 0.14);
  background: #fff;
  color: #0f2f7c;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.google-manager-topbar-back:hover,
.google-manager-topbar-back:focus {
  background: #f8fafe;
  color: #1f3f90;
  border-color: rgba(44, 53, 79, 0.22);
}

.google-manager-topbar-back:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 47, 124, 0.2);
}

.google-manager-topbar-back svg {
  width: 1.25rem;
  height: 1.25rem;
}

.google-manager-topbar-title {
  margin: 0;
  min-width: 0;
  font-size: clamp(0.92rem, 3vw, 1.1rem);
  font-weight: 700;
  color: #0f2f7c;
  line-height: 1.35;
  text-align: center;
}

.google-manager-topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  flex-shrink: 0;
  border-radius: 0.4rem;
  border: 1px solid rgba(44, 53, 79, 0.14);
  background: #fff;
  color: #0f2f7c;
  text-decoration: none;
  font-family: inherit;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(18, 24, 40, 0.04);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.google-manager-topbar-action:hover,
.google-manager-topbar-action:focus {
  background: #f8fafe;
  color: #1f3f90;
  border-color: rgba(44, 53, 79, 0.22);
}

.google-manager-topbar-action:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 47, 124, 0.2);
}

.google-manager-main {
  box-sizing: border-box;
  max-width: var(--gm-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--gm-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gm-pad-x), env(safe-area-inset-right, 0px));
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
  padding-top: calc(max(0.35rem, env(safe-area-inset-top, 0px)) + 4.35rem);
}

.google-manager-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.google-manager-page .google-manager-loading {
  margin: 0;
  color: #5a6274;
}

.google-manager-page #msgError.google-manager-error {
  display: none;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 0.55rem;
  font-size: clamp(0.88rem, 2.2vw, 0.98rem);
  font-weight: 600;
  line-height: 1.45;
  background: var(--error-bg);
  color: var(--error);
}

.google-manager-page #panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.google-manager-page #panel[hidden] {
  display: none !important;
}

.google-manager-card {
  margin: 0;
}

.google-manager-card .google-manager-card-lead {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  font-weight: 700;
  color: #161d2f;
  line-height: 1.35;
}

.google-manager-page .google-manager-card .setup-section-title.google-manager-subheading {
  margin: 0 0 0.45rem;
  font-size: clamp(0.92rem, 2.2vw, 1rem);
  font-weight: 700;
  color: #1c2131;
}

.google-manager-page .google-manager-hint {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5a6274;
  line-height: 1.55;
}

.google-manager-calendar-row {
  list-style: none;
  margin: 0.35rem 0;
  padding-left: 0;
}

.google-manager-calendar-toggles {
  padding-left: 0;
}

.google-manager-calendar-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: clamp(0.92rem, 2.2vw, 1rem);
  color: #1f2430;
  line-height: 1.5;
}

.google-manager-calendar-label input {
  margin-top: 0.22rem;
  flex-shrink: 0;
}

.google-manager-calendar-toggles.google-manager-list {
  margin-left: 0;
}

.google-manager-card .google-manager-list + .setup-section-title.google-manager-subheading {
  margin-top: 1rem;
}

.google-manager-page .google-manager-subheading--spaced {
  margin-top: 1.15rem !important;
}

.google-manager-list {
  margin: 0 0 0.35rem;
  padding-left: 1.25rem;
  color: #1f2430;
  line-height: 1.6;
}

.google-manager-list:empty {
  margin-bottom: 0;
}

.google-manager-selected-info {
  margin: -0.15rem 0 0.65rem !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #5a6274 !important;
  line-height: 1.5 !important;
  word-break: break-all;
}

.google-manager-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0;
}

.google-manager-actions-row--tight {
  margin-bottom: 0.25rem;
}

.google-manager-page .google-manager-actions-row .btn-primary {
  width: auto;
  max-width: none;
  min-height: 2.65rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.google-manager-page .google-manager-actions-row .btn {
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
}

.google-manager-btn-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.google-manager-qr-frame {
  background: #fff;
  border: 1px solid rgba(44, 53, 79, 0.11);
  border-radius: 0.55rem;
  padding: 0.75rem;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 4px 14px rgba(18, 24, 40, 0.06);
}

.google-manager-qr-frame img {
  display: block;
  max-width: 100%;
  height: auto;
}

.google-manager-page .display-url-grid {
  margin-bottom: 0.85rem;
}

.google-manager-page .display-url-item {
  border-color: rgba(44, 53, 79, 0.11);
}

.google-manager-page .btn-text {
  color: #0f2f7c;
}

.google-manager-page .btn-text:hover,
.google-manager-page .btn-text:focus {
  color: #1f3f90;
}

.google-manager-page .copy-toast {
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.google-manager-page .btn:not(:disabled):hover,
.google-manager-page .btn:not(:disabled):focus {
  border-color: rgba(44, 53, 79, 0.28);
}

.google-manager-page .btn-primary:not(:disabled):hover,
.google-manager-page .btn-primary:not(:disabled):focus {
  background: #3d4d5c;
  border-color: #3d4d5c;
  color: #fff;
}

.google-manager-page button.lp-google-btn {
  box-sizing: border-box;
  margin: 0;
  gap: 0.55rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.google-manager-page button.lp-google-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.google-manager-page button.lp-google-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 47, 124, 0.22);
}

/* ----- Billing（Google 連携管理トーンに統一） ----- */
.billing-page .billing-topbar-spacer {
  visibility: hidden;
}

.billing-page .billing-main {
  max-width: min(42rem, calc(100% - 2rem));
}

.billing-page #panel[hidden] {
  display: none !important;
}

.billing-page .billing-trial-banner {
  margin-top: 0;
}

.billing-page .billing-substatus {
  margin: 0 0 0.5rem !important;
  font-size: clamp(0.94rem, 2.25vw, 1rem) !important;
  font-weight: 600 !important;
  color: #1f2430 !important;
}

.billing-page .billing-breakdown {
  margin: 0 0 0.75rem;
}

.billing-page .billing-breakdown-list {
  margin: 0;
  padding: 0.55rem 0.75rem 0.6rem;
  list-style: none;
  border: 1px solid rgba(44, 53, 79, 0.12);
  border-radius: 0.55rem;
  background: #f8fafe;
  font-size: 0.92rem;
  font-weight: 500;
  color: #3a4252;
  line-height: 1.55;
}

.billing-page .billing-breakdown-list li + li {
  margin-top: 0.28rem;
}

.billing-page .billing-breakdown-total {
  margin-top: 0.45rem !important;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(44, 53, 79, 0.1);
  font-weight: 700;
  color: #1f2430;
}

.billing-page .billing-breakdown-note {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: #5a6274;
  line-height: 1.5;
}

.billing-page .billing-price-note {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #5a6274;
  line-height: 1.55;
}

.billing-page .billing-enterprise-note {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #5a6274;
  line-height: 1.55;
}

.billing-page .billing-actions {
  flex-direction: column;
  gap: 0.6rem;
}

.billing-page .billing-actions .btn,
.billing-page .billing-actions .btn-primary {
  width: 100%;
  max-width: none;
}

.billing-page .billing-logout {
  display: block;
  margin: 0.5rem auto 0;
}

/* ----- Settings/Billing UX flow refresh ----- */
.google-manager-summary-card {
  position: sticky;
  top: calc(max(0.35rem, env(safe-area-inset-top, 0px)) + 4.7rem);
  z-index: 2;
}

.google-manager-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.google-manager-summary-item {
  border: 1px solid rgba(44, 53, 79, 0.12);
  border-radius: 0.6rem;
  background: #f8fafe;
  padding: 0.65rem 0.75rem;
}

.google-manager-summary-label {
  margin: 0 0 0.25rem;
  color: #5a6276;
  font-size: 0.82rem;
  font-weight: 600;
}

.google-manager-summary-value {
  margin: 0;
  color: #1f2430;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.google-manager-summary-actions .btn {
  min-width: 8.2rem;
}

.google-manager-page .google-manager-summary-card .google-manager-hint {
  margin: 0;
  color: #1f2430;
}

.contract-slots-panel {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(44, 53, 79, 0.1);
}

.contract-slots-row {
  flex-wrap: wrap;
  align-items: center;
}

.contract-slots-draft-input {
  width: 4rem;
  padding: 0.45rem 0.35rem;
  text-align: center;
  border: 1px solid rgba(44, 53, 79, 0.2);
  border-radius: 0.35rem;
  font-size: 1rem;
}

.google-manager-display-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 0.9rem;
  align-items: start;
}

.google-manager-display-list-pane,
.google-manager-display-detail-pane {
  border: 1px solid rgba(44, 53, 79, 0.11);
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.75rem;
}

.google-manager-display-list-pane .display-url-grid,
.google-manager-display-detail-pane .display-url-grid {
  margin-bottom: 0;
}

.google-manager-display-list-pane .display-url-item {
  padding: 0.5rem 0.6rem;
}

.google-manager-display-detail-pane .google-manager-selected-info {
  margin-top: -0.05rem !important;
  padding: 0.55rem 0.65rem;
  border: 1px dashed rgba(44, 53, 79, 0.22);
  border-radius: 0.45rem;
  background: #fafbff;
}

.google-manager-display-detail-pane .google-manager-qr-frame {
  margin-top: 0.25rem;
}

.billing-page .billing-actions .btn-primary {
  order: -1;
}

.billing-page .billing-actions .btn {
  text-align: center;
}

@media (max-width: 980px) {
  .google-manager-summary-card {
    position: static;
  }

  .google-manager-display-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .google-manager-summary-grid {
    grid-template-columns: 1fr;
  }

  .google-manager-summary-actions .btn {
    width: 100%;
  }
}

/* ----- アプリシェル（設定・契約・アカウント）LP ヘッダー連携 ----- */
.app-shell-page {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: #f2f2f4;
  color: #1f2430;
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", "Yu Gothic Medium", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  --app-shell-max: min(76rem, calc(100% - 2rem));
  --app-shell-pad-x: clamp(1rem, 4vw, 2rem);
  --app-calendar-kpi-blue: #3b82f6;
}

.app-shell-page--billing {
  background: #f5f7fb;
}

.app-shell-page--billing #panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.app-shell-page--billing .app-billing-card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(18, 24, 40, 0.055);
}

.app-shell-header.lp-header {
  z-index: 10000;
}

.app-shell-header-inner.lp-header-inner {
  flex-wrap: nowrap;
  align-items: center;
}

.app-shell-title-row {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  width: 100%;
  min-height: 6.1rem;
  box-sizing: border-box;
}

.app-shell-header-inner.lp-header-inner .app-shell-title-brand.lp-logo-brand {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 6.1rem;
  box-sizing: border-box;
  text-align: left;
}

.app-shell-title-brand .lp-logo-brand-texts {
  align-items: flex-start;
}

.app-shell-title-row > .app-shell-header-trailing {
  flex: 0 0 auto;
  flex-direction: row;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.app-shell-title-row .app-shell-header-kpi-row {
  justify-content: flex-end;
}

.app-shell-title-row > .app-shell-menu-wrap {
  flex: 0 0 auto;
  position: relative;
}

.app-shell-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(44, 53, 79, 0.14);
  border-radius: 0.5rem;
  background: #fff;
  color: #1f3f90;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(18, 24, 40, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.app-shell-menu-btn:hover,
.app-shell-menu-btn:focus-visible {
  background: #f8fafe;
  border-color: rgba(15, 47, 124, 0.28);
  outline: none;
}

.app-shell-menu-btn-icon {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.app-shell-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 10020;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem 0;
  border: 1px solid rgba(44, 53, 79, 0.12);
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 24, 40, 0.14);
}

.app-shell-menu[hidden] {
  display: none !important;
}

.app-shell-menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 1rem;
  border: 0;
  background: transparent;
  color: #1f2430;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-shell-menu-item:hover,
.app-shell-menu-item:focus-visible {
  background: #f8fafe;
  color: #0f2f7c;
  outline: none;
}

.app-shell-menu-item.is-current,
.app-shell-menu-item[aria-current='page'] {
  color: #0f2f7c;
  background: #f0f5ff;
}

.app-shell-menu-item--logout {
  border-top: 1px solid rgba(44, 53, 79, 0.09);
  margin-top: 0.2rem;
  padding-top: 0.75rem;
  color: #8b2e2e;
}

.app-shell-menu-item--logout:hover,
.app-shell-menu-item--logout:focus-visible {
  color: #6f1f1f;
  background: #fff5f5;
}

.app-shell-header-trailing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  min-height: unset;
  box-sizing: border-box;
  gap: 0.35rem;
}

.app-shell-page .lp-logo-brand-sub.app-shell-brand-sub,
.app-shell-page .lp-logo-brand-sub.app-shell-brand-email {
  margin-top: 0.15rem;
  max-width: min(22rem, 60vw);
  font-size: clamp(0.74rem, 1.65vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0;
  color: #3d4d5c;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-shell-header-kpi.app-kpi-card {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  padding: 0.55rem 1.5rem;
  background: var(--app-calendar-kpi-blue, #3b82f6);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 14px rgba(18, 24, 40, 0.10);
  text-align: center;
}

.app-shell-header-kpi.app-shell-header-kpi--nav {
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.app-shell-header-kpi.app-shell-header-kpi--nav:hover {
  filter: brightness(1.06);
}

.app-shell-header-kpi.app-shell-header-kpi--nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.app-shell-header-kpi .app-kpi-label {
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  color: #fff;
}

.app-shell-header-kpi .app-kpi-value {
  margin: 0;
  font-size: clamp(1.2rem, 3.2vw, 1.95rem);
  color: #fff;
}

.app-kpi-value--contract-plan {
  line-height: 1.2;
}

.app-kpi-trial-remain {
  display: block;
  margin-top: 0.12rem;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
  color: inherit;
}

@media (min-width: 641px) {
  .app-kpi-trial-remain {
    display: inline;
    margin-top: 0;
    margin-left: 0.35rem;
  }
}

.app-shell-header-kpi .app-kpi-sep {
  color: rgba(255, 255, 255, 0.78);
}

.app-shell-header-kpi-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem 0.65rem;
}

@media (min-width: 641px) {
  .app-shell-header-kpi-row {
    justify-content: flex-end;
  }
}

.app-shell-header-kpi.app-shell-header-kpi--contract-plan.app-kpi-card {
  background: #1a3673;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(26, 54, 115, 0.26);
  text-align: center;
}

.app-shell-nav {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(44, 53, 79, 0.09);
  border-bottom: 1px solid rgba(44, 53, 79, 0.06);
  background: #fff;
}

.app-shell-nav a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.4rem 0.5rem;
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  font-weight: 700;
  color: #5d667c;
  text-decoration: none;
  text-align: center;
  border-right: 1px solid rgba(44, 53, 79, 0.09);
  background: #fff;
  border-bottom: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-shell-nav a:first-child {
  border-left: 1px solid rgba(44, 53, 79, 0.09);
}

.app-shell-nav a:hover,
.app-shell-nav a:focus {
  color: #1f3f90;
  background: #f8fafe;
}

.app-shell-nav a.is-current {
  color: #0f2f7c;
  border-bottom-color: #0f2f7c;
  background: #f8fafe;
}

.app-shell-main {
  flex: 1 1 auto;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--app-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
  /* TopBar 下端〜先頭カード上端の余白 */
  padding-top: calc(clamp(7.25rem, 13vw, 9.25rem) - clamp(0.625rem, 1.5vw, 0.75rem) + 0.2rem);
}

/* 契約管理: オプション適用〜 Stripe 反映待ち（全画面） */
.app-billing-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
  box-sizing: border-box;
  background: rgba(31, 36, 48, 0.42);
  backdrop-filter: blur(3px);
}

.app-billing-busy-overlay[hidden] {
  display: none !important;
}

.app-billing-busy-panel {
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 1.35rem 1.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(44, 53, 79, 0.12);
  background: #fff;
  box-shadow: 0 12px 40px rgba(18, 24, 40, 0.14);
  text-align: center;
}

.app-billing-busy-spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

.app-billing-busy-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2f7c;
  line-height: 1.45;
}

.app-billing-busy-hint {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a6274;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .app-shell-title-row {
    min-height: unset;
    padding: 0.15rem 0;
  }

  .app-shell-header-inner.lp-header-inner .app-shell-title-brand.lp-logo-brand {
    min-height: unset;
  }

  .app-shell-title-row > .app-shell-header-trailing {
    display: none;
  }

  .app-shell-title-row > .app-shell-menu-wrap {
    margin-left: auto;
  }

  .app-shell-header-kpi-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
  }

  .app-shell-header-kpi-row .app-shell-header-kpi {
    padding: 0.4rem 0.85rem;
    text-align: right;
  }

  .app-shell-header-kpi-row .app-shell-header-kpi .app-kpi-label,
  .app-shell-header-kpi-row .app-shell-header-kpi .app-kpi-value {
    text-align: right;
  }

  .app-kpi-value--contract-plan {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .app-kpi-trial-remain {
    margin-top: 0.08rem;
  }

  .app-shell-main {
    padding-top: calc(env(safe-area-inset-top, 0px) + clamp(5.75rem, 18vw, 7rem));
  }
}

.app-shell-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ----- Google OAuth コールバック（カレンダー追加 → リダイレクト戻り）：アプリシェル / LP と同トーン ----- */
.oauth-callback-page .oauth-callback-header .app-shell-header-inner {
  justify-content: flex-start;
  align-items: center;
  min-height: 6.1rem;
  flex-wrap: nowrap;
}

.oauth-callback-main {
  box-sizing: border-box;
  max-width: var(--app-shell-max, min(76rem, calc(100% - 2rem)));
  margin-left: auto;
  margin-right: auto;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
  padding-top: calc(
    6.75rem + env(safe-area-inset-top, 0px) + clamp(0.5rem, 1.5vw, 0.85rem)
  );
}

.oauth-callback-wrap {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.oauth-callback-card .lp-section-eyebrow {
  margin-bottom: 0.6rem;
}

.oauth-callback-page .oauth-callback-card .oauth-callback-msg {
  margin: 0;
  font-size: clamp(1.02rem, 2.65vw, 1.2rem);
  font-weight: 700;
  color: #161d2f;
  line-height: 1.5;
}

.oauth-callback-page .oauth-callback-card .oauth-callback-msg.oauth-callback-msg--error {
  color: var(--error);
  font-weight: 600;
}

.app-shell-loading {
  margin: 0;
  color: #5a6274;
}

.app-snackbar {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 10060;
  max-width: min(28rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.85rem 1.15rem;
  box-sizing: border-box;
  border-radius: 0.55rem;
  box-shadow: 0 6px 24px rgba(18, 24, 40, 0.18);
  transform: translateX(-50%) translateY(0.75rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-snackbar--error {
  background: var(--error-bg);
  color: var(--error);
}

.app-snackbar--success {
  background: #e8f5ee;
  color: #1f6f43;
}

.app-snackbar--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.app-snackbar--info {
  background: #f0ebe0;
  color: #4a4030;
  border: 1px solid rgba(74, 64, 48, 0.12);
}

.app-snackbar__close {
  position: absolute;
  top: 0.3rem;
  right: 0.35rem;
  margin: 0;
  padding: 0.15rem 0.35rem;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
}

.app-snackbar__close:hover,
.app-snackbar__close:focus-visible {
  opacity: 1;
}

.app-snackbar__message {
  margin: 0;
  padding-right: 1.35rem;
  font-size: clamp(0.88rem, 2.2vw, 0.98rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.app-shell-page #panel[hidden] {
  display: none !important;
}

.app-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}

.app-kpi-card {
  flex: 1 1 12rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(44, 53, 79, 0.12);
  background: linear-gradient(145deg, #fff 0%, #f8fafe 100%);
  padding: 1rem 1.15rem;
  box-shadow: 0 6px 22px rgba(18, 24, 40, 0.06);
}

.app-kpi-label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5a6276;
  letter-spacing: 0.04em;
}

.app-kpi-value {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 2.85rem);
  font-weight: 800;
  color: #0f2f7c;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.app-kpi-sep {
  margin: 0 0.15em;
  font-weight: 700;
  color: #8a93a8;
}

.app-kpi-hint {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #c45c26;
  min-height: 1.35em;
}

.app-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.app-toolbar-actions .btn {
  min-height: 2.85rem;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.app-toolbar-sub {
  margin: -0.35rem 0 0;
}

.app-board-heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.02rem, 2.6vw, 1.15rem);
  font-weight: 700;
  color: #161d2f;
}

.app-board-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.app-board-head-text {
  align-self: flex-start;
}

.app-board-head-text .lp-section-eyebrow {
  margin-top: 0;
}

.app-board-head-text .app-board-heading {
  margin-bottom: 0;
}

.app-board-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

.app-board-head-spacer {
  flex: 1 1 1.5rem;
  min-width: 0.75rem;
  align-self: stretch;
}

.app-board-save-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 0;
}

.app-board-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.5rem;
}

.app-save-status-hint {
  margin: 0;
  max-width: min(28rem, 100%);
  text-align: right;
  font-size: 0.74rem;
  font-weight: 600;
  color: #c45c26;
  min-height: 1.35em;
}

.app-save-status-hint[hidden] {
  display: none !important;
}

.app-save-status-hint.app-save-status-hint--dirty {
  color: #1565c0;
}

.app-shell-page--settings button.lp-google-btn {
  box-sizing: border-box;
  margin: 0;
  gap: 0.55rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.app-shell-page--settings button.lp-google-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.app-shell-page--settings button.lp-google-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 47, 124, 0.22);
}

.app-shell-page--settings a.lp-google-btn {
  cursor: pointer;
}

.app-shell-page--settings a.lp-google-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 47, 124, 0.22);
}

.app-calendar-board-toolbar-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  flex: 0 1 auto;
  min-width: 0;
}

.app-calendar-board-toolbar .app-calendar-btn-icon {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
}

.app-calendar-board-toolbar .lp-google-btn--icon-only {
  min-width: 3rem;
  width: 3rem;
  padding: 0;
  gap: 0;
  justify-content: center;
}

.app-calendar-board-toolbar .lp-google-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex: 0 0 auto;
}

.app-calendar-board-toolbar #btnImportCalendars .btn-spinner-ring {
  border-color: rgba(44, 53, 79, 0.18);
  border-top-color: #202636;
}

@media (max-width: 640px) {
  .app-calendar-board-toolbar .lp-google-btn--compact:not(.lp-google-btn--icon-only) {
    min-width: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .app-calendar-board-toolbar .lp-google-btn--icon-only {
    min-width: 3rem;
    width: 3rem;
    padding: 0;
  }

  .app-calendar-board-toolbar #btnConnectGoogle.lp-google-btn--compact {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
  }

  .app-calendar-board-toolbar #btnImportCalendars,
  .app-calendar-board-toolbar #btnOpenGoogleCalendar {
    flex: 0 0 auto;
  }
}

.app-shell-footer.lp-footer {
  flex-shrink: 0;
  margin-top: auto;
}

.app-calendar-board-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1rem;
  width: 100%;
}

.app-calendar-board--lapsed .app-calendar-board-toolbar,
.app-calendar-board--lapsed .app-calendar-summary-actions,
.app-calendar-board--lapsed .app-calendar-table-actions {
  display: none !important;
}

.app-shell-page--settings .app-shell-wrap {
  padding-bottom: 4.75rem;
}

.app-save-fab {
  position: fixed;
  z-index: 9990;
  left: 0;
  right: 0;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.app-save-fab[hidden] {
  display: none !important;
}

.app-save-fab-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--app-shell-max);
  margin: 0 auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  pointer-events: none;
}

.app-save-fab-inner > * {
  pointer-events: auto;
}

.app-save-fab-btn {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  max-width: 11rem;
  min-width: 6.5rem;
  min-height: 3rem;
  padding: 0.45rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: #3b82f6;
  color: #fff;
  font-size: 1.188rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 4px 14px rgba(18, 24, 40, 0.1);
}

.app-save-fab-btn .app-save-fab-spinner {
  position: absolute;
  inset: 0;
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

.app-save-fab-btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.app-save-fab-selection {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.app-save-fab-btn .app-save-fab-success {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  margin: auto;
  color: #fff;
  pointer-events: none;
}

.app-save-fab-success-icon {
  width: 1.65rem;
  height: 1.65rem;
  overflow: visible;
}

.app-save-fab-success-check {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
}

.app-save-fab-btn.is-loading .app-save-fab-btn-text,
.app-save-fab-btn.is-success .app-save-fab-btn-text {
  visibility: hidden;
}

.app-save-fab-btn.is-loading .app-save-fab-spinner {
  display: block;
}

.app-save-fab-btn.is-success .app-save-fab-success {
  display: flex;
}

.app-save-fab-btn.is-success .app-save-fab-success-icon {
  animation: app-save-fab-success-pop 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.app-save-fab-btn.is-success .app-save-fab-success-check {
  animation: app-save-fab-success-draw 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.12s forwards;
}

@keyframes app-save-fab-success-pop {
  0% {
    transform: scale(0.35);
    opacity: 0;
  }
  40% {
    transform: scale(1.12);
    opacity: 1;
  }
  65% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes app-save-fab-success-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.app-save-fab-btn:hover:not(:disabled):not(.is-loading):not(.is-success),
.app-save-fab-btn:focus-visible:not(:disabled):not(.is-loading):not(.is-success) {
  background: #2563eb;
  border-color: rgba(37, 99, 235, 0.45);
  color: #fff;
}

.app-save-fab-btn:disabled:not(.is-loading):not(.is-success) {
  opacity: 1;
  cursor: not-allowed;
  background: #8faee8;
  border-color: #7a9ed9;
  color: #f0f5ff;
  box-shadow: none;
}

.app-save-fab-btn:disabled:not(.is-loading):not(.is-success):hover,
.app-save-fab-btn:disabled:not(.is-loading):not(.is-success):focus,
.app-save-fab-btn:disabled:not(.is-loading):not(.is-success):focus-visible {
  background: #8faee8;
  border-color: #7a9ed9;
  color: #f0f5ff;
}

.app-save-fab-btn.is-loading,
.app-save-fab-btn.is-loading:disabled,
.app-save-fab-btn.is-loading:hover,
.app-save-fab-btn.is-loading:focus,
.app-save-fab-btn.is-loading:focus-visible {
  opacity: 1;
  background: #3b82f6;
  border-color: rgba(37, 99, 235, 0.3);
  color: #fff;
  cursor: wait;
}

.app-save-fab-btn.is-success,
.app-save-fab-btn.is-success:disabled,
.app-save-fab-btn.is-success:hover,
.app-save-fab-btn.is-success:focus,
.app-save-fab-btn.is-success:focus-visible {
  opacity: 1;
  background: #3b82f6;
  border-color: rgba(37, 99, 235, 0.3);
  color: #fff;
  cursor: default;
}

.app-shell-page--settings .app-save-fab .app-save-status-hint {
  text-align: right;
  max-width: 50%;
  min-width: 6.5rem;
}

.app-calendar-board {
  margin: 0;
}

.app-calendar-board-hint {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.55;
  color: #5a6274;
}

.app-calendar-groups {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.app-calendar-groups--busy {
  opacity: 0.55;
  pointer-events: none;
  cursor: wait;
  user-select: none;
}

.app-calendar-empty {
  margin: 0;
  color: #5a6274;
  font-weight: 500;
}

/* 連携カレンダー用アコーディオン（LP の .lp-faq / .lp-faq-answer とは別クラス） */
.app-calendar-accordion {
  border: 1px solid rgba(44, 53, 79, 0.11);
  border-radius: 0.55rem;
  background: #fff;
  padding: 0 0.65rem 0.65rem;
}

/* LP FAQ と同じ duration（開閉は google-manager.js で max-height を制御） */
.app-calendar-accordion > .app-calendar-accordion-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.3s ease;
}

.app-calendar-accordion > .app-calendar-accordion-panel > .app-calendar-accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.app-calendar-accordion-table-wrap {
  margin-top: 0.65rem;
  max-width: 100%;
  overflow-x: hidden;
}

.app-calendar-accordion > summary {
  list-style: none;
}

.app-calendar-accordion > summary::-webkit-details-marker {
  display: none;
}

.app-calendar-accordion > summary.app-calendar-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.35rem;
  transition: transform 0.28s ease;
  flex-shrink: 0;
  align-self: center;
}

.app-calendar-accordion[open] > summary.app-calendar-summary::before {
  transform: rotate(90deg);
}

.app-calendar-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 0.15rem 0.55rem;
  cursor: pointer;
  font-weight: 700;
  color: #1f2430;
}

.app-calendar-summary-title {
  flex: 1 1 10rem;
  min-width: 0;
  word-break: break-all;
}

.app-calendar-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  flex-shrink: 0;
  margin-left: 0.35rem;
}

.app-calendar-summary-btn.lp-google-btn {
  min-height: 2.1rem;
  min-width: 0;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border-radius: 0.45rem;
}

.app-calendar-summary-btn--disconnect {
  color: var(--error);
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(253, 232, 230, 0.7);
}

.app-calendar-summary-btn--disconnect:disabled {
  opacity: 0.55;
}

.app-calendar-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: clamp(0.86rem, 2vw, 0.95rem);
}

.app-calendar-table th,
.app-calendar-table td {
  border: 1px solid rgba(44, 53, 79, 0.1);
  padding: 0.5rem 0.55rem;
  vertical-align: middle;
  text-align: left;
}

.app-calendar-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #3a4252;
}

.app-cal-th-check {
  width: 3.25rem;
  text-align: center !important;
}

.app-cal-th-calendar {
  width: auto;
}

.app-cal-th-url {
  width: 2.75rem;
  text-align: center !important;
}

.app-calendar-name-td {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.app-calendar-name-link {
  color: #0f2f7c;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 47, 124, 0.35);
  text-underline-offset: 0.12em;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.app-calendar-name-link:hover,
.app-calendar-name-link:focus {
  color: #1f3f90;
  text-decoration-color: rgba(31, 63, 144, 0.55);
}

.app-cal-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
  accent-color: #3b82f6;
}

.app-cal-th-qr {
  width: 3rem;
  text-align: center !important;
}

.app-calendar-table td:first-child {
  text-align: center;
}

.app-calendar-table td:last-child {
  text-align: center;
}

.app-calendar-url-td {
  vertical-align: middle;
  text-align: center !important;
}

@media (max-width: 640px) {
  .app-calendar-table th,
  .app-calendar-table td {
    padding: 0.4rem 0.35rem;
  }

  .app-cal-th-check {
    width: 2.75rem;
  }

  .app-cal-th-url {
    width: 2.5rem;
  }

  .app-cal-th-qr {
    width: 2.65rem;
  }
}

.app-calendar-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  color: #0f2f7c;
  border-radius: 0.35rem;
}

.app-calendar-copy-btn:hover,
.app-calendar-copy-btn:focus {
  color: #1f3f90;
  background: rgba(15, 47, 124, 0.08);
}

.app-calendar-url-link {
  word-break: break-all;
  color: #0f2f7c;
  font-weight: 600;
}

.app-calendar-url-empty {
  color: #a0a8b8;
}

.app-calendar-qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: #0f2f7c;
}

.app-calendar-qr-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.app-dialog {
  max-width: calc(100% - 2rem);
  border: none;
  padding: 0;
  background: transparent;
}

.app-dialog::backdrop {
  background: rgba(18, 24, 40, 0.45);
}

.app-dialog-panel {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 18px 48px rgba(18, 24, 40, 0.18);
  max-width: 22rem;
}

.app-qr-dialog .app-dialog-panel {
  max-width: min(33rem, calc(100vw - 2rem));
}

/* 記録一覧の拡大表示（.app-dialog-panel の 22rem 制限より後に上書き） */
.app-exit-record-image-dialog.app-dialog {
  max-width: min(96vw, 960px);
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.app-exit-record-image-dialog .app-dialog-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  box-sizing: border-box;
  width: min(92vw, 900px);
  max-width: min(92vw, 900px);
  padding: 1rem 1.15rem 1.15rem;
}

.app-exit-record-image-dialog-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.app-exit-record-image-dialog-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(86vh, 82dvh);
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.app-qr-dialog-title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f2f7c;
  word-break: break-word;
}

.app-qr-dialog-intro {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.5;
  color: #5a6274;
}

.app-qr-dialog-url {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3a4252;
  word-break: break-all;
  line-height: 1.45;
}

.app-qr-dialog-qr {
  margin: 0 0 1rem;
  display: flex;
  justify-content: center;
}

.app-qr-dialog-qr img {
  border: 1px solid rgba(44, 53, 79, 0.12);
  border-radius: 0.45rem;
}

.app-account-card .app-board-heading {
  margin-bottom: 0.65rem;
}

.app-account-dl {
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
}

.app-account-tile {
  border: 1px solid rgba(44, 53, 79, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: #fcfcfd;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

@media (hover: hover) {
  .app-account-tile:hover {
    border-color: rgba(44, 53, 79, 0.16);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-account-tile {
    transition: none;
  }

  .app-account-tile:hover {
    transform: none;
  }
}

@media (max-width: 36rem) {
  .app-account-dl {
    grid-template-columns: 1fr;
  }
}

.app-account-dl dt {
  margin: 0 0 0.15rem;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.app-account-dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.app-account-value {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2430;
  letter-spacing: 0;
}

.app-account-value--email {
  word-break: break-all;
}

.app-account-dd--plan {
  gap: 0.15rem;
}

.app-account-plan-status {
  font-size: 0.92rem;
  font-weight: 600;
  color: #3a4252;
  line-height: 1.35;
}

.app-account-plan-slots {
  margin-top: 0.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #5a6276;
  line-height: 1.4;
}

.app-account-dd--google {
  gap: 0.25rem;
}

.app-account-google-email {
  font-size: 0.86rem;
  font-weight: 600;
  color: #3a4252;
  line-height: 1.45;
  word-break: break-all;
}

/* アカウント: 設定・契約と同様に自然スクロール（Footer に隠れない余白） */
.app-shell-page--account .app-shell-wrap {
  padding-bottom: clamp(1.5rem, 5vw, 2.5rem);
}

.app-account-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.app-account-footer .btn-account-logout {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  padding-inline: 20px;
  padding-block: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  font-weight: 600;
}

.app-account-footer .btn-account-logout:hover,
.app-account-footer .btn-account-logout:focus {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #1f2937;
}

.app-account-footer .btn-account-logout:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(55, 65, 81, 0.35);
}

.app-billing-card {
  margin: 0;
}

.app-billing-card--trial-contract {
  border-left: 4px solid #2563eb;
}

.app-trial-contract-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.app-plan-trial-hero {
  padding-bottom: 0.85rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(44, 53, 79, 0.1);
}

.app-trial-contract-eyebrow {
  margin-bottom: 0.35rem;
}

.app-trial-contract-badge {
  margin: 0 0 0.4rem;
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f2f7c;
  background: #e8f1ff;
}

.app-trial-reassure {
  margin: 0 0 0.35rem;
  max-width: 36rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.55;
}

.app-trial-hero-next {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.55;
}

.app-trial-contract-remain {
  margin: 0 0 0.25rem;
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 800;
  color: #0f2f7c;
  line-height: 1.25;
}

.app-trial-contract-enddate {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5a6274;
}

.app-trial-contract-heading {
  margin: 0 0 0.85rem;
}

.app-trial-price-block {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid rgba(44, 53, 79, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.app-trial-price-line1 {
  margin: 0 0 0.25rem;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.02em;
}

.app-trial-price-line2 {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 600;
  color: #374151;
}

.app-trial-price-yen {
  display: inline-block;
  margin: 0 0.06rem;
  padding: 0;
  font-size: clamp(1.28rem, 3.8vw, 1.72rem);
  font-weight: 800;
  color: #1d4ed8;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.app-trial-tax {
  margin-left: 0.1rem;
  font-size: 0.88em;
  font-weight: 600;
  color: #6b7280;
}

.app-trial-benefits {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.app-trial-benefits li {
  position: relative;
  padding-left: 1.45em;
  font-size: 0.92rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.45;
}

.app-trial-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05em;
  font-weight: 800;
  color: #059669;
}

.app-trial-contract-lead {
  margin: 0 0 0.65rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: #5a6274;
  line-height: 1.55;
}

.app-trial-addon-note {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.45;
}

.app-trial-exit-support {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.app-trial-exit-support-heading {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.45;
}

.app-trial-exit-support-list {
  margin: 0 0 0.5rem;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.5;
}

.app-trial-exit-support-list li + li {
  margin-top: 0.25rem;
}

.app-trial-exit-support-note {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.45;
}

.app-trial-contract-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.app-shell-page--billing .app-trial-contract-cta .btn-trial-checkout {
  box-sizing: border-box;
  align-self: center;
  width: 100%;
  max-width: 420px;
  min-height: 3.05rem;
  font-size: 1.05rem;
  font-weight: 800;
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

@media (min-width: 22.5rem) {
  .app-shell-page--billing .app-trial-contract-cta .btn-trial-checkout {
    width: auto;
    min-width: 320px;
  }
}

.app-shell-page--billing .app-trial-contract-cta .btn-trial-checkout:hover:not(:disabled),
.app-shell-page--billing .app-trial-contract-cta .btn-trial-checkout:focus-visible:not(:disabled) {
  background: #1d4ed8;
  border-color: #1e40af;
  box-shadow: 0 8px 26px rgba(29, 78, 216, 0.45);
  transform: translateY(-1px);
}

.app-shell-page--billing .app-trial-contract-cta .btn-trial-checkout:active:not(:disabled) {
  transform: translateY(0);
}

.app-trial-cancel-note {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.45;
}

.app-trial-stripe-note {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.4;
}

.app-trial-stripe-note__lock {
  font-size: 0.88em;
  line-height: 1;
  filter: grayscale(0.15);
}

.app-plan-trial-date {
  font-weight: 600;
  color: #5a6274;
}

.app-plan-card-body,
.app-contract-card-body {
  margin: 0 0 0.75rem;
  font-size: 0.96rem;
  font-weight: 500;
  color: #3a4252;
  line-height: 1.6;
}

.app-plan-trial strong,
.app-plan-standard-title strong {
  color: #0f2f7c;
}

.app-plan-standard-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.app-plan-standard-title {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2430;
}

.app-plan-standard-line {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #3a4252;
  line-height: 1.55;
}

.app-plan-standard-muted {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #6a7388;
  line-height: 1.5;
}

.app-plan-muted {
  color: #5a6274;
}

.app-contract-intro {
  margin: 0 0 0.65rem;
  color: #5a6274;
  font-size: 0.92rem;
}

.app-billing-summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.app-billing-plan-trial-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.app-billing-plan-trial-row .app-billing-card--plan,
.app-billing-plan-trial-row .app-billing-card--trial-contract {
  flex: 1 1 auto;
  min-width: 0;
}

.app-billing-plan-trial-row .app-billing-card--plan {
  align-self: flex-start;
}

.app-billing-plan-trial-row:not(.app-billing-plan-trial-row--pair) .app-billing-card--plan {
  flex: 0 1 auto;
  width: 100%;
  max-width: min(32rem, 100%);
}

@media (min-width: 56.25rem) {
  .app-billing-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* トライアル以外: ラッパーを無視して Plan / Calendar / Billing を同一行の 3 列に */
  .app-billing-summary-grid > .app-billing-plan-trial-row:not(.app-billing-plan-trial-row--pair) {
    display: contents;
  }

  /* トライアル時: 上段フル幅で Plan + 申し込みを横並び */
  .app-billing-summary-grid > .app-billing-plan-trial-row.app-billing-plan-trial-row--pair {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    grid-column: 1 / -1;
  }

  .app-billing-plan-trial-row:not(.app-billing-plan-trial-row--pair) .app-billing-card--plan {
    max-width: none;
  }

  .app-billing-plan-trial-row--pair .app-billing-card--plan {
    flex: 0 1 20rem;
    max-width: 26rem;
  }

  .app-billing-plan-trial-row--pair .app-billing-card--trial-contract {
    flex: 1 1 min(0, 44rem);
  }
}

.app-billing-card--allowance .app-board-heading {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.app-billing-exit-capture-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.app-billing-exit-capture-label {
  display: block;
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  color: inherit;
}

.app-billing-exit-capture-label.app-exit-support-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.app-billing-exit-capture-features {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.5;
}

.app-billing-card--allowance .app-billing-allowance-value {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 400;
  color: #1f2937;
  line-height: 1.5;
  letter-spacing: normal;
}

.app-billing-summary-dl {
  margin: 0.35rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.app-billing-summary-dl dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a6276;
}

.app-billing-summary-dl dd {
  margin: 0.12rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2430;
}

.app-billing-breakdown {
  margin: 0 0 1rem !important;
}

.app-shell-page--billing .billing-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-weight: 500;
  color: #3a4252;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #fff;
}

.app-shell-page--billing .billing-breakdown-table thead th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a6276;
  letter-spacing: 0.02em;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.app-shell-page--billing .billing-breakdown-table thead th:nth-child(2) {
  text-align: center;
}

.app-shell-page--billing .billing-breakdown-table thead th:nth-child(3) {
  text-align: right;
}

.app-shell-page--billing .billing-breakdown-table tbody th,
.app-shell-page--billing .billing-breakdown-table tbody td {
  padding: 0.55rem 0.75rem;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
}

.app-shell-page--billing .billing-breakdown-table tbody th {
  font-weight: 600;
  color: #1f2430;
  text-align: left;
}

.app-shell-page--billing .billing-breakdown-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.app-shell-page--billing .billing-breakdown-yen {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #1f2430;
}

.app-shell-page--billing .billing-breakdown-table tfoot .billing-breakdown-total td {
  padding: 0.6rem 0.75rem;
  border-bottom: none;
  background: #f8fafc;
  font-weight: 700;
  color: #1f2430;
}

.app-shell-page--billing .billing-breakdown-table tfoot .billing-breakdown-total-amount-cell {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.app-shell-page--billing .billing-breakdown-table tfoot .billing-breakdown-total-label {
  font-weight: 700;
  color: #1f2430;
}

.app-shell-page--billing .billing-breakdown-table tfoot .billing-breakdown-total-amount-cell .billing-breakdown-yen {
  font-weight: 700;
}

.app-shell-page--billing .billing-breakdown-note {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: #5a6274;
  line-height: 1.5;
}

.app-billing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.65rem;
}

.app-billing-actions .btn {
  flex: 1 1 12rem;
  min-width: min(100%, 10rem);
  min-height: 2.75rem;
}

#btnExitCaptureDialog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
}

.app-exit-capture-dialog-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #5a6274;
  line-height: 1.55;
}

.app-exit-capture-draft-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.app-exit-capture-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.app-exit-capture-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.app-exit-capture-switch-ui {
  display: block;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #c5cad4;
  transition: background 0.15s ease;
}

.app-exit-capture-switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.app-exit-capture-switch-ui {
  position: relative;
}

.app-exit-capture-switch input:checked + .app-exit-capture-switch-ui {
  background: #2563eb;
}

.app-exit-capture-switch input:checked + .app-exit-capture-switch-ui::after {
  transform: translateX(1.25rem);
}

.app-exit-capture-switch input:focus-visible + .app-exit-capture-switch-ui {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.app-option-compare-draft--exit-capture .app-option-compare-value {
  min-width: 2.75rem;
}

.app-billing-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #5a6274;
  line-height: 1.55;
}

.app-option-dialog-panel {
  box-sizing: border-box;
  width: min(28rem, calc(100vw - 2rem));
  max-width: min(28rem, calc(100vw - 2rem));
}

.app-option-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.app-option-dialog-title {
  margin: 0;
  flex: 1;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2f7c;
  line-height: 1.35;
}

.app-option-dialog-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: -0.1rem -0.1rem 0 0;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 600;
  color: #5a6276;
  background: transparent;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
}

.app-option-dialog-close:hover,
.app-option-dialog-close:focus-visible {
  color: #1f2430;
  background: rgba(44, 53, 79, 0.08);
  outline: none;
}

.app-option-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  justify-items: center;
  align-items: center;
  margin-bottom: 0.85rem;
}

.app-option-compare-current,
.app-option-compare-draft {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  justify-items: center;
  align-content: center;
}

.app-option-compare-current {
  grid-column: 1;
}

.app-option-compare-draft {
  grid-column: 3;
}

.app-option-compare-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a6276;
  letter-spacing: 0.02em;
}

.app-option-compare-arrow {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #7a8498;
  line-height: 1;
}

.app-option-compare-value {
  margin: 0;
  min-width: 2.5rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f2f7c;
  text-align: center;
  line-height: 1.2;
}

.app-option-stepper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.app-option-step-btn {
  flex-shrink: 0;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.2rem 0.45rem;
  font-size: 1rem;
  line-height: 1;
}

.app-option-draft-input {
  box-sizing: border-box;
  width: 3.25rem;
  padding: 0.4rem 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(44, 53, 79, 0.22);
  border-radius: 0.4rem;
  -moz-appearance: textfield;
}

.app-option-draft-input::-webkit-outer-spin-button,
.app-option-draft-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.app-option-message {
  min-height: 3em;
  margin: 0 0 0.375rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: #3a4252;
  line-height: 1.5;
}

.app-option-message strong {
  font-weight: 700;
  color: #1f2430;
}

.app-option-message-detail {
  font-weight: 500;
}

.app-option-message-warn {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9a3412;
}

.app-option-ack {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2430;
  cursor: pointer;
}

.app-option-ack.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.app-option-ack input {
  margin-top: 0.2rem;
}

.app-option-dialog-actions {
  display: flex;
  justify-content: stretch;
}

.app-option-dialog-actions .btn-primary {
  width: 100%;
  max-width: none;
}

/* オプション追加: 適用が押せない状態を primary でも判読しやすく */
.app-option-dialog .btn-primary:disabled,
.app-option-dialog .btn.btn-primary[disabled] {
  opacity: 1;
  cursor: not-allowed;
  background: #aeb8c6;
  border-color: #97a3b3;
  color: #f4f6f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.app-option-dialog .btn-primary:disabled:hover,
.app-option-dialog .btn-primary:disabled:focus,
.app-option-dialog .btn.btn-primary[disabled]:hover,
.app-option-dialog .btn.btn-primary[disabled]:focus {
  background: #aeb8c6;
  border-color: #97a3b3;
  color: #f4f6f9;
}

/* --- アラート設定・今すぐお知らせ --- */
.app-room-alerts-page .app-shell-page-title {
  margin: 0;
  font-size: 1.25rem;
}

.app-room-alerts-page .app-shell-page-title:has(.app-option-icon) {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.app-room-alerts-page .app-shell-page-title .app-option-icon {
  transform: translateY(0.12em);
}

.app-room-alerts-head-row {
  margin-bottom: 1rem;
}

.app-room-alerts-head-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-room-alerts-subheading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.app-room-alerts-subheading--spaced {
  margin-top: 2rem;
}

.app-room-alerts-intro {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted, #5a6270);
}

p.app-room-alerts-intro {
  margin-bottom: 1.5rem;
}

.app-room-alerts-table-wrap {
  overflow-x: auto;
}

.app-room-alerts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.app-room-alerts-table th,
.app-room-alerts-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
  text-align: left;
}

.app-room-alerts-td-preview {
  width: 3.25rem;
  text-align: center;
  vertical-align: middle;
}

.app-room-alerts-preview-btn {
  appearance: none;
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
  color: #0f2f7c;
  border-radius: 0.35rem;
  text-decoration: none;
  cursor: pointer;
}

.app-room-alerts-preview-btn:hover,
.app-room-alerts-preview-btn:focus {
  color: #1f3f90;
  background: rgba(15, 47, 124, 0.08);
  outline: none;
}

.app-room-alerts-preview-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(15, 47, 124, 0.25);
}

.app-room-alerts-volume-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.app-room-alerts-label--inline {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.app-room-alerts-volume {
  flex: 1 1 10rem;
  max-width: 16rem;
  accent-color: #0f2f7c;
}

.app-room-alerts-volume-value {
  min-width: 2.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted, #5a6270);
}

.app-room-alerts-volume-hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted, #5a6270);
}

.app-room-notify-status {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: #0f2f7c;
}

.app-room-notify-status--done {
  color: #1a5c38;
}

.app-room-notify-status--error {
  color: var(--error, #b42318);
}

.app-room-alerts-immediate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.app-room-alerts-th-mode,
.app-room-alerts-td-mode {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

.app-room-alerts-select {
  display: inline-block;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 0.45rem 2rem 0.45rem 0.65rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text, #1a1f2b);
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0.4rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6270' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.75rem;
  cursor: pointer;
}

.app-room-alerts-th-check,
.app-room-alerts-td-check,
.app-room-alerts-th-preview {
  width: 3.25rem;
  text-align: center;
}

.app-room-alerts-select:focus-visible {
  outline: 2px solid rgba(15, 47, 124, 0.35);
  outline-offset: 1px;
}

.app-room-alerts-td-content {
  min-width: 12rem;
}

.app-room-alerts-content-body {
  min-height: 3.5rem;
}

.app-room-alerts-fixed-text {
  margin: 0;
  min-height: 3.5rem;
  line-height: 1.45;
  color: var(--text-muted, #5a6270);
}

.app-room-alerts-content-body .app-room-alerts-row-textarea {
  box-sizing: border-box;
  height: 3.5rem;
}

.app-room-alerts-row-textarea {
  width: 100%;
  min-height: 3.5rem;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
}

.app-room-alerts-notes {
  margin: 0.85rem 0 1.75rem;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted, #5a6270);
}

.app-room-alerts-actions {
  margin-bottom: 0.5rem;
}

.app-room-alerts-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.app-room-alerts-textarea {
  width: 100%;
  min-height: 5rem;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.app-room-alerts-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.app-room-alerts-template-btn {
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
}

.app-exit-record-message {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text, #1a1f2b);
}

.app-exit-record-head > .app-exit-record-message {
  flex: 1 1 10rem;
  margin: 0;
  max-width: min(100%, 22rem);
  text-align: right;
  word-break: break-word;
}

.display-admin-announce-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 24, 32, 0.78);
  pointer-events: none;
}

.display-admin-announce-overlay[hidden] {
  display: none !important;
}

.display-admin-announce-panel {
  max-width: min(36rem, 92vw);
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.display-admin-announce-text {
  margin: 0;
  text-align: center;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  color: #1a1f2b;
}

/* 業種・プラットフォーム向け LP */
.lp-industry-page .lp-industry-lead {
  margin: 0 0 1.25rem;
  color: #4a5162;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.75;
}

.lp-industry-page .legal-doc h3 {
  margin: 1rem 0 0.45rem;
  font-size: 0.98rem;
  color: #1a2030;
  line-height: 1.45;
}

.lp-industry-page .lp-industry-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.lp-industry-page .lp-industry-trademark {
  margin-top: 1.25rem;
  font-size: 0.78rem !important;
  color: #7a8194 !important;
  line-height: 1.55;
}

.lp-industry-page .lp-industry-related {
  margin-top: 0.35rem;
}

.lp-industry-page .lp-industry-related li + li {
  margin-top: 0.4rem;
}

.lp-industry-page .lp-scene-link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

a.lp-card.lp-scene-link-card {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

a.lp-card.lp-scene-link-card:hover,
a.lp-card.lp-scene-link-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 53, 79, 0.12);
}

.lp-industry-page .lp-scene-link-card .lp-scene-link-more,
a.lp-card.lp-scene-link-card .lp-scene-link-more {
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, #2f6fed);
}

.lp-footer-nav--solutions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.lp-faq-page .lp-faq-section {
  margin-top: 1.5rem;
}

.lp-faq-page .lp-faq-category {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #1a2030;
  line-height: 1.4;
}

.lp-faq-page .lp-faq-toc-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.lp-faq-wrap {
  max-width: 52rem;
}

/* 活用例タイムライン（想定事例） */
.lp-usecase-timeline {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid rgba(47, 111, 237, 0.35);
}

.lp-usecase-timeline li {
  position: relative;
  margin: 0;
  padding: 0.55rem 0 0.55rem 1rem;
}

.lp-usecase-timeline li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.85rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #2f6fed;
  box-shadow: 0 0 0 3px #f7f8fc;
}

.lp-usecase-time {
  display: inline-block;
  min-width: 3.2rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a2030;
}

.lp-usecase-event {
  display: inline;
  margin: 0;
  color: #5a6274;
  font-size: 0.95rem;
  line-height: 1.65;
}

.lp-usecase-note {
  margin-top: 0.65rem !important;
  font-size: 0.82rem !important;
  color: #7a8194 !important;
}

/* 比較表 */
.lp-compare-table-wrap {
  overflow-x: auto;
  margin-top: 0.65rem;
}

.lp-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lp-compare-table th,
.lp-compare-table td {
  border: 1px solid rgba(44, 53, 79, 0.12);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.lp-compare-table th {
  background: #f7f8fc;
  font-weight: 600;
  color: #1a2030;
}

/* コスト計算機 */
.lp-tool-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.lp-tool-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a2030;
}

.lp-tool-field input,
.lp-tool-field select {
  width: 100%;
  max-width: 16rem;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(44, 53, 79, 0.18);
  border-radius: 0.4rem;
  font-size: 0.95rem;
}

.lp-tool-result {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #f0f5ff;
  border: 1px solid rgba(47, 111, 237, 0.2);
  border-radius: 0.5rem;
}

.lp-tool-result-value {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a2030;
}

.lp-tool-disclaimer {
  margin-top: 0.65rem !important;
  font-size: 0.8rem !important;
  color: #7a8194 !important;
}

/* 業種LP：導入メリット・おすすめ施設・画面デモ・強化CTA */
.lp-industry-benefits {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.lp-industry-benefits li + li {
  margin-top: 0.35rem;
}

.lp-industry-fit-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 520px) {
  .lp-industry-fit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lp-industry-fit-list li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3a4254;
}

.lp-industry-fit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #2f6fed;
}

.lp-screen-demo-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.85rem;
}

@media (min-width: 640px) {
  .lp-screen-demo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lp-screen-demo-item {
  margin: 0;
}

.lp-screen-demo-item figcaption {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: #5a6274;
  line-height: 1.5;
  text-align: center;
}

.lp-screen-mock {
  border-radius: 0.65rem;
  border: 3px solid #2a3140;
  box-shadow: 0 8px 24px rgba(26, 32, 48, 0.14);
  overflow: hidden;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
}

.lp-screen-mock--10 {
  box-shadow: inset 0 0 0 3px #f9a825, 0 8px 24px rgba(26, 32, 48, 0.14);
  background: #fff7df;
}

.lp-screen-mock--5 {
  box-shadow: inset 0 0 0 3px #ef6c00, 0 8px 24px rgba(26, 32, 48, 0.14);
  background: #ffeeda;
}

.lp-screen-mock--end {
  box-shadow: inset 0 0 0 3px #c62828, 0 8px 24px rgba(26, 32, 48, 0.14);
  background: #ffe2e2;
}

.lp-screen-mock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem 0.35rem;
  font-size: 0.72rem;
}

.lp-screen-mock-room {
  margin: 0;
  font-weight: 700;
  color: #1a2030;
  line-height: 1.35;
}

.lp-screen-mock-clock {
  font-variant-numeric: tabular-nums;
  color: #5a6274;
  white-space: nowrap;
}

.lp-screen-mock-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0 0.65rem;
  font-size: 0.68rem;
}

.lp-screen-mock-time-col span {
  display: block;
  color: #7a8194;
  font-size: 0.62rem;
}

.lp-screen-mock-time-col strong {
  display: block;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: #1a2030;
}

.lp-screen-mock-remaining {
  grid-column: 1 / -1;
  text-align: center;
  padding: 0.35rem 0 0.15rem;
}

.lp-screen-mock-remaining strong {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  color: #c62828;
}

.lp-screen-mock-alert {
  margin: 0.45rem 0.65rem 0.65rem;
  padding: 0.55rem 0.5rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(198, 40, 40, 0.25);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1a2030;
}

.lp-screen-demo-note {
  margin-top: 0.65rem !important;
  font-size: 0.82rem !important;
  color: #7a8194 !important;
}

.lp-screen-shot {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.15rem 1.35rem;
}

.lp-screen-shot-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 700;
  color: #1a2030;
  line-height: 1.4;
}

.lp-screen-shot-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #5f687b;
  line-height: 1.65;
}

.lp-screen-shot-figure {
  margin: 0;
}

.lp-screen-shot-img {
  display: block;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  height: auto;
  border-radius: 0.65rem;
  border: 1px solid rgba(44, 53, 79, 0.12);
  box-shadow: 0 8px 28px rgba(44, 53, 79, 0.1);
}

.lp-industry-cta--strong {
  margin-top: 2rem;
}

.lp-industry-cta-box {
  width: 100%;
  padding: 1.35rem 1.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(165deg, #f7f9ff 0%, #eef3ff 100%);
  border: 1px solid rgba(47, 111, 237, 0.18);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-industry-cta-headline {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 700;
  color: #1a2030;
}

.lp-industry-cta-points {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  font-size: 0.88rem;
  color: #4a5162;
}

.lp-industry-cta-points li::before {
  content: "・";
  color: #2f6fed;
}

.lp-industry-cta--strong .lp-google-btn {
  width: min(100%, 22rem);
  margin-inline: auto;
}

.lp-industry-cta-box button.lp-google-btn,
.lp-industry-cta-box a.lp-google-btn {
  margin-left: auto;
  margin-right: auto;
}

.lp-industry-cta-box .lp-google-btn--compact {
  margin-top: 0.75rem;
  width: auto;
}

.lp-trial-btn .lp-google-btn-mainline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.lp-industry-cta-box .lp-trial-btn,
.lp-signup-panel .lp-trial-btn {
  width: min(100%, 22rem);
}

.lp-industry-cta-sub {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: #7a8194;
}

