/**
 * File Name: service-contact.css
 * 2026-07-03 | Final Check
 */

/* ==============================================================================
 * お問い合わせフォーム セクション全体コンテナ（特徴的なライトグレー背景）
 * ============================================================================== */
.p-contact-section {
  width: 100%;
  padding: 50px 20px;
  background-color: #cccccc;
  color: #000000;
  font-family: "Helvetica Neue", Arial, "BIZ UDPGothic", "Meiryo", sans-serif;
  box-sizing: border-box;
}

.p-contact-section *,
.p-contact-section *::before,
.p-contact-section *::after {
  box-sizing: border-box;
}

.p-contact-section__container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.p-contact-section__header {
  text-align: center;
  margin-bottom: 35px;
}

.p-contact-section__main-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 4px 0;
  letter-spacing: 0.05em;
}

.p-contact-section__sub-title {
  font-size: 0.85rem;
  color: #444444;
  margin: 0;
}

.p-contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.p-contact-form__label-col {
  display: flex;
  align-items: center;
  width: 100%;
}

.p-contact-form__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.4;
}

.p-contact-form__input-col {
  width: 100%;
}

.p-contact-form__input {
  width: 100%;
  height: 48px;
  background-color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 1rem;
  color: #000000;
  outline: none;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.p-contact-form__input:focus {
  background-color: #f7fafc;
}

.p-contact-form__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 4px 0;
}

.p-contact-form__checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.p-contact-form__checkbox-label:hover .p-contact-form__checkbox-input {
  border-color: #000000;
}

.p-contact-form__checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border: 1px solid #767676;
  border-radius: 3px;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
}

.p-contact-form__checkbox-input:checked {
  background-color: #ffffff;
  border-color: #000000;
}

.p-contact-form__checkbox-input:checked::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #000000;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.p-contact-form__checkbox-text {
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.2;
}

.p-contact-form__row--agree {
  margin-top: 15px;
}

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

.p-contact-form__checkbox-label--agree {
  max-width: 100%;
}

.p-contact-form__zip-group {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.p-contact-form__input--zip1 {
  width: 35%;
  flex: 1 1 auto;
}

.p-contact-form__input--zip2 {
  width: 55%;
  flex: 1 1 auto;
}

.p-contact-form__tel-group {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.p-contact-form__input--tel {
  width: 30%;
  flex: 1 1 auto;
  min-width: 0;
}

.p-contact-form__hyphen {
  font-size: 1rem;
  font-weight: bold;
  color: #000000;
  user-select: none;
  flex: 0 0 auto;
}

.p-contact-form__row--textarea {
  align-items: initial;
}

.p-contact-form__textarea {
  width: 100%;
  height: 200px;
  background-color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 20px;
  font-size: 1rem;
  color: #000000;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  font-family: inherit;
}

.p-contact-form__textarea:focus {
  background-color: #f7fafc;
}

.u-pc-only {
  display: none;
}

/* ==============================================================================
 * MEDIA QUERIES
 * ============================================================================== */

/* スマホ横向き（低画面高） */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .p-contact-section {
    padding: 30px 20px;
  }
  .p-contact-section__header {
    margin-bottom: 25px;
  }
  .p-contact-form {
    gap: 16px;
  }
  .p-contact-form__row {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .p-contact-form__row--checkbox,
  .p-contact-form__row--textarea {
    align-items: flex-start;
    padding-top: 4px;
  }
  .p-contact-form__row--agree {
    flex-direction: row;
    margin-top: 5px;
  }
  .p-contact-form__row--agree .p-contact-form__input-col {
    width: 100%;
    flex: 0 0 100%;
  }
  .p-contact-form__label-col {
    width: 30%;
    flex: 0 0 30%;
    padding-right: 15px;
  }
  .p-contact-form__input-col {
    width: 70%;
    flex: 0 0 70%;
  }
  .p-contact-form__checkbox-group {
    gap: 10px;
  }
  .p-contact-form__textarea {
    height: 140px;
    border-radius: 16px;
  }
}

/* タブレット・標準PCサイズ */
@media screen and (min-width: 768px) and (min-height: 501px) {
  .p-contact-section {
    padding: 80px 40px;
  }
  .p-contact-section__header {
    margin-bottom: 50px;
  }
  .p-contact-section__main-title {
    font-size: 2rem;
  }
  .p-contact-form__row {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .p-contact-form__row--checkbox,
  .p-contact-form__row--textarea {
    align-items: flex-start;
    padding-top: 10px;
  }
  .p-contact-form__row--agree {
    flex-direction: row;
    margin-top: 15px;
  }
  .p-contact-form__row--agree .p-contact-form__input-col {
    width: 100%;
    flex: 0 0 100%;
  }
  .p-contact-form__label-col {
    width: 32%;
    flex: 0 0 32%;
    padding-right: 20px;
  }
  .p-contact-form__input-col {
    width: 68%;
    flex: 0 0 68%;
  }
  .p-contact-form__checkbox-group {
    gap: 14px;
  }
  .p-contact-form__input--zip1 {
    width: 120px;
    flex: 0 0 120px;
  }
  .p-contact-form__input--zip2 {
    width: 160px;
    flex: 0 0 160px;
  }
  .p-contact-form__input--tel {
    width: 110px;
    flex: 0 0 110px;
  }
  .p-contact-form__zip-group,
  .p-contact-form__tel-group {
    gap: 12px;
  }
  .p-contact-form__hyphen {
    font-size: 1.2rem;
  }
  .p-contact-form__textarea {
    height: 240px;
    border-radius: 24px;
  }
  .u-pc-only {
    display: inline;
  }
}

/* 大型デスクトップサイズ */
@media screen and (min-width: 1024px) and (min-height: 501px) {
  .p-contact-section {
    padding: 90px 40px;
  }
}
