@charset "UTF-8";

body {
  font-family: Helvetica, Arial,
      YuGothic, '游ゴシック',
      "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
      "メイリオ", Meiryo,
      Osaka, sans-serif;
  font-size: 87.5%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
}

textarea {
  min-height: 6rem;
}

/*
 * Helper
 */

/* Letter spacing */
.lsp1 { letter-spacing: .05rem; }
.lsp2 { letter-spacing: .1rem; }
.lsp3 { letter-spacing: .2rem; }

/* Border width */
.border-width-0a { border-width: .1428rem; }
.border-width-0b { border-width: .2142rem; }

/* Border style */
.border-right-dotted {
  border-right-style: dotted;
  border-right-width: 1px;
}

/* Color */
.heavy-gray { color: rgb(221,221,221); }
.bg-heavy-gray { background-color: rgb(221,221,221); }
.border-heavy-gray { border-color: rgb(221,221,221); }

.gray { color: rgb(245,245,245); }
.bg-gray { background-color: rgb(245,245,245); }
.border-gray { border-color: rgb(245,245,245); }

.white { color: rgb(255,255,255); }
.bg-white { background-color: rgb(255,255,255); }
.border-white { border-color: rgb(255,255,255); }

.red { color: rgb(245,85,30); }
.bg-red { background-color: rgb(245,85,30); }
.border-red { bordoer-color: rgb(245,85,30); }

.blue { color: rgb(30,96,245); }
.bg-blue { background-color: rgb(30,96,245); }
.border-blue { bordoer-color: rgb(30,96,245); }

/* Subtle margin */
.mt0a { margin-top: .1428rem; }
.mb0a { margin-bottom: .1428rem; }
.my0a { margin-top: .1428rem; margin-bottom: .1428rem; }

/* Image helper */
.height-auto {
  height: auto;
}

/* Text overflow */
.overflow-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/*
 * Element
 */

/* Button */
.btn {
  display: block;
  border: 0;
  border-radius: .3571rem;
}
.btn--forward {
  position: relative;
  background-image: url(/cms/common/img/arrow-white.svg);
  background-size: 8px 9px;
  background-repeat: no-repeat;
  background-position: 90% center;
}
.btn--submit {
  background-color: rgb(245,85,30);
  color: rgb(255,255,255);
  padding: .5rem 1rem;
}
.btn--preview {
  background-color: rgb(30,96,245);
  color: rgb(255,255,255);
  padding: .5rem 1rem;
}
.btn--remove {
  background-color: rgb(245,85,30);
  color: rgb(255,255,255);
}

/* Pager */
.pager-current,
.paginator-link {
  position: relative;
}
.pager-current::before,
.paginator-link:hover::before {
  content: '';
  display: block;
  position: absolute;
  background: #000;
  bottom: -3px;
  height: 1px;
  left: -2px;
  right: -2px;
}

/* Form link */
.form-inline {
  display: inline-block;
}
.form-inline button {
  display: block;
  border: 0;
  background: none;
  padding: 0;
}

/* Menu */
.menu-link {
  border-style: solid;
  border-width: 0 1px;
}
.menu-link + .menu-link {
  border-width: 0 1px 0 0;
}

/* Form */
.form {
  max-width: 48rem;
  margin: 3em auto 0;
}
.form--small {
  max-width: 24rem;
}
.form--full {
  max-width: unset;
  width: 100%;
}
.form > h2 {
  border-color: rgb(245,245,245);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  padding-bottom: .5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
}
.form input[type="text"],
.form input[type="password"],
.form input[type="email"],
.form input[type="tel"] {
  box-sizing: border-box;
  display: block;
}
.form textarea {
  height: 3rem;
}

/* Error */
.error { color: rgb(239,110,110); }

/* Flash */
.flash {
  margin-bottom: 2em;
}
.flash--ok { color: rgb(66,214,22); }
.flash--ng { color: rgb(239,110,110); }

/* Droparea */
.droparea {
  min-width: 30rem;
  box-sizing: border-box;
  background-color: rgb(245,245,245);
  text-align: center;
  height: 100px;
  line-height: 100px;
  font-size: .75rem;
}
.droparea[data-dragging='true'] {
  background-color: rgb(210,196,196);
}

