@charset "utf-8";

:root {
  --primary: #1976d2;
  --secondary: #2e7d32;
  --danger: #cd163c;
  --text-color: #222;
  --light-color: #fff;
  --gray-90: #eee;
  --gray-80: #ddd;
  --pale-primary: #cae0f5;
  --pale-secondary: #cdf1cf;
  --pale-danger: #ffe7ec;
  --border-color: #cbced3;
}

html {
  margin: 0;
  padding: 0;
  color: var(--text-color);
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

#main {
  width: min(900px, 100% - 20px);
  margin: 55px auto 0;
}

.main-content {
  position: relative;
}

.main-content::before {
  content: '';
  transition: background-color .3s;
}

.main-content.loading::before {
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, .6);
  z-index: 30;
}

.main-content.loading::after {
  content: '';
  display: block;
  width: 80px;
  height: 80px;
  position: fixed;
  inset: 0;
  margin: auto;
  background: center / contain no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20stroke%3D%22%231976d2%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin%3Acenter%3Banimation%3Aspinner_zKoa%202s%20linear%20infinite%7D.spinner_V8m1%20circle%7Bstroke-linecap%3Around%3Banimation%3Aspinner_YpZS%201.5s%20ease-in-out%20infinite%7D%40keyframes%20spinner_zKoa%7B100%25%7Btransform%3Arotate(360deg)%7D%7D%40keyframes%20spinner_YpZS%7B0%25%7Bstroke-dasharray%3A0%20150%3Bstroke-dashoffset%3A0%7D47.5%25%7Bstroke-dasharray%3A42%20150%3Bstroke-dashoffset%3A-16%7D95%25%2C100%25%7Bstroke-dasharray%3A42%20150%3Bstroke-dashoffset%3A-59%7D%7D%3C%2Fstyle%3E%3Cg%20class%3D%22spinner_V8m1%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229.5%22%20fill%3D%22none%22%20stroke-width%3D%223%22%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E');
  z-index: 35;
}

.main-content.loading.error::after {
  content: 'ページの読み込みに失敗しました。ページを再読み込みしてください。';
  width: 80%;
  height: fit-content;
  background: none;
  text-align: center;
  font-weight: 600;
}

h1 {
  margin-bottom: .1em;
  padding: .5em;
  border-bottom: 2px solid var(--gray-90);
  color: var(--primary);
  font-size: 1.6rem;
  text-align: center;
  letter-spacing: .03em;
}

h1 .page-subtitle {
  display: block;
  margin: .1em 0 0;
  font-size: .7em;
}

h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1.15rem;
}

.separate-heading {
  margin-top: 2em;
  padding: 0 0 0 .3em;
  border-left: 7px solid var(--primary);
}

#footer {
  margin-top: 3em;
}

#copyright {
  color: var(--border-color);
  font-size: .8rem;
  text-align: center;
}

.ts-small {
  font-size: small;
}

.tw-normal {
  font-weight: 500;
}

.tw-bold {
  font-weight: 600;
}

.ta-right {
  text-align: right;
}

.tc-sat {
  color: var(--primary);
}

.tc-sun,
.tc-holiday {
  color: rgb(214, 49, 76);
}

.tc-error {
  color: var(--danger);
}

.badge {
  display: inline-block;
  padding: .1em .6em;
  border: none;
  border-radius: 100px;
  font-size: .9em;
}

.badge-primary {
  background-color: var(--primary);
  color: var(--light-color);
}

.float-right-top {
  position: absolute;
  top: .5em;
  right: .5em;
}

.arrow-link {
  display: inline-block;
  margin: .3em 0;
  padding: .1em 1em 0 .1em;
  background: right center / auto 1em no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%2015%22%3E%3Cpolyline%20points%3D%222%202%208%207.5%202%2013%22%20fill%3D%22none%22%20stroke%3D%22%231976d2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E');
  border-bottom: 1px solid;
  color: var(--primary);
  text-decoration: none;
}

.border-box {
  margin: .5em 0;
  padding: .3em 1em;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 10px;
}

