@charset "utf-8";
/* CSS Document */

/* ==============================
   サポートフォーム レイアウト
   添付画像風：左見出し + 右入力欄
============================== */

.form-wrapper {
  width: 100%;
  max-width: 1300px;
  margin: 40px auto;
  padding: 28px 36px 46px;
  background: #fff;
  border: 1px solid #dbe8f5;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(25, 118, 204, 0.08);
  box-sizing: border-box;
}

/* 見出し */
.midashi {
  margin: 0 0 22px;
  padding: 0 0 12px;
  color: #1976CC;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.4;
  text-align: left;
  border-bottom: 3px solid #1976CC;
  background: #fff;
}

.midashi span {
  display: block;
  margin-bottom: 4px;
  color: #666;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.4;
}

/* 説明文エリア */
.txt_box1 {
  width: 100%;
  margin: 0 0 28px;
  padding: 16px 18px;
  color: #333;
  font-size: 15px;
  line-height: 1.9;
  background: #f8fbff;
  border: 1px solid #dbe8f5;
  border-radius: 6px;
  box-sizing: border-box;
}

/* ==============================
   お問合せ先エリア
============================== */

.support-contact-box {
  width: 100%;
  margin: 0 0 34px;
  padding: 26px 30px 30px;
  background:
    linear-gradient(135deg, rgba(25, 118, 204, 0.06), rgba(255, 255, 255, 0.96) 45%),
    #f8fbff;
  border: 1px solid #dbe8f5;
  border-radius: 10px;
  box-sizing: border-box;
}

.support-contact-head {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.support-contact-label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  color: #1976CC;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  background: #fff;
  border: 1px solid #cfe3f7;
  border-radius: 999px;
}

.support-contact-head h3 {
  margin: 0 0 10px;
  color: #1976CC;
  font-size: 1.45rem;
  font-weight: bold;
  line-height: 1.4;
}

.support-contact-head p {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.9;
    padding-left: 1rem;
    padding-right: 1rem;
}

.support-time-card {
  padding: 18px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid #cfe3f7;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(25, 118, 204, 0.08);
  box-sizing: border-box;
}

.support-time-card span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  background: var(--king_color);
  border-radius: 999px;
}

.support-time-card strong {
  display: block;
  color: #222;
  font-size: 1.25rem;
  line-height: 1.5;
}

.support-time-card em {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 12px;
  font-style: normal;
}

.support-note {
  margin: 0 0 18px;
  padding: 12px 16px;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
  background: #fff;
  border-left: 4px solid #1976CC;
  border-radius: 6px;
  box-sizing: border-box;
}

/* テーブル外枠 */
.contact-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #dfe8f2;
  border-radius: 10px;
  box-sizing: border-box;
}

/* 支店一覧テーブル */
.contact-table {
  width: 100%;
  max-width: none;
  min-width: 900px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #fff;
  table-layout: fixed;
}

.contact-table th,
.contact-table td {
  padding: 14px 16px;
  border-right: 1px solid #e2edf7;
  border-bottom: 1px solid #e2edf7;
  vertical-align: middle;
  box-sizing: border-box;
}

.contact-table th:last-child,
.contact-table td:last-child {
  border-right: none;
}

.contact-table tbody tr:last-child td {
  border-bottom: none;
}

.contact-table th {
  color: #1976CC;
  font-weight: bold;
  text-align: center;
  background: #edf6ff;
}

.contact-table td {
  color: #333;
  text-align: center;
}

.contact-table th:nth-child(1),
.contact-table td:nth-child(1) {
  width: 150px;
}

.contact-table th:nth-child(2),
.contact-table td:nth-child(2) {
  width: auto;
}

.contact-table th:nth-child(3),
.contact-table td:nth-child(3),
.contact-table th:nth-child(4),
.contact-table td:nth-child(4) {
  width: 170px;
}

.contact-table td:nth-child(1) {
  color: #1976CC;
  font-weight: bold;
  background: #fbfdff;
}

