/* ==========================================================================
   Meihou Theme — entry.css (エントリーフォーム / PC)
   Design width: 1280
   XAML: entry.xaml
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.p-entry-hero {
  width: var(--width-page);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--side);
  box-sizing: border-box;
}

.p-entry-hero .c-breadcrumb {
  margin: 0 0 98px;
  padding: 0;
}

.p-entry-hero__title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-blue-accent);
}

.p-entry-hero__en {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-soft);
}

/* --------------------------------------------------------------------------
   Body / form
   -------------------------------------------------------------------------- */

.p-entry-body {
  margin-top: 64px;
  padding: 80px 0 120px;
  background: var(--color-bg-soft);
}

.p-entry-body__inner {
  width: var(--width-page);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--side);
  box-sizing: border-box;
}

.p-entry-form {
  width: 1080px;
  max-width: 100%;
  margin: 0 auto;
}

.p-entry-form__row {
  display: grid;
  grid-template-columns: 280px minmax(0, 600px);
  gap: 24px;
  align-items: center;
  margin-bottom: 25px;
}

.p-entry-form__row--school {
  align-items: center;
}

.p-entry-form__row--message {
  align-items: start;
  margin-bottom: 48px;
}

.p-entry-form__row--message .p-entry-form__label {
  padding-top: 24px;
}

.p-entry-form__label {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-blue-accent);
}

.p-entry-form__label-note {
  font-size: 14px;
}

.p-entry-form__control {
  min-width: 0;
}

.p-entry-form__input,
.p-entry-form__textarea {
  display: block;
  width: 100%;
  max-width: 600px;
  border: 1px solid #b9b9b9;
  background: var(--color-white);
  color: var(--color-text);
  font-family: inherit;
  font-size: 20px;
  line-height: 1.4;
  box-sizing: border-box;
}

.p-entry-form__input {
  height: 70px;
  padding: 0 20px;
}

.p-entry-form__textarea {
  min-height: 200px;
  padding: 20px;
  resize: vertical;
}

.p-entry-form__input::placeholder,
.p-entry-form__textarea::placeholder {
  color: #b9b9b9;
}

.p-entry-form__input--select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 52px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='13' viewBox='0 0 23 13'%3E%3Cpath fill='%23053795' d='M11.5 12.3 1.4 2.2a1.5 1.5 0 0 1 2.1-2.1L11.5 8.1 19.5.1a1.5 1.5 0 0 1 2.1 2.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  background-size: 16px 10px;
  color: var(--color-blue-accent);
  cursor: pointer;
}

.p-entry-form__input--select:invalid {
  color: var(--color-blue-accent);
}

.p-entry-form__birth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.p-entry-form__birth-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.p-entry-form__input--birth {
  width: 135px;
  color: var(--color-text);
}

.p-entry-form__birth-unit {
  font-size: 18px;
  color: var(--color-text);
}

.p-entry-form__radios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 40px;
}

.p-entry-form__radio {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.p-entry-form__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.p-entry-form__radio-box {
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid #e5e5e5;
  background: var(--color-white);
  box-sizing: border-box;
}

.p-entry-form__radio input:checked + .p-entry-form__radio-box {
  border-color: var(--color-blue-accent);
  background: var(--color-blue-accent);
  box-shadow: inset 0 0 0 3px var(--color-white);
}

.p-entry-form__radio input:focus-visible + .p-entry-form__radio-box {
  outline: 2px solid var(--color-blue-accent);
  outline-offset: 2px;
}

.p-entry-form__radio-text {
  font-size: 20px;
  color: var(--color-text);
}

.p-entry-form__privacy {
  margin: 56px 0 48px;
}

.p-entry-form__privacy-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy-deep);
}

.p-entry-form__privacy-text {
  margin: 0 0 40px;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
}

.p-entry-form__agree-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.p-entry-form__agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
}

.p-entry-form__agree input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.p-entry-form__agree-box {
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid #b9b9b9;
  background: var(--color-white);
  box-sizing: border-box;
  flex-shrink: 0;
}

.p-entry-form__agree input:checked + .p-entry-form__agree-box {
  border-color: var(--color-blue-accent);
  background: var(--color-blue-accent);
  box-shadow: inset 0 0 0 4px var(--color-white);
}