.border-primary {
  border-color: var(--primary);
}

.border-box h3:first-child {
  margin: .5rem 0 .7em;
}

.accepting-marker {
  display: inline-block;
  margin: 0 0 0 1em;
  padding: .05em .8em;
  position: relative;
  background: var(--primary);
  border-radius: 5px;
  color: var(--light-color);
  font-size: .9em;
}

.accepting-marker::before {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  top: calc(50% - .35em);
  left: -.5em;
  border-top: .35em solid transparent;
  border-bottom: .35em solid transparent;
  border-right: .55em solid var(--primary);
}

hr {
  border-top: 1px solid var(--border-color);
  border-bottom: none;
  border-left: none;
  border-right: none;
}

/* header */

#header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 55px;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  z-index: 1000;
}

#system-title {
  margin: 0;
  padding: 0 15px;
  align-self: center;
  color: var(--light-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.header-nav-list {
  list-style: none;
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
}

.header-nav-list-item {
  border-left: 1px solid rgba(255, 255, 255, .3);
}

.header-nav-list-link {
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-end;
  width: 55px;
  height: 100%;
  padding: 7px 0;
  box-sizing: border-box;
  color: var(--light-color);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.nav-mypage .header-nav-icon {
  display: block;
  width: 23px;
  height: 23px;
  margin: 0 auto;
  background: center / contain no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%206.851%206.492%22%3E%3Cg%20id%3D%22c%22%3E%3Ccircle%20cx%3D%223.426%22%20cy%3D%221.642%22%20r%3D%221.642%22%20style%3D%22fill%3A%23fff%3B%20stroke-width%3A0px%3B%22%2F%3E%3Cpath%20d%3D%22M1.858%2C3.864h3.136c1.025%2C0%2C1.858.832%2C1.858%2C1.858v.77H0v-.77c0-1.025.832-1.858%2C1.858-1.858Z%22%20style%3D%22fill%3A%23fff%3B%20stroke-width%3A0px%3B%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
}

.nav-menu .header-nav-icon {
  display: block;
  width: 23px;
  height: 2px;
  margin: 9px auto;
  padding: 0;
  position: relative;
  background: var(--light-color);
  transition: all .3s;
}
.nav-menu .header-nav-icon::before,
.nav-menu .header-nav-icon::after {
  content: '';
  width: 23px;
  height: 2px;
  position: absolute;
  left: 0;
  right: 0;
  background: var(--light-color);
  transform-origin: right center;
  transition: all .3s;
}
.header-nav-icon::before {
  top: -8px;
}

.header-nav-icon::after {
  bottom: -8px;
}

.header-nav-text {
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1;
}

#global-nav-switch {
  display: none;
}

#global-nav-switch:checked + #header-nav .nav-menu .header-nav-icon {
  background: transparent;
}
#global-nav-switch:checked + #header-nav .nav-menu .header-nav-icon::before {
  transform: rotate(-36deg) scaleX(1.2);
}
#global-nav-switch:checked + #header-nav .nav-menu .header-nav-icon::after {
  transform: rotate(36deg) scaleX(1.2);
}

#global-nav {
  width: min(80vw, 280px);
  position: fixed;
  top: 55px;
  bottom: 0;
  right: 0;
  left: auto;
  padding: 20px;
  box-sizing: border-box;
  background: var(--light-color);
  transform: translateX(100%);
  transition: all .3s;
}

#global-nav-switch:checked ~ #global-nav {
  transform: translateX(0);
  box-shadow: 0px 5px 5px rgba(0, 0, 0, .2);
}

.global-nav-list {
  list-style: none;
  margin: 1em 0;
  padding: 0;
}

.global-nav-list-item {
  padding: .2em;
  border-bottom: 1px solid var(--gray-80);
}

