@charset "UTF-8";

.recall-form-page {
  background: #f7f7f3;
  color: #333;
  padding-bottom: 80px;
}

.recall-form-hero {
  margin-bottom: 0;
}

.recall-form-hero > div {
  margin: 0 auto;
  padding: 72px 20px;
  width: min(90%, 780px);
}

.recall-form-hero h1 {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.45;
  padding-bottom: 8px;
}

.recall-form-container {
  margin: 0 auto;
  max-width: 900px;
  padding: 50px 24px 0;
}

.recall-form-intro,
.recall-form-panel,
.recall-form-afterword {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06);
  margin-bottom: 32px;
  padding: 40px 48px;
}

.recall-form-intro h2,
.recall-form-panel > h2 {
  border-bottom: 2px solid #088d5f;
  font-size: 24px;
  margin: 0 0 28px;
  padding-bottom: 12px;
}

.recall-form-intro .recall-form-notice-blue {
  color: #0070c0;
  font-weight: 700;
}

.recall-form-intro .recall-form-notice-blue,
.recall-form-intro .recall-form-notice-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CF7で説明文が複数のpやテキストノードに分かれても同じサイズにする。 */
.recall-form-page .recall-section:has(.recall-weekday-card),
.recall-form-page .recall-section:has(.recall-weekday-card) > p,
.recall-form-page .recall-section:has(.recall-weekday-card) > .recall-help {
  color: #555;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.recall-form-page .recall-weekday-card {
  background: #f5f5f2;
  border-radius: 5px;
  margin-top: 20px;
  padding: 20px;
}

.recall-form-page .recall-weekday-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.recall-form-page .recall-weekday-card .wpcf7-list-item {
  display: block;
  margin: 0;
}

.recall-form-page .recall-weekday-card .wpcf7-list-item label {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  white-space: nowrap;
}

@media screen and (min-width: 768px) {
  .recall-form-page .recall-weekday-card .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 4px;
  }

  .recall-form-page .recall-weekday-card .wpcf7-list-item {
    flex: 0 0 auto;
  }

  .recall-form-page .recall-weekday-card .wpcf7-list-item.first {
    flex-basis: 100%;
  }
}

.recall-form-page .recall-weekday-card input[type="checkbox"] {
  accent-color: #088d5f;
  flex: 0 0 20px;
  height: 20px;
  margin: 0;
  width: 20px;
}

.recall-form-target {
  background: #f1f8f5;
  margin: 28px 0;
  padding: 20px 24px;
}

.recall-form-target div {
  display: block;
}

.recall-form-target div + div {
  border-top: 1px solid #d8e8e1;
  margin-top: 18px;
  padding-top: 18px;
}

.recall-form-target dt {
  font-weight: 700;
  margin-bottom: 7px;
}

.recall-form-target dd {
  margin: 0;
}

.recall-required,
.recall-optional {
  border-radius: 3px;
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  margin-left: 8px;
  padding: 5px 8px;
  vertical-align: 2px;
}

.recall-required {
  background: #c83737;
  color: #fff;
}

.recall-optional {
  background: #e8e8e8;
  color: #555;
}

.recall-section {
  border: 0;
  margin: 0;
  padding: 0;
}

.recall-section + .recall-section {
  border-top: 1px solid #ddd;
  margin-top: 30px;
}

.recall-section legend {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 0;
}

.recall-field {
  margin-bottom: 24px;
}

.recall-field > label,
.recall-field__label {
  display: block;
  font-weight: 700;
  margin-bottom: 9px;
}

.recall-form-page input[type="text"],
.recall-form-page input[type="email"],
.recall-form-page input[type="tel"],
.recall-form-page input[type="date"],
.recall-form-page input[type="number"],
.recall-form-page input[type="file"],
.recall-form-page select {
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
  font: inherit;
  min-height: 48px;
  padding: 9px 12px;
  width: 100%;
}

.recall-form-page input:focus,
.recall-form-page select:focus {
  border-color: #088d5f;
  box-shadow: 0 0 0 3px rgba(8, 141, 95, 0.18);
  outline: 0;
}

.recall-postcode-row {
  width: 100%;
}

