
/* 全体の基本設定 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px 16px;
  background-color: #f7f5f0;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
}

/* フォーム全体 */
.container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 26px;
}

h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.description {
  margin: 0 0 28px;
  color: #666;
  font-size: 14px;
}

/* 入力欄 */
.form-group {
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
}

input,
select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  font-size: 16px;
}

input::placeholder {
  color: #aaa;
}

input:focus,
select:focus {
  outline: 2px solid #b69a78;
  outline-offset: 1px;
  border-color: #b69a78;
}

/* ボタン */
button {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.primary-button {
  background-color: #8c735b;
  color: #fff;
}

.primary-button:hover {
  background-color: #735c47;
}

.secondary-button {
  background-color: #eeeae4;
  color: #444;
}

.secondary-button:hover {
  background-color: #e2ddd5;
}

/* 確認画面 */
.confirmation {
  margin: 20px 0 28px;
  border-top: 1px solid #e5e0d8;
}

.confirmation-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid #e5e0d8;
}

.confirmation-row span {
  color: #666;
}

.confirmation-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

#message {
  margin: 20px 0 0;
  text-align: center;
  color: #526b4c;
  font-weight: 600;
}

/* hidden属性を確実に反映 */
[hidden] {
  display: none !important;
}

/* スマートフォン向け */
@media (max-width: 600px) {
  body {
    padding: 16px 12px;
  }

  .container {
    padding: 24px 18px;
    border-radius: 10px;
  }

  h1 {
    font-size: 22px;
  }
}
