@charset "utf-8";

/* =====================================================
#　flex
===================================================== */
.flex {
  display: flex;
  align-items: center;
  gap: 30px;

  &:first-of-type {
    margin-block-start: 0 !important;
  }

  &:nth-of-type(n + 1) {
    margin-block-start: 15px;
  }

  & span {
    width: 100px;
  }
}

@media screen and (max-width: 767px) {
  .flex {
    gap: 20px;

    &:nth-of-type(n + 1) {
      margin-block-start: 15px !important;
    }

    & span {
      width: 80px;
    }
  }
}

/* =====================================================
#　flex_box
===================================================== */
.flex_box {
  display: block;
  width: calc(100% / 2 - 15px);

  & input {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .flex_box {
    width: calc(100% / 2 - 10px);

    & input {
      width: 100%;
    }
  }
}

/* =====================================================
#　flex_box
===================================================== */
.title_box {
  width: calc(100% - 100px);
}

/* =====================================================
#　textCenter
===================================================== */
.textCenter {
  text-align: center;
}

@media screen and (max-width: 767px) {
  .textCenter {
    text-align: left;
  }
}

/* =====================================================
#　placeholder
===================================================== */
::placeholder {
  color: #9b9b9b;
}

/* =====================================================
#　small
===================================================== */
small {
  font-size: 12px;
  margin-block-start: 10px;
}

/* =====================================================
#　border none　　　　　
===================================================== */
.border_none {
  border: none !important;
}

/* =====================================================
#　input
===================================================== */
input {
  width: 100%;
  height: 50px;
  padding: 5px 10px;
  border: solid 1px #dddddd;
  border-radius: 5px;
}

input:disabled {
  width: 300px;
  background-color: #f5f5f5;
}

@media screen and (max-width: 767px) {
  input {
    width: 100%;
  }

  input:disabled {
    width: 100%;
    margin-block-start: 10px;
  }
}

/* =====================================================
#　input[name="keyword"]
===================================================== */
input[name="keyword"] {
  width: 400px;
  height: 50px;
  padding: 5px 10px;
  border: solid 1px #dddddd;
  border-radius: 5px;
}

@media screen and (max-width: 767px) {
  input[name="keyword"] {
    width: 100%;
  }
}


/* input[type="checkbox"]
===================================================== */
.inputGroup {
  background-color: #fff;
  display: block;
  margin: 5px 0;
  position: relative;

  label {
    padding: 15px 20px;
    width: 90%;
    display: block;
    text-align: left;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 200ms ease-in;
    overflow: hidden;

    &:before {
      width: 10px;
      height: 10px;
      content: "";
      background-color: #00a9c9;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%) scale3d(1, 1, 1);
      transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
      opacity: 0;
      z-index: -1;
    }

    &:after {
      width: 32px;
      height: 32px;
      content: "";
      border: 2px solid #d1d7dc;
      background-color: #fff;
      background-image: url("/form/form_restour/assets/img/icon.svg");
      background-repeat: no-repeat;
      background-position: 2px 3px;
      border-radius: 50%;
      z-index: 2;
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      transition: all 200ms ease-in;
    }
  }

  & #participation {
    width: 90%;
  }

  input:checked~label {
    color: #fff;

    &:before {
      transform: translate(-50%, -50%) scale3d(56, 56, 1);
      opacity: 1;
    }

    &:after {
      background-color: #f9d005;
      border-color: #f9d005;
    }
  }

  input {
    width: 32px;
    height: 32px;
    order: 1;
    z-index: 2;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    visibility: hidden;
  }

  & select {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .inputGroup {
    background-color: #fff;
    display: block;
    position: relative;

    label {
      padding: 10px;
      width: 100%;

      &::after {
        right: 15px;
      }
    }

    & #participation {
      width: 100%;
    }

    & select {
      width: 100%;
    }
  }
}





/* =====================================================
#　select
===================================================== */
select {
  appearance: auto;
  width: 100%;
  height: 50px;
  padding: 5px 10px;
  border: solid 1px #dddddd;
  border-radius: 5px;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  select {
    width: 100%;
  }
}

/* =====================================================
#　textarea
===================================================== */
textarea {
  width: 100%;
  border: solid 1px #dddddd;
  border-radius: 5px;
  padding: 5px 10px;
}

/* =====================================================
#　datepicker
===================================================== */
#datepicker {
  cursor: pointer;
}

/* =====================================================
#　submit
===================================================== */
.submit {
  width: 400px;
  padding: 1rem;
  border-radius: 5px;
  background-color: #f9d005;
  color: #000000;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .submit {
    width: 100%;
  }
}

/* =====================================================
#　back
===================================================== */
.back {
  width: 400px;
  padding: 1rem;
  border-radius: 5px;
  background-color: #aaaaaa;
  color: #fff;
  border: none;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .back {
    width: 100%;
    margin-block-start: 20px;
  }
}

.button_box {
  margin: 2em 0 3em;
  text-align: center;
}

button.submit_button:hover,
button.back_button:hover {
  opacity: 0.8;
  transition: 0.3s;
  cursor: pointer;
}

/* =====================================================
#　scroll　　　　　
===================================================== */
.scroll {
  overflow: auto;
  white-space: normal;
  margin-block-start: 25px;
}

