.formpage {
  padding: 0 0 120px;
}
@media (max-width: 767px) {
  .formpage {
    padding-bottom: 80px;
  }
}

.form-lead {
  font-weight: 400;
  font-size: 14px;
  line-height: 2;
  color: #222222;
  margin-bottom: 56px;
}

.form {
  width: min(880px, 100%);
  margin: 0 auto;
}
.form__row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.12);
}
@media (max-width: 767px) {
  .form__row {
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
  }
}
.form__label {
  width: 250px;
  flex-shrink: 0;
  padding-top: 12px;
  font-weight: 500;
  font-size: 15px;
  color: #222222;
}
@media (max-width: 767px) {
  .form__label {
    width: 100%;
    padding-top: 0;
  }
}
.form__label .req {
  color: #ee7800;
  font-size: 11px;
  margin-left: 8px;
}
.form__field {
  flex: 1;
  width: 100%;
}
.form__submit {
  text-align: center;
  margin-top: 48px;
}
.form__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(34, 34, 34, 0.7);
}
.form__note a {
  color: #165e83;
  text-decoration: underline;
}
.form__note label {
  cursor: pointer;
}
@media (max-width: 767px) {
  .form__note {
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }
}
.form__check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #165e83;
  cursor: pointer;
}
@media (max-width: 767px) {
  .form__check {
    margin-top: 4px;
  }
}

.field {
  width: 100%;
  border: 1px solid rgba(34, 34, 34, 0.3);
  padding: 12px 14px;
  font-family: "Noto Serif JP", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: 15px;
  color: #222222;
  background: #ffffff;
  transition: border-color 0.2s;
}
.field:focus {
  outline: none;
  border-color: #165e83;
}
.field::placeholder {
  color: rgba(34, 34, 34, 0.35);
}

textarea.field {
  min-height: 160px;
  resize: vertical;
  line-height: 1.8;
}

select.field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #222222 50%), linear-gradient(135deg, #222222 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

input[type=file].field {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}
input[type=file].field::file-selector-button {
  margin-right: 12px;
  padding: 6px 16px;
  border: 1px solid #165e83;
  background: #ffffff;
  font-family: "Noto Serif JP", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: 13px;
  color: #165e83;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
input[type=file].field::file-selector-button:hover {
  background: #165e83;
  color: #ffffff;
}

.field-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.wpcf7-list-item {
  margin: 0;
}
.wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.8;
  color: #ee7800;
}

.field.wpcf7-not-valid {
  border-color: #ee7800;
}

.wpcf7-response-output {
  margin: 24px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(34, 34, 34, 0.3);
  font-size: 14px;
  line-height: 1.8;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #165e83;
  color: #165e83;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: #ee7800;
  color: #ee7800;
}

.form__note .wpcf7-form-control-wrap,
.form__note .wpcf7-acceptance,
.form__note .wpcf7-list-item,
.form__note .wpcf7-list-item label {
  display: contents;
}
.form__note input[type=checkbox] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #165e83;
  cursor: pointer;
}
@media (max-width: 767px) {
  .form__note input[type=checkbox] {
    margin-top: 6px;
  }
}

.wpcf7-spinner {
  margin: 0 0 0 12px;
}

.field-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(34, 34, 34, 0.6);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 16px 40px;
  border-radius: 100px;
  background: #165e83;
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  transition: opacity 0.2s;
}
.submit-btn:hover {
  opacity: 0.88;
}

.contactpage {
  width: min(1024px, 100% - 48px);
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 144px;
}
.contactpage--narrow {
  padding-top: 64px;
}
.contactpage--wide {
  width: min(1152px, 100% - 48px);
  padding-top: 64px;
}
.contactpage .form {
  width: 100%;
}
@media (max-width: 767px) {
  .contactpage {
    padding-top: 64px;
    padding-bottom: 80px;
  }
  .contactpage--narrow {
    padding-top: 64px;
  }
  .contactpage--wide {
    padding-top: 64px;
  }
}

.contact-lead {
  font-weight: 400;
  font-size: 14px;
  line-height: 28px;
  color: #222222;
  margin-bottom: 80px;
}
@media (max-width: 767px) {
  .contact-lead {
    margin-bottom: 64px;
  }
}
.contact-lead--lg {
  font-size: 22px;
  line-height: 22px;
  text-align: center;
  margin-bottom: 64px;
}
@media (max-width: 767px) {
  .contact-lead--lg {
    font-size: 20px;
    line-height: 40px;
    margin-bottom: 40px;
  }
}

.contact-btns {
  display: flex;
  gap: 64px;
  margin-bottom: 80px;
}
@media (max-width: 767px) {
  .contact-btns {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 64px;
  }
}

.contact-card {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 184px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 0;
  background: #165e83;
  border: 2px solid #165e83;
  color: #ffffff;
  transition: opacity 0.2s;
}
.contact-card:hover {
  opacity: 0.88;
}
.contact-card::before, .contact-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.contact-card::before {
  top: 12px;
  right: 12px;
  bottom: 52px;
  left: 44px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}
