/* iOSでのデフォルトスタイルをリセット */
input[type="submit"],
input[type="button"] {
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
}

input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
  display: none;
}

input[type="submit"]:focus,
input[type="button"]:focus {
  outline-offset: -2px;
}

html {
  overflow-x: hidden;
  width: 100vw;
}

body {
  width: 100%;
}

body,
body * {
  margin: 0;
}

.alert {
  background-color: #ffc9d2;
}

li label {
  width: 100%;
  height: 100%;
  display: block;
}

select,
input {
  border-radius: 5px;
  border: solid 2px #d9d9d9;
  font-size: 15px;
  padding: 3px;
  width: 90%;
  height: 30px;
}

textarea {
  border-radius: 5px;
  border: solid 2px #d9d9d9;
  font-size: 15px;
  padding: 3px;
  width: 90%;
}

input[type="date"] {
  position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  padding: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  height: 30px;
  width: 100%;
}

select,
input[type="radio"] {
  width: auto;
  cursor: pointer;
}

label {
  cursor: pointer;
}

select,
input[type="date"] {
  appearance: none;
  -webkit-apperance: none;
  padding-right: 18px;
  background-image: url("./Files/select-arrow.png");
  background-size: 10px;
  background-position: right 5px center;
  background-repeat: no-repeat;
}

input[type="radio"] {
  display: none;
}

textarea {
  width: 100%;
}

.fee_simulator_form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.simulator * {
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 0;
  border-spacing: 0;
  font-family: sans-serif;
}

.simulator {
  height: auto;
  width: 640px;
  background-color: white;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
}

.simulator-item-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.simulator-item {
  width: 640px;
  padding: 0 4px;
}

.simulator h2 {
  font-size: 15px;
  line-height: 25px;
  padding: 0 0 0 10px;
  margin: 0 0 10px 0;
  background-color: #cfd0d0;
}

.simulator h3 {
  font-size: 12px;
  line-height: 22px;
  padding: 0 0 0 10px;
  margin: 0 0 10px 0;
  background-color: #cfd0d0;
}

.simulator-item01 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.simulator-item01 {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: white;
}

.sp_hide_result_view_btn {
  display: none;
}

