/* ============================================================
   CONTACT Page
   ============================================================ */

/* Hero は共通 .page-hero を使用（main.css） */

/* ============================================================
   共通
   ============================================================ */

.ct-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter-width);

  /* Dropshadow01 */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background-color: #fff;
}

.ct-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter-width);
}

.ct-header-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* ============================================================
   フォーム
   ============================================================ */
.ct-form {
  padding: 0 var(--gutter-width);
}

.ct-form form {
  background: #fff;
  border-radius: 8px;
  padding: 80px 0;
  max-width: 600px;
  margin: 0 auto;
}

.ct-form__required-note {
  font-size: 12px;
  color: #555;
  letter-spacing: 0.12em;
  line-height: 30px;
  margin-bottom: 30px;
}

.ct-form__group {
  margin-bottom: 20px;
}

.ct-form__label {
  display: block;
  font-family: var(--font-ja);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.ct-form__req {
  color: #222;
  font-weight: 700;
  margin-left: 1px;
}

.ct-form__note {
  font-size: 13px;
  line-height: 20px;
  color: #555;
  margin-top: 5px;
}

/* テキスト入力・セレクト */
.ct-form input[type='text'],
.ct-form input[type='email'],
.ct-form input[type='tel'],
.ct-form select,
.ct-form textarea {
  width: 100%;
  padding: 10px 20px;
  font-size: 15px;
  font-family: var(--font-ja);
  background: #f3f3f3;
  border: 1px solid #e1e5e8;
  border-radius: 3px;
  transition: border-color 0.2s;
}

.ct-form input[type='text']:focus,
.ct-form input[type='email']:focus,
.ct-form input[type='tel']:focus,
.ct-form select:focus,
.ct-form textarea:focus {
  outline: none;
  border-color: #145393;
  background: #fff;
}

.ct-form input::placeholder,
.ct-form textarea::placeholder {
  color: #aaa;
}

/* セレクト固有 */
.ct-form select {
  appearance: auto;
  cursor: pointer;
}

/* テキストエリア */
.ct-form textarea {
  min-height: 260px;
  resize: vertical;
}

/* ラジオボタン */
.ct-form__group--radio .mwform-radio-field {
  display: inline-flex;
  align-items: center;
  margin-right: 24px;
  margin-bottom: 8px;
}

.ct-form__group--radio .mwform-radio-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #222;
  cursor: pointer;
}

.ct-form__group--radio .mwform-radio-field input[type='radio'] {
  width: 18px;
  height: 18px;
  accent-color: #145393;
  cursor: pointer;
}

/* チェックボックス — 3列グリッド */
.ct-form__group--checkbox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 0;
}

.ct-form__group--checkbox .ct-form__label {
  grid-column: 1 / -1;
}

.ct-form__group--checkbox .mwform-checkbox-field {
  display: flex;
  align-items: center;
}

/* MW WP Form デフォルトの横並びマージンを無効化（grid で制御するため） */
.ct-form__group--checkbox .horizontal-item + .horizontal-item {
  margin-left: 0;
}

.ct-form__group--checkbox .mwform-checkbox-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #222;
  cursor: pointer;
}

.ct-form__group--checkbox .mwform-checkbox-field input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #145393;
  cursor: pointer;
}

/* プライバシーポリシー */
.ct-form__privacy {
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.12em;
  color: #555;
  margin: 0 auto;
  max-width: 450px;
}

.ct-form__privacy a {
  color: #222;
  font-weight: 700;
  text-decoration: underline;
}