.contact-table td:nth-child(2) {
  text-align: left;
  line-height: 1.6;
  white-space: normal;
}

.contact-table td:nth-child(3),
.contact-table td:nth-child(4) {
  font-family: Arial, sans-serif;
  white-space: nowrap;
}

.contact-table a {
  color: #1976CC;
  font-weight: bold;
  text-decoration: none;
}

.contact-table a:hover {
  text-decoration: underline;
}

.contact-table tbody tr:hover td {
  background: #f6fbff;
}

/* ==============================
   フォーム本体
============================== */

.mshoninregists {
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid #dfe8f2;
}

/* 1行分 */
.form-group {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: stretch;
  margin: 0;
  border-bottom: 1px solid #dfe8f2;
}

/* 左側ラベル */
.form-group > label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 18px 14px;
  color: #1976CC;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
  background: #eef6ff;
  box-sizing: border-box;
  text-indent: 1rem;
}

/* 右側入力エリア */
.form-group > input,
.form-group > select,
.form-group > textarea,
.form-group > .half-input {
  align-self: center;
}

/* 入力欄側の余白 */
.form-group > input,
.form-group > select,
.form-group > textarea {
  width: calc(100% - 28px);
  max-width: none;
  margin: 13px 14px;
  box-sizing: border-box;
}

/* テキスト・メール・セレクト・テキストエリア共通 */
main input[type="text"],
main input[type="email"],
main textarea,
main select {
  padding: 9px 11px;
  color: #333;
  font-size: 15px;
  line-height: 1.5;
  background-color: #fff;
  border: 1px solid #cfddec;
  border-radius: 5px;
  box-sizing: border-box;
}

/* select */
main select {
  min-height: 40px;
}

/* textarea */
main textarea {
  min-height: 180px;
  resize: vertical;
}

/* 入力欄フォーカス・ホバー */
main input[type="text"]:focus,
main input[type="email"]:focus,
main textarea:focus,
main select:focus,
main input[type="text"]:hover,
main input[type="email"]:hover,
main textarea:hover,
main select:hover {
  outline: none;
  border-color: #1976CC;
  background-color: #f8fcff;
  box-shadow: 0 0 0 2px rgba(25, 118, 204, 0.18);
}

/* 姓名・電話番号など横並び */
.form-group > .half-input {
  display: flex;
  gap: 10px;
  width: calc(100% - 28px);
  max-width: none;
  margin: 13px 14px !important;
  box-sizing: border-box;
}

.form-group > .half-input input {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0 !important;
  box-sizing: border-box;
}

/* 必須バッジ */
.note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 5px;
  color: #fff;
  font-size: 0;
  font-weight: bold;
  line-height: 1.2;
  background: #e53935;
  border-radius: 3px;
  box-sizing: border-box;
}

.note::before {
  content: "必須";
  font-size: 11px;
}

/* 送信ボタン */
.submit-btn {
  display: block;
  width: 190px;
  margin: 24px auto 0;
  padding: 13px 20px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  background-color: #E5004E;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(229, 0, 78, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  background-color: #c90044;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(229, 0, 78, 0.32);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(229, 0, 78, 0.24);
}

/* ボット対策項目 */
.hp-trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==============================
   タブレット対応
============================== */

@media screen and (max-width: 1024px) {
  .form-wrapper {
    width: calc(100% - 32px);
    padding: 26px 28px 42px;
  }

  .form-group {
    grid-template-columns: 240px 1fr;
  }

  .form-group > label {
    text-indent: 0.5rem;
  }

  .support-contact-head {
    grid-template-columns: 1fr 240px;
  }

  .contact-table {
    min-width: 860px;
  }
}

/* ==============================
   スマホ対応
============================== */