.result {
  position: relative;
  width: 480px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-view {
  width: 480px;
  height: 303px;
  position: relative;
  margin-right: 5px;
  overflow-x: hidden;
}

.sp_hide_result_view_btn,
.sp_show_result_view_btn {
  display: none;
}

/* .result-view img{
    height:100%;
    width:100%;
    object-fit: contain;
    z-index: 10;
    position:absolute;
    top:0;
    left:0;
} */

.result-info {
  max-width: 320px;
  margin-top: 10px;
}

.result-info table {
  font-size: 12px;
  width: 100%;
}

.result-info > div {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.result-info > div > div {
  width: calc(50% - 10px);
  margin: 0 5px 5px 5px;
  flex-shrink: 0;
}

.result-info > div > div th {
  background-color: #cfd0d0;
  text-align: center;
}

.result-info > div > div td {
  border: solid 1px #cfd0d0;
  background-color: white;
  padding-left: 10px;
  padding-right: 10px;
}

.result-comment {
  font-size: 10px;
  text-align: center;
}

/* .shirt-outline {
  position: absolute;
  top: 0;
  left: 0;
  background-image: url("../stripe/Files/Shirts/shirts-outline.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  z-index: 10;
} */

.result-view > div {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.base-shirt {
  position: absolute;
  top: 0;
  left: 0;
  background-image: url("./Files/bibs-shirts/tbred.png");
  background-repeat: no-repeat;
  background-color: transparent;
  height: 100%;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  mix-blend-mode: multiply;
}

.chest-design-first-mix {
  background-color: white;
  z-index: 2;
  mask-image: url("./Files/design/1athle-beta-f.png");
  -webkit-mask-image: url("./Files/design/1athle-beta-f.png");
}

.chest-design-second-mix {
  background-color: white;
  z-index: 3;
  display: none;
}

.back-design-first-mix {
  background-color: white;
  z-index: 4;
  mask-image: url("./Files/design/b-1nuri.png");
  -webkit-mask-image: url("./Files/design/b-1nuri.png");
}

.back-design-second-mix {
  background-color: white;
  z-index: 5;
  display: none;
}

.chest-design-info-mix {
  z-index: 6;
  background-image: url("./Files/design/front-no.png");
  background-repeat: no-repeat;
  background-color: transparent;
  background-size: contain;
  display: none;
}

.back-design-info-mix {
  z-index: 7;
  background-image: url("./Files/design/back-no.png");
  background-repeat: no-repeat;
  background-color: transparent;
  background-size: contain;
}

.color-palette {
  width: auto;
}

.color-palette ul li {
  background-color: black;
  margin: 2px;
  overflow: hidden;
  border: solid 1px gray;
  cursor: pointer;
  width: 60px;
  height: 50px;
  flex-shrink: 0;
}

/* .shoulder-line ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin: 0 0 5px 5px;
  flex-wrap: nowrap;
  font-size: 0;
}

.shoulder-line li {
  width: 48%;
  height: auto;
  background-color: transparent;
  overflow: hidden;
  border: none;
  position: relative;
}

.shoulder-line li img {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
} */

.simulator-item-selected::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background-color: gray;
  opacity: 0.5;
  display: block;
}

.simulator-item-selected::after {
  font-size: 16px;
  line-height: 16px;
  content: "選択中";
  position: absolute;
  color: white;
  top: calc(50% - 8px);
  left: 0;
  width: 100%;
  display: block;
  text-align: center;
}

/* li.shirt-irregular-color {
  background-color: white;
  border-top: solid 13px;
  border-top-color: black;
  border-right: solid 13px;
  border-right-color: black;
  border-bottom: solid 13px;
  border-bottom-color: white;
  border-left: solid 13px;
  border-left-color: white;
} */
.shirt-color {
  text-align: center;
}

.shirt-color select {
  margin-bottom: 10px;
  width: 80%;
}

.color-palette ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0;
  padding: 0 0 5px 5px;
  flex-wrap: nowrap;
  overflow-x: visible;
}

/* .emblem-select ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin: 0 0 5px 5px;
  flex-wrap: wrap;
}

.emblem-select li {
  width: 50px;
  height: 50px;
  background-color: white;
  margin: 2px 2px;
  border: solid 1px gray;
  position: relative;
  cursor: pointer;
}

.emblem-select li:after {
  font-size: 12px;
  line-height: 12px;
  top: calc(50% - 6px);
}

.emblem-select li img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#emblem_set_select {
  width: auto;
  height: 1rem;
  margin-right: 5px;
}

.emblem_set_select_text {
  font-size: 0.9rem;
} */

h2:after {
  content: "";
}

/* .front-design h2::after {
  content: "  (横にスクロールできます。)";
  font-size: 10px;
} */

.front-design ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0 0 5px 5px;
  flex-wrap: nowrap;
  overflow-x: visible;
  font-size: 0;
}

/* .chest-logo-select ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin: 0 0 5px 5px;
  flex-wrap: wrap;
} */

.front-design li {
  width: 23%;
  height: auto;
  background-color: white;
  margin: 2px 2px;
  border: solid 1px gray;
  flex-shrink: 0;
  position: relative;
}

/* .chest-logo-select li {
  width: 48%;
  height: auto;
  background-color: white;
  margin: 2px 2px;
  position: relative;
} */

.front-design li img,
.chest-logo-select li img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.front-design-option-select,
.back-design-option-select {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-weight: bold;
}

.front-design-option-select input,
.back-design-option-select input {
  width: 30px;
  height: 30px;
  margin-right: 20px;
  border-radius: 50%;
}