.scroll::-webkit-scrollbar {
  block-size: 5px;
}

.scroll::-webkit-scrollbar-track {
  background: #efefef;
}

.scroll::-webkit-scrollbar-thumb {
  background: #efefef;
}

.scroll table {
  width: 752.5px;
  border: none;
  text-align: center;
  font-size: 13px;
}

.scroll table thead th:first-of-type {
  background-color: #efefef;
}

.scroll table thead th:nth-of-type(2) {
  background-color: #efefef;
}

.scroll table thead th:nth-of-type(3) {
  background-color: #efefef;
}

.scroll table thead th:nth-of-type(4) {
  background-color: #efefef;
}

.scroll table thead th:nth-of-type(5) {
  background-color: #efefef;
}

.scroll table thead th:nth-of-type(6) {
  background-color: #efefef;
}

.scroll table thead th:last-of-type {
  border-right: none;
  background-color: #efefef;
}

.scroll table td:last-of-type {
  border-right: none;
}

.scroll table th {
  padding-inline: 15px;
  padding-block: 10px;
  border-right: 1px solid #003a57;
  border-bottom: 1px solid #003a57;
}

.scroll table tbody th {
  background-color: #efefef;
  border-right: 1px solid #003a57;
  writing-mode: rl-tb;
  vertical-align: middle;
  white-space: nowrap;
}

.scroll table td {
  padding-inline: 15px;
  padding-block: 10px;
  border-right: 1px solid #003a57;
  border-bottom: 1px solid #003a57;
}

@media screen and (max-width: 767px) {

  .scroll table th,
  .scroll table td {
    font-size: 14px !important;
  }
}

.SlantedLine {
  background-image: linear-gradient(to right top, transparent calc(50% - 0.5px), #999 50%, #999 calc(50% + 0.5px), transparent calc(50% + 1px));
}

/* =====================================================
#　confirmTable
===================================================== */
.confirmTable {
  width: 100%;
  font-size: 15px;
}

.confirmTable tr {
  display: flex;
  border-bottom: solid 1px #003a57;
  padding: 15px;
}

.confirmTable th {
  width: 500px;
  border-right: solid 1px #003a57;
}

.confirmTable td {
  width: calc(100% - 500px);
  padding-inline: 15px 0;
}

@media screen and (max-width: 767px) {
  .confirmTable tr {
    flex-direction: column;
    padding: 15px 0;
  }

  .confirmTable th {
    width: 100%;
    font-size: 14px;
    border-right: none;
  }

  .confirmTable td {
    width: 100%;
    padding: 0;
    font-size: 14px;
  }
}

summary {
  /* display: list-item;以外を指定してデフォルトの三角形アイコンを消します */
  display: block;
}

summary::-webkit-details-marker {
  /* Safariで表示されるデフォルトの三角形アイコンを消します */
  display: none;
}

.summary_inner {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border: 1px solid #d2beff;
  font-weight: bold;
  color: #002255;
}

/* --------アイコンを作ります-------- */
.icon {
  display: block;
  position: relative;
  width: 24px;
  margin-left: 6px;
  flex-shrink: 0;
  transform-origin: center 43%;
  transition: transform 0.4s;
}

/* アコーディオンが開いた時のスタイル */
details[open] .icon {
  transform: rotate(180deg);
}

/* アイコンのバーのスタイル */
.icon::before,
.icon::after {
  content: "";
  position: absolute;
  display: block;
  width: 15px;
  height: 3px;
  background-color: #7050ff;
}

.icon::before {
  left: 0;
  transform: rotate(45deg);
}

.icon::after {
  right: 0;
  transform: rotate(-45deg);
}

/* --------summaryタグの疑似要素でアイコンを作る場合-------- */
.wrapper_pseudoElementsIcon .summary_inner::after {
  content: "";
  display: block;
  width: 25px;
  height: 16px;
  margin-left: 6px;
  flex-shrink: 0;
  background-image: url("icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform-origin: center 43%;
  /* アコーディオンが閉じる時にアイコンをアニメーションさせます */
  animation: 0.4s close-animation;
}

@keyframes close-animation {
  from {
    transform: rotate(180deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* アコーディオンが開いた時にアイコンをアニメーションさせます */
details[open] .summary_inner::after {
  animation: 0.4s open-animation forwards;
}

@keyframes open-animation {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(180deg);
  }
}

/* --------アコーディオンの中身のスタイル-------- */
.content {
  background-color: #f0f2ff;
  padding: 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------レイアウト用のスタイル-------- */
.wrapper {
  display: flex;
  margin: 0 auto;
}

.wrapper details {
  margin-bottom: 16px;
}

.wrapper details:last-child {
  margin-bottom: 0;
}

.wrapper_normalIcon,
.wrapper_pseudoElementsIcon {
  width: 700px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1071px) {
  .wrapper_normalIcon {
    margin-right: 24px;
  }
}

@media (max-width: 1070px) {
  .wrapper {
    flex-direction: column;
  }

  .wrapper_normalIcon {
    margin-bottom: 24px;
  }
}

@media (max-width: 760px) {

  .wrapper_normalIcon,
  .wrapper_pseudoElementsIcon {
    width: 100%;
  }
}

.wrapper_title {
  font-size: 22px;
}