/***

Elements

***/

:root {
  --primary-color: #ea2422;
  --error-color: #ea2222;
  --bg-color: #ffe2e1;
}

::placeholder {
  color: #a0a0a0;
}

body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  font-size: 14px;
  color: #333;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

input,
button,
textarea,
select {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
}

select::-ms-expand {
  display: none;
}

fieldset {
  display: contents;
}

/***

Utility

***/

.u-align-center {
  text-align: center;
}

.u-color-red {
  color: #ea2621;
}

.u-text {
  margin-bottom: 10px;
}

.u-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.u-link.--blank {
  font-size: 1.1em;
  display: inline-flex;
  align-items: center;
}

.u-link.--blank:after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  mask-image: url(../asset/icon_window.svg);
  mask-size: contain;
  mask-repeat: no-repeat;
  background-color: var(--primary-color);
  margin-left: 10px;
}

.view-pc {
  display: none;
}

.view-sp {
  display: block;
}

/***

Atoms

***/

.c-btn {
  width: 100%;
  max-width: 320px;
  height: 36px;
  background-color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 18px;
  color: #fff;
  position: relative;
  text-decoration: none;
  font-size: 16px;
}

.c-btn:after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: rotate(45deg);
  position: absolute;
  right: 20px;
}

.c-btn.--zip {
  width: 150px;
}

.c-btn.--zip:after {
  display: none;
}

.c-btn.--back {
  border: 1px solid var(--primary-color);
  background-color: #fff;
  color: var(--primary-color);
}

.c-btn.--back:after {
  border-color: var(--primary-color);
  left: 20px;
  right: auto;
  transform: rotate(225deg);
}

.c-input {
  height: 40px;
  width: 100%;
  border-radius: 2px;
  border: solid 1px #e2e2e2;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  padding: 0 5px;
}

.c-input.--error {
  border: solid 1px var(--error-color);
  background-color: var(--bg-color);
}

.c-input.--zip {
  width: calc((100% - 30px) / 2);
}

.c-select-wrap {
  width: 100%;
  border-radius: 2px;
  border: solid 1px #e2e2e2;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  height: 40px;
  position: relative;
  padding: 2px;
}

.c-select-wrap.--error {
  border-color: var(--error-color);
  background-color: var(--bg-color);
}

.c-select-wrap:after {
  content: "";
  display: block;
  width: 8px;
  height: 6px;
  position: absolute;
  right: 8px;
  background-color: #a0a0a0;
  clip-path: polygon(100% 0, 0 0, 50% 100%);
}

.c-select {
  width: 100%;
  padding: 0 5px;
  display: flex;
  align-items: center;
}

.c-checkbox {
  display: inline-flex;
  align-items: center;
}

.c-checkbox__checkbox {
  display: none;
}

.c-checkbox__label {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  border-radius: 3px;
  margin: -1px 7.5px 0 0;
  flex: 0 0 auto;
  position: relative;
}

.c-checkbox__checkbox:checked + .c-checkbox__label:before {
  content: "";
  display: block;
  width: 12px;
  height: 24px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  position: absolute;
  left: 8px;
  top: -2px;
  transform: rotate(45deg);
}

.c-textarea {
  height: 65px;
  width: 100%;
  border-radius: 2px;
  border: solid 1px #e2e2e2;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  padding: 0 5px;
}

.c-error {
  color: var(--error-color);
  background-color: var(--bg-color);
  font-size: 12px;
  padding: 2px 8px;
}

.c-error:before {
  content: "!";
  color: #fff;
  background-color: var(--error-color);
  width: 1.2em;
  height: 1.2em;
  border-radius: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.c-agree {
  margin: 40px 0;
  text-align: center;
}

/***

Organisms

***/

/** Header **/

.c-header {
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
}

.c-header:after {
  content: "";
  display: block;
  height: 6px;
  background-image: linear-gradient(to bottom, #eaeaea, transparent);
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  z-index: 1;
}

.c-header-main {
  width: 100%;
  max-width: 960px;
  margin: 0 16px;
  display: flex;
  align-items: center;
}

.c-header-main__logo {
  max-width: 192.2px;
}

/** Main **/

.c-main {
  margin: 0 0 60px;
}

/** Footer **/

.c-footer {
  background-color: var(--primary-color);
  margin-top: auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 12px;
}

/** PageHeader **/

.c-page-header {
  background: #f4f6f8;
  height: 120px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-page-header-inner {
  width: 100%;
  max-width: 820px;
  margin: 0 16px;
  display: grid;
  gap: 14px;
}

.c-page-header__title {
  font-size: 22px;
}

/***

Molecules

***/

/** Form **/

.c-form {
  max-width: 820px;
  margin: 0 16px;
}

.c-form-main {
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
  padding: 20px 0;
  margin: 20px 0;
}

.c-form-footer {
  margin-bottom: 20px;
}

.c-fieldset:not(:last-child) {
  margin-bottom: 20px;
}

.c-fieldset__legend {
  margin: 0 0 10px;
}

.c-fieldset-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px 0;
  position: relative;
}

.c-fieldset-field.--required:before {
  content: "必須";
  display: inline-block;
  border-radius: 3px;
  padding: 1px 6px;
  background-color: var(--primary-color);
  color: #fff;
  position: absolute;
  right: 0;
  top: -30px;
  font-size: 12px;
}

.c-fieldset-zip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
}

.c-fieldset-zip ._span {
  display: inline-flex;
  width: 30px;
  justify-content: center;
}

.c-fieldset-contact-list {
  margin-bottom: 10px;
}

.c-fieldset-contact:not(:last-child) {
  margin-bottom: 20px;
}

.c-fieldset-contact__label {
  margin: 0 0 10px;
  display: block;
}

.c-fieldset-contact-field {
  display: flex;
  flex-direction: column;
  gap: 5px 0;
  position: relative;
}

.c-fieldset-contact-field:before {
  content: "任意";
  display: inline-block;
  border-radius: 3px;
  padding: 1px 6px;
  background-color: #a0a0a0;
  color: #fff;
  position: absolute;
  right: 0;
  top: -30px;
}

.c-fieldset-contact-field.--required:before {
  content: "必須";
  background-color: var(--primary-color);
}

.c-fieldset-field__text {
  font-size: 12px;
}

/** MainVisual **/

.c-mv {
  background-color: #bdf2fe;
  position: relative;
  margin-bottom: 20px;
}

.c-mv-picture {
  display: block;
  max-width: 960px;
  margin: 0 auto;
}

/** Caution **/

.c-caution {
  padding: 12px;
  border-radius: 4px;
  background-color: #2884d5;
  color: #fff;
  line-height: 1.5;
  max-width: 820px;
  margin: 0 16px 16px;
}

.c-caution__item {
  padding: 0 0 0 1em;
  position: relative;
}

.c-caution__item:not(:last-child) {
  margin-bottom: 5px;
}

.c-caution__item:before {
  content: "※";
  position: absolute;
  left: 0;
}

/* Buttons */

.c-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0 20px;
  margin: 40px 16px 0;
}