@media screen and (max-width: 768px) {
  .form-wrapper {
    width: calc(100% - 24px);
    margin: 24px auto;
    padding: 22px 16px 36px;
    border-radius: 8px;
  }

  .midashi {
    font-size: 1.6rem;
  }

  .txt_box1 {
    padding: 14px;
    font-size: 14px;
  }

  .support-contact-box {
    padding: 20px 16px 22px;
  }

  .support-contact-head {
    display: block;
  }

  .support-time-card {
    margin-top: 16px;
  }

  .support-contact-head h3 {
    font-size: 1.25rem;
  }

  .support-contact-head p {
    font-size: 14px;
  }

  .contact-table {
    min-width: 820px;
    font-size: 13px;
  }

  .contact-table th,
  .contact-table td {
    padding: 12px 14px;
  }

  .form-group {
    display: block;
    border-bottom: 1px solid #dfe8f2;
  }

  .form-group > label {
    display: flex;
    width: 100%;
    padding: 12px 14px;
    border-bottom: 1px solid #dfe8f2;
    text-indent: 0;
  }

  .form-group > input,
  .form-group > select,
  .form-group > textarea,
  .form-group > .half-input {
    width: calc(100% - 28px);
    max-width: none;
    margin: 12px 14px 14px;
  }

  .form-group > .half-input {
    flex-direction: column;
    gap: 8px;
  }

  main textarea {
    min-height: 160px;
  }

  .submit-btn {
    width: 100%;
    max-width: 260px;
  }
}

/* ==============================
   小さいスマホ対応
============================== */

@media screen and (max-width: 480px) {
  .form-wrapper {
    width: calc(100% - 16px);
    margin: 16px auto;
    padding: 18px 12px 30px;
  }

  .midashi {
    font-size: 1.45rem;
  }

  .support-contact-box {
    padding: 16px 12px 18px;
  }

  .support-time-card strong {
    font-size: 1.1rem;
  }

  .support-note {
    font-size: 13px;
  }

  .contact-table {
    min-width: 780px;
  }

  main input[type="text"],
  main input[type="email"],
  main textarea,
  main select {
    font-size: 16px;
  }
}

@media screen and (max-width: 768px) {
  /* スマホ時は住所・FAXを非表示 */
  .contact-table th:nth-child(2),
  .contact-table td:nth-child(2),
  .contact-table th:nth-child(4),
  .contact-table td:nth-child(4) {
    display: none;
  }

  /* 表示列：拠点 + TEL のみにするため横幅を調整 */
  .contact-table {
    min-width: 360px;
    font-size: 13px;
  }

  .contact-table th,
  .contact-table td {
    padding: 12px 10px;
  }

  .contact-table th:nth-child(1),
  .contact-table td:nth-child(1) {
    width: 45%;
  }

  .contact-table th:nth-child(3),
  .contact-table td:nth-child(3) {
    width: 55%;
  }
}



/* ==============================
   スマホ時：支店テーブル横スクロール防止
============================== */

@media screen and (max-width: 768px) {
  /* 住所・FAXは非表示 */
  .contact-table th:nth-child(2),
  .contact-table td:nth-child(2),
  .contact-table th:nth-child(4),
  .contact-table td:nth-child(4) {
    display: none;
  }

  /* 横スクロールを出さない */
  .contact-table-wrap {
    width: 100%;
    overflow-x: hidden;
  }

  .contact-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    font-size: 13px;
  }

  .contact-table th,
  .contact-table td {
    padding: 11px 8px;
    white-space: normal;
    word-break: keep-all;
    box-sizing: border-box;
  }

  /* 表示列は 拠点 + TEL の2列のみ */
  .contact-table th:nth-child(1),
  .contact-table td:nth-child(1) {
    width: 42%;
  }

  .contact-table th:nth-child(3),
  .contact-table td:nth-child(3) {
    width: 58%;
  }

  .contact-table td:nth-child(3) a {
    display: inline-block;
    font-size: 12px;
    white-space: nowrap;
  }
}

@media screen and (max-width: 400px) {
  .support-contact-box {
    padding: 16px 10px 18px;
  }

  .contact-table th,
  .contact-table td {
    padding: 10px 6px;
    font-size: 12px;
  }

  .contact-table td:nth-child(3) a {
    font-size: 12px;
  }
}