/* 送信・戻るボタン */
.ct-form__submit {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.ct-form__submit input[type='submit'] {
  display: inline-block;
  min-width: 300px;
  padding: 20px;
  font-family: var(--font-ja);
  font-weight: 700;
  color: #fff;
  background: #145393;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.12em;
  line-height: 28px;
  transition: background 0.2s;
}

.ct-form__submit input[type='submit']:hover {
  background: #0e3d6e;
}

/* 戻るボタン（MW WP Form 確認画面用） */
.ct-form__submit .back-form {
  display: inline-block;
  min-width: 160px;
  padding: 20px;
  font-family: var(--font-ja);
  font-weight: 700;
  color: #555;
  background: #e0e0e0;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.12em;
  line-height: 28px;
  transition: background 0.2s;
}

.ct-form__submit .back-form:hover {
  background: #ccc;
}

/* バリデーションエラー */
.ct-form .error {
  font-size: 13px;
  color: #c00;
  margin-top: 4px;
}

/* 完了メッセージ */
.ct-form__complete {
  text-align: center;
  padding: 80px 0;
}

.ct-form__complete-msg {
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 700;
  color: #145393;
  letter-spacing: 0.12em;
  line-height: 1.8;
  margin: 0 0 16px;
}

.ct-form__complete-sub {
  font-family: var(--font-ja);
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Ma-jin 送信エラー */
.ct-majin-error {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #c00;
  background: #fff5f5;
  border: 1px solid #f0c0c0;
  border-radius: 4px;
  padding: 16px 24px;
  margin-top: 24px;
}

/* ============================================================
   Sellside — ヘッダー・説明文
   ============================================================ */
.ct-sellside {
  padding: 0 var(--gutter-width);
  margin-bottom: 30px;
}

.ct-sellside__header {
  margin-bottom: 30px;
}

.ct-sellside__label {
  display: block;
  font-family: var(--font-en);
  font-weight: var(--font-weight-demi);
  font-size: 20px;
  color: #6a818f;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.ct-sellside__title {
  font-family: var(--font-ja);
  font-size: 30px;
  font-weight: 700;
  line-height: 48px;
}

.ct-sellside__title-highlight {
  font-family: var(--font-ja);
  font-weight: 900;
  color: #145393;
}

.ct-sellside__title-sub {
  font-family: var(--font-ja);
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-top: 0;
}

.ct-sellside__desc {
  line-height: 28px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #555555;
}

.ct-sellside__desc p {
  margin: 0;
}

/* ============================================================
   一覧に戻るリンク
   ============================================================ */
.ct-back {
  padding: 30px 0 120px;
}

.ct-back__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ja);
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-decoration: none;
  color: #222;
  transition: opacity 0.2s;
}

.ct-back__link:hover {
  opacity: 0.7;
}

.related-inner {
  margin-top: 0 !important;
}

