/* FOTS 年末アンケート（テーマの色に左右されにくいよう .fots-survey の中だけで完結させる） */
.fots-survey {
  --fots-accent: #d6336c;
  --fots-accent-ink: #fff;
  --fots-ink: #222;
  --fots-sub: #666;
  --fots-line: #ddd;
  --fots-bg: #fff;
  --fots-soft: #fafafa;
  --fots-err: #c92a2a;
  max-width: 720px;
  margin: 0 auto;
  color: var(--fots-ink);
  font-size: 16px;
  line-height: 1.7;
}
.fots-survey *, .fots-survey *::before, .fots-survey *::after { box-sizing: border-box; }
.fots-survey [hidden] { display: none !important; }

.fots-form, .fots-done {
  background: var(--fots-bg);
  border: 1px solid var(--fots-line);
  border-radius: 12px;
  padding: 24px 20px;
}
.fots-title { font-size: 1.4em; margin: 0 0 .8em; line-height: 1.4; }
.fots-sec-title { font-size: 1.2em; margin: 0 0 .6em; line-height: 1.4; border-left: 4px solid var(--fots-accent); padding-left: .5em; }
.fots-desc, .fots-note { color: var(--fots-sub); font-size: .92em; }
.fots-note { margin: .2em 0 .6em; }
.fots-intro-list { padding-left: 1.2em; }
.fots-privacy { background: var(--fots-soft); border-radius: 8px; padding: 12px 14px; font-size: .9em; color: var(--fots-sub); }
.fots-shop a { font-weight: bold; color: var(--fots-accent); }

.fots-progress { height: 6px; background: var(--fots-line); border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.fots-progress-bar { height: 100%; width: 0; background: var(--fots-accent); transition: width .3s; }

.fots-q { margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px dashed var(--fots-line); }
.fots-q:last-child { border-bottom: 0; }
.fots-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fots-label { display: block; font-weight: bold; margin-bottom: .4em; padding: 0; }
.fots-req { display: inline-block; background: var(--fots-accent); color: var(--fots-accent-ink); font-size: .72em; padding: 0 .5em; border-radius: 4px; vertical-align: middle; font-weight: normal; }
.fots-count { font-size: .85em; color: var(--fots-sub); margin: 0 0 .4em; }

.fots-options { display: grid; gap: 8px; }
.fots-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--fots-line); border-radius: 8px; cursor: pointer; background: var(--fots-bg); }
.fots-opt input { margin: .35em 0 0; flex: none; width: 18px; height: 18px; accent-color: var(--fots-accent); }
.fots-opt:has(input:checked) { border-color: var(--fots-accent); background: #fff0f5; }
.fots-opt.is-disabled { opacity: .45; cursor: not-allowed; }

.fots-survey input[type="text"], .fots-survey textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #bbb; border-radius: 8px; font: inherit; color: inherit; background: #fff;
}
.fots-survey textarea { resize: vertical; }
.fots-other { margin-top: 8px; }

.fots-q.has-error .fots-opt, .fots-q.has-error input[type="text"], .fots-q.has-error textarea { border-color: var(--fots-err); }
.fots-q-error, .fots-error { color: var(--fots-err); font-size: .9em; margin: .4em 0 0; white-space: pre-line; }
.fots-error { background: #fff5f5; border: 1px solid var(--fots-err); border-radius: 8px; padding: 10px 12px; margin-top: 12px; }

.fots-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.fots-nav .fots-btn:only-child, .fots-nav .fots-btn:last-child { margin-left: auto; }
.fots-btn {
  display: inline-block; min-width: 140px; padding: 12px 20px; border: 0; border-radius: 999px;
  background: var(--fots-accent); color: var(--fots-accent-ink); font: inherit; font-weight: bold; text-align: center; text-decoration: none; cursor: pointer;
}
.fots-btn:disabled { opacity: .6; cursor: wait; }
.fots-btn--ghost { background: transparent; color: var(--fots-ink); border: 1px solid var(--fots-line); }
.fots-btn:focus-visible, .fots-opt:focus-within { outline: 3px solid #ffa8c5; outline-offset: 2px; }

.fots-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.fots-subtitle { margin: -.3em 0 .8em; font-weight: bold; color: var(--fots-accent); }

/* 画像で選ぶ設問 */
.fots-chosen { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.fots-chosen li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px dashed var(--fots-line); border-radius: 8px; background: var(--fots-soft); }
.fots-chosen li.is-filled { border-style: solid; border-color: var(--fots-accent); background: #fff0f5; }
.fots-chosen-rank { flex: none; font-weight: bold; color: var(--fots-accent); min-width: 3.5em; }
.fots-chosen-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fots-chosen-empty { flex: 1; color: var(--fots-sub); }
.fots-chosen-rm { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: var(--fots-ink); font-size: 18px; line-height: 1; cursor: pointer; }
.fots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.fots-card {
  position: relative; display: flex; flex-direction: column; padding: 0; border: 2px solid var(--fots-line); border-radius: 10px;
  background: var(--fots-bg); color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden;
}
.fots-card-img { display: block; aspect-ratio: 1 / 1; background: var(--fots-soft); }
.fots-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fots-card-name { display: block; padding: 6px 8px; font-size: .85em; line-height: 1.4; }
.fots-card-rank:empty { display: none; }
.fots-card-rank { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--fots-accent); color: var(--fots-accent-ink); font-size: .8em; font-weight: bold; }
.fots-card.is-picked { border-color: var(--fots-accent); box-shadow: 0 0 0 2px var(--fots-accent); }
.fots-card:focus-visible { outline: 3px solid #ffa8c5; outline-offset: 2px; }
.fots-other-label { display: block; margin: 14px 0 4px; font-size: .92em; }

.fots-wallpapers { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.fots-wallpapers .fots-btn { width: 100%; }

@media (max-width: 480px) {
  .fots-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .fots-form, .fots-done { padding: 18px 14px; border-radius: 0; border-left: 0; border-right: 0; }
  .fots-btn { min-width: 0; flex: 1; }
}
