/* 入力欄。input・textarea・select、検索の箱（.searchbox）、.field、.check。 */
select {
  font: inherit;
}
.searchbox {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  width: min(700px, 100%);
  align-items: center;
  background: var(--surface);
  gap: var(--space-3);
}
.searchbox input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  background: transparent;
  font-size: var(--fs-lead);
}
.filters {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin: var(--space-5) 0;
}
/* 探す言葉と選ぶ欄は、横の「検索」（脇役、44px）と同じ高さに */
.filters input {
  min-width: 200px;
  flex: 1;
  min-height: var(--control-h);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  padding: 0 var(--space-3);
  background: var(--surface);
  color: var(--text);
}
.filters select {
  min-height: var(--control-h);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  padding: 0 var(--space-3);
  background: var(--surface);
  color: var(--text);
}
.field {
  display: block;
  margin: var(--space-4) 0;
}
.field > span {
  display: block;
  font-size: var(--fs-note);
  margin-bottom: var(--space-2);
}
/* 欄の下の短い注記（「その他」のときは、ご記入ください）。お問い合わせとパートナー募集で同じ形。 */
.field > .field-note {
  display: block;
  margin: -0.25rem 0 var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-note);
}
.field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  padding: var(--space-3) var(--space-3);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  min-height: 100px;
  resize: vertical;
}
.field input {
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  padding: var(--space-3) var(--space-3);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  cursor: pointer;
}
.check input {
  accent-color: var(--fill);
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 2.75rem;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  background: no-repeat center/1.125rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='.5' y='.5' width='17' height='17' rx='3' fill='%23fff' stroke='%236b6e75'/%3E%3C/svg%3E");
}
.check input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect width='18' height='18' rx='3' fill='%2316305c'/%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}
.check input:focus-visible {
  outline: 2px solid var(--fill);
  outline-offset: 2px;
}
.field-island h2 {
  font: 500 1.3125rem/1.5 var(--serif);
  white-space: nowrap;
  margin: 0 0 var(--space-2);
}
.field-island p {
  font-size: var(--fs-tag);
  line-height: 1.9;
  color: var(--text-muted);
  margin: 0;
}
.field-island-0 {
  left: 0;
  top: 0;
  --wash: var(--surface-quiet);
  --contour: url(#commons-wash-a);
}
.field-island-1 {
  right: 0;
  top: 0;
  --wash: var(--surface-quiet);
  --contour: url(#commons-wash-b);
}
.field-island-2 {
  right: 0;
  bottom: 0;
  --wash: var(--surface-quiet);
  --contour: url(#commons-wash-d);
}
.field-island-3 {
  left: 0;
  bottom: 0;
  --wash: var(--surface-quiet);
  --contour: url(#commons-wash-c);
}
.field-island::after {
  content: '';
  position: absolute;
  z-index: -1;
  clip-path: var(--contour);
  inset: -3px -2px;
  opacity: 0.42;
  transform: rotate(5deg);
  background: radial-gradient(ellipse at 30% 35%, var(--surface), transparent 68%);
  display: none;
}
.field-island::before {
  content: '';
  position: absolute;
  inset: -7px -6px;
  z-index: -1;
  background: var(--wash);
  clip-path: var(--contour);
  display: none;
}
.field-island {
  position: absolute;
  width: 148px;
  height: 156px;
  padding: var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  z-index: 5;
  border-top: 1px solid var(--line-strong);
}
/* 探す欄の送るボタンは主役（.primary）。ここでは置き場所だけ：字のない「→」は44pxの正方形 */
.searchbox button {
  width: var(--tap);
  height: var(--tap);
  flex-shrink: 0;
  --control-pad: 0;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--fill-text);
  outline-offset: 3px;
}
input,
textarea {
  font: inherit;
  accent-color: var(--fill-text);
}
@media (max-width: 700px) {
  .searchbox input,
  input[data-field='resources'] {
    min-height: 2.75rem;
  }
  .field-island {
    width: 140px;
    height: 134px;
    padding: var(--space-4);
  }
}
.field-island {
  padding-top: var(--space-2);
}
@media (max-width: 700px) {
  .field-island h2 {
    font-size: var(--fs-lead);
    margin-bottom: var(--space-2);
  }
  .field-island p {
    font-size: var(--fs-tag);
  }
}
/* 欄の残りの字数と、上限に来たこと（dom.js lengthNoteHTML）。空のときは場所を取らない。 */
.length-note {
  margin: var(--space-2) 0 0;
  color: var(--text-muted);
  font-size: var(--fs-note);
  line-height: 1.6;
  text-align: left;
}
.length-note:empty {
  display: none;
}