.global-nav-link {
  display: block;
  padding: .2em .2em .2em calc(15px + .5em);
  color: var(--primary);
  text-decoration: none;
  background: left center / 15px no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2015%2015%22%20width%3D%2215%22%20height%3D%2215%22%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%227.5%22%20r%3D%227.5%22%20fill%3D%22%23a7aaaf%22%20stroke-width%3D%220%22%2F%3E%3Cpolyline%20points%3D%226.426%2011.074%2010.001%207.5%206.426%203.926%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
}

.global-nav-list .global-nav-link {
  font-size: 1.2em;
}

.global-nav-link.link-disabled {
  color: var(--border-color);
  pointer-events: none;
  cursor: default;
}

.global-nav-subtext {
  margin: .3em 0;
  font-size: .9em;
}

.global-nav-sub-list {
  list-style: none;
  margin: 1em 0;
  padding: 0;
}

/* portal page */

#notice {
  max-height: 15em;
  margin: 1.5em 0;
  padding: .3em 1em;
  box-sizing: border-box;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden scroll;
}

#notice h2 {
  margin: .5em 0 .3em;
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notice-item {
  padding: .6em 0;
}

.notice-item:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

/* notice message */

.notice-message {
  width: 100%;
  margin: 10px 0;
  padding: 1em 1.5em;
  border: 2px solid;
  border-radius: 10px;
  box-sizing: border-box;
}

.notice-message.notice-message-done {
  background: var(--pale-secondary);
  border-color: var(--secondary);
}

.notice-message.notice-message-error {
  background: var(--pale-danger);
  border-color: var(--danger);
}

/* login page */

#login-form {
  max-width: 450px;
  margin: 1em auto;
  padding: 1em;
  border: 2px solid var(--primary);
  border-radius: 10px;
  box-sizing: border-box;
}

/* reserve list */

.badge-status-yet,
.badge-status-done {
  position: absolute;
  top: -5px;
  right: -5px;
}

.badge-status-yet {
  background: var(--pale-danger);
  color: var(--danger);
}

.badge-status-done {
  background: var(--pale-secondary);
  color: var(--secondary);
}

.raffle-box {
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  margin: .6em 0;
  position: relative;
}

.raffle-box-tab {
  flex: 0 0 3em;
  border-radius: 10px 0 0 10px;
  color: var(--light-color);
  writing-mode: vertical-rl;
  text-align: center;
  line-height: 3;
  font-weight: 600;
  letter-spacing: .2em;
}

.raffle-box-tab.raffle-yet {
  background: var(--primary);
}

.raffle-box-tab.raffle-elected {
  background: var(--secondary);
}

.raffle-box-tab.raffle-failed {
  background: var(--border-color);
}

.raffle-box-content {
  flex: 1 1 calc(100% - 3em);
  padding: .3em 1em;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 10px 10px 0;
}

/* step indicator */

.step-wrapper {
  display: flex;
  justify-content: center;
  counter-reset: steps 0;
  border-bottom: 2px solid var(--gray-90);
  padding: .8rem;
}

.step-name {
  color: var(--border-color);
  font-size: .8rem;
  text-align: center;
}

.step-item {
  text-align: center;
}

.step-item.current .step-name {
  color: var(--primary);
}

.step-item.done .step-name {
  color: var(--secondary);
}

.step-item::before {
  counter-increment: steps 1;
  content: counter(steps);
  display: block;
  width: 2em;
  height: 2em;
  margin: 0 auto;
  background: var(--border-color);
  border-radius: 5px;
  color: var(--light-color);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 2;
}

.step-item:not(:last-child) {
  padding-right: calc(1em + 15px);
  background: right .5em center / 15px 100% no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2015%2045%22%3E%3Cpolyline%20points%3D%226.644%2042.234%2012.215%2022.5%206.644%202.998%22%20fill%3D%22none%22%20stroke%3D%22%23a7aaaf%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E');
}

.step-item.current:not(:last-child) {
  background: right .5em center / 15px 100% no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2015%2045%22%3E%3Cpolyline%20points%3D%226.644%2042.234%2012.215%2022.5%206.644%202.998%22%20fill%3D%22none%22%20stroke%3D%22%231976d2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E');
}
.step-item.done:not(:last-child) {
  background: right .5em center / 15px 100% no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2015%2045%22%3E%3Cpolyline%20points%3D%226.644%2042.234%2012.215%2022.5%206.644%202.998%22%20fill%3D%22none%22%20stroke%3D%22%232e7d32%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E');
}

