/* inquiry */
/* ============================================ */

.inquiry-outer {
  background: #f7f8f3;
}

.inquiry-bg {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 900px;
  height: 700px;
  background: radial-gradient(circle at 60% 35%, color-mix(in srgb, var(--main_c) 22%, transparent) 0%, color-mix(in srgb, var(--main_c) 10%, transparent) 45%, transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  @media (width <= 896px) {
    top: -60px;
    right: -140px;
    width: 560px;
    height: 460px;
  }
}

.inquiry-main {
  position: relative;
  z-index: 1;
  padding: 200px 0 120px;
  @media (width <= 896px) {
    padding: 120px 0 80px;
  }
}

.inquiry-wrap {
  max-width: 1340px;
}

.inquiry-ttl {
  font-family: var(--font_display);
  font-size: calc((37 / 16) * 1rem); /* 37px（PC/SP共通） */
  font-weight: 900;
  line-height: calc(56 / 37);
}


/* 完了ページ */
/* ============================================ */

.inquiry-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 64px;
  padding: 64px 20px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 18px 25px color-mix(in srgb, #1c3420 6%, transparent);
  text-align: center;
  @media (width <= 896px) {
    width: calc(100% + 40px);
    margin-top: 40px;
    margin-left: -20px;
    padding: 40px 20px;
  }
}
.inquiry-complete__txt {
  word-break: keep-all;
  font-size: var(--fs_ms); /* 18~16 */
  line-height: 1.8;
  letter-spacing: .0625em;
}
.inquiry-complete__btn {
  padding-block: 24px;
  @media (width <= 896px) {
    padding-block: 16px;
  }
}


/* 2カラムレイアウト */
/* ============================================ */

.inquiry-row {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  margin-top: 48px;
  @media (width <= 1200px) {
    flex-direction: column;
    gap: 48px;
    margin-top: 32px;
  }
}


/* 左カラム：案内テキスト */
/* ============================================ */

.inquiry-info {
  flex: 1;
  position: sticky;
  top: 180px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  @media (width <= 1367px) {
    top: 120px;
  }
  @media (width <= 1200px) {
    position: static;
    flex: auto;
    max-width: 100%;
    width: 100%;
    gap: 32px;
  }
}

.inquiry-info__lead {
  font-size: calc((16 / 16) * 1rem); /* 16px（PC/SP共通） */
  line-height: 1.8;
  letter-spacing: .0625em;
}

.inquiry-info__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inquiry-info__item-ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: calc((16 / 16) * 1rem); /* 16px（PC/SP共通） */
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: .0625em;
}

.inquiry-info__item-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--main_c);
  border-radius: 12px;
  color: #fff;
  svg {
    width: 12px;
    height: 9px;
  }
}

.inquiry-info__item-txt {
  margin-top: 4px;
  padding-left: 28px;
  font-size: calc((14 / 16) * 1rem); /* 14px（PC/SP共通） */
  line-height: 1.8;
  letter-spacing: .0625em;
}

.inquiry-tel {
  padding: 22px 29px;
  background: #ffeeea;
  border-radius: 16px;
  @media (width <= 896px) {
    padding: 20px;
  }
}

.inquiry-tel__ttl {
  font-size: calc((12 / 16) * 1rem); /* 12px（PC/SP共通） */
  font-weight: 700;
  letter-spacing: .0625em;
}

