@font-face {
  font-family: "HiraKakuClone";
  src: url("/fonts/hira-kaku.woff2") format("woff2");
  font-display: swap;
  font-weight: 800;
}

:root {
  --bg: #c8c8c8;
  --fg: #221f20;
  --alert: #8f7a22;
  --success: #1d7f43;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: #000;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  padding: max(10px, env(safe-area-inset-top)) 10px calc(max(10px, env(safe-area-inset-bottom)) + 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.row {
  width: 100%;
  display: flex;
  align-items: center;
}

.spread {
  justify-content: space-between;
}

.top-row {
  align-items: flex-start;
}

.jp-row {
  align-items: center;
}

.title,
.date,
.date-note,
.status-title,
.status-answer,
.delay-title,
.delay-timer {
  font-family: "HiraKakuClone", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.title {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 2.8rem);
  line-height: 1;
  color: #000;
}

.star {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  max-height: 32px;
  flex: 0 0 32px;
  fill: var(--fg);
}

.image-frame {
  width: 78%;
  max-width: 320px;
  aspect-ratio: 1;
  overflow: hidden;
  line-height: 0;
  background: #000;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jp-mark {
  width: 136px;
  height: 48px;
  min-width: 136px;
  max-width: 136px;
  fill: var(--fg);
}

.status-block {
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  justify-items: center;
  align-items: start;
  column-gap: 18px;
  row-gap: 8px;
  margin-top: 86px;
  margin-bottom: 0;
}

.status-title,
.delay-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: #000;
  text-align: center;
}

.sub-link-title {
  margin: 16px 0 0;
  font-size: 1.2rem;
  line-height: 1;
  color: #000;
  text-align: center;
}

.status-answer {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--alert);
  text-align: center;
}

.section-link {
  color: #000;
  font-family: "HiraKakuClone", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
  letter-spacing: 0;
  text-decoration: none;
  display: inline-block;
  border-bottom: 0.08em solid currentColor;
  padding-bottom: 0.08em;
}

.section-link:visited {
  color: #000;
}

.poll-block {
  grid-column: 1 / span 2;
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.poll-title,
.poll-label,
.poll-percent {
  font-family: "HiraKakuClone", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.poll-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: #000;
  text-align: center;
}

.poll-options {
  width: min(100%, 300px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}

.poll-option {
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
  cursor: pointer;
}

.poll-label {
  font-size: 1.05rem;
  line-height: 1;
  color: #000;
}

.poll-percent {
  font-size: 0.9rem;
  line-height: 1;
  color: #000;
}

.poll-option.is-selected .poll-label,
.poll-option.is-selected .poll-percent {
  color: var(--success);
}

.delay-timer {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--success);
  text-align: center;
}

.date-row {
  align-items: flex-end;
  margin-top: auto;
  padding-bottom: 6px;
}

.date-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.date-note {
  font-size: 0.75rem;
  line-height: 1;
  color: #000;
}

.date {
  font-size: 1.35rem;
  line-height: 1;
  color: #000;
}

@media (max-width: 640px) {
  .page {
    gap: 12px;
    padding-bottom: calc(max(12px, env(safe-area-inset-bottom)) + 76px);
  }

  .star {
    width: 24px;
    height: 24px;
    min-width: 24px;
    max-width: 24px;
    min-height: 24px;
    max-height: 24px;
    flex-basis: 24px;
  }

  .title {
    font-size: 1.85rem;
  }

  .image-frame {
    width: min(78vw, 280px);
  }

  .jp-mark {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    height: auto;
  }

  .status-block {
    width: min(100%, 320px);
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    column-gap: 12px;
    row-gap: 6px;
    margin-top: 56px;
  }

  .status-title,
  .delay-title {
    font-size: 0.88rem;
  }

  .sub-link-title {
    font-size: 0.88rem;
    margin-top: 12px;
  }

  .poll-block {
    margin-top: 12px;
    gap: 8px;
  }

  .poll-title {
    font-size: 0.88rem;
  }

  .poll-options {
    width: min(100%, 240px);
    column-gap: 14px;
  }

  .poll-label {
    font-size: 0.86rem;
  }

  .poll-percent {
    font-size: 0.74rem;
  }

  .section-link {
    border-bottom-width: 0.12em;
    padding-bottom: 0.1em;
  }

  .status-answer,
  .delay-timer {
    font-size: 1.1rem;
  }

  .date-note {
    font-size: 0.62rem;
  }

  .date {
    font-size: 1.1rem;
  }
}