.step-item.current::before {
  background: var(--primary);
}
.step-item.done::before {
  content: '';
  background: center / 1em no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2015%2015%22%3E%3Cpolyline%20points%3D%223.402%207.417%206.189%2010.204%2011.598%204.796%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%223%22%2F%3E%3C%2Fsvg%3E'), var(--secondary);
}

/* tab */

.tab-wrapper {
  display: flex;
  justify-content: center;
}

.tab-item {
  position: relative;
  margin: 1.5em .5em;
  padding: .4em 1.2em;
  background: none;
  border: 2px solid var(--primary);
  border-radius: 500px;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.tab-item.current {
  background: var(--primary);
  color: var(--light-color);
}

.tab-item.current::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  top: auto;
  bottom: -.7em;
  left: calc(50% - .6em);
  border-width: .75em .6em 0 .6em;
  border-color: var(--primary) transparent transparent transparent;
  border-style: solid;
}

/* form */

.form-item {
  position: relative;
  margin: 1.5em 0 clamp(1.5em, 1em + 2vw, 3em);
}

.form-item-name {
  margin: .5em 0;
  font-weight: 600;
  font-size: 1.1em;
}

.form-input,
.form-select {
  width: 100%;
  padding: .4em .6em;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
}

.form-select {
  padding: .4em 2.3em .4em .6em;
  appearance: none;
  background: right .7em center / 15px no-repeat url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2015%2015%22%3E%3Cpolyline%20points%3D%222%205.2%207.5%2010.5%2013%205.2%22%20fill%3D%22none%22%20stroke%3D%22%23a7aaaf%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E'), var(--light-color);
}

.form-select.width-fit {
  width: fit-content;
}

.form-input.width-5em {
  width: 5em;
}

.form-checkbox {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  appearance: none;
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  vertical-align: top;
  margin: 0.25em 0.5em 0 0;
}
.form-checkbox:checked {
  background: center / 90% no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2015%2015%22%3E%3Cpolyline%20points%3D%223.402%207.417%206.189%2010.204%2011.598%204.796%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%223%22%2F%3E%3C%2Fsvg%3E'), var(--primary);
  border-color: var(--primary);
}
.form-checkbox:disabled {
  background: var(--gray-80);
}

.form-label-wrap:has(:is(.form-checkbox:disabled, .form-radio:disabled)) {
  color: var(--border-color);
}

.form-radio {
  appearance: none;
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin: 3px 5px -.1em;
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  vertical-align: baseline;
}

.form-radio:checked {
  background-image: radial-gradient(var(--primary) 55%, transparent 55%);
  border-color: var(--primary);
}

.form-radio:disabled {
  background: var(--gray-80);
}

.list-image {
  height: 40px;
  width: auto;
  vertical-align: middle;
}

.form-button,
.link-button {
  display: block;
  appearance: none;
  width: min(100%, 500px);
  margin: 1em auto;
  padding: .5em .7em;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  padding-right: 20px;
  padding-left: 20px;
  background: right .3em center / 10px 15px no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%2015%22%3E%3Cpolyline%20points%3D%222%202%207%207.5%202%2013%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E'), var(--primary);
  border-bottom: 3px solid #034483;
  color: var(--light-color);
}

.button-danger {
  padding-right: 20px;
  padding-left: 20px;
  background: right .3em center / 10px 15px no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%2015%22%3E%3Cpolyline%20points%3D%222%202%207%207.5%202%2013%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E'), var(--danger);
  border-bottom: 3px solid #7d051e;
  color: var(--light-color);
}

.border-button {
  background: transparent;
  border: 2px solid;
}