.inquiry-tel__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 8px;
  @media (width <= 600px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.inquiry-tel__link {
  font-family: var(--font_en);
  font-size: calc((32 / 16) * 1rem); /* 32px（PC/SP共通） */
  font-weight: 800;
  letter-spacing: .0625em;
  color: var(--cv_c);
}

.inquiry-tel__note {
  font-size: calc((12 / 16) * 1rem); /* 12px（PC/SP共通） */
  line-height: 1.8;
  letter-spacing: .0625em;
}


/* 右カラム：フォーム */
/* ============================================ */

.inquiry-contents {
  flex: 0 0 654px;
  width: 100%;
  @media (width <= 1200px) {
    flex: auto;
    max-width: inherit;
  }
}
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 48px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 18px 25px color-mix(in srgb, #1c3420 6%, transparent);
  @media (width <= 896px) {
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 48px 20px;
  }
}

.inquiry-form__ttl {
  font-size: calc((20 / 16) * 1rem); /* 20px（PC/SP共通） */
  font-weight: 700;
  letter-spacing: .02em;
}

.inquiry-form__note {
  font-size: calc((12 / 16) * 1rem); /* 12px（PC/SP共通） */
  letter-spacing: .0625em;
}

.inquiry-form__required-mark {
  color: #e2483c;
}


/* ステップインジケーター */
/* ============================================ */

.inquiry-steps {
  text-align: center;
  width: 100%;
  max-width: 558px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.inquiry-steps__item {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 0 24px;
  @media (width <= 896px) {
    padding: 0 16px;
  }
}

.inquiry-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg_c);
  border-radius: 24px;
  font-family: var(--font_en);
  font-size: calc((18 / 16) * 1rem); /* 18px（PC/SP共通） */
  font-weight: 800;
  color: var(--font_c);
}

.inquiry-steps__item.--active .inquiry-steps__num {
  background: var(--main_c);
  color: #fff;
}

.inquiry-steps__label {
  font-size: calc((16 / 16) * 1rem); /* 16px（PC/SP共通） */
  color: var(--font_c);
}

.inquiry-steps__item.--active .inquiry-steps__label {
  font-weight: 600;
  color: var(--main_c);
}

.inquiry-steps__line {
  flex: 1 0 0;
  height: 1px;
  min-width: 0;
  background: var(--line_c);
}


/* フォーム項目共通 */
/* ============================================ */

.inquiry-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inquiry-field__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inquiry-field__label {
  font-size: calc((16 / 16) * 1rem); /* 16px（PC/SP共通） */
  font-weight: 600;
  letter-spacing: .0625em;
}

.inquiry-field__desc {
  font-size: calc((12 / 16) * 1rem); /* 12px（PC/SP共通） */
  letter-spacing: .0625em;
}

.inquiry-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg_c);
  color: var(--font_c);
  font-size: calc((10.5 / 16) * 1rem); /* 10.5px（PC/SP共通） */
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}

.inquiry-tag--required {
  background: #ffeeea;
  color: #e2483c;
}

.inquiry-input {
  width: 100%;
  padding: 16px;
  background: var(--bg_c);
  border: 1px solid var(--line_c);
  border-radius: 10px;
  color: var(--font_c);
  font-size: calc((16 / 16) * 1rem); /* 16px（PC/SP共通、iOS自動ズーム防止のため1rem以上を維持） */
  letter-spacing: .0625em;
  transition: border-color .2s ease-out, background-color .2s ease-out, box-shadow .2s ease-out;
  &::placeholder {
    color: color-mix(in srgb, var(--font_c) 50%, transparent);
  }
  &:focus-visible {
    background: #e8f4ea;
    border-color: var(--main_c);
    outline: none;
    box-shadow: 0 0 10px 0 rgba(44, 137, 58, .4);
  }
}

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

.inquiry-postal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.inquiry-postal__mark {
  flex-shrink: 0;
  font-size: calc((16 / 16) * 1rem);
  letter-spacing: .0625em;
}

.inquiry-input--postal {
  width: auto;
  flex: 0 1 160px;
}

.inquiry-postal__btn {
  position: relative;
  isolation: isolate;
  overflow: clip;
  flex-shrink: 0;
  padding: 12px 20px;
  background: var(--main_c);
  border-radius: 9999px;
  color: #fff;
  font-size: calc((13 / 16) * 1rem);
  font-weight: 600;
  letter-spacing: .0625em;
  white-space: nowrap;
  cursor: pointer;
  &::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 9999px;
    background: var(--font_c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease-out;
  }
  &:hover {
    @media (hover: hover) {
      &::before {
        transform: scaleX(1);
      }
    }
  }
}


/* ご相談内容：複数選択ピル */
/* ============================================ */

.inquiry-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  @media (width <= 896px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media (width <= 600px) {
    grid-template-columns: 1fr;
  }
}

.inquiry-topic {
  display: block;
  cursor: pointer;
}

