@charset "UTF-8";

/* ==========================================================================
   お問い合わせページ専用スタイル
   ========================================================================== */

/* --------------------------------------------------------------------------
   ページヘッダー
   -------------------------------------------------------------------------- */
.cp-main {
  overflow: hidden;
}

.cp-page-header {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cp-page-header::before {
  content: 'CONTACT';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.cp-page-header__bg {
  position: absolute;
  inset: 0;
  background: url('../images/contact-bg.jpg') center center / cover no-repeat;
  background-color: #1a4830;
  z-index: 1;
}

.cp-page-header:not(:has(img[src])) .cp-page-header__bg,
.cp-page-header__bg:not(:has(img)) {
  background: linear-gradient(135deg, #1a4830 0%, #2a6644 50%, #52a96e 100%);
}

.cp-page-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 72, 48, 0.80) 0%,
    rgba(26, 72, 48, 0.55) 100%
  );
  z-index: 2;
}

.cp-page-header__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 60px 60px;
  color: #ffffff;
}

.cp-page-header__breadcrumb {
  font-size: 13px;
  margin-bottom: 20px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cp-page-header__breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.cp-page-header__breadcrumb a:hover {
  text-decoration: underline;
}

.cp-page-header__breadcrumb-sep {
  opacity: 0.6;
}

.cp-page-header__sub {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 10px;
}

.cp-page-header__title {
  font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS PMincho", "Noto Serif JP", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.cp-page-header__desc {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   メインボディ（2カラムレイアウト）
   -------------------------------------------------------------------------- */
.cp-body {
  background: #fff;
  padding: 80px 20px 100px;
}

.cp-body__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 50px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   共通見出し
   -------------------------------------------------------------------------- */
.cp-heading {
  font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS PMincho", "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 600;
  color: #1F3A24;
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 2px solid #4A6B45;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   左カラム: 電話問い合わせ
   -------------------------------------------------------------------------- */
.cp-phone {
  background: #ffffff;
  padding: 40px 30px;
  text-align: center;
}

.cp-phone__desc {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.cp-phone__logo {
  margin-bottom: 28px;
}

.cp-phone__logo img {
  max-height: 55px;
  width: auto;
  margin-bottom: 12px;
}

.cp-phone__logo-sub {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
}

.cp-phone__number {
  margin-bottom: 14px;
}

.cp-phone__number a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #B84A3E;
}

.cp-phone__icon {
  font-size: 22px;
}

.cp-phone__tel {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
}

.cp-phone__hours {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.cp-phone__address {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* --------------------------------------------------------------------------
   右カラム: フォーム
   -------------------------------------------------------------------------- */
.cp-form-wrap {
  background: #ffffff;
  padding: 40px 40px 50px;
}

.cp-form-wrap__desc {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  text-align: center;
  margin-bottom: 36px;
}

.cp-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cp-form__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: start;
  gap: 16px;
}

.cp-form__label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.cp-form__label small {
  font-size: 12px;
  font-weight: 400;
  color: #888;
  display: block;
  width: 100%;
  margin-top: 2px;
}

.cp-form__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.cp-form__badge--required {
  background: #B84A3E;
  color: #ffffff;
}

.cp-form__badge--optional {
  background: #5C665B;
  color: #ffffff;
}

.cp-form__field input[type="text"],
.cp-form__field input[type="email"],
.cp-form__field input[type="tel"],
.cp-form__field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  background: #f8f9fb;
  color: #333;
  transition: border-color 0.3s, background 0.3s;
  box-sizing: border-box;
}

.cp-form__field input:focus,
.cp-form__field textarea:focus {
  border-color: #4A6B45;
  border-width: 2px;
  background: #ffffff;
  outline: none;
}

.cp-form__field textarea {
  resize: vertical;
  min-height: 130px;
}

.cp-form__field--radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.cp-form__radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}

.cp-form__radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #1a2354;
  flex-shrink: 0;
}

.cp-form__privacy {
  font-size: 13px;
  color: #666;
  text-align: center;
  padding: 16px 0 0;
}

.cp-form__privacy a {
  color: #4A6B45;
  text-decoration: underline;
}

.cp-form__submit {
  text-align: center;
  margin-top: 8px;
}

.cp-form__btn {
  background: #2a6644;
  color: #ffffff;
  border: none;
  padding: 16px 60px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  letter-spacing: 0.05em;
  min-height: 54px;
}

.cp-form__btn:hover {
  background: #1a4830;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   トップページ: concept values（追加スタイル）
   -------------------------------------------------------------------------- */
.tp-concept__values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 900px;
}

.tp-concept__value {
  background: #E8EDE5;
  border-left: 4px solid #C9A961;
  padding: 20px 24px;
  text-align: left;
  flex: 1 1 160px;
  max-width: 200px;
}

.tp-concept__value-num {
  display: block;
  font-size: 12px;
  color: #4A6B45;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.tp-concept__value-label {
  display: block;
  font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS PMincho", "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 600;
  color: #1F3A24;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.tp-concept__value-text {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.tp-concept__vision {
  margin-top: 40px;
  padding: 30px 40px;
  background: #1F3A24;
  border-radius: 0;
  border-top: 4px solid #C9A961;
}

.tp-concept__vision-text {
  font-size: 18px;
  color: #ffffff;
  line-height: 2;
  text-align: center;
  margin: 0;
}

/* --------------------------------------------------------------------------
   トップページ: qualifications（プロフィールカード型）
   -------------------------------------------------------------------------- */
.tp-qualifications__profile-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  flex: 1 1 180px;
}

