@charset "UTF-8";

/**********************
注文リスト作成フォーム用のcss
************************/

/***************
両エリア共通部分
****************/

html {
  scroll-behavior: smooth;
}

/* 各エリア */
.wrap-form {
  display: flex;
}
.select-area,
.order-area {
  display: flex;
  flex-direction: column;
  padding: 1em;
  background-color: #fff;
  justify-content: space-between;
  border: 1px solid #bbb;
}

.select-area {
  flex-basis: 50%;
}

.order-area {
  flex-basis: 50%;
  margin-left: 2em;
}

.select-list-number {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.select-list_content {
  padding-bottom: 10px;
}

.select-list-number .select-list_content {
  flex-basis: 40%;
}

.select-list-number .select-list_content:last-child {
  flex-basis: 60%;
  align-self: center;
}

.select-list_title {
  padding-right: 5px;
  font-weight: bold;
  vertical-align: top;
}

/* .select-list_title--detail {
} */

.order-list_text,
#selected-text {
  width: calc(100% - 4em);
  height: 50px;
  resize: vertical;
}

/* 各種ボタン(ラジオボタン含む) */
.list-button {
  font-weight: bold;
  padding: 0.5em 2em;
  border: 2px solid #ef7f44;
  border-radius: 6px;
  background-color: #ef7f44;
  color: #fff;
  box-shadow: 0 5px #c44d3e;
  -webkit-appearance: none;
}

.list-button:active {
  box-shadow: none;
  transform: translateY(5px);
}

.list-button:disabled {
  border: 2px solid #f3b696;
  background-color: #f3b696;
  cursor: default;
  box-shadow: none;
  transform: translateY(5px);
}

.deg-radio-btn.disabled {
  color: #cfcfcf;
}

.deg-radio-btn.disabled label {
  cursor: default;
}

.confirm-list_button,
.order-list_button {
  text-align: center;
}

.confirm-list_button input,
.order-list_button input {
  font-size: 1.2em;
  cursor: pointer;
}

.deg-radio-btn {
  display: inline-block;
}

.deg-radio-btn label {
  padding-right: 10px;
}

/* inputのボーダー */
.order-area .order-list_number:focus,
.order-list_text:focus,
#selected-length:focus,
#selected-number:focus,
#selected-text:focus {
  outline: none;
  border-bottom: 3px solid #ef7f44;
}

#selected-name:focus {
  outline: none;
}

#selected-name:disabled,
#selected-length:disabled {
  background-color: #fff;
  border-color: #ccc;
  color: #555;
}

.order-area .order-list_number,
.order-list_text,
#selected-name,
#selected-length,
#selected-number,
#selected-text {
  padding-left: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1.5px solid #555;
}

/* スクロールバー */
.parts-container::-webkit-scrollbar,
.order-list-container::-webkit-scrollbar {
  width: 5px;
}

.parts-container::-webkit-scrollbar-track,
.order-list-container::-webkit-scrollbar-track {
  background-color: #ccc;
  border-radius: 100px;
}

.parts-container::-webkit-scrollbar-thumb,
.order-list-container::-webkit-scrollbar-thumb {
  border: 5px solid transparent;
  border-radius: 100px;
  background-color: #ef7f44;
}

/* エラーメッセージ */
.error-message {
  display: none;
  color: #ff0000;
  transition: all 0.3s;
  font-size: 13px;
}

.error-message.error {
  display: block;
  margin: 0;
}

/* 追加確認メッセージ */
.confirm-list_button .confirm-message {
  visibility: hidden;
  margin-bottom: 0.5em;
  color: #ef7f44;
}

.confirm-message.confirm {
  visibility: visible;
}

/*記事本文の手順リストのcss*/
.article .order-process > li {
  font-weight: 900;
  margin: 1em 0.2em;
}

/************
選択エリアのみ
**************/
.wrap-tab {
  overflow: hidden;
  margin-bottom: 2em;
}

/*製品選ぶエリアと、リスト表示エリアの幅*/
.tab-list {
  display: flex;
  padding: 0;
}

