@charset 'utf-8';

.box-flex {
  display: flex;
  width: 100%;
}

.box-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 390px;
  max-width: 980px;
  margin: 0 auto 0;
  justify-content: flex-start;
  align-items: center;
}

.box-column > .box-row {
  width: 80%;
}
.box-row {
  display: flex;
  flex-direction: row;
  margin: 0 auto 0;
  transition: transform 0.12s ease-in-out;
}
.box-row > div {
  text-align: left;
}
.box-row > div:first-child {
  flex: 6;
}
.box-row > div:first-child input[type='text'] {
  width: 40%;
  flex: unset;
  margin: 0 15px 15px 0;
}
.box-row > div:last-child {
  flex: 3;
}
.box-row > div:last-child input[type='password'] {
  width: 100%;
  flex: unset;
  margin: 0;
}

.box-row-double {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  width: 200%;
  margin: 0 auto 0;
  transition: transform 0.12s ease-in-out;
}

.box-wrap {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

div.layer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9000;
}

div#error-layer.layer {
  width: 100%;
  height: 100%;
  max-height: unset;
}

div.layer.transparent {
  background-color: transparent;
}

div.layer:has(:not(div.message-container span)) {
  display: none;
}

div.layer:has(div.message-container span) {
  display: block;
}

div.layer div.message-container {
  max-width: 640px;
  min-width: 340px;
  width: 80%;
  height: auto;
  padding: 0.5rem 2rem;
  position: relative;
  top: 10%;
  left: 50%;
  transform: translate(-50%, 0);
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.5);
  text-align: left;
}

div.layer div.button-close {
  display: block;
  position: absolute;
  top: -1rem;
  right: -1rem;
  height: 48px;
  width: 48px;
  text-align: center;
  transform: translateY(-45%);
  cursor: pointer;
}

span.error {
  line-height: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #f00;
  word-break: keep-all;
}

div.container {
  position: absolute;
  top: 0;
  right: -100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  margin: 0 auto 0;
  border-top: 1px #aaa dotted;
  vertical-align: top;
  background-color: #fff;
  transition: transform 0.12s ease-in-out;
  overflow: hidden;
}

div.container > div:not(.container,.box-order,.progress-container,.layer) {
  display: flex;
  height: 70px;
  max-height: 85px;
  width: 100%;
  padding: 0;
  border-bottom: 1px #aaa dotted;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.1rem;
  line-height: 3rem;
  font-size: 1.8rem;
  cursor: pointer;
}

div.container > div:not(.container,.box-order,.progress-container,.layer) > div.title {
  flex: 2.5;
  text-align: center;
  letter-spacing: 1px;
}
div.container > div:not(.container,.box-order,.progress-container,.layer) > div.title small {
  letter-spacing: 1px;
  color: #555;
}
div.container > div:not(.container,.box-order,.progress-container,.layer) > div.title p::before {
  margin-top: 2px;
}
div.container > div:not(.container,.box-order,.progress-container,.layer) > div.title p {
  width: 100%;
  margin: 0;
  padding: 2px 0;
  letter-spacing: 3px;
  font-size: 1.2rem;
  font-weight: 200;
}

div.container > div:not(.container,.box-order,.progress-container,.layer) > div.price {
  flex: 1;
  text-align: left;
  color: #666;
}

div.container > div:not(.container,.box-order,.layer):hover {
  background-color: #eee;
}

div.container > .box-order {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 3;
  border-bottom: 1px #aaa dotted;
  justify-content: start;
  align-items: start;
}

div.container > .box-order h3,
div.container > .box-order h4,
div.container > .box-order h5 {
  display: flex;
  margin: 1rem auto 1.5rem;
  justify-content: center;
  align-items: center;
  line-height: 3rem;
  font-size: 1.8rem;
  font-weight: 600;

}

div.container > .box-order p.notes {
  display: flex;
  gap: 5%;
  flex-wrap: wrap;
  width: 100%;
  min-width: 370px;
  max-width: 550px;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
  align-items: flex-start;
}
div.container > .box-order p.notes > span {
  flex: 1 1 calc(30%);
  margin: 2px auto 0;
  padding: 2px 15px 2px;
  border-bottom: 3px #555 double;
  letter-spacing: 0.2rem;
  line-height: 2.5rem;
  font-size: 1.5rem;
}

.box-order label.ok::after,
.box-order label.ng::after {
  content: '';
  display: block;
  width: 42px;
  position: absolute;
  top: -2px;
  right: 0px;
  background-size: contain;
  background-repeat: no-repeat;
  aspect-ratio: 455/222;
}

.box-order label.ok::after {
  background-image: url(/img/gift/order/sign-ok.png);
}

.box-order label.ng::after {
  background-image: url(/img/gift/order/sign-ng.png);
}

.box-order div:not([class]) > label {
  width: 100%;
  margin: 10px 0 0;
}

.box-row > div:first-child label {
  width: 90%;
}

.box-body {
  position: relative;
  overflow: hidden;
}

.progress-container {
  flex: 1;
  display: flex;
  width: 90%;
  max-width: 640px;
  margin: 0 auto 0;
  padding: 0 2%;
  justify-content: center;
  align-items: center;
}

.selected-order-property {
  display: flex;
  flex-direction: row;
  flex: 0.5;
}

.box-order label {
  display: block;
  flex: 1;
  max-height: 25px;
  width: 80%;
  margin: 10px auto 0;
  padding: 0;
  position: relative;
  text-align: left;
  line-height: 2rem;
  letter-spacing: 0.2rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.box-order input[type='password'],
.box-order input[type='text'],
.box-order input[type='email'],
.box-order input[type='tel'] {
  flex: 1;
  max-height: 25px;
  width: 80%;
  margin: 0 auto 20px;
  padding: 0 5%;
  text-align: left;
  line-height: 2rem;
  letter-spacing: 0.2rem;
  font-size: 1.5rem;
  font-weight: 300;
}

.box-order input[type='password']:enabled,
.box-order input[type='text']:enabled,
.box-order input[type='email']:enabled,
.box-order input[type='tel']:enabled  {
  outline: none;
  border: none;
  border-bottom: 3px #ccc double;
}
.box-order input[type='password']:focus,
.box-order input[type='text']:focus,
.box-order input[type='email']:focus,
.box-order input[type='tel']:focus  {
  border-bottom: 3px #888 solid;
}


/** シェアコンポーネント */
.share-buttons {
  display: flex;
  gap: 20px;
  width: 80%;
  min-width: 350px;
  max-width: 650px;
  margin: 30px auto 10px;
  padding: 0;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
}
.share-buttons > a {
  flex: 1;
  display: flex;
  margin: 0 auto 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  color: white;
  cursor: pointer;
}
.share-buttons > a > img {
  width: 100%;
  max-width: 88px;
  aspect-ratio: 1/1;
}
.share-buttons > a:hover {
  text-decoration: none;
}

/** コンテナオプション：エラー **/
.container.error {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: rgb(255, 226, 226);
}

.container.error > p {
  flex: 1;
  max-height: 5rem;
  margin: 0 auto 0;
  padding: 1rem;
  line-height: 3rem;
  font-size: 1.8rem;
  color: #f00;
}

/** コンテナオプション **/
.button-close {
  display: none;
  position: absolute;
  top: calc(45%);
  right: 0;
  height: 48px;
  width: 48px;
  text-align: center;
  transform: translateY(-45%);
  cursor: pointer;
}
