* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans JP",
    sans-serif;
  margin: 0;
  background: #f7f7f7;
  color: #111;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  margin-bottom: 16px;
}

h1 {
  font-size: 20px;
  margin: 0 0 12px;
}

label {
  display: block;
  font-size: 12px;
  color: #444;
  margin: 0 0 6px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.row > div {
  flex: 1;
  min-width: 220px;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  font-size: 18px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.opt {
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.opt strong {
  display: block;
  font-size: 12px;
  color: #444;
  margin-bottom: 8px;
}

.auto-input {
  background: #fafafa;
  color: #666;
}

.auto-note {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.radio-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.radio-row input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #111;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 0;
}

select {
  width: 100%;
  font-size: 18px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #111;
}

/* radio-row内でselectが潰れないように */
.radio-row select {
  width: auto;
  min-width: 120px;
}

/* 任意選択が無効なときは「触れない」感を出す */
select:disabled {
  background: #fafafa;
  color: #999;
}
/* 結果枠 */
.result {
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #111;
  color: #fff;
}

.result .line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.result .label {
  font-size: 13px;
  opacity: .9;
}

.result-input {
  width: min(260px, 55%);
  font-size: 18px;
  font-weight: 700;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: right;
}

.note {
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: #333;
  line-height: 1.7;
}
/* footer */
.footer {
  margin: 40px 0 20px;
  text-align: center;
}

.footer-link {
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  color: #111;
}