/* .center-line-select h2,
.shoulder-line h2 {
  cursor: pointer;
  position: relative;
} */
/* 
.center-line-select h2::after,
.shoulder-line h2::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background-image: url("./Files/select-arrow.png");
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  position: absolute;
  right: 10px;
  top: calc(50% - 0.5rem);
  transition-duration: 500ms;
  transform: rotate(180deg);
} */

/* .center-line-select.active h2::after,
.shoulder-line.active h2::after {
  transform: rotate(0);
} */

.back-design ul {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin: 0 0 5px 5px;
  flex-wrap: nowrap;
}

.back-design li {
  width: auto;
  height: auto;
  margin: 2px;
  background-color: white;
  position: relative;
}

.back-design li img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shirt_size_num,
.layer_shirt_size_num {
  width: 100%;
}

.layer_shirt_flag_select {
  display: flex;
  padding-left: 20px;
}

.layer_shirt_flag_select > div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 0 10px;
}

.layer_shirt_flag_select input[type="radio"] {
  display: initial;
  margin-right: 5px;
}

.layer-shirt-color {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

#layer-shirt-color-select {
  width: 55%;
}

.shirt_size_num > div > div,
.layer_shirt_size_num > div > div.layer-shirt-size-num-select {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.shirt_size_num > div > div:first-of-type > div,
.layer_shirt_size_num > div > div.layer-shirt-size-num-select > div {
  border: solid 1px rgb(214, 214, 214);
  font-size: 20px;
  font-weight: bold;
  color: #535f62;
  line-height: 50px;
  width: 50%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.shirt_size_num > div > div:first-of-type > div > p,
.layer_shirt_size_num > div > div.layer-shirt-size-num-select > div > p {
  padding-left: 5px;
  width: 60px;
  background-color: #ebebeb;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}

.shirt_size_num > div > div:first-of-type > div > div.select_wrapper,
.layer_shirt_size_num
  > div
  > div.layer-shirt-size-num-select
  > div
  > div.select_wrapper {
  min-width: 70px;
  width: 55%;
  font-size: 20px;
  margin: auto;
}

.shirt_size_num > div > div:first-of-type > div > div.select_wrapper > select,
.layer_shirt_size_num
  > div
  > div.layer-shirt-size-num-select
  > div
  > div.select_wrapper
  > select {
  width: 100%;
  height: 35px;
}

.shirt_size_num
  > div
  > div:first-of-type
  > div
  > div.select_wrapper
  p.stock_display,
.layer_shirt_size_num
  > div
  > div.layer-shirt-size-num-select
  > div
  > div.select_wrapper
  p.stock_display {
  font-size: 14px;
  line-height: 18px;
  color: rgb(255, 100, 100);
  display: none;
  white-space: nowrap;
}

.shirt_size_num > div > div:nth-of-type(2),
.layer_shirt_size_num > div > div.layer-shirt-size-num-result-wrapper {
  margin-top: 10px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.shirt_num_result {
  border: solid 1px rgb(214, 214, 214);
  padding: 8px;
  font-size: 25px;
  font-weight: bold;
  width: 50%;
  display: flex;
  flex-direction: row;
}

.shirt_num_sum {
  margin: auto;
}

.deliver_notes {
  font-size: 14px;
  margin-bottom: 10px;
}

.date_deliver {
  width: 100%;
  text-align: center;
}

.date_deliver > div {
  text-align: center;
}

.date_deliver input,
.date_use input {
  width: 90%;
}

.deliver_date_fee_notes {
  margin-top: 5px;
  font-size: 14px;
}

.discount_select_wrapper > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.discount_select_wrapper input[type="checkbox"] {
  width: auto;
}

.fee_result {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fee_result > table {
  padding-top: 10px;
  width: 100%;
  background-color: white;
  border: none;
}

.fee_result > table tbody {
  width: auto;
}

.fee_result > table th {
  color: gray;
  font-weight: lighter;
  max-width: 160px;
}

.fee_result > table tr:nth-child(odd) {
  background-color: #ebebeb;
}

.fee_result > table tr {
  text-align: right;
}

.table_design_tr {
  position: relative;
}

.table_design_tr::before {
  content: "";
  border-top: solid 3px gray;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.sum_fee {
  font-weight: bold;
  position: relative;
}

.each_fee {
  background-color: #5accbf !important;
  color: black;
  font-weight: bold;
}

.each_fee th {
  color: black !important;
}

.each_fee td:first-of-type {
  font-size: 24px;
  font-weight: bold;
  white-space: nowrap;
}

.each_fee td:nth-of-type(2) {
  font-size: 15px;
}

.fee_result > table td:nth-child(2) {
  text-align: right;
}

.fee_result > table td:nth-child(3) {
  font-size: 12px;
  text-align: left;
}

.order-contact {
  width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo_custom {
  width: 100%;
  display: none;
}

.logo_notes {
  font-size: 12px;
  color: #e9389b;
  font-weight: bold;
  display: none;
}

.order-contact h2,
.logo_custom h2 {
  font-size: 20px;
  color: #535f62;
  padding: 5px;
  background-color: #ececed;
}

div.customer_info_detail > *:nth-child(even),
div.customer_info > *:nth-child(even),
div.logo_custom > *:nth-child(even) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
  border-left: none;
  border-top: none;
}

.stock_notes {
  background-color: #ffeb3d;
  color: #2c2e35;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  margin: 20px;
  border-radius: 10px;
  padding: 15px;
  width: 70%;
}

.stock_notes span {
  padding-left: 10px;
  padding-right: 10px;
  background: #2c2e35;
  color: #ffeb3d;
}

.change_button {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact_button {
  background-color: #fc70b5;
  width: 300px;
  border: none;
  color: white;
  font-size: 18px;
  margin: 15px;
  font-weight: bold;
  height: 50px;
  cursor: pointer;
}

.change_to_order {
  width: 300px;
  background-color: #f5a500;
  border: none;
  color: white;
  font-size: 18px;
  margin-top: 15px;
  margin-bottom: 120px;
  font-weight: bold;
  height: 50px;
  cursor: pointer;
}

.LINE_button {
  color: white;
  font-size: 18px;
  margin: auto 15px;
  font-weight: bold;
  width: 300px;
  height: 50px;
  background-color: #1dcd00;
  cursor: pointer;
  display: none;
}

.LINE_notes {
  font-weight: bold;
  font-size: 15px;
  color: #1dcd00;
  display: none;
}

.backPage {
  margin: 10px;
  background-color: #c4c5c7;
  border-radius: 5px;
  width: auto;
  height: 30px;
}

.backPage a {
  padding: 5px;
  font-size: 15px;
  font-weight: lighter;
  text-decoration: none;
  color: black;
  display: block;
  height: 100%;
  width: 100%;
  line-height: 20px;
}

.customer_info_detail {
  width: 100%;
  display: none;
}

.customer_info_detail table {
  color: #535f62;
}

.customer_info_detail p {
  width: 100%;
}

.str21 {
  width: 100%;
}

.customer_info {
  width: 100%;
  display: none;
}

.notes {
  background-color: #fee6f1;
  width: 90%;
  border-radius: 10px;
  padding: 5px 20px;
  font-size: 14px;
  margin: 10px 0;
  display: none;
}

.notes h3 {
  color: #fb3199;
  background-color: transparent;
  text-align: center;
}

.submit_notes {
  font-size: 13px;
  color: red;
  margin: 10px 0;
  width: 90%;
  display: none;
}

.submit01 {
  margin-top: 10px;
  margin-bottom: 50px;
  font-size: 24px;
  font-weight: bold;
  width: 200px;
  height: 50px;
  color: white;
  background-color: #ff7923;
  border-radius: 10px;
  display: none;
}

@media screen and (max-width: 639px) {
  body {
    margin: 0;
  }

  .modal_window {
    position: fixed;
    max-height: 100vh;
  }

  .simulator {
    width: 100vw;
    /* height: 100vh; */
    box-sizing: border-box;
    padding: 10px;
  }

  .simulator h2:after {
    content: "";
  }

  .simulator h2.y-scroll::after {
    content: "  (横にスクロールできます。)";
    font-size: 10px;
  }

  .simulator-item-wrapper {
    flex-direction: column;
  }

  .simulator-item {
    width: 100%;
    padding: 0;
  }

  .simulator-item01 {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: white;
  }

  .shoulder-line h2::after,
  .chest-logo-select h2::after,
  .center-line-select h2::after,
  .back-design-select h2::after {
    content: "";
  }

  .result-info {
    margin-top: 0;
    width: 100%;
    max-width: none;
  }

  .sp_hide_result_view_btn {
    display: inline;
    line-height: 12px;
    font-size: 12px;
    /* border: solid 1px gray; */
    cursor: pointer;
    color: rgb(2, 104, 204);
    text-decoration: underline;
  }

  .simulator h2,
  .simulator h3 {
    line-height: 20px;
    margin-bottom: 5px;
  }

  .simulator-item01 {
    flex-direction: column;
    flex-shrink: 1;
    transition-duration: 0.4s;
    transform: translateX(0);
  }

  .simulator-item01.hidden {
    transform: translateX(100%);
  }

  .simulator-item01.hidden .sp_show_result_view_btn {
    height: 30px;
    width: 60px;
    background-image: url("./Files/select-arrow.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center top;
    transform: rotate(90deg);
    position: absolute;
    top: 50%;
    left: -30px;
    background-color: white;
    cursor: pointer;
    border: solid 1px gray;
    border-radius: 5px;
    display: block;
  }

  .result {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* overflow-x: hidden; */
  }

  .result-view {
    width: 320px;
    height: 202px;
  }

  .color-shirt-mix {
    width: 320px;
  }

  .color-palette {
    width: auto;
  }

  .color-palette li {
    width: 60px;
    height: 50px;
    flex-shrink: 0;
  }

  li.shirt-irregular-color {
    background-color: white;
    border-top: solid 25px;
    border-right: solid 30px;
    border-bottom: solid 25px;
    border-left: solid 30px;
  }

  .color-palette ul {
    flex-wrap: nowrap;
    overflow: scroll;
    justify-content: flex-start;
  }

  .emblem-select ul {
    flex-wrap: nowrap;
    overflow-x: scroll;
    font-size: 0;
  }

  .emblem-select li {
    flex-shrink: 0;
  }

  .front-design ul {
    overflow-x: scroll;
    justify-content: flex-start;
  }

  .front-design h2::after {
    content: "  (横にスクロールできます。)";
    font-size: 10px;
  }

  .chest-font-select ul,
  .chest-logo-select ul {
    flex-wrap: nowrap;
    overflow: scroll;
    font-size: 0;
  }

  .chest-font-select li,
  .chest-logo-select li {
    flex-shrink: 0;
  }

  .order-contact {
    width: 100vw;
  }

  .fee_result > table td:nth-child(3) {
    font-size: 1rem;
  }

  .each_fee td:first-of-type {
    font-size: 24px;
  }

  .front-design-option-select,
  .back-design-option-select {
    font-size: 20px;
  }

  .front-design-option-select input,
  .back-design-option-select input {
    width: 20px;
    height: 20px;
    margin-right: 20px;
    border-radius: 50%;
  }
}

@media screen and (max-width: 320px) {
  /* 
    .result-view{
        box-sizing: border-box;
        flex-shrink:1;
        width:100%;
        height:0;
        padding-bottom:82%;
        max-width:320px;
        max-height:263px;

    }

    .shirt-outline{
        width:100%;
    } */
}
