/* =========================================================
   Donation
========================================================= */

.donation {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 3vw, 16px);
  color: #4d4d4d;
  line-height: 1.8;
  margin-top: 30px;
  padding-top: 30px;
}

.donation * {
  box-sizing: border-box;
}

.donation a {
  color: inherit;
  text-decoration: underline !important;
  text-underline-offset: 0.18em;
}

.donation-inner {
  width: min(100%, 980px);
  margin: 0 auto;
}

/* =========================================================
   Section
========================================================= */

.donation-section {
  margin-top: 56px;
}

.donation-section:first-child {
  margin-top: 0;
}

.donation-section h3 {
  position: relative;
  margin: 0 0 24px;
  padding: 0 0 12px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  color: #4d4d4d;
  border-bottom: 1px solid #d3c585;
}

.donation-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 4em;
  height: 1px;
  background-color: #e87021;
}

.donation-section p {
  margin: 0;
}

.donation-section p + p {
  margin-top: 1em;
}

/* =========================================================
   Survey / Form
========================================================= */

.donation-survey {
  position: relative;
  padding: 32px;
  background-color: #f6e9d4;
}

.donation-form-block {
  display: grid;
  gap: 14px;
}

.donation-form-block label {
  display: block;
  font-weight: 400;
  line-height: 1.6;
}

.donation-form-block select {
  width: 100%;
  max-width: 520px;
  padding: 12px 44px 12px 16px;
  border: 1px solid #d3c585;
  border-radius: 0;
  background-color: #fff;
  color: #4d4d4d;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #4d4d4d 50%),
    linear-gradient(135deg, #4d4d4d 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.donation-form-block select:focus {
  outline: 2px solid rgba(232, 112, 33, 0.35);
  outline-offset: 2px;
}

/* =========================================================
   Methods
========================================================= */

.donation-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.donation-method {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border: 1px solid #d3c585;
  background-color: #fff;
}

.donation-method h3 {
  margin: 0 0 12px;
  padding: 0;
  border-bottom: none;
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: #333;
}

.donation-method h3::before {
  content: none;
}

.donation-method-mark {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  color: #333;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
}

.donation-method-mark::before,
.donation-method-mark::after {
  content: "";
  display: block;
  height: 1px;
  background-color: #333;
  opacity: 0.55;
}

.donation-method-title {
  display: block;
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 500;
  line-height: 1.55;
  color: #333;
}

.donation-method p {
  font-size: 0.95em;
}

.donation-form-area {
  margin-top: 24px;
}

.donation-method--paper p:last-child {
  margin-top: auto;
  padding-top: 24px;
}

@media (max-width: 768px) {
  .donation-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .donation-method {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .donation-method h3 {
    margin-bottom: 28px;
  }

  .donation-method-mark {
    gap: 12px;
    font-size: 20px;
  }

  .donation-method-title {
    font-size: 18px;
  }
}

/* =========================================================
   Utility
========================================================= */

.donation .deindent {
  margin-left: -0.5em;
}

.donation .text-small {
  font-size: 0.85em;
}

.donation .text-strong {
  font-weight: 500;
}

/* =========================================================
   Contact Form 7
========================================================= */

.donation .wpcf7 {
  margin-top: 20px;
}

.donation .wpcf7-form {
  display: grid;
  gap: 18px;
}

.donation .wpcf7-form p {
  margin: 0;
}

.donation .wpcf7-form label {
  display: grid;
  gap: 6px;
  font-weight: 400;
  line-height: 1.5;
}

.donation .wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}

.donation .wpcf7-select,
.donation .wpcf7-text,
.donation .wpcf7-textarea {
  width: 100%;
  max-width: 520px;
  padding: 10px 16px;
  border: 1px solid #d3c585;
  border-radius: 0;
  background-color: #fff;
  color: #4d4d4d;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

.donation .wpcf7-select {
  padding-right: 44px;
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #4d4d4d 50%),
    linear-gradient(135deg, #4d4d4d 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.donation .wpcf7-select:focus,
.donation .wpcf7-text:focus,
.donation .wpcf7-textarea:focus {
  outline: 2px solid rgba(232, 112, 33, 0.35);
  outline-offset: 2px;
}

.donation .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 46px;
  padding: 10px 28px;
  border: 1px solid #e87021;
  border-radius: 999px;
  background-color: #e87021;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.donation .wpcf7-submit:hover {
  background-color: #fff;
  color: #e87021;
}

.donation .required {
  color: #c0392b;
  font-size: 0.85em;
  font-weight: 500;
}

.donation .optional {
  color: #777;
  font-size: 0.85em;
  font-weight: 400;
}

.donation-form {
  display: grid;
  gap: 18px;
  justify-content: center;
}

.donation-form-item {
  display: grid;
  gap: 8px;
}

.donation-form-label {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.donation .required {
  margin-left: 0.6em;
  color: #c0392b;
  font-size: 0.85em;
  font-weight: 500;
}

.donation .optional {
  margin-left: 0.6em;
  color: #777;
  font-size: 0.85em;
  font-weight: 400;
}

.donation .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 768px) {
  .donation-inner {
    width: 100%;
  }

  .donation-section {
    margin-top: 44px;
  }

  .donation-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .donation-survey {
    padding: 24px 20px;
  }

  .donation-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .donation-method {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .donation {
    font-size: 14px;
  }

  .donation-section {
    margin-top: 36px;
  }

  .donation-section h3 {
    font-size: 18px;
  }

  .donation-form-block select,
  .donation .wpcf7-select,
  .donation .wpcf7-text,
  .donation .wpcf7-textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .donation .wpcf7-submit {
    width: 100%;
    min-width: 0;
  }
}