.tab-list > li {
  display: block;
  padding: 0.5em 1em;
  width: 100%;
  color: #fff;
  text-align: center;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-list > li:hover,
.tab-list .active {
  background: #0c4767;
}

.parts-container {
  height: 450px;
  overflow-y: scroll;
  display: none;
}

.parts-container.active {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.parts-list {
  cursor: pointer;
  padding: 0.5em;
  flex-basis: calc(100% / 4);
  border: 2px solid transparent;
  transition: all 0.1s;
}

.parts-list:hover {
  border: 2px solid #ccc;
}

.parts-list.selected {
  border: 2px solid #0c4767;
}

.parts-container .parts-list_name {
  font-size: 0.8em;
  margin: 0;
}

.wrap-confirm-list {
  padding: 10px;
}

#selected-name,
#selected-length {
  width: calc(100% - 4em);
  height: 2em;
}

#selected-number {
  width: calc(100% - 3em);
  height: 2em;
}

/***************
コピーエリアのみ
****************/

.wrap-form .order-area_title {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 32px;
  color: #fff;
  background-color: #0c4767;
}

.order-list-container {
  height: 700px;
  overflow-y: scroll;
  margin-bottom: 1em;
  padding-right: 10px;
}

.wrap-order-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 15px;
  margin-bottom: 2em;
  border-bottom: 4px dotted #ccc;
}

.order-list_flex-img {
  flex-basis: 15%;
  padding-right: 10px;
}

.order-list_flex-list {
  flex-basis: 85%;
}

.order-area .select-list-type {
  display: flex;
  justify-content: space-between;
}

/* .order-area .select-list-number {
  justify-content: space-between; */

.order-list-container .order-list_name,
.order-list-container .order-list_length {
  display: inline-block;
  margin-bottom: 0;
}

.select-list_content .order-list_number {
  width: 6em;
  height: 2em;
}

.delete-list-button {
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 2em;
  cursor: pointer;
  color: #ccc;
  border: none;
  background-color: transparent;
  transition: all 0.3s;
}

.delete-list-button:hover {
  color: #ef7f44;
}

/****************
モーダル表示の部分
*****************/

.modal-area {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: 0.4s;
  margin: 0;
}

.modal {
  position: absolute;
  inset: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  background-color: #e6ecf0;
  border-radius: 10px;
  width: 600px;
  height: 400px;
  text-align: center;
}

.modal-area.is-show {
  visibility: visible;
  opacity: 1;
}

.close-modal-icon::before {
  content: "\f00d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 3em;
  cursor: pointer;
  color: #ccc;
}

.modal-container {
  padding: 1em;
}
.modal-container_title {
  font-weight: 900;
  font-size: 1.5em;
  margin: 1em 0;
}

.close-modal-icon {
  position: absolute;
  top: 0;
  right: 20px;
}

.modal-container_text {
  text-align: left;
  padding: 1em;
}

/**************
メディアクエリ
**************/
@media screen and (max-width: 834px) {
  .wrap-form {
    flex-wrap: wrap;
  }

  .select-area,
  .order-area {
    flex-basis: 100%;
    margin: 1em;
  }

  .order-list_text,
  #selected-text {
    min-height: 50px;
    font-size: 16px;
  }
  /*タブの左側の隙間を削除(cocoonに元からあるcssの打消し)*/
  .article .tab-list {
    padding-left: 0;
  }

  .delete-button {
    text-align: center;
  }

  .select-list-number .select-list_content,
  .select-list-number .select-list_content:last-child {
    flex-basis: auto;
  }

  .select-list_content .order-list_number,
  #selected-number {
    font-size: 16px;
    width: 2.5em;
    height: 2em;
  }
}

@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/

  .parts-container.active {
    height: 380px;
  }

  .parts-list {
    flex-basis: calc(100% / 3);
  }

  .wrap-order-list {
    justify-content: center;
    position: relative;
  }

  .order-list_flex-img {
    flex-basis: 40%;
    padding-right: 0;
  }

  .tab-list {
    flex-wrap: wrap;
  }

  .order-list_flex-list {
    flex-grow: 1;
  }

  #selected-name,
  #selected-length {
    font-size: 16px;
  }

  .delete-button {
    position: absolute;
    top: 0;
    right: 10px;
  }

  .modal {
    width: 90%;
  }

  .modal-container_title {
    font-size: 1.3em;
  }
}