.border-button.button-danger {
  padding-right: 20px;
  padding-left: 20px;
  background: right .3em center / 10px 15px no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%2015%22%3E%3Cpolyline%20points%3D%222%202%207%207.5%202%2013%22%20fill%3D%22none%22%20stroke%3D%22%23cd163c%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E'), var(--light-color);
  color: var(--danger);
}

.form-button.image-button {
  padding: 0;
  background: var(--light-color);
  border: 1px solid var(--primary);
}

.button-image {
  width: auto;
  height: 40px;
  vertical-align: middle;
}

.parent-box {
  padding: .3em 1em;
  background: var(--pale-primary);
  border: 1px solid var(--primary);
  border-radius: 10px;
  box-sizing: border-box;
}

.enabled-box,
.disabled-box {
  border-radius: 10px;
  padding: .3em 1em;
  box-sizing: border-box;
  position: relative;
}

.enabled-box {
  border: 1px solid var(--primary);
}

.disabled-box {
  border: 1px solid var(--border-color);
  background: var(--light-color);
}

.dl-table {
  margin: .6em 0;
  padding: 0;
}

.dl-table.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

.dl-list-table {
  margin: .6em 0;
  padding: 0;
}

.dl-list-table:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.dl-table-item {
  display: flex;
  justify-content: flex-start;
  column-gap: .6em;
  margin: .6em 0;
}

.dl-table-item.border-bottom {
  padding-bottom: .6em;
  border-bottom: 1px solid var(--border-color);
}

.dl-table-dt {
  flex: 0 0 min(30% - .6em, 150px - .6em);
  margin: 0;
  border-right: 1px solid var(--gray-80);
  font-weight: 600;
}

.dl-table-dd {
  flex: 0 0 max(70%, 100% - 150px);
  margin: 0;
}

.form-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.form-fieldset > .form-label-wrap {
  display: block;
  margin: 0 0 .6em 1.5em;
}

.enabled-box.equipment-box .form-item {
  margin: 1.2em 0;
}

.option-flex-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: .4em 0 .4em 5px;
}

.option-flex-wrap .form-label-wrap {
  display: block;
  margin: 0 1em 0 0;
}

.option-flex-wrap .option-quantity {
  margin: 0;
}

.selected-facility-table {
  margin: 0 0 .8em;
}

.selected-facility-table .facility-item {
  display: flex;
  justify-content: space-between;
}

.selected-facility-table .facility-name {
  flex: 0 0 5em;
  font-weight: 600;
}
.selected-facility-table .facility-time {
  flex: 1 1 calc(100% - 9em);
  justify-self: stretch;
}
.selected-facility-table .facility-price {
  flex: 0 0 5em;
  text-align: right;
}

.selected-content .date {
  margin: .5em 0;
  font-weight: 600;
}

.price-table-item {
  display: flex;
  justify-content: space-between;
}

.price-table-dt {
  flex: 1 0 calc(100% - 5em);
}

.price-table-dd {
  flex: 0 0 5em;
  text-align: right;
  margin: 0;
}

.price-table-options {
  margin: 0 0 .3em .5em;
  padding-left: .5em;
  border-left: 1px solid var(--border-color);
}

.price-table-sum {
  border-top: 1px solid var(--border-color);
  margin-top: .3em;
  padding-top: .3em;
  font-size: 1.1em;
  font-weight: 600;
}

.price-facility-table {
  margin: .5em 0;
}

.selected-content-items .price-facility-table:not(:last-child) {
  padding-bottom: .5em;
  border-bottom: 1px dashed var(--border-color);
}

/* selected-data-wrapper */
.selected-data-wrapper {
  position: relative;
}

/* selected-data-horizontal */
.selected-data-horizontal {
  margin: 1em 0;
}
.selected-data-horizontal .selected-facility {
  font-weight: 600;
  margin-right: 1em;
}

.option-list {
  margin: 0;
  padding: 0 0 0 1.5em;
}

.form-text {
  font-size: .9em;
  opacity: .9;
}

.form-text.with-top-item {
  margin: .5em 0 1.3em;
}

.form-text.width-button {
  width: min(100%, 500px);
  margin-right: auto;
  margin-left: auto;
}