.inquiry-topic__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.inquiry-topic__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  background: var(--bg_c);
  border: 1px solid var(--line_c);
  border-radius: 9999px;
  color: var(--font_c);
  font-size: calc((16 / 16) * 1rem); /* 16px（PC/SP共通） */
  font-weight: 600;
  text-align: center;
  letter-spacing: .0625em;
  transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out;
}

.inquiry-topic__input:checked ~ .inquiry-topic__pill {
  background: #e8f4ea;
  border-color: #2b883a;
  color: var(--main_c);
}

.inquiry-topic:hover .inquiry-topic__pill {
  @media (hover: hover) {
    background: #e8f4ea;
    border-color: #2b883a;
    color: var(--main_c);
  }
}

.inquiry-topic__input:focus-visible ~ .inquiry-topic__pill {
  outline: 2px solid var(--main_c);
  outline-offset: 2px;
}


/* プライバシーポリシー同意 */
/* ============================================ */

.inquiry-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line_c);
}

.inquiry-privacy__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.inquiry-privacy__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.inquiry-privacy__box {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid var(--line_c);
  border-radius: 4px;
  color: #fff;
  transition: background-color .2s ease-out, border-color .2s ease-out;
}

.inquiry-privacy__mark {
  width: 14px;
  height: 11px;
  opacity: 0;
  transition: opacity .2s ease-out;
}

.inquiry-privacy__input:checked ~ .inquiry-privacy__box {
  background: var(--main_c);
  border-color: var(--main_c);
}

.inquiry-privacy__input:checked ~ .inquiry-privacy__box .inquiry-privacy__mark {
  opacity: 1;
}

.inquiry-privacy__input:focus-visible ~ .inquiry-privacy__box {
  outline: 2px solid var(--main_c);
  outline-offset: 2px;
}

.inquiry-privacy__label {
  font-size: calc((13 / 16) * 1rem); /* 13px（PC/SP共通） */
  letter-spacing: .02em;
  color: var(--font_c);
  a {
    color: var(--main_c);
    text-decoration: underline;
  }
}


/* 確認画面 */
/* ============================================ */

.inquiry-confirm {
  display: flex;
  flex-direction: column;
}

.inquiry-confirm__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line_c);
  &:first-child {
    padding-top: 0;
  }
}

.inquiry-confirm__label {
  font-size: calc((13 / 16) * 1rem); /* 13px（PC/SP共通） */
  font-weight: 600;
  letter-spacing: .0625em;
  color: #6b7269;
}

.inquiry-confirm__value {
  font-size: calc((16 / 16) * 1rem); /* 16px（PC/SP共通） */
  line-height: 1.8;
  letter-spacing: .0625em;
  word-break: break-all;
}


/* 送信ボタン・注意書き */
/* ============================================ */

.inquiry-form__submit {
  padding: 24px 0;
}

.inquiry-form__submit--confirm {
  display: flex;
  align-items: center;
  gap: 16px;
  @media (width <= 600px) {
    flex-direction: column-reverse;
  }
}

.inquiry-form__submit--confirm .inquiry-form__submit-btn {
  flex: 1;
  justify-content: center;
  padding: calc((20 / 18) * 1em) calc((32 / 18) * 1em);
}

.inquiry-form__submit--confirm .inquiry-form__submit-btn-icon {
  position: absolute;
  right: calc((18 / 18) * 1em);
  top: 50%;
  translate: 0 -50%;
}

.inquiry-form__back-btn {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: calc((20 / 18) * 1em) calc((40 / 18) * 1em);
  background: var(--font_c);
  border-radius: 9999px;
  color: #fff;
  font-size: calc((18 / 16) * 1rem); /* 18px */
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .3s ease-out;
  @media (width <= 600px) {
    width: 100%;
  }
  &::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 9999px;
    background: var(--cv_c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease-out;
  }
  &:hover {
    @media (hover: hover) {
      opacity: 1;
      &::before {
        transform: scaleX(1);
      }
    }
  }
}

.inquiry-form__back-btn-icon {
  position: absolute;
  left: calc((18 / 16) * 1em);
  top: 50%;
  translate: 0 -50%;
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  svg {
    width: 100%;
    height: 100%;
  }
}