.p-entry-form__agree input:focus-visible + .p-entry-form__agree-box {
  outline: 2px solid var(--color-blue-accent);
  outline-offset: 2px;
}

.p-entry-form__agree-text {
  font-size: 16px;
  color: var(--color-blue-accent);
}

/* CF7: gender radios */
.p-entry-form__radios .wpcf7-form-control-wrap,
.p-entry-form__radios .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 28px 40px;
  width: 100%;
}

.p-entry-form__radios .wpcf7-list-item {
  margin: 0;
}

.p-entry-form__radios .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text);
  cursor: pointer;
}

.p-entry-form__radios .wpcf7-list-item-label {
  font-size: 20px;
  color: var(--color-text);
}

.p-entry-form__radios input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: var(--color-white);
  box-sizing: border-box;
  flex-shrink: 0;
  cursor: pointer;
}

.p-entry-form__radios input[type="radio"]:checked {
  border-color: var(--color-blue-accent);
  background: var(--color-blue-accent);
  box-shadow: inset 0 0 0 4px var(--color-white);
}

.p-entry-form__radios input[type="radio"]:focus-visible {
  outline: 2px solid var(--color-blue-accent);
  outline-offset: 2px;
}

/* CF7: privacy agreement */
.p-entry-form__privacy .wpcf7-form-control-wrap,
.p-entry-form__privacy .wpcf7-acceptance {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.p-entry-form__privacy .wpcf7-list-item {
  margin: 0;
}

.p-entry-form__privacy .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-blue-accent);
  cursor: pointer;
}

.p-entry-form__privacy .wpcf7-list-item-label {
  font-size: 16px;
  color: var(--color-blue-accent);
}

.p-entry-form__privacy input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid #b9b9b9;
  background: var(--color-white);
  box-sizing: border-box;
  flex-shrink: 0;
  cursor: pointer;
}

.p-entry-form__privacy input[type="checkbox"]:checked {
  border-color: var(--color-blue-accent);
  background: var(--color-blue-accent);
  box-shadow: inset 0 0 0 5px var(--color-white);
}

.p-entry-form__privacy input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-blue-accent);
  outline-offset: 2px;
}

.p-entry-form__submit {
  display: flex;
  width: 350px;
  max-width: 100%;
  height: 70px;
  margin: 0 auto;
  font-size: 20px;
}

.p-entry-form__submit-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Solid navy button (entry XAML) */
.c-btn--navy {
  background-color: var(--color-navy-deep);
  color: var(--color-white);
  border: none;
  box-shadow: none;
}

.c-btn--navy:hover {
  background-color: var(--color-white);
  background-image: none;
  color: var(--color-blue-accent);
  box-shadow: inset 0 0 0 1px var(--color-blue-accent);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .p-entry-hero .c-breadcrumb {
    margin-bottom: 48px;
  }

  .p-entry-body {
    margin-top: 48px;
    padding: 56px 0 80px;
  }

  .p-entry-form__row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .p-entry-form__row--message {
    margin-bottom: 36px;
  }

  .p-entry-form__row--message .p-entry-form__label {
    padding-top: 0;
  }

  .p-entry-form__label {
    font-size: 18px;
  }

  .p-entry-form__input,
  .p-entry-form__textarea {
    max-width: none;
    font-size: 16px;
  }

  .p-entry-form__input {
    height: 56px;
  }

  .p-entry-form__textarea {
    min-height: 160px;
  }

  .p-entry-form__input--birth {
    width: 110px;
  }

  .p-entry-form__radio-text {
    font-size: 16px;
  }

  .p-entry-form__privacy {
    margin: 40px 0 36px;
  }

  .p-entry-form__submit {
    width: 100%;
    max-width: 350px;
  }
}

@media (max-width: 767px) {
  .p-entry-hero .c-breadcrumb {
    margin-bottom: 32px;
  }

  .p-entry-hero__title {
    font-size: 28px;
  }

  .p-entry-body {
    margin-top: 32px;
    padding: 40px 0 64px;
  }

  .p-entry-form__label {
    font-size: 16px;
  }

  .p-entry-form__birth {
    gap: 10px 12px;
  }

  .p-entry-form__input--birth {
    width: 96px;
  }

  .p-entry-form__birth-unit {
    font-size: 15px;
  }

  .p-entry-form__agree,
  .p-entry-form__agree-wrap {
    justify-content: center;
  }
}
