@charset "UTF-8";

/* 採用お問い合わせフォーム */

.contactPage {
  background-color: #FBF9F1;
}

.contactMain {
  position: relative;
  top: 80px;
  padding: 60px 0 100px;
  min-height: calc(100vh - 280px);
}

@media screen and (max-width: 1100px) {
  .contactMain {
    top: 95px;
    padding: 2em 0 4em;
  }
}

.contactInner {
  width: 800px;
  max-width: 92%;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 50px 56px;
  box-sizing: border-box;
}

@media screen and (max-width: 1100px) {
  .contactInner {
    border-radius: 10px;
    padding: 8% 6%;
  }
}

.contactBack {
  margin-bottom: 1.2em;
  font-size: 14px;
}

.contactBack a {
  color: #666;
  text-decoration: underline;
}

.contactTitle {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 28px;
  text-align: center;
  color: #222;
  margin-bottom: 16px;
  line-height: 1.5;
}

@media screen and (max-width: 1100px) {
  .contactTitle {
    font-size: clamp(20px, 5.5vw, 26px);
  }
}

.contactLead {
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 36px;
}

@media screen and (max-width: 1100px) {
  .contactLead {
    font-size: 13px;
    margin-bottom: 1.6em;
    text-align: left;
  }
}

.contactAlert {
  background: #fdf2f0;
  border: 1px solid #e8b4a8;
  color: #B53C16;
  padding: 14px 18px;
  margin-bottom: 28px;
  border-radius: 6px;
  line-height: 1.7;
  font-size: 14px;
}

/* honeypot */
.hpField {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contactForm .formRow {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eee;
}

@media screen and (max-width: 1100px) {
  .contactForm .formRow {
    display: block;
    margin-bottom: 1.2em;
    padding-bottom: 1.2em;
  }
}

.contactForm .formRow--privacy {
  border-bottom: none;
  padding-bottom: 0;
}

.formLabel {
  flex: 0 0 240px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  padding-top: 12px;
  white-space: nowrap;
}

@media screen and (max-width: 1100px) {
  .formLabel {
    display: block;
    flex: none;
    width: 100%;
    padding-top: 0;
    margin-bottom: 0.5em;
    font-size: 14px;
    white-space: normal;
  }
}

.formControl {
  flex: 1;
  min-width: 0;
}

.req {
  display: inline-block;
  background: #B53C16;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}

.opt {
  display: inline-block;
  background: #999;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}

.contactForm input[type="text"],
.contactForm input[type="email"],
.contactForm input[type="tel"],
.contactForm textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  color: #222;
  background: #fff;
  transition: border-color 0.2s ease;
}

.contactForm input:focus,
.contactForm textarea:focus {
  outline: none;
  border-color: #9E8417;
  box-shadow: 0 0 0 2px rgba(158, 132, 23, 0.15);
}

.contactForm input::placeholder,
.contactForm textarea::placeholder {
  color: #999;
  opacity: 1;
}

.contactForm textarea {
  resize: vertical;
  min-height: 160px;
}

.hasError input,
.hasError textarea {
  border-color: #B53C16;
  background: #fff8f6;
}

.formError {
  color: #B53C16;
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.5;
}

.radioLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.radioLabel input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkLabel a {
  color: #9E8417;
  text-decoration: underline;
}

.checkLabel a:hover {
  color: #7A6612;
  opacity: 1;
}

.checkLabel a.extLink::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.25em;
  vertical-align: -0.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.checkLabel input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.formActions {
  text-align: center;
  margin-top: 36px;
}

.formActions--confirm {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.inlineForm {
  display: inline-block;
}

.btnConfirm,
.btnSubmit,
.btnBack,
.btnBackHome {
  display: inline-block;
  min-width: 240px;
  height: 56px;
  line-height: 56px;
  padding: 0 32px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

@media screen and (max-width: 1100px) {
  .btnConfirm,
  .btnSubmit,
  .btnBack,
  .btnBackHome {
    min-width: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 15px;
  }

  .formActions--confirm {
    display: block;
  }

  .formActions--confirm .inlineForm {
    display: block;
    margin-bottom: 12px;
  }
}

.btnConfirm,
.btnSubmit {
  background-color: #B53C16;
  color: #fff;
}

.btnConfirm:hover,
.btnSubmit:hover {
  background-color: #8F2E10;
  color: #fff;
  opacity: 1;
}

.btnSubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btnBack,
.btnBackHome {
  background-color: #2F2F2F;
  color: #fff;
}

.btnBack:hover,
.btnBackHome:hover {
  background-color: #1A1A1A;
  color: #fff;
  opacity: 1;
}

/* 確認画面 */
.confirmList {
  margin: 0 0 20px;
}

.confirmList > div {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

@media screen and (max-width: 1100px) {
  .confirmList > div {
    display: block;
  }
}

.confirmList dt {
  flex: 0 0 180px;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

@media screen and (max-width: 1100px) {
  .confirmList dt {
    margin-bottom: 0.35em;
  }
}

.confirmList dd {
  flex: 1;
  font-size: 15px;
  line-height: 1.8;
  color: #222;
  word-break: break-word;
}

.confirmMessage {
  white-space: pre-wrap;
}

/* 完了 */
.contactInner--complete {
  text-align: center;
}

.completeMessage {
  font-size: 16px;
  line-height: 2;
  color: #444;
  margin: 28px 0 40px;
}

@media screen and (max-width: 1100px) {
  .completeMessage {
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
  }
}

/* フッター位置調整（contactMain の top 分） */
.contactPage footer,
.contactPage .copyright {
  position: relative;
  top: 80px;
}

@media screen and (max-width: 1100px) {
  .contactPage footer,
  .contactPage .copyright {
    top: 95px;
  }
}