/* Confirm */

.c-confirm {
  max-width: 820px;
  margin: 0 16px 12px;
  display: flex;
}

.c-confirm.--column {
  display: block;
}

.c-confirm__label {
  width: 6em;
  line-height: 2.25;
  margin: 0 0 5px;
}

.c-confirm-content {
  font-weight: 500;
  line-height: 2.25;
}

/* Complete */

.p-complete {
  text-align: center;
  line-height: 2;
  margin: 90px 0;
}

@media screen and (max-width: 767.9px) {
  .c-confirm.--column .c-confirm-content {
    padding-left: 1em;
  }
  .c-confirm.--column .c-confirm__label {
    width: auto;
  }
}

@media screen and (min-width: 768px) {
  body {
    font-size: 18px;
  }

  input,
  button,
  textarea,
  select {
    font-size: 16px;
  }

  .u-text {
    margin-bottom: 20px;
  }

  .view-pc {
    display: block;
  }

  .view-sp {
    display: none;
  }

  .c-header-main {
    margin: 0 20px;
  }

  .c-footer {
    font-size: 14px;
  }

  .c-page-header {
    height: 190px;
    margin-bottom: 60px;
  }

  .c-page-header-inner {
    gap: 20px;
    margin: 0 20px;
  }

  .c-form {
    margin: 0 20px;
  }

  .c-form-main {
    padding: 40px 0;
    margin: 40px 0;
  }

  .c-form-footer {
    text-align: center;
  }

  .c-fieldset:not(:last-child) {
    margin-bottom: 40px;
  }

  .c-fieldset-field {
    min-width: 600px;
    flex: 0 0 auto;
  }

  .c-fieldset-field.--required:before,
  .c-fieldset-contact-field:before {
    font-size: 14px;
  }

  .c-fieldset-contact-field:before {
    left: -48px;
    right: auto;
    top: 8px;
  }

  .c-fieldset-field__text {
    font-size: 14px;
  }

  .c-fieldset-zip {
    justify-content: flex-start;
  }

  .c-fieldset-zip .c-btn {
    margin-left: 30px;
  }

  .c-fieldset-contact-list {
    margin-bottom: 30px;
  }

  .c-fieldset-contact {
    display: flex;
  }

  .c-fieldset-contact:not(:last-child) {
    margin-bottom: 20px;
  }

  .c-fieldset-contact__label {
    flex: 0 0 auto;
    width: calc(100% - 470px);
    margin-top: 8px;
  }

  .c-fieldset-contact-field {
    flex: 0 0 470px;
  }

  .c-input {
    padding: 0 10px;
  }

  .c-input.--zip {
    width: 150px;
  }

  .c-btn {
    width: 240px;
    height: 40px;
    border-radius: 20px;
  }

  .c-btns {
    margin: 60px 20px 0;
  }

  .c-btn.--zip {
    height: 36px;
    border-radius: 18px;
  }

  .c-caution {
    margin: 0 20px 30px;
  }

  .c-caution__item:not(:last-child) {
    margin-bottom: 10px;
  }

  .c-confirm {
    margin: 0 20px 24px;
  }

  .c-confirm.--column {
    display: flex;
  }

  .c-confirm__label {
    width: 16em;
    flex: 0 0 auto;
  }

  .p-complete {
    margin-top: 120px;
  }
}

@media screen and (min-width: 860px) {
  .c-page-header-inner {
    margin: 0 auto;
  }

  .c-form {
    margin: 0 auto;
  }

  .c-fieldset {
    display: flex;
  }

  .c-fieldset__legend {
    flex: 0 0 220px;
    margin: 5px 0 0;
  }

  .c-fieldset-field {
    flex: 0 0 600px;
  }

  .c-fieldset-field.--required:before {
    left: -48px;
    right: auto;
    top: 8px;
  }

  .c-btns {
    margin: 60px auto 0;
  }

  .c-caution {
    margin: 0 auto 30px;
  }

  .c-confirm {
    margin: 0 auto 24px;
  }
}

@media screen and (min-width: 1000px) {
  .c-header-main {
    margin: 0 auto;
  }
}