.inquiry-form__back-btn-txt {
  flex: 1;
  text-align: center;
}

.inquiry-form__submit-btn {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 558px;
  margin-inline: auto;
  padding: calc((20 / 18) * 1em) calc((40 / 18) * 1em);
  background: var(--cv_c);
  color: #fff;
  border-radius: 9999px;
  font-size: calc((18 / 16) * 1rem); /* 18px */
  font-weight: 600;
  transition: opacity .3s ease-out;
  &::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 9999px;
    background: var(--font_c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease-out;
  }
  &:hover {
    @media (hover: hover) {
      opacity: 1;
      &::before {
        transform: scaleX(1);
      }
    }
  }
}

.inquiry-form__submit-btn-txt {
  flex: 1;
  text-align: center;
}

.inquiry-form__submit-btn-icon {
  display: inline-flex;
  width: calc((16 / 18) * 1em);
  height: calc((16 / 18) * 1em);
  flex-shrink: 0;
  svg {
    width: 100%;
    height: 100%;
  }
}

.inquiry-caution {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inquiry-caution__item {
  font-size: calc((12 / 16) * 1rem); /* 12px（PC/SP共通） */
  letter-spacing: .0625em;
  color: #6b7269;
}


/* Camel Form System エラー表示 */
/* ============================================ */

#errorMessage {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 24px;
  padding: 16px;
  list-style: none;
  background: #fdecea;
  border: 1px solid #d32f2f;
  border-radius: 8px;
  color: #d32f2f;
  font-size: calc((14 / 16) * 1rem);
  letter-spacing: .02em;
}

.errmsg {
  margin: 0 0 24px;
}


/* Camel Form System：チェックボックス見た目調整 */
/* ============================================ */
/* エンジンが生成する <label><input class="inquiry-topic__input">表示テキスト</label>
   構造に合わせ、label自体をピル/チェックボックスとして装飾する。 */

.inquiry-topics label:has(> .inquiry-topic__input) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  background: var(--bg_c);
  border: 1px solid var(--line_c);
  border-radius: 9999px;
  color: var(--font_c);
  font-size: calc((16 / 16) * 1rem); /* 16px（PC/SP共通） */
  font-weight: 600;
  text-align: center;
  letter-spacing: .0625em;
  cursor: pointer;
  transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out;
}

.inquiry-topics label:has(> .inquiry-topic__input:checked) {
  background: #e8f4ea;
  border-color: #2b883a;
  color: var(--main_c);
}

.inquiry-topics label:has(> .inquiry-topic__input):hover {
  @media (hover: hover) {
    background: #e8f4ea;
    border-color: #2b883a;
    color: var(--main_c);
  }
}

.inquiry-topics label:has(> .inquiry-topic__input:focus-visible) {
  outline: 2px solid var(--main_c);
  outline-offset: 2px;
}

.inquiry-privacy label:has(> .inquiry-privacy__input) {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 32px;
  min-height: 24px;
  cursor: pointer;
  font-size: calc((13 / 16) * 1rem); /* 13px（PC/SP共通） */
  letter-spacing: .02em;
  color: var(--font_c);
}

.inquiry-privacy label:has(> .inquiry-privacy__input) a {
  color: var(--main_c);
  text-decoration: underline;
}

.inquiry-privacy label:has(> .inquiry-privacy__input)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--line_c);
  border-radius: 4px;
  transition: background-color .2s ease-out, border-color .2s ease-out;
}

.inquiry-privacy label:has(> .inquiry-privacy__input)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 46%;
  width: 12px;
  height: 6px;
  transform: translateY(-70%) rotate(-45deg);
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transition: opacity .2s ease-out;
}

.inquiry-privacy label:has(> .inquiry-privacy__input:checked)::before {
  background: var(--main_c);
  border-color: var(--main_c);
}

.inquiry-privacy label:has(> .inquiry-privacy__input:checked)::after {
  opacity: 1;
}

.inquiry-privacy label:has(> .inquiry-privacy__input:focus-visible)::before {
  outline: 2px solid var(--main_c);
  outline-offset: 2px;
}
#vl020 {
  position: absolute;
}