/* Contact Form 7 が自動挿入する p / br を含めて横並びにする */
.recall-postcode-row > p {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 260px) auto;
  justify-content: start;
  margin: 0;
  width: 100%;
}

.recall-postcode-row > p > br {
  display: none;
}

.recall-postcode-row .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

.recall-form-page input[type="email"],
.recall-form-page input[type="tel"] {
  max-width: 420px;
}

.recall-postcode-button {
  background: #088d5f;
  border: 1px solid #088d5f;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 48px;
  padding: 8px 14px;
  white-space: nowrap;
}

.recall-postcode-button:hover,
.recall-postcode-button:focus-visible {
  background: #06734d;
}

.recall-postcode-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.recall-postcode-status,
.recall-help {
  color: #666;
  display: block;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 7px;
}

.recall-postcode-status.is-error {
  color: #c83737;
}

/* 色分け用のクラスがない CF7 のHTMLでも、各案内文の配置から適用する */
.recall-form-page .recall-emphasis-danger {
  color: #c83737 !important;
  font-weight: 700;
}

.recall-form-page .wpcf7-form > fieldset.recall-section:nth-of-type(2) > p.recall-help,
.recall-form-page .recall-emphasis-attention {
  color: #9a5b00 !important;
  font-weight: 700;
}

.recall-form-page .recall-date-card + .recall-date-card .recall-help,
.recall-form-page .recall-emphasis-info {
  color: #1769aa !important;
  font-weight: 700;
}

.recall-form-page .recall-image-guide {
  margin-top: 12px;
}

.recall-form-page .recall-image-guide p {
  margin: 0;
  line-height: 1.8;
}

.recall-form-page .recall-image-instruction {
  color: #333;
  font-size: 15px;
  font-weight: 700;
}

.recall-form-page .recall-image-keyword {
  background: #245b78;
  border-radius: 0;
  color: #fff;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin: 2px 0;
  padding: 1px 8px;
  white-space: nowrap;
}

.recall-form-page .recall-image-instruction .recall-image-keyword:last-of-type {
  margin-right: 6px;
}

.recall-form-page .recall-image-guide .recall-image-format {
  color: #666;
  font-size: 13px;
  font-weight: 400;
  margin-top: 6px;
}

.recall-form-page .recall-image-guide .recall-image-note {
  background: #eef6f9;
  border-radius: 5px;
  color: #29424c;
  font-size: 14px;
  font-weight: 400;
  margin-top: 12px;
  padding: 12px 16px;
}

.recall-form-page .recall-image-note strong {
  font-weight: 700;
}

.recall-quantity-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recall-date-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.recall-quantity-item {
  background: #f5f5f2;
  border-radius: 5px;
  padding: 16px;
}

.recall-quantity-item label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.recall-quantity-control {
  align-items: center;
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.recall-quantity-control .wpcf7-form-control-wrap {
  flex: 0 1 130px;
  min-width: 0;
}

.recall-quantity-control > span:last-child {
  flex: 0 0 auto;
  margin-left: 6px;
  white-space: nowrap;
}

.recall-date-card {
  background: #f5f5f2;
  border-radius: 5px;
  min-width: 0;
  padding: 20px;
}

.recall-date-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.recall-date-card input[type="date"],
.recall-date-card select {
  max-width: 360px;
}

.recall-date-card select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 20px center;
  background-repeat: no-repeat;
  background-size: 14px 9px;
  padding-right: 52px;
}

.recall-date-placeholder {
  display: none;
}

.recall-return-guide {
  background: #eef6f9;
  border-radius: 4px;
  color: #29424c;
  font-size: 14px;
  line-height: 1.8;
  margin: 4px 0 26px;
  padding: 18px 20px;
}

.recall-return-guide p {
  margin: 0;
}

.recall-return-guide p + p {
  margin-top: 8px;
}

.recall-form-page .wpcf7-not-valid-tip {
  color: #c83737;
  font-size: 13px;
  margin-top: 5px;
}

.recall-form-page .wpcf7-response-output {
  display: none !important;
  margin: 24px 0 0 !important;
  padding: 14px 18px !important;
}

