.contact-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  color: #fff;
}

.contact-hero__image,
.contact-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-hero__image {
  object-fit: cover;
  object-position: center;
}

.contact-hero__shade {
  background: rgb(0 0 0 / 58%);
}

.breadcrumbs {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: max(24px, calc(50% - 600px));
  color: #bdbdbd;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  margin: 0 .45em;
  content: '＞';
}

.breadcrumbs a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
}

.contact-hero__content {
  position: absolute;
  z-index: 1;
  top: 66px;
  right: 24px;
  left: 24px;
  text-align: center;
  text-shadow: 0 0 24px rgb(0 0 0 / 60%);
}

.contact-hero__content h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 60px;
}

.contact-hero__content p {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
}

.contact-form-section {
  padding: 70px 0 120px;
  background: #fff;
}

.contact-content-panel {
  width: 800px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

.contact-form-section__introduction {
  text-align: center;
}

.contact-form-section__introduction h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
}

.contact-form-section__introduction p {
  margin-top: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
}

.contact-form-section__introduction p + p {
  margin-top: 0;
}

.contact-form-section__introduction a {
  display: inline;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form__required-note {
  margin-top: 39px;
  color: #777;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}

.contact-form__required-note span,
.contact-form__required {
  color: #d11515;
  font-weight: 700;
}

.contact-form {
  margin-top: 12px;
  border-top: 1px solid #d9d9d9;
}

.contact-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form__errors {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #b42318;
  background: #fff4f2;
  color: #8a1c13;
}

.contact-form__errors[hidden] {
  display: none !important;
}

.contact-form__row {
  display: grid;
  min-height: 87.5px;
  align-items: center;
  border-bottom: 1px solid #d9d9d9;
  grid-template-columns: 300px minmax(0, 500px);
}

fieldset.contact-form__row {
  position: relative;
  display: block;
}

fieldset.contact-form__row > legend.contact-form__label {
  position: absolute;
  top: 26px;
  left: 0;
  width: 300px;
}

fieldset.contact-form__row > .contact-form__control {
  width: 500px;
  margin-left: 300px;
}

.contact-form__row--choices {
  min-height: 244px;
}

.contact-form__row--choices > .contact-form__control {
  padding-top: 26px;
}

.contact-form__row--conditional {
  align-items: start;
  padding: 26px 0;
}

.contact-form__row--dates {
  min-height: 204px;
}

.contact-form__row--counts {
  min-height: 179px;
}

.contact-form__row--layout {
  min-height: 324px;
  align-items: start;
  padding: 26px 0;
}

.contact-form__row--textarea {
  min-height: 250.25px;
  align-items: start;
  padding: 26px 0;
}

.contact-form__row--consent {
  min-height: 125px;
  border-bottom: 0;
}

.contact-form__label {
  padding-right: 28px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

legend.contact-form__label {
  width: auto;
  max-width: 300px;
}

.contact-form__required {
  margin-left: 3px;
}

.contact-form__control {
  min-width: 0;
}

.contact-form input[type='text'],
.contact-form input[type='tel'],
.contact-form input[type='email'],
.contact-form input[type='date'],
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 35px;
  padding: 5px 10px;
  border: 1.5px solid rgb(112 112 112 / 44%);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
}

.contact-form input[type='date'] {
  height: 35px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
  opacity: 1;
}

.contact-form select {
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 18px) 15px, calc(100% - 13px) 15px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.contact-form textarea {
  display: block;
  min-height: 200px;
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible,
.contact-action-button:focus-visible {
  outline: 3px solid #e0b55f;
  outline-offset: 3px;
}

.contact-form__control--short {
  width: 200px;
}

.contact-form__control--select {
  width: 200px;
}

.contact-options {
  display: flex;
  align-items: flex-start;
  gap: 7px 26px;
}

.contact-options--stacked {
  flex-direction: column;
}

.contact-options--inline {
  flex-wrap: wrap;
}

.contact-options label,
.contact-form__consent {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
}

.contact-options input,
.contact-form__consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--navy);
}

.contact-form__note {
  margin-top: 7px;
  color: #777;
  font-size: 14px;
  line-height: 21px;
  white-space: nowrap;
}

.contact-date-fields,
.contact-count-fields {
  display: grid;
  gap: 15px;
}

.contact-form__row--conditional .contact-options {
  flex-direction: column;
  gap: 7px;
}

.contact-date-fields {
  margin-top: 31px;
  grid-template-columns: repeat(3, 150px);
}

.contact-count-fields {
  margin-top: 33px;
  grid-template-columns: repeat(2, 150px);
}

.contact-date-fields label,
.contact-count-fields label {
  display: block;
  font-size: 16px;
  line-height: 24px;
}

.contact-date-fields label > span:first-child,
.contact-count-fields label > span:first-child {
  white-space: nowrap;
}

.contact-date-fields input,
.contact-number-input {
  margin-top: 6px;
}

.contact-number-input {
  display: flex;
  align-items: center;
  gap: 9px;
}

.contact-number-input input {
  min-width: 0;
}

[data-conditional-fields][data-disabled='true'] {
  opacity: .42;
}

.contact-layout-samples {
  display: grid;
  width: min(100%, 250px);
  margin-top: 36px;
  margin-bottom: 32px;
  grid-template-columns: minmax(0, 1fr);
}

.contact-form__row--layout .contact-options {
  gap: 0;
}

.contact-layout-samples figure {
  margin: 0;
}

.contact-layout-samples figcaption {
  color: #707070;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.contact-layout-samples__image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 6px;
  border: 1px solid #ddd;
}

.contact-form__consent {
  align-items: flex-start;
  color: #707070;
  font-size: 16px;
  line-height: 24px;
}

.contact-form__consent a {
  display: inline;
  color: var(--dark-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form__consent input {
  margin-top: 4px;
}

.contact-form__recaptcha-note {
  width: 100%;
  max-width: none;
  margin-top: 50px;
  color: #777;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
}

.contact-form__recaptcha-note a {
  display: inline;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-form__recaptcha-note a:hover,
.contact-form__recaptcha-note a:focus-visible {
  color: var(--color-gold-dark, #95763e);
}

.contact-action-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
}

.contact-form__submit {
  width: 230px;
  height: 60px;
  margin: 50px auto 0;
  padding: 0 42px;
}

.contact-form__submit span {
  position: absolute;
  right: 22px;
  font-size: 22px;
  font-weight: 400;
}

.contact-form__submit:disabled {
  cursor: not-allowed;
  opacity: .72;
}

/* MailForm01 confirmation and server-side error screens. */
.contact-confirm h2,
.contact-mail-message h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

.contact-confirm__lead,
.contact-mail-message__inner > p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 2;
  text-align: center;
}

.contact-confirm__list {
  margin: 42px 0 0;
  border-top: 1px solid #d9d9d9;
}

.contact-confirm__row {
  display: grid;
  border-bottom: 1px solid #d9d9d9;
  grid-template-columns: 240px minmax(0, 1fr);
}

.contact-confirm__row dt,
.contact-confirm__row dd {
  min-width: 0;
  padding: 20px 24px;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.8;
}

.contact-confirm__row dt {
  background: #f6f3eb;
  color: var(--navy);
  font-weight: 700;
}

.contact-confirm__row dd {
  margin: 0;
  color: var(--text);
}

.contact-confirm__actions {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  gap: 20px;
}

.contact-confirm__back,
.contact-confirm__submit {
  width: 230px;
  min-height: 60px;
  padding: 12px 42px;
  cursor: pointer;
}

.contact-confirm__back {
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
}

.contact-confirm__submit span {
  position: absolute;
  right: 22px;
  font-size: 22px;
  font-weight: 400;
}

.contact-confirm__errors {
  display: block;
  margin-top: 32px;
}

.contact-confirm__errors > p {
  font-weight: 700;
}

.contact-confirm__error-list {
  margin-top: 10px;
  padding-left: 1.25em;
}

.contact-confirm__error-list li {
  list-style: disc;
  line-height: 1.8;
}

.contact-mail-message__inner {
  padding: 32px 0;
}

.contact-mail-message .contact-confirm__back {
  margin: 40px auto 0;
}

/* Complete page: Figma未作成のため、既存下層ページの意匠に合わせた最小限の暫定構成。 */
.contact-complete {
  padding: 104px 0 128px;
  background: #fff;
  text-align: center;
}

.contact-complete h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.7;
}

.contact-complete__message {
  max-width: 600px;
  margin-top: 30px;
  margin-right: auto;
  margin-left: auto;
}

.contact-complete__message p {
  font-size: 16px;
  line-height: 2;
}

.contact-complete__message p + p {
  margin-top: 12px;
}

.contact-complete__back {
  width: 300px;
  min-height: 60px;
  margin: 48px auto 0;
  padding: 14px 48px;
  font-size: 17px;
}

.contact-complete__back::after {
  position: absolute;
  right: 22px;
  content: '→';
  font-size: 22px;
  font-weight: 400;
}

@media screen and (max-width: 1023px) {
  .breadcrumbs {
    left: 40px;
  }

  .contact-hero__content p {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
  }

  .contact-form-section__inner {
    width: auto;
    max-width: none;
    margin: 0 40px;
  }

  .contact-complete__inner {
    width: auto;
    max-width: none;
    margin: 0 40px;
  }

  .contact-form__row {
    grid-template-columns: minmax(190px, 31%) minmax(0, 1fr);
  }

  fieldset.contact-form__row > legend.contact-form__label {
    width: 31%;
  }

  fieldset.contact-form__row > .contact-form__control {
    width: 69%;
    margin-left: 31%;
  }

  legend.contact-form__label {
    max-width: none;
  }

  .contact-date-fields,
  .contact-count-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-form__note {
    white-space: normal;
  }

  .contact-count-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media screen and (max-width: 767px) {
  .contact-hero {
    height: 280px;
  }

  .contact-hero__image {
    object-position: 52% center;
  }

  .breadcrumbs {
    top: 8px;
    left: 20px;
    font-size: 12px;
  }

  .contact-hero__content {
    top: 56px;
    right: 20px;
    left: 20px;
  }

  .contact-hero__content h1 {
    font-size: 30px;
    line-height: 48px;
  }

  .contact-hero__content p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.8;
  }

  .contact-hero__content p br {
    display: none;
  }

  .contact-form-section {
    padding: 54px 0 82px;
  }

  .contact-form-section__inner {
    margin: 0 20px;
  }

  .contact-complete__inner {
    margin: 0 20px;
  }

  .contact-form-section__introduction h2 {
    font-size: 15px;
    line-height: 1.9;
  }

  .contact-form-section__introduction p {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.9;
  }

  .contact-form-section__introduction p br {
    display: none;
  }

  .contact-form__required-note {
    margin-top: 38px;
    font-size: 14px;
  }

  .contact-form__row,
  .contact-form__row--choices,
  .contact-form__row--conditional,
  .contact-form__row--layout,
  .contact-form__row--textarea,
  .contact-form__row--consent {
    display: block;
    min-height: 0;
    padding: 24px 0;
  }

  fieldset.contact-form__row {
    position: static;
  }

  fieldset.contact-form__row > legend.contact-form__label {
    position: static;
    width: 100%;
  }

  fieldset.contact-form__row > .contact-form__control {
    width: auto;
    margin-left: 0;
  }

  .contact-form__row--choices > .contact-form__control {
    padding-top: 0;
  }

  .contact-form__label,
  legend.contact-form__label {
    display: block;
    width: 100%;
    max-width: none;
    margin-bottom: 14px;
    padding-right: 0;
    font-weight: 700;
  }

  .contact-form__control--short,
  .contact-form__control--select {
    width: 100%;
  }

  .contact-form input[type='text'],
  .contact-form input[type='tel'],
  .contact-form input[type='email'],
  .contact-form input[type='date'],
  .contact-form select {
    min-height: 46px;
    padding: 9px 12px;
    font-size: 16px;
  }

  .contact-form input[type='date'] {
    height: 46px;
  }

  .contact-form select {
    background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  }

  .contact-form textarea {
    font-size: 16px;
  }

  .contact-options {
    gap: 8px 18px;
  }

  .contact-options label,
  .contact-form__consent {
    min-height: 44px;
  }

  .contact-options input,
  .contact-form__consent input {
    width: 20px;
    height: 20px;
  }

  .contact-date-fields label,
  .contact-count-fields label {
    display: block;
  }

  .contact-date-fields label > span:first-child,
  .contact-count-fields label > span:first-child {
    white-space: normal;
  }

  .contact-date-fields,
  .contact-count-fields {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-date-fields,
  .contact-count-fields,
  .contact-layout-samples {
    margin-top: 20px;
  }

  .contact-number-input {
    width: 100%;
  }

  .contact-layout-samples figcaption {
    font-size: 14px;
  }

  .contact-form__consent {
    align-items: flex-start;
  }

  .contact-form__recaptcha-note {
    margin-top: 32px;
    text-align: left;
  }

  .contact-form__submit {
    width: min(230px, 100%);
    min-height: 60px;
    margin-top: 40px;
  }

  .contact-confirm h2,
  .contact-mail-message h2 {
    font-size: 24px;
    line-height: 1.6;
  }

  .contact-confirm__lead,
  .contact-mail-message__inner > p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
  }

  .contact-confirm__list {
    margin-top: 28px;
  }

  .contact-confirm__row {
    display: block;
  }

  .contact-confirm__row dt,
  .contact-confirm__row dd {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
  }

  .contact-confirm__actions {
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 32px;
    gap: 14px;
  }

  .contact-confirm__back,
  .contact-confirm__submit {
    width: min(280px, 100%);
  }

  .contact-mail-message__inner {
    padding: 0;
  }

  .contact-complete {
    padding: 24px 20px 88px;
  }

  .contact-complete h2 {
    font-size: 24px;
    line-height: 1.6;
  }

  .contact-complete__message {
    margin-top: 16px;
  }

  .contact-complete__message p {
    font-size: 14px;
    line-height: 1.7;
  }

  .contact-complete__message p + p {
    margin-top: 8px;
  }

  .contact-complete__back {
    width: min(300px, 100%);
    margin-top: 24px;
  }
}
