/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --bg: #f3efe6;
  --card: #fffdf8;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #e3d9c8;
  --navy: #1f3b5b;
  --navy-press: #162c44;
  --danger: #9d342c;
  --shadow: 0 8px 24px #3c2a1414;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  min-height: 100vh;
  color: var(--ink);
  font-family: Hiragino Sans, Hiragino Kaku Gothic ProN, Yu Gothic UI, Yu Gothic, Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

button, input, textarea, a {
  touch-action: manipulation;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

a {
  color: inherit;
}

.app {
  min-height: 100vh;
}

.topbar {
  z-index: 20;
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
}

.topbar-inner, .main, .tabbar-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.topbar-inner {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  display: flex;
}

.header-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  display: flex;
}

.operator-btn {
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: 2px solid #fff;
  border-radius: 999px;
  max-width: 48%;
  min-height: 44px;
  padding: 6px 14px;
  font-weight: 800;
  overflow: hidden;
}

.brand-wrap {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.brand-back {
  color: #fff;
  white-space: nowrap;
  border: 2px solid #ffffffbf;
  border-radius: 999px;
  align-items: center;
  min-height: 44px;
  padding: 4px 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
}

.brand {
  letter-spacing: .04em;
  white-space: nowrap;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.main {
  padding: 16px 16px 32px;
}

.main.has-tabs {
  padding-bottom: calc(210px + env(safe-area-inset-bottom));
}

.tabbar {
  z-index: 30;
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fffdf8;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.tabbar-inner {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  display: grid;
}

.tab {
  min-height: 52px;
  color: var(--navy);
  background: none;
  border-radius: 12px;
  place-items: center;
  font-weight: 800;
  text-decoration: none;
  display: grid;
}

.tab.is-active {
  background: var(--navy);
  color: #fff;
}

.page-title {
  margin: 4px 0 8px;
  font-size: 1.7rem;
  line-height: 1.3;
}

.lead, .help, .count, .person-meta, .match-sub {
  color: var(--muted);
}

.lead {
  margin: 0 0 16px;
}

.help {
  margin: 8px 0 0;
  font-size: .95rem;
}

.count {
  margin: 12px 0;
  font-weight: 700;
}

.search-label, .label {
  margin-bottom: 8px;
  font-weight: 800;
  display: block;
}

.search-wrap {
  position: relative;
}

.search-wrap .input {
  padding-right: 84px;
}

.clear-btn {
  background: #efe8dc;
  border: 0;
  border-radius: 10px;
  min-width: 64px;
  min-height: 40px;
  font-weight: 800;
  position: absolute;
  top: 8px;
  right: 8px;
}

.input, .textarea, .select-face {
  background: #fff;
  border: 2px solid #d9d0c2;
  border-radius: 14px;
  width: 100%;
  padding: 12px 14px;
  font-size: 18px;
  line-height: 1.4;
}

.input, .select-face {
  min-height: 58px;
}

.textarea {
  resize: vertical;
  min-height: 140px;
}

.input:focus, .textarea:focus, .select-face:focus-visible {
  border-color: var(--navy);
  outline-offset: 1px;
  outline: 3px solid #1f3b5b47;
}

.select-face {
  text-align: left;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  display: flex;
}

.placeholder {
  color: #8a8174;
  font-weight: 600;
}

.chevron {
  color: var(--navy);
  font-size: .8rem;
}

.card, .person-card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
}

.panel {
  margin-bottom: 16px;
  padding: 16px;
}

.person-list {
  gap: 12px;
  display: grid;
}

.person-card {
  padding: 16px;
  text-decoration: none;
  display: block;
}

.person-card:active {
  background: #f7f1e6;
}

.person-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.person-side {
  flex-shrink: 0;
  justify-items: end;
  gap: 8px;
  display: grid;
}

.card-go {
  color: var(--navy);
  font-weight: 800;
}

.person-kana {
  color: var(--muted);
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
}

.person-card h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.3;
}

.person-meta {
  margin: 8px 0 0;
}

.remain {
  color: #14613a;
  background: #e5f4ea;
  border-radius: 999px;
  flex-shrink: 0;
  margin: 0;
  padding: 8px 12px;
  font-weight: 800;
}

.remain.is-empty {
  color: var(--danger);
  background: #fde8e4;
}

.field {
  margin-bottom: 18px;
}

.label-row {
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.label-row .label {
  margin: 0;
}

.num {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: .85rem;
  font-weight: 800;
  display: inline-grid;
}

.req {
  color: var(--danger);
  background: #fde8e4;
  border-radius: 999px;
  margin-left: auto;
  padding: 2px 8px;
  font-size: .8rem;
  font-weight: 800;
}

.section-title {
  color: var(--navy);
  letter-spacing: .06em;
  margin: 8px 0 14px;
  padding-top: 8px;
  font-size: 1rem;
}

.date-row, .stepper {
  align-items: stretch;
  gap: 8px;
  display: flex;
}

.date-row .input {
  flex: 1;
  min-width: 0;
}

.multi-list {
  gap: 10px;
  display: grid;
}

.brand-line {
  gap: 8px;
  display: grid;
}

.multi-row {
  align-items: center;
  gap: 8px;
  display: flex;
}

.multi-row .select-face {
  flex: 1;
  min-width: 0;
}

.multi-remove {
  border: 2px solid var(--line);
  min-width: 72px;
  min-height: 58px;
  color: var(--danger);
  background: #fff;
  border-radius: 14px;
  flex-shrink: 0;
  font-weight: 800;
}

.step-btn {
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  min-height: 64px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stepper-value {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
}

.date-readout {
  margin: 8px 0 0;
  font-weight: 800;
}

.chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.sub-label {
  margin: 12px 0 6px;
  font-weight: 800;
  display: block;
}

.chip {
  background: #fff;
  border: 2px solid #d9d0c2;
  border-radius: 999px;
  min-height: 48px;
  padding: 8px 18px;
  font-weight: 800;
}

.chip.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn {
  border: 2px solid #0000;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  display: inline-flex;
}

.btn-block {
  width: 100%;
}

.stack > .btn + .btn {
  margin-top: 8px;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-primary:active {
  background: var(--navy-press);
}

.btn-secondary, .btn-today {
  color: var(--navy);
  border-color: var(--navy);
  background: #fff;
}

.btn-today {
  min-width: 88px;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger-ghost {
  color: var(--danger);
  border-color: var(--danger);
  background: #fff;
}

.menu-list {
  gap: 14px;
  display: grid;
}

.menu-card {
  background: var(--card);
  border: 2px solid var(--line);
  min-height: 112px;
  box-shadow: var(--shadow);
  border-radius: 18px;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  text-decoration: none;
  display: flex;
}

.menu-card:active {
  background: #f7f1e6;
}

.menu-body {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.menu-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
}

.menu-description {
  color: var(--muted);
}

.menu-go {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  flex-shrink: 0;
  place-items: center;
  min-width: 72px;
  min-height: 52px;
  margin-left: auto;
  font-weight: 800;
  display: grid;
}

.save-bar {
  left: 0;
  right: 0;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 25;
  border-top: 1px solid var(--line);
  background: #f3efe6f5;
  padding: 10px 16px;
  position: fixed;
}

.save-bar-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.lan-card {
  margin-top: 18px;
}

.lan-url {
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
  margin: 10px 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.4;
}

.lan-qr {
  background: #fff;
  border-radius: 12px;
  width: fit-content;
  margin-top: 14px;
  padding: 8px;
  display: block;
}

.lan-qr svg {
  width: 180px;
  height: 180px;
  display: block;
}

.banner {
  border-radius: 16px;
  margin: 0 0 16px;
  padding: 14px 16px;
}

.banner strong {
  margin-bottom: 6px;
  font-size: 1.2rem;
  display: block;
}

.banner p {
  margin: 0 0 8px;
}

.banner-ok {
  color: #145c38;
  background: #e5f6ec;
}

.banner-error {
  color: #8d2d24;
  background: #fde8e4;
}

.banner-warn {
  color: #5c4308;
  background: #fff6dc;
  border: 3px solid #e2b657;
}

.match-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.match-list li {
  background: #fff;
  border-radius: 12px;
  margin-top: 8px;
  padding: 10px 12px;
}

.match-name {
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
}

.match-sub {
  display: block;
}

.back-link {
  min-height: 44px;
  color: var(--navy);
  align-items: center;
  margin-bottom: 8px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
}

.empty {
  text-align: center;
  padding: 28px 8px;
}

.empty p {
  margin: 0 0 16px;
}

.danger-zone {
  margin-top: 28px;
  padding-top: 8px;
}

.danger-zone h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.sheet-backdrop, .modal-backdrop {
  background: #1c191580;
  border: 0;
  position: fixed;
  inset: 0;
}

.sheet-backdrop {
  z-index: 50;
}

.sheet {
  z-index: 51;
  background: #fff;
  border-radius: 18px;
  flex-direction: column;
  width: min(640px, 100% - 24px);
  max-height: min(560px, 68vh);
  display: flex;
  position: fixed;
  top: 12px;
  left: 50%;
  overflow: hidden;
  transform: translateX(-50%);
  box-shadow: 0 16px 40px #0000003d;
}

.sheet-head {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 0;
  display: flex;
}

.sheet-title {
  margin: 0;
  font-size: 1.15rem;
}

.sheet-search {
  width: calc(100% - 24px);
  margin: 12px;
}

.suggest-list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0 8px 8px;
  list-style: none;
  overflow: auto;
}

.suggest-item {
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 10px 8px;
  font-weight: 800;
  display: flex;
}

.suggest-item.is-selected {
  background: #e7eef6;
}

.suggest-empty {
  color: var(--muted);
  margin: 0;
  padding: 8px 12px 16px;
}

.suggest-link {
  color: var(--navy);
  margin-top: 8px;
  font-weight: 800;
  display: inline-block;
}

.badge {
  color: #5c4630;
  background: #efe6d6;
  border-radius: 999px;
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: .78rem;
  font-weight: 800;
}

.text-button {
  min-height: 48px;
  color: var(--danger);
  text-align: left;
  background: none;
  border: 0;
  margin: 0 12px 12px;
  padding: 0;
  font-weight: 800;
}

.modal-backdrop {
  z-index: 70;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  place-items: end center;
  display: grid;
}

.modal {
  background: #fff;
  border-radius: 18px;
  width: min(520px, 100%);
  padding: 20px;
}

.modal h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.modal p {
  margin: 0 0 16px;
}

.master-row {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  display: flex;
}

.master-name {
  word-break: break-all;
  flex: 1;
  font-weight: 800;
}

.master-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.mini-btn {
  border: 2px solid var(--navy);
  min-height: 48px;
  color: var(--navy);
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 800;
}

.mini-btn.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.add-row {
  align-items: stretch;
  gap: 8px;
  display: flex;
}

.add-row .input {
  flex: 1;
  min-width: 0;
}

.add-row .btn {
  min-width: 96px;
}

.edit-row {
  gap: 8px;
  width: 100%;
  display: grid;
}

.edit-actions {
  gap: 8px;
  display: flex;
}

.edit-actions .btn {
  flex: 1;
}

.backup-actions {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .add-row {
    flex-direction: column;
  }

  .add-row .btn {
    width: 100%;
  }

  .sheet {
    max-height: 62vh;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/