@font-face {
  font-family: "Noto Sans JP";
  src: url("/fonts/noto-sans-jp.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: #001e4b;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(calc(100% - 2rem), 52rem); margin: 0 auto; padding: 2.5rem 0; }
h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.35; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
header p { max-width: 40rem; margin: 0 0 1.5rem; }
fieldset { border: 0; min-inline-size: 0; margin: 0; padding: 0; }

.proposal { border-top: 1px solid #c8d1df; padding: 1.5rem 0; }
.proposal img { display: block; max-width: 100%; height: auto; }
.wide { width: 100%; }
.slide { width: min(100%, 38rem); margin: 0.75rem auto 0; }
.choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  gap: 0.375rem;
  width: min(100%, 24rem);
  margin: 1rem auto 0;
}

.visually-hidden,
.choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.choices span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0.25rem;
  border: 1px solid #697e9d;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.choices input:checked + span,
button { background: #001e4b; color: #fff; }
:focus-visible,
.choices input:focus-visible + span { outline: 2px solid #001e4b; outline-offset: 3px; }

.finish { border-top: 1px solid #c8d1df; padding-top: 1.5rem; }
.finish label { display: block; margin-bottom: 0.5rem; }
textarea {
  display: block;
  width: 100%;
  max-width: 38rem;
  padding: 0.5rem;
  border: 1px solid #697e9d;
  border-radius: 4px;
  resize: vertical;
  color: inherit;
  font: inherit;
}

button {
  min-height: 48px;
  min-width: 8rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled { background: #e5eaf1; color: #4c5c73; cursor: default; }
#message { margin: 0.75rem 0 0; font-weight: 700; }
#message:empty { margin: 0; }
#comment-error { margin: 0.5rem 0 0; }

@media (max-width: 36rem) {
  main { padding-top: 1.5rem; }
  button { width: 100%; }
}
