:root {
  font-family: 'Noto Sans JP',sans-serif;
  color: #233f39;
  background: #f7f8f3;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

header {
  height: 88px;
  background: #fff;
  border-bottom: 1px solid #e5e9df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5%,calc((100vw - 1280px)/2));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  color: #233f39;
  font-size: 19px;
}

.brand-icon {
  font-size: 34px;
  color: #398776;
}

.header-note {
  font-size: 12px;
  color: #7a8980;
}

main {
  max-width: 1280px;
  margin: auto;
  padding: 48px 28px 60px;
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #678b7d;
  margin: 0 0 14px;
}

h1 {
  font-size: 32px;
  letter-spacing: .03em;
  line-height: 1.6;
  margin: 0 0 12px;
}

h2 {
  margin: 0;
}

.sub {
  color: #78867d;
  font-size: 13px;
  margin: 0;
}

.mobile {
  display: none;
}

.live {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce6da;
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 11px;
  background: #fff;
}

.live i {
  width: 7px;
  height: 7px;
  background: #54a57c;
  border-radius: 50%;
}

.dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

.join-card {
  background: #193f36;
  color: #fff;
  border-radius: 18px;
  padding: 28px 25px;
  text-align: center;
}

.tag {
  font-size: 10px;
  letter-spacing: .07em;
  background: #35594e;
  padding: 7px 14px;
  border-radius: 20px;
}

.join-card h2 {
  font-size: 24px;
  line-height: 1.6;
  margin: 22px 0 12px;
}

.join-card p {
  font-size: 12px;
  color: #c1d3cb;
  line-height: 1.9;
}

.qr {
  background: white;
  border-radius: 12px;
  padding: 9px;
  margin: 22px auto 0;
  max-width: 210px;
}

.qr img {
  width: 100%;
  height: auto;
  display: block;
}

.join-card .scan-note {
  font-size: 10px;
  margin: 10px 0 22px;
}

.answer-link {
  display: flex;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  padding: 12px 5px;
  border-bottom: 1px solid #527064;
}

.participation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  font-size: 11px;
  color: #c1d3cb;
}

.participation strong {
  font-size: 38px;
  color: #fff;
  font-weight: 600;
}

.join-bottom {
  font-size: 10px;
  color: #a8c4b6;
  margin-top: 15px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 16px;
}

.section-label h2 {
  font-size: 14px;
}

.section-label>span {
  font-size: 10px;
  color: #89968b;
}

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.result-card {
  background: #fff;
  border: 1px solid #e4e8df;
  border-radius: 16px;
  padding: 23px 20px;
  min-height: 260px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff4ed;
  color: #54816e;
  font-size: 11px;
  font-weight: 700;
  border-radius: 7px;
  padding: 7px 9px;
}

.card-title h2 {
  font-size: 13px;
}

.chart-content {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 26px;
}

.donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.donut>div {
  width: 89px;
  height: 89px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.donut strong {
  font-size: 26px;
  font-weight: 600;
}

.donut span {
  font-size: 10px;
  color: #8e998f;
}

.legend {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  white-space: nowrap;
  margin: 9px 0;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend b {
  margin-left: auto;
  font-size: 11px;
}

.legend small {
  font-size: 8px;
  margin-left: 2px;
}

.count {
  color: #99a197;
  font-size: 9px;
  min-width: 20px;
  text-align: right;
}

.fine-print {
  font-size: 10px;
  color: #929b8f;
  margin-top: 18px;
}

footer {
  max-width: 1224px;
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid #e0e6db;
  color: #8a978b;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}

.vote-page {
  max-width: 730px;
}

.vote-page h1 {
  font-size: 30px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6e8375;
}

progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0 28px;
  accent-color: #398776;
}

progress::-webkit-progress-bar {
  background: #e3e9df;
}

progress::-webkit-progress-value {
  background: #398776;
}

fieldset {
  border: 1px solid #e0e6db;
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  margin: 0 0 22px;
}

legend {
  float: left;
  width: 100%;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
}

.required {
  font-size: 9px;
  color: #9d7256;
  margin-left: 10px;
}

.options {
  clear: both;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.options label {
  border: 1px solid #e1e7de;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.options label:has(input:checked) {
  border-color: #398776;
  background: #eff7ef;
  color: #226b54;
}

.options input {
  accent-color: #398776;
  width: 17px;
  height: 17px;
  margin: 0;
}

.primary {
  display: flex;
  justify-content: center;
  gap: 25px;
  align-items: center;
  width: 100%;
  border: 0;
  background: #245b49;
  color: #fff;
  border-radius: 10px;
  padding: 18px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.primary:disabled {
  background: #d9e0d5;
  color: #8e9989;
  cursor: not-allowed;
}

.primary:hover:not(:disabled) {
  background: #184432;
}

.submit-note {
  text-align: center;
  font-size: 11px;
  color: #869180;
  margin: 16px 0;
}

#error {
  font-size: 13px;
  color: #b24d3f;
}

.thankyou {
  text-align: center;
  max-width: 500px;
  margin: 65px auto;
}

.thankyou h1 {
  font-size: 25px;
}

.thankyou p:not(.eyebrow) {
  font-size: 14px;
  line-height: 2;
  color: #758776;
  margin-bottom: 30px;
}

.success-icon {
  margin: 0 auto 25px;
  background: #e2efdf;
  color: #398776;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #d9a44d;
  outline-offset: 4px;
}

@media (min-width:1000px) and (max-width:1190px) {
  .chart-content {
    gap: 12px;
  }
  .donut {
    width: 105px;
    height: 105px;
  }
  .donut>div {
    width: 74px;
    height: 74px;
  }
  .result-card {
    padding: 20px 14px;
  }
  .dashboard {
    gap: 20px;
    grid-template-columns: 255px 1fr;
  }
}

@media (max-width:999px) {
  .charts {
    grid-template-columns: 1fr;
  }
  .chart-content {
    justify-content: center;
  }
  .legend {
    max-width: 240px;
  }
  .result-card {
    min-height: 220px;
  }
  .dashboard {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width:640px) {
  header {
    height: 70px;
    padding: 0 20px;
  }
  .brand {
    font-size: 16px;
  }
  .header-note {
    display: none;
  }
  main {
    padding: 30px 20px 40px;
  }
  h1 {
    font-size: 26px;
  }
  .heading {
    display: block;
    margin-bottom: 26px;
  }
  .live {
    display: inline-flex;
    margin-top: 20px;
  }
  .mobile {
    display: block;
  }
  .dashboard {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .join-card {
    padding: 25px;
  }
  .join-card h2 {
    font-size: 23px;
  }
  .charts {
    gap: 16px;
  }
  .result-card {
    padding: 22px;
  }
  .chart-content {
    gap: 30px;
  }
  .donut {
    width: 130px;
    height: 130px;
  }
  .donut>div {
    width: 88px;
    height: 88px;
  }
  .legend {
    max-width: none;
  }
  .legend li {
    font-size: 11px;
  }
  .section-label>span {
    font-size: 9px;
  }
  .card-title h2 {
    font-size: 14px;
  }
  footer {
    margin: 0 20px;
    font-size: 9px;
  }
  footer span {
    display: none;
  }
  .vote-page h1 {
    font-size: 28px;
  }
  fieldset {
    padding: 18px 14px;
  }
  legend {
    font-size: 14px;
  }
  .options label {
    padding: 14px 10px;
  }
  .thankyou {
    margin: 35px auto;
  }
  .thankyou h1 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion:no-preference) {
  .primary,
  .options label {
    transition: background .15s;
  }
}