.is-opportunities-entry-page .section-contact .related-inner {
  margin-top: 80px !important;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .ct-form {
    padding: 0 0 48px;
  }

  .ct-form form {
    padding: 32px 16px 40px;
    box-shadow: none;
    border-radius: 0;
  }

  .ct-form__label {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .ct-form__group {
    margin-bottom: 28px;
  }

  .ct-form__group--checkbox {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-form__submit {
    flex-direction: column;
    gap: 12px;
  }

  .ct-form__submit .back-form {
    min-width: 200px;
  }

  .ct-form__submit input[type='submit'] {
    width: 100%;
    max-width: 320px;
    padding: 16px 32px;
    font-size: 15px;
  }

  .ct-sellside {
    padding: 48px var(--gutter-width) 0;
  }

  .ct-sellside__header {
    margin-bottom: 20px;
  }

  .ct-sellside__title {
    font-size: 22px;
    line-height: 34px;
  }

  .ct-sellside__title-sub {
    font-size: 18px;
  }

  .ct-sellside__desc {
    font-size: 14px;
    line-height: 28px;
    padding-bottom: 0;
  }

  .ct-back {
    padding: 24px 0 48px;
  }

  .is-opportunities-entry-page .section-contact .related-inner {
    margin-top: 48px !important;
  }
}

/* ============================================================
   Contact Hub（page-contact.php）
   ============================================================ */
.ct-hub {
  padding: 60px var(--gutter-width);
}

.ct-hub--ma {
  padding-top: 80px;
  padding-bottom: 80px;
}

.ct-hub--other {
  padding-top: 40px;
  padding-bottom: 80px;
}

.ct-hub__inner {
  max-width: 880px;
  margin: 0 auto;
}

.ct-hub__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 30px;
  line-height: 48px;
  text-align: center;
  letter-spacing: 0.16em;
  margin-bottom: 30px;
}

.ct-hub__title::after {
  content: '';
  display: block;
  width: 62px;
  height: 2px;
  background-color: #222;
  margin: 10px auto 0;
}

.ct-hub__desc {
  font-family: var(--font-ja);
  font-weight: var(--font-weight-medium);
  line-height: 28px;
  text-align: left;
  letter-spacing: 0.12em;
  max-width: 670px;
  margin: 0 auto 40px;
}

.ct-hub--other .ct-hub__desc {
  text-align: center;
}

.ct-hub__cards {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.ct-hub__cards--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* Card 共通 */
.ct-hub-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  padding: 30px 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.ct-hub-card__title {
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 38px;
}

.ct-hub-card__sub {
  font-family: var(--font-ja);
  font-weight: var(--font-weight-medium);
  line-height: 28px;
  letter-spacing: 0.12em;
}

/* リンクカード（M&A セクション） */
.ct-hub-card--link {
  cursor: pointer;
}

.ct-hub-card--link:hover {
  background: #145393;
  box-shadow: 0px 4px 10px rgba(20, 83, 147, 0.25);
}

.ct-hub-card--link:hover .ct-hub-card__title,
.ct-hub-card--link:hover .ct-hub-card__sub {
  color: #fff;
}

/* M&A セクション 電話ボックス */
.ct-hub__phone-box {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  padding: 40px 24px;
  text-align: center;
}

.ct-hub__phone-label {
  font-family: var(--font-ja);
  font-size: 22px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.ct-hub__phone-number {
  margin-bottom: 10px;
  font-size: 40px;
  line-height: 1em;
  letter-spacing: 0.08em;
}

.ct-hub__phone-number a {
  font-family: var(--font-ja);
  font-size: 32px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.08em;
  text-decoration: none;
  pointer-events: auto;
}

.ct-hub__phone-hours {
  font-family: var(--font-ja);
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.08em;
}

/* メールフォームカード */
.ct-hub-card--mail {
  gap: 10px;
}

.ct-hub-card__btn {
  display: inline-block;
  background: #145393;
  color: #fff;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 16px 40px;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ct-hub-card__btn:hover {
  background: #0f3f73;
}

/* 電話カード（その他セクション） */
.ct-hub-card--tel {
  gap: 6px;
}

.ct-hub-card__tel-num {
  margin: 0;
}

.ct-hub-card__tel-num a {
  font-family: var(--font-ja);
  font-size: 37px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.ct-hub-card__tel-hours {
  font-family: var(--font-ja);
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.08em;
}

/* Responsive */
@media (max-width: 768px) {
  .ct-hub {
    padding: 40px var(--gutter-width);
  }

  .ct-hub--ma {
    padding-bottom: 48px;
  }

  .ct-hub--other {
    padding-bottom: 60px;
  }

  .ct-hub__title {
    font-size: 22px;
    letter-spacing: 0.12em;
  }

  .ct-hub__desc {
    font-size: 13px;
    line-height: 22px;
    margin-bottom: 28px;
    text-align: left;
  }

  .ct-hub__cards--2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ct-hub__cards {
    margin-bottom: 12px;
  }

  .ct-hub-card {
    padding: 22px 16px;
  }

  .ct-hub-card__title {
    font-size: 16px;
  }

  .ct-hub-card__sub {
    font-size: 13px;
  }

  .ct-hub__phone-box {
    padding: 20px 16px;
  }

  .ct-hub__phone-label {
    font-size: 14px;
    line-height: 20px;
  }

  .ct-hub__phone-number {
    line-height: 24px;
  }

  .ct-hub__phone-number a {
    font-size: 24px;
  }

  .ct-hub__phone-hours {
    font-size: 12px;
  }

  .ct-hub-card__btn {
    font-size: 13px;
    padding: 10px 24px;
  }

  .ct-hub-card__tel-num a {
    font-size: 22px;
  }

  .ct-hub--other .ct-hub__desc {
    text-align: left;
  }
}