.recall-form-page .wpcf7-form.sent .wpcf7-response-output,
.recall-form-page .wpcf7-form.invalid .wpcf7-response-output,
.recall-form-page .wpcf7-form.failed .wpcf7-response-output,
.recall-form-page .wpcf7-form.spam .wpcf7-response-output,
.recall-form-page .wpcf7-form.aborted .wpcf7-response-output,
.recall-form-page .wpcf7-form.unaccepted .wpcf7-response-output,
.recall-form-page .wpcf7-form.payment-required .wpcf7-response-output {
  display: block !important;
}

.recall-form-page .wpcf7-spinner {
  vertical-align: middle;
}

.recall-submit-wrap {
  margin-top: 38px;
  text-align: center;
}

.recall-form-page input[type="submit"] {
  background: #088d5f;
  border: 2px solid #088d5f;
  border-radius: 30px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  min-width: 260px;
  padding: 14px 35px;
}

.recall-form-page input[type="submit"]:hover,
.recall-form-page input[type="submit"]:focus-visible {
  background: #fff;
  color: #088d5f;
}

.recall-form-success {
  color: #29423a;
  font-size: 17px;
  line-height: 2;
  padding: 26px 0 10px;
  text-align: center;
}

.recall-form-success[hidden] {
  display: none;
}

.recall-form-success p {
  margin: 0;
}

.recall-form-success p + p {
  margin-top: 6px;
}

.recall-form-page.is-complete .recall-form-intro,
.recall-form-page.is-complete .recall-form-panel > h2,
.recall-form-page.is-complete .recall-form-panel > .wpcf7 {
  display: none;
}

.recall-form-page.is-complete .recall-form-panel {
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .recall-form-page {
    padding-bottom: 50px;
  }

  .recall-form-hero {
    height: auto;
    padding-top: 60px;
  }

  .recall-form-hero > div {
    margin: 0 auto;
    padding: 22px 12px;
    width: 92%;
  }

  .recall-form-hero h1 {
    font-size: 20px;
  }

  .recall-form-container {
    padding: 28px 14px 0;
  }

  .recall-form-intro,
  .recall-form-panel {
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 26px 20px;
  }

  .recall-form-intro h2,
  .recall-form-panel > h2 {
    font-size: 21px;
  }

  .recall-quantity-grid {
    grid-template-columns: 1fr;
  }

  .recall-postcode-row > p {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .recall-postcode-button {
    padding-left: 10px;
    padding-right: 10px;
  }

  .recall-form-page.is-ios-date .recall-date-card .wpcf7-form-control-wrap {
    display: block;
    max-width: 100%;
    min-width: 0;
    position: relative;
    width: 100%;
  }

  .recall-form-page.is-ios-date .recall-date-card input[type="date"] {
    display: inline-block;
    height: 48px !important;
    inline-size: 100%;
    line-height: normal;
    max-inline-size: 100%;
    max-height: 48px;
    max-width: 100% !important;
    min-inline-size: 0;
    min-height: 48px !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: center;
    width: 100% !important;
  }

  .recall-form-page.is-ios-date .recall-date-card input[type="date"]::-webkit-date-and-time-value {
    box-sizing: border-box;
    height: 48px;
    line-height: 48px;
    margin: 0;
    min-height: 48px;
    padding: 0 12px;
    text-align: left;
    width: 100%;
  }

  .recall-form-page.is-ios-date .recall-date-placeholder {
    align-items: center;
    box-sizing: border-box;
    color: #777;
    display: flex;
    font-size: inherit;
    height: 48px;
    justify-content: flex-start;
    left: 0;
    padding: 0 12px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.15s ease;
  }

  .recall-form-page.is-ios-date .recall-date-wrap.has-value .recall-date-placeholder,
  .recall-form-page.is-ios-date .recall-date-wrap.is-focused .recall-date-placeholder {
    opacity: 0;
  }

  .recall-form-page.is-ios-date .recall-date-card select,
  .recall-form-page.is-ios-date .recall-date-card select option {
    -webkit-text-fill-color: #333 !important;
    color: #333 !important;
  }

  .recall-form-page input[type="submit"] {
    min-width: 0;
    width: 100%;
  }

  .recall-return-guide {
    padding: 15px 16px;
  }

  .recall-form-success {
    font-size: 15px;
    padding: 12px 0;
    text-align: left;
  }
}