.tp-qualifications__profile-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.tp-qualifications__profile-title {
  font-size: 17px;
  font-weight: 700;
  color: #2F5233;
  margin-bottom: 6px;
}

.tp-qualifications__profile-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.tp-qualifications__profile-text {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   トップページ: service grid（5枚対応）
   -------------------------------------------------------------------------- */
.tp-service__grid--5 {
  grid-template-columns: repeat(3, 1fr);
}

.tp-service__grid--5 .tp-service__card:nth-child(4),
.tp-service__grid--5 .tp-service__card:nth-child(5) {
  grid-column: auto;
}

@media screen and (min-width: 769px) {
  .tp-service__grid--5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

.tp-service__card-list {
  padding: 16px 20px;
  margin: 0;
  list-style: none;
  font-size: 13px;
  color: #555;
  line-height: 2;
  flex: 1;
}

.tp-service__card-list li::before {
  content: "・";
  color: #1a2354;
}

/* --------------------------------------------------------------------------
   トップページ: hero（ボタン追加対応）
   -------------------------------------------------------------------------- */
.tp-hero__sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 600px;
}

.tp-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tp-hero__cta--primary {
  background: #C9A961;
  color: #1F3A24;
  padding: 16px 36px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s ease, transform 0.25s ease;
  min-height: 54px;
}

.tp-hero__cta--primary:hover {
  background: #A88A42;
  transform: translateY(-1px);
  color: #1F3A24;
}

.tp-hero__cta--secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 16px 36px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s ease, color 0.25s ease;
  min-height: 54px;
}

.tp-hero__cta--secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

.tp-hero__logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   差し替え対応: difference（TCSロゴ対応）
   -------------------------------------------------------------------------- */
.tp-difference__compare-us-title {
  font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS PMincho", "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 600;
  color: #2F5233;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 1024px) {
  .cp-body__inner {
    grid-template-columns: 320px 1fr;
    gap: 30px;
  }

  .tp-service__grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .cp-page-header {
    min-height: 280px;
  }

  .cp-page-header__content {
    padding: 40px 20px;
    max-width: 100%;
  }

  .cp-body {
    padding: 40px 16px 60px;
  }

  .cp-body__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cp-form__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cp-form__label {
    padding-top: 0;
  }

  .cp-form-wrap {
    padding: 30px 20px 40px;
  }

  .cp-form__btn {
    padding: 16px 50px;
    font-size: 15px;
  }

  .tp-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .tp-concept__values {
    flex-direction: column;
    align-items: center;
  }

  .tp-concept__value {
    max-width: 100%;
    width: 100%;
  }

  .tp-service__grid--5 {
    grid-template-columns: 1fr;
  }
}

/* ===== お問い合わせ完了画面 ===== */
.cp-thanks {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.cp-thanks__box {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cp-thanks__box .cp-heading {
  margin-bottom: 24px;
  color: #2a6644;
}

.cp-thanks__lead {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 24px;
}

.cp-thanks__note {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 32px;
}

.cp-thanks__actions {
  display: flex;
  justify-content: center;
}

.cp-thanks__actions .cp-form__btn {
  display: inline-block;
  min-width: 240px;
}
