@import url(common.css);

/* ここからメインビジュアルの書式 */
main {
  padding-top: 120px;
}
.main-img {
  width: 100%;
  height: 100vh;
}

.main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ここまでメインビジュアルの書式 */

/* ここからメインの内容の書式 */
.container {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.business-box {
  margin-bottom: 80px;
}

/* 見出しタブ */
.business-title {
  display: inline-block;
  position: relative;
  z-index: 2;

  padding: 15px 90px 15px 25px;
  background: #4370a9;
  color: #fff;

  font-size: 24px;
  font-weight: bold;
  line-height: 1;

  transform: translateY(15px);

  /* 見出し全体を一つの図形にする */
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 100%, 0 100%);
}
/* タブ右側の斜め */
.business-title::after {
  display: none;
}
/* 本体 */
.business-content {
  position: relative;
  background: #dceaf7;
  min-height: 260px;
  padding: 50px 70px;
  overflow: hidden;
  box-sizing: border-box;
}
/* 左下の斜め */
.business-content::before {
  content: "";
  position: absolute;

  left: -2px;
  bottom: -2px;

  width: 60px;
  height: 60px;

  background: #fff;

  clip-path: polygon(0 100%, 100% 100%, 0 0);
}
/* 右上の斜め */
.business-content::after {
  content: "";
  position: absolute;

  top: -2px;
  right: -2px;

  width: 60px;
  height: 60px;

  background: #fff;

  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.business-content p,
.business-content ul {
  margin: 0;
}
.business-content li {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.8;
}
/* ここまでメインの内容の書式 */

/* お問い合わせフォーム */
.contact-form {
  background: #fff;
  margin-top: 50px;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.form-table {
  border: 1px solid #d6e5f4;
}
.contact-detail {
  flex: 1;
  padding: 20px 30px;
  box-sizing: border-box;
  background: #fff;
}
.form-row > input,
.form-row > .gender-group,
.form-row > .age-group {
  margin: 0 30px;
}
.memo-label {
  margin: 20px 0 10px;
  font-weight: bold;
}

.contact-detail textarea {
  width: 100%;
  height: 150px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #d6e5f4;
}
.form-row > input.name-input {
  align-self: center;
}
.form-row > input,
.form-row > .contact-detail,
.form-row > .gender-group,
.form-row > .age-group {
  background: #fff;
}
.form-row:last-of-type {
  border-bottom: none;
}

.form-row > .form-label {
  width: 220px;
  min-width: 220px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px;

  background: #eef6ff;

  font-weight: bold;

  box-sizing: border-box;

  border-right: 1px solid #d6e5f4;
}
.form-row label span {
  background: #d9534f;
  color: #fff;
  font-size: 11px;
  font-weight: normal;
  padding: 2px 8px;
  border-radius: 3px;
}
.form-row input.name-input,
.form-row input[type="email"],
.form-row select {
  width: 320px;
  height: 40px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid #bfc7d1;
  outline: none;
}
.form-row textarea {
  height: 180px;
  resize: vertical;
}
.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit button {
  background: #4370a9;
  color: #fff;
  border: none;
  padding: 15px 60px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.form-submit button:hover {
  background: #a6caec;
}
/* 性別欄 */
.gender-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gender-item {
  display: flex;
  align-items: center;
  font-weight: 300;
  width: auto;
  padding-top: 0;
  background: #fff; /* ←追加 */
}

.gender-item input {
  width: auto;
  margin-right: 6px;
}
.gender-group .gender-item {
  width: auto;
  min-width: 0;
  flex: none;
}
.contact-note {
  color: #d9534f; /* 赤文字 */
  font-size: 14px;
  margin-bottom: 15px;
  white-space: nowrap; /* 改行させない */
}
.form-row input:focus,
.form-row select:focus,
.contact-detail textarea:focus {
  outline: none;
  border-color: #4370a9;
}
/* 電話番号全体 */
.tel-group {
  display: flex;
  align-items: center;
  width: 320px;
  gap: 8px;
}

.tel-group span {
  width: auto;
  margin: 0;
  font-weight: normal;
}

.contact-line {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.item-label {
  display: inline-block;
  width: 100px;
  margin-right: 20px;
}
.mail-input {
  width: 320px;
}

.tel-group input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #bfc7d1;
  box-sizing: border-box;
  outline: none;
}
.contact-label {
  display: inline-block;
  width: 100px;
  margin-right: 20px;
  font-weight: 400;
  font-size: 15px;
}

/* 年齢入力 */
.age-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.age-input {
  width: 60px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #bfc7d1;
  box-sizing: border-box;
  outline: none;
}

.age-group span {
  font-size: 16px;
}
/* Chrome・Edge・Safari */
.age-input::-webkit-inner-spin-button,
.age-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.age-input {
  appearance: textfield;
}

/* ここから上の図形内の書式 */
/* ===== お問い合わせ説明文 ===== */

.contact-message {
  text-align: center;
  font-size: 18px;
  line-height: 2;
  margin-bottom: 40px;
}
/* ===== STEP表示 ===== */

.step-area {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.step {
  width: 150px;
  height: 58px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: #fff;

  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
  padding-right: 18px;
}
.step-number {
  font-size: 14px;
  font-weight: bold;
}

.step-text {
  font-size: 20px;
  font-weight: bold;
}
.step1 {
  background: #5b4db2;
}

.step2 {
  background: #b8addd;
}

.step3 {
  background: #d9d9d9;
  color: #333;
}
/* ここまで図形内の書式 */

/* ==========================
   レスポンシブ（スマホ）
========================== */
@media (max-width: 768px) {
  /* ==========================
   全体余白
========================== */

  .container {
    margin: 40px auto;
    padding: 0 15px;
  }

  /* ==========================
   見出し
========================== */

  .business-title {
    font-size: 20px;
    padding: 12px 40px 12px 15px;
  }

  /* ==========================
   内容ボックス
========================== */

  .business-content {
    padding: 30px 15px;
  }

  .business-content::before,
  .business-content::after {
    width: 35px;
    height: 35px;
  }

  /* ==========================
   お問合せ説明文
========================== */

  .contact-message {
    font-size: 15px;
    line-height: 1.8;
  }

  /* ==========================
   STEP
========================== */

  .step-area {
    flex-direction: column;
    gap: 10px;
  }

  .step {
    width: 180px;
  }

  /* ==========================
   フォーム
========================== */

  .form-row {
    display: block;
  }

  .form-row > .form-label {
    width: 100%;
    min-width: 0;

    padding: 12px 15px;

    border-right: none;
    border-bottom: 1px solid #d6e5f4;
  }

  /* 入力欄 */

  .form-row > input,
  .form-row > .gender-group,
  .form-row > .age-group {
    margin: 20px;
  }

  .form-row input.name-input,
  .form-row input[type="email"],
  .form-row select {
    width: calc(100% - 40px);
  }

  /* ==========================
   連絡先
========================== */

  .contact-detail {
    padding: 20px;
  }

  .contact-line {
    display: block;
  }

  .contact-label {
    width: auto;

    margin-bottom: 10px;
  }

  .mail-input {
    width: 100%;
  }

  .tel-group {
    width: 100%;
  }

  .tel-group input {
    width: 30%;
  }

  /* ==========================
   性別
========================== */

  .gender-group {
    margin: 20px;
  }

  /* ==========================
   年齢
========================== */

  .age-group {
    margin: 20px;
  }

  /* ==========================
   textarea
========================== */

  .contact-detail textarea {
    height: 150px;
  }

  /* ==========================
   送信ボタン
========================== */

  .form-submit button {
    width: 80%;
  }
}
/* 確認ページボタン */
.confirm-button {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 50px 0;
}

.confirm-button button {
  width: 180px;
  padding: 15px 0;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.back-btn {
  background: #ccc;
}

.send-btn {
  background: #4370a9;
  color: #fff;
}

.confirm-button button:hover {
  opacity: 0.8;
}
/* 確認ページ 表示部分 */
.business-content .form-table {
  width: 100%;
  border: 1px solid #d6e5f4;
  background: #fff;
}

.business-content .form-row {
  display: flex;
  border-bottom: 1px solid #d6e5f4;
}

.business-content .form-row:last-child {
  border-bottom: none;
}

.business-content .form-label {
  width: 220px;
  background: #eef6ff;
  padding: 20px;
  box-sizing: border-box;
  border-right: 1px solid #d6e5f4;
  font-weight: bold;
}

.business-content .form-row p {
  flex: 1;
  margin: 0;
  padding: 20px;
  background: #fff;
}
/* 確認ページの幅調整 */
.business-box {
  max-width: 1200px;
  margin: 0 auto;
}

.business-content {
  background: #fff;
}
/* 送信完了ページ */
.thanks-content {
  text-align: center;
  padding: 60px 40px;
}

.thanks-message {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 30px;
}

.thanks-content p {
  line-height: 2;
  margin-bottom: 10px;
}

.thanks-button {
  margin-top: 40px;
}

.thanks-button a {
  display: inline-block;
  background: #4370a9;
  color: #fff;
  padding: 14px 40px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.thanks-button a:hover {
  background: #a6caec;
}
