:root {
  --c-outer: #980000;
  --c-bg: #f3e9d8;
  --c-kv: #b82a2a;
  --c-kv-catch: #da1111;
  --c-kv-band: #360808;

  --c-accent: #e63829;
  --c-ink: #2b0a0a;
  --c-sub: #7a5a55;
  --c-cream: #ffffed;
  --c-yellow: #fff600;
  --c-gold: #ffc400;

  --c-area-bg: #f8dede;
  --c-national-bg: #1b28af;
  --c-entry-bg: #fff6e0;
  --c-entry-border: #d9a79d;
  --c-border: #e1e1e1;
  --c-disabled-bg: #ccc;
  --c-disabled-text: #e9e9e9;

  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-footer: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-outer);
  color: var(--c-ink);
  font-family: var(--font);
  word-break: break-word;
}

p, h2, h3, h4, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.lp {
  max-width: 500px;
  margin: 0 auto;
  background: var(--c-bg);
  overflow: hidden;
}

/* ---------- 1 KV ---------- */
.hero {
  background: var(--c-kv);
}
.hero__visual {
  aspect-ratio: 1200 / 1460;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__catch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--c-kv-catch);
  color: var(--c-cream);
  text-align: center;
}
.hero__lead {
  font-size: 14px;
  line-height: 1.5;
}
.hero__sub {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hero__sub-title {
  color: var(--c-yellow);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}
.hero__sub-text {
  font-size: 13px;
  line-height: 1.5;
}
.hero__schedule {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  padding: 12px 16px;
  background: var(--c-kv-band);
  color: var(--c-cream);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.hero__schedule dt { text-align: right; }

/* ---------- 掲載特典 共通 ---------- */
.award__heading {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.award__label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.award__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.4;
}
.award__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.award__text {
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.award__period {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

/* ---------- 2 掲載特典① 都道府県代表ポスター ---------- */
.award--prefecture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 20px 16px;
  background: #fff;
}
.award--prefecture .award__heading { gap: 2px; }
.award--prefecture .award__label { color: var(--c-accent); }
.award__visual--prefecture {
  width: 100%;
  aspect-ratio: 960 / 500;
}

/* ---------- 2-2 県代表リボン ---------- */
.ribbon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
}
.ribbon__text {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.ribbon__image {
  width: 100%;
  height: auto;
  /* 選んだ県に入れ替わったことが分かる程度だけ明るくする */
  transition: opacity 0.3s;
}
.ribbon__image.is-swapping { opacity: 0.35; }
.ribbon__note {
  width: 100%;
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- 4 都道府県と掲載先 ---------- */
.areas {
  padding: 8px;
  background: #fff;
}
.areas__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: var(--c-area-bg);
  line-height: 1.5;
}
.areas__title {
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}
.areas__text {
  font-size: 12px;
  text-align: center;
}
.areas__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.area {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 2px solid var(--c-accent);
  border-radius: 12px;
  background: #fff;
}
.area__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.area__name {
  flex: 1;
  font-size: 13px;
  font-weight: 900;
}
.area__place {
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.area__prefs { font-size: 11px; }
.areas__period {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* ---------- 3 掲載特典② 全国TOP50ポスター ---------- */
.award--national {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 32px 20px;
  background: var(--c-national-bg);
  color: var(--c-cream);
}
.award__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.award--national .award__heading { gap: 4px; }
.award--national .award__label { color: var(--c-gold); }
.award--national .award__title { color: #fff; }
.award__visual--national {
  width: 100%;
  aspect-ratio: 960 / 420;
}
.gift-note {
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  opacity: 0.85;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.gift-note strong { font-weight: 700; }

/* ---------- 6 参加方法 ---------- */
.entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
  background: var(--c-entry-bg);
}
.entry__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.entry__label {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.entry__title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}
.entry__flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.period {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--c-entry-border);
  border-radius: 8px;
  background: #fff;
  line-height: 1.5;
  text-align: center;
}
.period__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.period__label {
  color: var(--c-sub);
  font-size: 11px;
}
.period__value {
  font-size: 16px;
  font-weight: 700;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--c-entry-border);
  border-radius: 8px;
  background: #fff;
}
.step__num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.step__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.entry__note {
  width: 100%;
  color: var(--c-sub);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  padding: 32px 24px 122px;  /* 下は追従ボタン（約90px）のぶん */
  background: #000;
  color: #fff;
  font-family: var(--font-footer);
}
.footer__notes {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.notes__title {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.notes__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notes__list li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.3;
  text-align: justify;
}
.notes__list li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.footer__logo {
  width: 163px;
  height: auto;
}

/* ---------- 追従エントリーボタン ---------- */
.entry-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 500px;
  padding: 10px 16px;
  border-top: 1px solid #b8b8b8;
  background: #fff;
  transform: translateX(-50%);
}
/* エントリー後は「いまの状態」→「次にできること」の順に読ませる */
.entry-bar.is-entered { flex-direction: column-reverse; }
.entry-bar__button {
  width: 100%;
  height: 48px;
  border: 2px solid #8e1f1f;
  border-radius: 28px;
  background: var(--c-accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
  cursor: pointer;
}
.entry-bar__button:disabled {
  border: none;
  background: var(--c-disabled-bg);
  color: var(--c-disabled-text);
  cursor: default;
}
.entry-bar__limit {
  color: var(--c-sub);
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- エントリーポップアップ ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
}
.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 327px;
  padding: 40px 32px 32px;
  border-radius: 16px;
  background: #fff;
}
.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.modal__form,
.modal__done {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal__done-title {
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}
.modal__text-button {
  padding: 0;
  border: none;
  background: none;
  color: var(--c-sub);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.modal__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.modal__title {
  font-size: 16px;
  font-weight: 900;
}
.modal__note {
  color: var(--c-sub);
  font-size: 12px;
}
/* ボタンにもリンク（Xでポスト）にも当てる */
.modal__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 28px;
  background: var(--c-accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.modal__submit:disabled {
  background: var(--c-disabled-bg);
  color: var(--c-disabled-text);
  cursor: default;
}

/* ---------- プルダウン ---------- */
.select { position: relative; }
.select__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 2px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  color: var(--c-sub);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.select__trigger.is-open { border-color: var(--c-accent); }
.select__trigger.is-open .select__arrow::before { content: "▴"; }
.select__value {
  flex: 1;
  text-align: left;
}
.select__value.is-selected {
  color: var(--c-ink);
  font-weight: 500;
}
.select__arrow { color: var(--c-sub); }
.select__arrow::before { content: "▾"; }
.select__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1;
  width: 100%;
  max-height: 264px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
  scrollbar-width: thin;
  scrollbar-color: #b8b8b8 transparent;
}
.select__list::-webkit-scrollbar { width: 8px; }
.select__list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 2px;
  background: #b8b8b8;
  background-clip: content-box;
}
.select__option {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  color: #1a1a1a;
  font-size: 14px;
  cursor: pointer;
}
.select__option.is-selected {
  background: #fde3dc;
  color: var(--c-accent);
  font-weight: 700;
}

body.is-modal-open { overflow: hidden; }
