.ark-toyoda-calendar-section {
  background: #fff;
}

.ark-toyoda-calendar-card,
.ark-toyoda-schedule-admin__panel {
  overflow: hidden;
  border: 1px solid rgba(25, 40, 73, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(25, 40, 73, 0.08);
}

.ark-toyoda-calendar-card {
  padding: clamp(20px, 3vw, 30px);
}

.ark-schedule-calendar {
  color: var(--toyoda-text, #23313a);
}

.ark-schedule-calendar__nav {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.ark-schedule-calendar__nav h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--toyoda-deep, #1e5f99);
  font-family: var(--ark-display, "Kiwi Maru", "Zen Kaku Gothic New", "Yu Gothic", sans-serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  word-break: keep-all;
}

.ark-schedule-calendar__nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(47, 128, 201, 0.22);
  border-radius: 999px;
  background: #f6fbfe;
  color: var(--toyoda-deep, #1e5f99);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.ark-schedule-calendar__nav a:hover {
  border-color: rgba(47, 128, 201, 0.36);
  background: #ecf6fc;
  text-decoration: none;
  transform: translateY(-1px);
}

.ark-schedule-calendar__weekdays,
.ark-schedule-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.ark-schedule-calendar__weekdays {
  margin-bottom: 8px;
}

.ark-schedule-calendar__weekdays span {
  color: #405563;
  font-size: clamp(14px, 1.7vw, 16px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.ark-schedule-day {
  position: relative;
  display: flex;
  min-width: 0;
  aspect-ratio: 1 / 0.86;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  padding: 13px 6px 10px;
  border: 1px solid rgba(25, 40, 73, 0.1);
  border-radius: 16px;
  background: #fff;
  color: #123b63;
  font: inherit;
  text-align: center;
}

button.ark-schedule-day {
  min-height: 64px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

button.ark-schedule-day:hover {
  border-color: rgba(47, 128, 201, 0.34);
  background: #f6fbfe;
  transform: translateY(-1px);
}

.ark-schedule-day--blank {
  border-color: transparent;
  background: transparent;
}

.ark-schedule-day__number {
  color: inherit;
  font-size: clamp(21px, 2.9vw, 28px);
  font-weight: 850;
  line-height: 1;
}

.ark-schedule-day__label {
  display: inline-flex;
  width: fit-content;
  min-width: 48px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding: 0 8px;
}

.ark-schedule-day__label:empty {
  display: none;
}

.ark-schedule-day.is-closed {
  border-color: rgba(190, 88, 106, 0.32);
  background: #f9dde3;
  color: #59313b;
}

.ark-schedule-day.is-closed .ark-schedule-day__label {
  background: #fff7f8;
  color: #a53e55;
  box-shadow: 0 0 0 1px rgba(190, 88, 106, 0.2);
}

.ark-schedule-day.is-temporary-closed {
  border-color: rgba(190, 88, 106, 0.34);
  background: #f7d7df;
  color: #59313b;
}

button.ark-schedule-day.is-closed:hover {
  border-color: rgba(190, 88, 106, 0.38);
  background: #f7d7df;
}

.ark-schedule-day.is-special-open {
  border-color: rgba(47, 128, 201, 0.38);
  background: #f3fbff;
  color: var(--toyoda-blue, #2f80c9);
}

.ark-schedule-day.is-special-open .ark-schedule-day__label {
  background: rgba(47, 128, 201, 0.1);
}

.ark-schedule-day.is-today {
  border-color: var(--toyoda-blue, #2f80c9);
  box-shadow: inset 0 0 0 2px rgba(47, 128, 201, 0.68);
}

.ark-schedule-calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  color: var(--toyoda-muted, #667780);
  font-size: 13px;
  font-weight: 700;
}

.ark-schedule-calendar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ark-schedule-calendar__legend i {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(25, 40, 73, 0.12);
  border-radius: 5px;
  background: #fff;
}

.ark-schedule-calendar__legend i.is-closed {
  border-color: rgba(190, 88, 106, 0.32);
  background: #f9dde3;
}

.ark-schedule-calendar__legend i.is-today {
  border-color: var(--toyoda-blue, #2f80c9);
}

.ark-toyoda-schedule-admin {
  min-height: 100vh;
  background: #f7fbfd;
  color: var(--toyoda-text, #23313a);
  font-family: var(--ark-sans, "Zen Kaku Gothic New", YuGothic, "Yu Gothic", sans-serif);
}

.ark-toyoda-schedule-admin * {
  box-sizing: border-box;
}

.ark-toyoda-schedule-admin .ark-page-header {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid rgba(25, 40, 73, 0.08);
}

.ark-toyoda-schedule-admin .ark-header-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.ark-toyoda-schedule-admin .ark-header-logo img {
  display: block;
  width: 148px;
  height: auto;
}

.ark-toyoda-schedule-admin .ark-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ark-toyoda-schedule-admin .ark-header-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid rgba(47, 128, 201, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--toyoda-deep, #1e5f99);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ark-toyoda-schedule-admin__header {
  background: rgba(255, 255, 255, 0.94);
}

.ark-toyoda-schedule-admin__main {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 74px) 0;
}

.ark-toyoda-schedule-admin__panel {
  padding: clamp(22px, 4vw, 36px);
}

.ark-toyoda-schedule-admin__panel h1 {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: var(--toyoda-deep, #1e5f99);
  font-family: var(--ark-display, "Kiwi Maru", "Zen Kaku Gothic New", "Yu Gothic", sans-serif);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 500;
  line-height: 1.35;
}

.ark-toyoda-schedule-admin__lead {
  margin: 0 0 24px;
  color: var(--toyoda-muted, #667780);
  font-weight: 700;
}

.ark-schedule-login {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.ark-schedule-login label {
  color: var(--toyoda-deep, #1e5f99);
  font-weight: 700;
}

.ark-schedule-login input {
  min-height: 52px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(25, 40, 73, 0.18);
  border-radius: 14px;
  background: #fff;
  font: inherit;
}

.ark-schedule-login button,
.ark-schedule-save {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--toyoda-blue, #2f80c9);
  color: #fff;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 15px 28px rgba(47, 128, 201, 0.22);
  cursor: pointer;
}

.ark-schedule-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.ark-schedule-message p {
  margin: 0;
}

.ark-schedule-message--success {
  background: #eef8f4;
  color: #217c4e;
}

.ark-schedule-message--error {
  background: #fff4f4;
  color: #9b3f3f;
}

.ark-schedule-admin-form {
  display: grid;
  gap: 18px;
}

.ark-schedule-admin-actions {
  position: sticky;
  bottom: 14px;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(25, 40, 73, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.ark-schedule-save {
  width: min(360px, 100%);
}

@media (max-width: 700px) {
  .ark-toyoda-calendar-card {
    padding: 16px;
    border-radius: 22px;
  }

  .ark-schedule-calendar__nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ark-schedule-calendar__nav h3 {
    order: -1;
  }

  .ark-schedule-calendar__nav a {
    min-height: 40px;
  }

  .ark-schedule-calendar__weekdays,
  .ark-schedule-calendar__grid {
    gap: 5px;
  }

  .ark-schedule-day {
    min-height: 50px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    gap: 4px;
    padding: 8px 2px 6px;
  }

  .ark-schedule-day__number {
    font-size: clamp(18px, 5.1vw, 22px);
  }

  .ark-schedule-day__label {
    max-width: 100%;
    min-width: 36px;
    min-height: 20px;
    font-size: 12px;
    padding: 0 5px;
  }

  .ark-toyoda-schedule-admin__main {
    width: min(100% - 24px, 960px);
    padding: 26px 0 60px;
  }

  .ark-toyoda-schedule-admin .ark-page-header {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }

  .ark-toyoda-schedule-admin .ark-header-logo img {
    width: 126px;
  }

  .ark-toyoda-schedule-admin .ark-header-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .ark-toyoda-schedule-admin__panel {
    padding: 20px 14px;
    border-radius: 22px;
  }
}

@media (max-width: 360px) {
  .ark-toyoda-calendar-card {
    padding: 12px;
  }

  .ark-schedule-calendar__weekdays,
  .ark-schedule-calendar__grid {
    gap: 4px;
  }

  .ark-schedule-day {
    min-height: 48px;
    border-radius: 10px;
    gap: 3px;
  }

  .ark-schedule-day__number {
    font-size: 18px;
  }

  .ark-schedule-day__label {
    min-width: 34px;
    min-height: 19px;
    font-size: 11px;
    padding: 0 4px;
  }
}