/* calendar */

.calendar-wrapper {
  width: 100%;
  margin: .5em auto;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
}

#calendar-month {
  font-weight: 600;
  font-size: 1.1em;
}

#calendar-prev,
#calendar-next {
  appearance: none;
  color: var(--light-color);
  border: none;
  border-radius: 5px;
  font-size: .9rem;
}

#calendar-prev {
  padding: .3em .6em .3em calc(.6em + 10px);
  background: left .3em center / 10px 15px no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%2015%22%3E%3Cpolyline%20points%3D%228%202%203%207.5%208%2013%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E'), var(--primary);
}

#calendar-next {
  padding: .3em calc(.6em + 10px) .3em .6em;
  background: right .3em center / 10px 15px no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%2015%22%3E%3Cpolyline%20points%3D%222%202%207%207.5%202%2013%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E'), var(--primary);
}

#calendar-prev:disabled,
#calendar-next:disabled {
  background-color: var(--border-color);
}

#calendar-body {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  text-align: center;
}

.cal-td {
  padding: 3px;
}

.cal-td.is-disabled {
  color: var(--border-color);
}

.cal-date-radio {
  display: none;
}

.day-count {
  display: block;
  width: 100%;
  background: var(--pale-primary);
  border-radius: 5px;
  line-height: 2.5;
}

.week-row .day.sat,
.day-count.sat {
  color: var(--primary);
}

.week-row .day.sun,
.day-count.sun {
  color: rgb(223, 70, 95);
}

.cal-date-radio:checked + .day-count {
  background: var(--primary);
  color: var(--light-color);
}

/* vacant table */

#vacant-table-wrapper {
  max-height: calc(100vh - 65px);
  overflow: auto;
}

#vacant-table {
  width: max(100%, 800px);
  border-collapse: collapse;
}

#vacant-table thead {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(2px);
  z-index: 20;
}

#vacant-table thead th:first-child {
  width: 120px;
}

#vacant-table thead th:not(:first-child) {
  width: 40px;
}

#vacant-table .sticky {
  position: sticky;
  left: 0;
  padding: 0 6px 0 0;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(2px);
  z-index: 10;
}

.vacant-line .sticky {
  text-align: left;
}

.vacant-item {
  padding: 4px 2px;
}

.vacant-input {
  display: none;
}

.vacant-button {
  display: block;
  width: 100%;
  position: relative;
  background: var(--pale-primary);
  border-radius: 5px;
  color: #1976d2;
  line-height: 2.5;
  text-align: center;
}

.vacant-button:hover {
  cursor: pointer;
}

.vacant-input:checked + .vacant-button {
  background: var(--primary);
  color: var(--light-color);
}
.vacant-input:checked + .vacant-button::after {
  content: '';
  display: inline-block;
  width: .9em;
  height: .9em;
  background: center / contain no-repeat url('data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2015%2015%22%3E%3Cpolyline%20points%3D%223.402%207.417%206.189%2010.204%2011.598%204.796%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%223%22%2F%3E%3C%2Fsvg%3E');
  position: absolute;
  top: 0;
  right: 0;
}

.vacant-input:disabled + .vacant-button {
  background: var(--gray-90);
  color: var(--border-color);
}

.vacant-closed-text {
  position: sticky;
  left: calc((100% + 120px) / 2);
  color: var(--primary);
  line-height: 2.5;
}

/* section */

.section-header {
  margin: 2rem 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-header .section-heading {
  margin: 0;
}

.count-text {
  margin: 0;
  font-weight: 600;
  font-size: .9em;
}

.count-num {
  margin: 0 .2em;
  font-size: 1.5em;
}

/* importants */

.mb-0-5 {
  margin-bottom: .5em;
}

.mb-1 {
  margin-bottom: 1em;
}

.mb-2 {
  margin-bottom: 2em;
}

.my-2 {
  margin-top: 2em;
  margin-bottom: 2em;
}

.border-primary {
  border-color: var(--primary);
}