body {
    font-family: "Yu Gothic", sans-serif;
    background: #FBFAF4;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 500px;
    margin: 40px auto;
    background: #Fff;
    padding: 100px 60px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

h1 {
    text-align: center;
    margin-bottom: 25px;
}

label {
    display: block;
    margin-top: 30px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

textarea {
    min-height: 200px;
}

button {
    width: 100%;
    padding: 14px;
    margin-top: 60px;
    border: none;
    background: #04461E;
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.error-box {
    background: #ffe5e5;
    color: #c00;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.required {
    background: none;
    color: #e60033;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.agree {
  display: block;
  margin: 20px 0;
  font-size: 14px;
}

.agree a {
  color: #007BFF;
  text-decoration: underline;
}
/* =========================
   チェックボックス横並び
========================= */
.agree {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  font-size: 14px;
}

.agree input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* =========================
   必須ラベルを少し強調
========================= */
.required {
  color: #e60033;
  font-size: 12px;
  margin-left: 6px;
  font-weight: bold;
}

/* =========================
   戻るボタン（確認画面用）
========================= */
.back {
  background: #ccc;
  color: #333;
}

.back:hover {
  background: #999;
}

/* =========================
   TOPへ戻るボタン
========================= */
.btn-top {
    display: block;          /* ← inline-block → block に変更 */
    width: 200px;
    margin: 30px auto 0;     /* ← autoで中央寄せ */
    padding: 12px;
    background: #04461E;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
}

.btn-top:hover {
  background: #033814;
}
/* =========================
   スマホ最適化
========================= */
@media (max-width: 480px) {
    .container {
        width: 92%;
        margin: 20px auto;
        padding: 20px 15px;   /* ←ここ重要 */
    }

    h1 {
        font-size: 20px;
    }

    input, textarea {
        font-size: 16px; /* iPhoneのズーム防止 */
    }

    button {
        margin-top: 30px;
    }

    .agree {
        align-items: flex-start;
        font-size: 13px;
    }
}