.droparea--reform-image {
  min-width: initial;
  height: 60px;
  line-height: 60px;
  font-size: 10px;
}

.col-controller {
  position: relative;
}

.col-controller__remove {
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 15px;
  height: 15px;
  font-size: 0;
}


.col-controller__add {
  position: absolute;
  top: -15px;
  right: -7px;
  width: 15px;
  height: 15px;
  font-size: 0;
}

.col-controller__add--left {
  right: initial;
  left: -7px;
}


.row-controller {
  position: relative;
  padding-right: 20px;
}

.row-controller__remove {
  position: absolute;
  left: -15px;
  top: 0;
  bottom: 0;
  margin-top: auto;
  margin-bottom: auto;
  width: 15px;
  height: 15px;
  font-size: 0;
  padding: 0;
}


.row-controller__add {
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 15px;
  height: 15px;
  font-size: 0;
  padding: 0;
}

.row-controller__add--top {
  bottom: initial;
  top: 0
}

.col-controller__remove::before,
.col-controller__remove::after,
.col-controller__add::before,
.col-controller__add::after,
.row-controller__remove::before,
.row-controller__remove::after,
.row-controller__add::before,
.row-controller__add::after {
  content: '';
  display: block;
  background-color: currentColor;
  height: 1px;
  width: 10px;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  transform-origin: center;
}

.col-controller__remove::before,
.row-controller__remove::before {
  transform: rotate(45deg);
}
.col-controller__remove::after,
.row-controller__remove::after {
  transform: rotate(-45deg);
}
.col-controller__add::after,
.row-controller__add::after {
  transform: rotate(90deg);
}

.row-controller--small .row-controller__remove,
.row-controller--small .row-controller__add {
  width: 10px;
  height: 10px;
}

.row-controller--recruitment {
  padding-right: 10px;
}

.row-controller--recruitment .row-controller__remove {
  left: -9px;
}

.recruitment-prop__key {
  position: relative;
}

.recruitment-prop__key[data-too-long=true] input {
  background-color: rgb(246,208,208);
}

.recruitment-prop__key-error {
  display: none;
}

.recruitment-prop__key[data-too-long=true]:hover .recruitment-prop__key-error {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  white-space: nowrap;
  transform: translateY(calc(-100% - 10px)) translateX(-50%);
  background-color: rgba(246,208,208,.9);
  padding: .25em;
  font-size: .8em;
}

.recruitment-prop__key[data-too-long=true] .recruitment-prop__key-error::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  margin-left: auto;
  margin-right: auto;
  border-style: solid;
  --border-width: 6px;
  border-width: var(--border-width) var(--border-width) 0 var(--border-width);
  border-color: rgba(246,208,208,.9) transparent transparent transparent;
}


.pointer {
  cursor: pointer;
}

.sticky-top {
  position: sticky;
  top: 0;
  background-color: rgba(255,255,255,.75);
}

.promotion-tool-file[data-state=uploading] {
  opacity: .5;
  pointer-events: none;
  cursor: progress;
}

.table-import-result-container {
  overflow-x: auto;
}

.table-import-result {
  min-width: max-content;
  border-collapse: collapse;
  border: solid 1px rgb(221,221,221);
}

.table-import-result :where(th, td) {
  padding: .5em;
  border: solid 1px rgb(221,221,221);
}

.table-import-result-row--fail {
  color: rgb(245,85,30);
  font-weight: bold;
}

/**
 * Crop modal
 */
.crop-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, .5);
  z-index: 1000;
  display: none;

  &[data-show=true] {
    display: grid;
    place-items: center;
  }
}

.crop-modal__body {
  background-color: #fff;
  width: 1000px;
  display: grid;
  grid-template: "i h" 50px
                 "i u" 550px / 1fr max-content;
}

.crop-modal__title {
  grid-area: h;
}

.crop-modal__ui {
  grid-area: i;
}

.crop-modal__controller {
  grid-area: u;
}

.crop-modal__image {
  max-width: 100%;
  height: auto;
}

.crop-modal__btns {
  gap: .5rem;
}

/**
 * crop image
 */
.crop-image:is([src*='/r/'], [data-value*='/r/']) {
  cursor: pointer;
}
