@charset "UTF-8";
/* =========================
   リセット
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;

  background: #edf6d8;

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

  padding: 20px;
}

/* =========================
   全体レイアウト
========================= */

.wrapper {

  width: 100%;
  max-width: 1180px;

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

  gap: 40px;
}

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

.form-card {

  width: 100%;
  max-width: 520px;

  background: #ffffff;

  border-radius: 28px;

  padding: 34px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.05);

  flex-shrink: 0;
}

/* タイトル */

.title {

  text-align: center;

  color: #79a935;

  font-size: 27px;

  font-weight: bold;

  letter-spacing: 2px;

  margin-bottom: 34px;
}

.title.error {
  font-size: 60px;
}

.title::before,
.title::after {

  content: "🍃";

  font-size: 30px;

  margin: 0 14px;

  vertical-align: middle;
}

/* セクション */

.section {
  margin-bottom: 28px;
}

.section-title {

  color: #79a935;

  font-size: clamp(20px, 2vw, 28px);

  font-weight: bold;

  margin-bottom: 18px;
}

/* =========================
   チェックボックス
========================= */

.range-item,
.radio-item {

  display: flex;
  align-items: center;

  gap: 14px;

  font-size: clamp(16px, 1.8vw, 22px);

  color: #333333;

  margin-bottom: 16px;
}

.range-item input,
.radio-item input {

  height: 24px;

  accent-color: #86b93b;

  flex-shrink: 0;

  cursor: pointer;
}

.range-item input {

  width: 240px;
}

.radio-item input {

  width: 24px;
}

.line {

  width: 100%;
  height: 1px;

  background: #e8e8e8;

  margin-top: -4px;
  margin-bottom: 16px;
}

/* =========================
   テキストボックス
========================= */

.text-box {

  width: 100%;

  height: 58px;

  border-radius: 12px;

  border: 2px solid #dddddd;

  padding: 0 18px;

  font-size: clamp(16px, 1.8vw, 20px);

  outline: none;

  transition: 0.2s;
}

.text-box:focus {
  border-color: #8bc34a;
}

/* =========================
   ボタン
========================= */

.submit-btn {

  width: 100%;

  height: 64px;

  border: none;

  border-radius: 14px;

  background: #7dad34;

  color: white;

  font-size: clamp(20px, 2vw, 28px);

  font-weight: bold;

  cursor: pointer;

  transition: 0.2s;
}

.submit-btn:hover {

  opacity: 0.92;

  transform: translateY(-2px);
}

/* =========================
   ロボットエリア
========================= */

.robot-area {

  flex: 1;

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

  overflow: hidden;
}

/* =========================
   パソコン用画像
========================= */

.robot-pc {

  width: min(34vw, 380px);

  max-width: 100%;

  max-height: 78vh;

  object-fit: contain;
}

/* =========================
   スマホ用画像
   初期状態では非表示
========================= */

.robot-sp {
  display: none;
}

/* =========================
   タブレット調整
========================= */

@media (max-width: 980px) {

  .wrapper {
    gap: 24px;
  }

  .form-card {
    max-width: 480px;
  }
}

/* =========================
   スマホ対応
   ・フォーム上
   ・ロボット下
   ・ロボットは頭だけ
========================= */

@media (max-width: 768px) {

  body {

    padding:
      14px 14px 0;

    align-items: flex-start;
  }

  .wrapper {

    flex-direction: column;

    align-items: center;

    gap: 10px;
  }

  .form-card {

    max-width: 100%;

    padding: 24px;

    border-radius: 22px;
  }

  .title {

    font-size: 24px;

    margin-bottom: 24px;
  }
  
  .title.error {
    font-size: 60px;
  }

  .title::before,
  .title::after {

    font-size: 20px;

    margin: 0 1px;
  }

  .section {

    margin-bottom: 22px;
  }

  .section-title {

    font-size: 20px;

    margin-bottom: 14px;
  }

  .range-item,
  .radio-item {

    font-size: 17px;

    margin-bottom: 14px;
  }

  .range-item input {

    width: 220px;
    height: 22px;
  }

  .radio-item input {

    width: 22px;
    height: 22px;
  }

  .text-box {

    height: 52px;

    font-size: 16px;
  }

  .submit-btn {

    height: 56px;

    font-size: 22px;
  }

  /* ロボット */

  .robot-area {

    width: 100%;

    display: flex;
    justify-content: center;

    margin-top: -6px;
  }

  /* PC画像を非表示 */

  .robot-pc {
    display: none;
  }

  /* 頭部画像を表示 */

  .robot-sp {

    display: block;

    width: 180px;

    max-width: 100%;

    height: auto;
  }
}

/* =========================
   高さが低い画面対策
   スクロールを抑える
========================= */

@media (max-height: 860px) {

  body {
    padding: 12px;
  }

  .form-card {
    padding: 24px;
  }

  .title {
    margin-bottom: 22px;
  }

  .section {
    margin-bottom: 18px;
  }
}