.contact-card::after {
  top: 52px;
  right: 44px;
  bottom: 12px;
  left: 12px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
}
.contact-card__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
}
.contact-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
}
.contact-card__label {
  position: relative;
  z-index: 1;
  font-weight: 500;
  font-size: 28px;
  line-height: 42px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .contact-card {
    flex: none;
    width: 320px;
    height: 164px;
    gap: 32px;
    padding: 0;
  }
  .contact-card::before {
    top: 12px;
    right: 12px;
    bottom: 40px;
    left: 40px;
  }
  .contact-card::after {
    top: 40px;
    right: 40px;
    bottom: 12px;
    left: 12px;
  }
  .contact-card__icon {
    width: 80px;
    height: 80px;
  }
  .contact-card__label {
    font-size: 20px;
    line-height: 30px;
  }
}

.embed-box {
  height: 520px;
  background: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 40px;
  line-height: 40px;
  color: #222222;
  text-align: center;
}
@media (max-width: 767px) {
  .embed-box {
    height: 520px;
    font-size: 20px;
    line-height: 30px;
    padding: 0 24px;
  }
}
.embed-box + .vhead-c {
  margin-top: 80px;
}
@media (max-width: 767px) {
  .embed-box + .vhead-c {
    margin-top: 64px;
  }
}

.vhead-c {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 500;
  font-size: 24px;
  line-height: 34px;
  letter-spacing: 1.2px;
  color: #222222;
  margin-bottom: 40px;
}
.vhead-c::before {
  content: "";
  width: 4px;
  height: 28px;
  flex-shrink: 0;
  background: #165e83;
}
@media (max-width: 767px) {
  .vhead-c {
    gap: 12px;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0.9px;
    margin-bottom: 40px;
  }
  .vhead-c::before {
    width: 3px;
    height: 21px;
  }
}

.doc-hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 25px;
  margin-bottom: 80px;
}
@media (max-width: 767px) {
  .doc-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding: 0;
    margin-bottom: 64px;
  }
}
.doc-hero__text {
  flex: 0 0 350px;
}
@media (max-width: 767px) {
  .doc-hero__text {
    flex: none;
    width: 100%;
  }
}
.doc-hero__lead {
  font-weight: 400;
  font-size: 14px;
  line-height: 40px;
  color: #222222;
  margin-bottom: 32px;
}
@media (max-width: 767px) {
  .doc-hero__lead {
    font-size: 18px;
    line-height: 36px;
    letter-spacing: 1.8px;
    margin-bottom: 12px;
  }
}
.doc-hero__books {
  flex: 0 0 560px;
  min-width: 0;
}
.doc-hero__books img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .doc-hero__books {
    flex: none;
    width: 100%;
    max-width: 320px;
    margin: 0;
  }
}

.doc-free {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-left: 16px;
  padding-bottom: 12px;
  font-weight: 500;
}
.doc-free::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  width: 343px;
  height: 28px;
  background: rgba(238, 120, 0, 0.3);
}
.doc-free__big {
  position: relative;
  font-size: 56px;
  line-height: 56px;
  letter-spacing: 5.6px;
  color: #165e83;
}
.doc-free__sub {
  position: relative;
  font-weight: 400;
  font-size: 24px;
  line-height: 40px;
  letter-spacing: 2.4px;
  color: #222222;
}
@media (max-width: 767px) {
  .doc-free {
    padding-left: 12px;
    padding-bottom: 10px;
  }
  .doc-free::before {
    top: 30px;
    width: 270px;
    height: 20px;
  }
  .doc-free__big {
    font-size: 40px;
    line-height: 40px;
    letter-spacing: 4px;
  }
  .doc-free__sub {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 2px;
  }
}

.showrooms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  margin-bottom: 120px;
}
@media (max-width: 767px) {
  .showrooms {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }
}
.showrooms--single {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}
@media (max-width: 767px) {
  .showrooms--single {
    grid-template-columns: 1fr;
  }
}

.showroom-card {
  flex: 1;
  min-width: 0;
  color: #222222;
}
.showroom-card__thumb {
  aspect-ratio: 16/9;
  background: #d9d9d9;
  overflow: hidden;
  margin-bottom: 16px;
}
.showroom-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showroom-card__name {
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  margin-bottom: 8px;
}
.showroom-card__addr {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  font-size: 14px;
  line-height: 25px;
}
@media (max-width: 767px) {
  .showroom-card__name {
    font-size: 15px;
  }
  .showroom-card__addr {
    font-size: 13px;
  }
}

.telbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 140px;
  background: rgba(238, 120, 0, 0.9);
  color: #ffffff;
}
.telbox__num {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 40px;
  line-height: 40px;
  letter-spacing: 2px;
  color: #ffffff;
}
.telbox__num svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 4px;
}
.telbox__hours {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 500;
  font-size: 18px;
  line-height: 18px;
}
.telbox__hours::before, .telbox__hours::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
}
@media (max-width: 767px) {
  .telbox {
    height: 100px;
    gap: 12px;
  }
  .telbox__num {
    font-size: 32px;
    line-height: 32px;
    letter-spacing: 1.6px;
  }
  .telbox__num svg {
    width: 28px;
    height: 28px;
  }
  .telbox__hours {
    font-size: 16px;
    line-height: 16px;
    gap: 16px;
  }
}
