:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #242b2c;
  background: #f0f2f2;
  font-synthesis: none;
  --ink: #242b2c;
  --muted: #737a7d;
  --line: #e7ebeb;
  --accent: #14675a;
  --blue: #deecff;
  --blue-ink: #235482;
  --error: #b54136;
  --visible-height: 100dvh;
  --keyboard-bottom: 0px;
}
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input, select { touch-action: manipulation; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #7cafda; outline-offset: 3px; }
textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.change-badge { display: inline-block; vertical-align: middle; padding: 1px 5px; border: 1px solid #cf514c; border-radius: 3px; color: #b32625; background: #fff0f0; font-size: 12px; font-weight: 650; line-height: 1.55; white-space: nowrap; }
.deadline-label { display: inline-flex; align-items: center; gap: 5px; }
.recruitment-alert { margin-top: 10px; color: #8b342c; font-size: 14px; line-height: 1.6; }
.recruitment-alert .text-button { color: inherit; }
.request-section { padding: 16px 16px 0; }
.request-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.request-heading h2 { font-size: 17px; }
.request-heading > span { font-size: 13px; color: var(--muted); }
.request-section textarea { display: block; width: 100%; min-height: 126px; border: 1px solid #bac8c2; border-radius: 5px; padding: 10px; background: #fff; font-size: 16px; line-height: 1.65; resize: vertical; }
.request-section textarea::placeholder { color: #737d78; }
.request-count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 5px; }
.review-request { padding-block: 12px; border-bottom: 1px solid var(--line); }
.review-request h3 { margin: 0 0 6px; font-size: 14px; }
.review-request p { font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.excluded-shifts { margin-top: 12px; padding-block: 10px; border-block: 1px solid #e8c5bc; font-size: 14px; line-height: 1.7; color: #873d33; }
.excluded-shifts summary { min-height: 36px; cursor: pointer; font-weight: 600; }
.excluded-shifts .review-row { font-size: 14px; }
button { border: 0; }
button svg, [data-icon] svg { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
h1, h2, p { margin: 0; }
.app { max-width: 480px; min-height: 100dvh; margin: 0 auto; padding-bottom: calc(132px + env(safe-area-inset-bottom)); background: #fff; }
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; margin: 0 22px; border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 800; font-size: 16px; }
.wordmark span { margin-left: 10px; padding-left: 12px; border-left: 1px solid #cfd6d4; font-size: 12px; font-weight: 500; color: var(--muted); }
.sample-label { font-size: 10px; color: var(--muted); }
.recruitment { padding: 16px 22px 0; }
.heading-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
h1 { font-size: 25px; line-height: 1.4; font-weight: 750; }
.state-badge { flex: 0 0 auto; padding: 4px 8px; color: #846024; background: #faf0da; border-radius: 4px; font-size: 11px; font-weight: 650; }
.state-badge.sent { color: #14675a; background: #e8f4ee; }
.period-line { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin: 4px 0 13px; min-height: 32px; }
.period-line p { font-size: 12px; color: var(--muted); line-height: 1.65; }
.recruitment-switch { position: relative; display: grid; place-items: center; width: 36px; height: 32px; flex: 0 0 36px; border: 1px solid var(--line); border-radius: 4px; }
.recruitment-switch select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.recruitment-switch:focus-within { outline: 3px solid #7cafda; outline-offset: 2px; }
.deadline-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; border-left: 2px solid #c99b46; background: #fcf8ee; padding: 10px 12px; font-size: 11px; color: #7a653a; }
.deadline-line svg { width: 15px; height: 15px; }
.deadline-line strong { margin-left: auto; font-size: 12px; font-weight: 650; color: #655125; }
.calendar-section { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 4px 7px; }
h2 { font-size: 16px; line-height: 1.5; font-weight: 700; }
.month-navigation { display: flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: wrap; }
.month-arrows { display: flex; }
.month-arrows .icon-button { width: 30px; height: 32px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 6px; color: var(--muted); background: transparent; }
.icon-button:hover { background: #f2f5f4; color: var(--ink); }
.icon-button:disabled { color: #c2c8c8; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 0; min-height: 36px; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; }
.bulk-toggle { white-space: nowrap; }
.bulk-toggle svg { width: 16px; height: 16px; }
.bulk-toggle[aria-pressed="true"] { color: var(--muted); }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays { margin-bottom: 7px; color: #858b8e; font-size: 11px; text-align: center; }
.saturday { color: #647f9e; }
.sunday { color: #b26c69; }
.day, .calendar-blank { display: grid; place-items: center; height: 44px; width: 100%; position: relative; }
.day { isolation: isolate; padding: 0; background: transparent; border-radius: 6px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.day .number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
.day.month-start .number { display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 22px; }
.day .month-label { font-size: 10px; font-weight: 500; line-height: 12px; }
.day.available .number { background: var(--blue); color: var(--blue-ink); font-weight: 700; }
.day.outside { color: #c0c6c7; }
.day:not(:disabled):hover { background: #f2f6f6; }
.day.selected { outline: 1.5px solid var(--accent); outline-offset: -4px; background: #f0f7f4; color: var(--accent); }
.day.selected::after { content: ""; position: absolute; right: 7px; top: 5px; width: 5px; height: 5px; background: var(--accent); border-radius: 1px; }
.calendar-legend { display: flex; align-items: center; justify-content: space-between; padding: 9px 4px 0; font-size: 11px; color: var(--muted); gap: 8px; }
.calendar-legend > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.legend-circle { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: var(--blue); }
.bulk-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 4px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--accent); font-weight: 600; }
.small-primary { display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 5px; min-height: 40px; padding: 8px 12px; color: white; background: var(--accent); font-size: 12px; }
.small-primary:disabled { color: #7e8985; background: #e9efec; }
.schedule-section { padding: 20px 22px 0; }
.schedule-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 7px; }
.schedule-heading h2 { font-size: 15px; }
.schedule-heading h2 span { display: inline-block; margin-left: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
#duration-total { color: var(--muted); font-size: 11px; white-space: nowrap; }
.shift-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); min-height: 70px; padding: 9px 0; }
.date-box { width: 40px; flex: 0 0 40px; text-align: center; }
.date-box strong { display: block; font-size: 22px; line-height: 1.1; font-weight: 650; }
.date-box span { font-size: 10px; line-height: 1.6; color: var(--muted); white-space: nowrap; }
.shift-main { min-width: 0; flex: 1; }
.shift-time { font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 650; white-space: nowrap; }
.shift-info { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 10px; color: var(--muted); }
.shift-info .can-work { color: var(--accent); }
.shift-row .icon-button svg { width: 16px; height: 16px; }
.empty-state { padding: 26px 10px 15px; text-align: center; color: var(--muted); font-size: 13px; }
.empty-state svg { height: 26px; width: 26px; margin-bottom: 10px; color: #a0aca7; }
.no-availability { width: 100%; margin-bottom: 6px; }
.save-note { display: flex; align-items: flex-start; justify-content: center; gap: 5px; margin-top: 15px; font-size: 10px; color: var(--muted); line-height: 1.6; }
.save-note svg { width: 12px; height: 12px; margin-top: 2px; }
.submit-bar { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: min(480px, 100%); padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.submit-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 10px; margin-bottom: 10px; font-size: 11px; }
.submit-summary strong { font-size: 12px; font-weight: 650; }
.submit-summary > span { color: var(--muted); }
.primary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; padding: 10px 12px; background: var(--accent); color: white; border-radius: 6px; font-size: 14px; font-weight: 650; }
.primary:hover { background: #105549; }
.primary:disabled { background: #e4ebe7; color: #7a8680; }
.primary svg { width: 17px; height: 17px; }
.sheet { position: fixed; inset: auto 0 var(--keyboard-bottom); margin: 0 auto; padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); border: 0; width: min(480px, 100%); max-width: 100%; max-height: calc(var(--visible-height) - 16px); border-radius: 8px 8px 0 0; color: var(--ink); background: white; overscroll-behavior: contain; overflow-y: auto; }
.sheet::backdrop { background: rgb(28 38 37 / 40%); }
body.modal-open { overflow: hidden; }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.sheet-header > div { min-width: 0; }
.sheet-header h2 { font-size: 22px; }
.sheet-header > .icon-button { margin: -7px -10px 0 0; }
.eyebrow { color: var(--muted); font-size: 11px; line-height: 1.6; margin-bottom: 3px; }
.time-rule { font-size: 11px; color: var(--muted); margin-bottom: 15px; }
.selected-dates { color: var(--accent); font-size: 12px; line-height: 1.8; margin: -7px 0 12px; }
.time-fields { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); gap: 8px; }
.field { min-width: 0; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 8px; font-size: 12px; font-weight: 650; }
.field label span { font-size: 10px; color: var(--muted); font-weight: 400; }
.field input { min-width: 0; width: 100%; height: 62px; background: #fafcfb; border: 1px solid #d7dfdb; border-radius: 6px; text-align: center; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.field input::placeholder { color: #b9c3bd; font-weight: 450; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 0; background: white; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.time-separator { color: #99a19d; text-align: center; padding-top: 46px; font-size: 12px; }
.field-error { min-height: 21px; font-size: 10px; color: var(--error); padding-top: 5px; line-height: 1.6; }
.previous-time { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; border: 1px solid var(--line); background: white; padding: 10px 12px; border-radius: 6px; color: var(--muted); font-size: 11px; margin-top: 8px; text-align: left; }
.previous-time > [data-icon]:last-child { margin-left: auto; }
.previous-time strong { color: var(--ink); font-size: 12px; font-weight: 600; margin-left: 5px; }
.previous-time svg { width: 16px; height: 16px; }
.time-summary { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.time-summary strong { color: var(--ink); font-weight: 600; }
.form-error { color: var(--error); font-size: 12px; line-height: 1.65; }
.form-error:not(:empty) { margin-top: 12px; }
.sheet-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.danger { color: var(--error); border: 1px solid #ecd6d2; }
.review-totals { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.review-totals > strong { font-size: 18px; }
.review-totals > span { color: var(--muted); }
.review-list { max-height: min(35dvh, 280px); overflow-y: auto; }
.review-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.review-row strong { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.unselected-note { background: #f4f6f5; margin-top: 15px; padding: 12px; font-size: 12px; line-height: 1.8; color: #59625d; }
.zero-confirm { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; line-height: 1.8; }
.zero-confirm input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent); }
.review-footer { margin-top: 20px; }
.demo-note { color: var(--muted); font-size: 10px; text-align: center; margin: 12px 0; line-height: 1.7; }
.success-sheet { text-align: center; padding-top: 32px; }
.success-mark { display: grid; place-items: center; background: #e6f3ec; color: var(--accent); width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px; }
.success-mark svg { width: 28px; height: 28px; }
.success-sheet h2 { font-size: 20px; }
#success-detail { margin: 12px 0 18px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.success-sheet .primary { margin-top: 20px; }
.toast { position: fixed; bottom: calc(118px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 10; width: max-content; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 15px; background: #303c36; color: white; padding: 12px 15px; font-size: 12px; border-radius: 6px; box-shadow: 0 3px 12px #0001; }
.toast button { background: transparent; color: #ccf0da; padding: 6px 0; white-space: nowrap; font-size: 12px; }
@media (min-width: 720px) {
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .sheet { border-radius: 8px; bottom: 24px; }
}
@media (max-width: 360px) {
  .appbar { margin: 0 16px; }
  .recruitment, .schedule-section { padding-left: 16px; padding-right: 16px; }
  .calendar-section { padding-left: 12px; padding-right: 12px; }
  .calendar-heading { align-items: flex-start; }
  .month-navigation { max-width: 150px; }
  .submit-bar, .sheet { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 23px; }
  .day .number { width: 35px; height: 35px; }
  .shift-time { font-size: 15px; }
  .shift-row { gap: 9px; }
  .previous-time { padding-left: 8px; padding-right: 8px; gap: 5px; }
}
