/* Google フォームの形：上に題、その下に丸い箱が縦に並ぶ。40〜60代でも読める大きさにする */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f0ebf8;
  color: #202124;
  font-family: system-ui, sans-serif;
  font-size: 1.25rem;
  line-height: 1.7;
}
main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}
h1 {
  font-size: 2rem;
  margin: 0 0 1.5rem;
}
.box {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0.75rem;
}
label {
  font-weight: bold;
}
input {
  font: inherit;
  padding: 0.75rem;
  border: 1px solid #80868b;
  border-radius: 0.5rem;
}
button {
  justify-self: start;
  font: inherit;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: #1a73e8;
  color: #fff;
  cursor: pointer;
}
button.sub {
  background: #fff;
  color: #1a73e8;
  border: 1px solid #80868b;
}
h2 {
  font-size: 1.5rem;
  margin: 0;
}
p {
  margin: 0;
}
main > * + * {
  margin-top: 1.5rem;
}
ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
[hidden],
.error:empty {
  display: none !important;
}
.error {
  color: #c5221f;
  font-weight: bold;
}

/* ---- 入力画面（#50） ---- */
nav.top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: #673ab7;
}
nav.top a {
  color: #fff;
  font-weight: bold;
}
a {
  color: #1a73e8;
}
.entry {
  display: grid;
  gap: 1rem;
}
fieldset.box {
  margin: 0;
  border: 0;
  min-width: 0;
}
legend {
  float: left;
  width: 100%;
  padding: 0;
  font-weight: bold;
}
legend + * {
  clear: both;
}
textarea,
input:not([type]),
input[type="date"],
input[type="url"] {
  width: 100%;
  font: inherit;
  padding: 0.75rem;
  border: 1px solid #80868b;
  border-radius: 0.5rem;
}
input[type="checkbox"],
input[type="radio"] {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}
.help,
.count {
  color: #5f6368;
  font-size: 1rem;
}
.count.over {
  color: #c5221f;
  font-weight: bold;
}
.must {
  color: #c5221f;
  font-weight: normal;
  font-size: 1rem;
}
.preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid #dadce0;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: normal;
}
.checks {
  display: grid;
  gap: 0.5rem;
}
.pics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.pic {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem;
  border: 2px solid #dadce0;
  border-radius: 0.5rem;
  font-weight: normal;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.pic:has(input:checked) {
  border-color: #1a73e8;
  background: #e8f0fe;
}
.pic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.25rem;
}
.block {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-left: 4px solid #673ab7;
  background: #f8f9fa;
  border-radius: 0.5rem;
}
.label {
  font-weight: bold;
}
.adds,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.actions {
  justify-content: space-between;
}
.enter {
  position: absolute;
  left: -9999px;
}
.list a.link {
  display: grid;
  text-decoration: none;
  color: inherit;
  font-weight: bold;
}
a.button {
  display: inline-block;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: #1a73e8;
  color: #fff;
  text-decoration: none;
}
.danger,
button.danger {
  color: #c5221f;
  background: #fff;
  border: 1px solid #c5221f;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
}
.ok {
  color: #137333;
  font-weight: bold;
}
