@charset "utf-8";

/* CBT2026 事前申込・注意事項ページ専用スタイル */
.preentry-page {
  --entry-deep-blue: #087fa6;
  --entry-pale-blue: #eaf8fc;
  --entry-content-width: 1100px;
  --entry-warning: #c52e49;
  --entry-warning-bg: #fff0f3;
  --entry-shadow: 0 12px 30px rgba(24, 89, 108, 0.12);
  background: #f7fbfc;
}

.preentry-page a:focus-visible,
.preentry-page button:focus-visible,
.preentry-page input:focus-visible {
  outline: 3px solid #f28b35;
  outline-offset: 4px;
}

.preentry-page #contents {
  padding-right: clamp(1rem, 5vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-left: clamp(1rem, 5vw, 5rem);
}

.preentry-layout {
  width: 100%;
  max-width: var(--entry-content-width);
  margin: 0 auto;
}

.preentry-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--entry-pale-blue) 100%);
  box-shadow: var(--entry-shadow);
}

.preentry-hero::after {
  content: "";
  position: absolute;
  top: -105px;
  right: -85px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(39, 171, 212, 0.11);
  pointer-events: none;
}

.preentry-hero__eyebrow,
.preentry-section__heading > p {
  margin: 0 0 0.25rem;
  color: var(--entry-deep-blue);
  font-family: "Reddit Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.preentry-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  color: var(--entry-deep-blue);
  font-family: "Reddit Sans", "Noto Sans JP", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.preentry-hero__lead {
  position: relative;
  z-index: 1;
  margin: 0 0 0.8rem;
  color: #253b43;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.8;
}

.preentry-hero > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-bottom: 0;
  line-height: 2;
}

.preentry-period-notice {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid #e0ad35;
  border-radius: 14px;
  background: #fff9e8;
  color: #664b0e;
  box-shadow: 0 8px 22px rgba(24, 89, 108, 0.08);
}

.preentry-period-notice > i {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 50%;
  background: #e0ad35;
  color: #fff;
  font-size: 1.45rem;
}

.preentry-period-notice p,
.preentry-page main .preentry-period-notice h2 {
  margin: 0;
}

.preentry-period-notice #receptionNoticeLabel {
  margin-bottom: 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.preentry-page main .preentry-period-notice h2 {
  color: inherit;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.5;
}

.preentry-period-notice #receptionNoticeText {
  margin-top: 0.25rem;
  line-height: 1.7;
}

.preentry-period-notice.is-open {
  border-color: #70bd8a;
  background: #edf9f1;
  color: #23663a;
}

.preentry-period-notice.is-open > i {
  background: #3a9a5b;
}

.preentry-period-notice.is-closed {
  border-color: #bfc9cd;
  background: #f4f6f7;
  color: #4f5f65;
}

.preentry-period-notice.is-closed > i {
  background: #77868c;
}

.preentry-returning-shortcut {
  display: grid;
  grid-template-columns: 1.8rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid #83c59b;
  border-radius: 10px;
  background: #edf9f1;
  color: #23663a;
  font-weight: 800;
  text-decoration: none;
}

.preentry-returning-shortcut[hidden] {
  display: none;
}

.preentry-returning-shortcut:hover {
  color: #174f2c;
  transform: translateY(-1px);
}

.preentry-returning-shortcut i:first-child {
  font-size: 1.35rem;
}

.preentry-flow {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(39, 171, 212, 0.22);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 89, 108, 0.08);
}

.preentry-flow ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preentry-flow li {
  position: relative;
  min-width: 0;
}

.preentry-flow li:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: -1rem;
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.preentry-flow a {
  display: grid;
  min-height: 82px;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.35rem;
  border-radius: 9px;
  background: #f6fbfd;
  color: #354b53;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}

.preentry-flow a:hover {
  background: var(--entry-pale-blue);
  color: var(--entry-deep-blue);
}

.preentry-flow a span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.preentry-flow a strong {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.preentry-date-section,
.preentry-section,
.preentry-agreement {
  scroll-margin-top: 100px;
  margin-top: clamp(2.5rem, 7vw, 5rem);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--entry-shadow);
}

.preentry-section__heading {
  margin-bottom: 1.25rem;
}

.preentry-page main .preentry-section__heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #273b42;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.preentry-anchor {
  scroll-margin-top: 100px;
}

.preentry-consent-status {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.2rem;
  border: 1px solid #83c59b;
  border-radius: 12px;
  background: #edf9f1;
  color: #23663a;
}

.preentry-consent-status[hidden] {
  display: none;
}

.preentry-consent-status > i {
  font-size: 1.6rem;
}

.preentry-consent-status div {
  display: grid;
}

.preentry-consent-status span {
  font-size: 0.78rem;
}

.preentry-consent-status a {
  color: #23663a;
  font-size: 0.82rem;
  font-weight: 700;
}

.preentry-date-section__locked-message {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #f0f2f3;
  color: #536168;
  font-weight: 700;
}

.preentry-capacity-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0 0 1.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e69aaa;
  border-left: 5px solid #b4233d;
  border-radius: 9px;
  background: #fff2f5;
  color: #811a30;
}

.preentry-capacity-summary[hidden] {
  display: none;
}

.preentry-capacity-summary > i {
  margin-top: 0.22rem;
  color: #b4233d;
  font-size: 1.2rem;
}

.preentry-capacity-summary p {
  display: grid;
  gap: 0.1rem;
  margin: 0;
}

.preentry-date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.preentry-date-grid[hidden] {
  display: none;
}

.preentry-core-entry {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}

.preentry-date-card--single {
  text-align: center;
}

.preentry-date-card {
  padding: 1.25rem;
  border: 1px solid rgba(39, 171, 212, 0.25);
  border-radius: 14px;
  background: #fbfdfe;
  text-align: center;
}

.preentry-date-card.is-capacity-closed {
  border-color: #e69aaa;
  background: #fff7f8;
}

.preentry-date-card.is-capacity-closed .preentry-date-card__day {
  background: #fde3e8;
  color: #9c1e36;
}

.preentry-date-card__day {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--entry-pale-blue);
  color: var(--entry-deep-blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.preentry-page main .preentry-date-card h3 {
  display: block;
  margin: 0.65rem 0 0.25rem;
  border: 0;
  color: var(--entry-deep-blue);
  font-size: 1.2rem;
}

.preentry-date-card p {
  margin: 0 0 0.9rem;
  color: #586a71;
  font-size: 0.82rem;
}

.preentry-date-link {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff !important;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}

.preentry-date-link[aria-disabled="true"] {
  background: #d7dde0;
  color: #617078 !important;
  cursor: not-allowed;
}

.preentry-date-card.is-capacity-closed .preentry-date-link[aria-disabled="true"] {
  background: #b4233d;
  color: #fff !important;
}

.preentry-date-section__note {
  margin: 0.85rem 0 0;
  color: #65777e;
  font-size: 0.78rem;
  text-align: right;
}

.preentry-date-section:not(.is-locked) .preentry-date-section__locked-message {
  display: none;
}

.preentry-important-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.preentry-important-grid article {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 0.85rem;
  padding: 1.2rem;
  border: 1px solid #e98698;
  border-radius: 12px;
  background: var(--entry-warning-bg);
  color: #7c1830;
}

.preentry-important-grid article > i {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--entry-warning);
  color: #fff;
  font-size: 1.1rem;
}

.preentry-page main .preentry-important-grid h3 {
  grid-column: 2;
  display: block;
  margin: 0;
  border: 0;
  color: #9d1f39;
  font-size: 1.05rem;
  line-height: 1.6;
}

.preentry-important-grid p {
  grid-column: 2;
  margin: -0.45rem 0 0;
  line-height: 1.8;
}

.preentry-detail-list {
  display: grid;
  gap: 0.8rem;
}

.preentry-detail-list article {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border: 1px solid #dcecf1;
  border-radius: 10px;
  background: #fbfdfe;
}

.preentry-detail-list__number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.preentry-page main .preentry-detail-list h3,
.preentry-page main .preentry-allergy-alert h3,
.preentry-page main .preentry-rule-grid h3 {
  display: block;
  margin: 0 0 0.35rem;
  border: 0;
  color: var(--entry-deep-blue);
  font-size: 1.05rem;
  line-height: 1.6;
}

.preentry-detail-list p,
.preentry-allergy-alert p,
.preentry-rule-grid p {
  margin: 0;
  line-height: 1.85;
}

.preentry-allergy-alert {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border-left: 6px solid #e69b24;
  border-radius: 10px;
  background: #fff8e8;
}

.preentry-allergy-alert > i {
  color: #bd7411;
  font-size: 1.7rem;
  text-align: center;
}

.preentry-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.preentry-rule-grid article {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.8rem;
  padding: 1.1rem;
  border: 1px solid #dcecf1;
  border-radius: 12px;
  background: #fbfdfe;
}

.preentry-rule-grid article > i {
  color: var(--primary-color);
  font-size: 1.35rem;
  text-align: center;
}

.preentry-other-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preentry-other-list li {
  position: relative;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  border-radius: 8px;
  background: #f6fafb;
  line-height: 1.8;
}

.preentry-other-list li::before {
  content: "✓";
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  color: var(--primary-color);
  font-weight: 900;
}

.preentry-agreement {
  border: 2px solid rgba(39, 171, 212, 0.45);
}

.preentry-agreement.is-unavailable {
  border-color: #d6dde0;
  background: #f8fafb;
}

.preentry-period-message {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid #d19a1f;
  border-radius: 6px;
  background: #fff9e8;
  color: #664b0e;
  font-weight: 800;
  line-height: 1.7;
}

.preentry-period-message[hidden] {
  display: none;
}

.preentry-agreement.is-unavailable .preentry-checklist label {
  background: #f2f4f5;
  color: #78858a;
  cursor: not-allowed;
}

.preentry-checklist {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0;
  padding: 0;
  border: 0;
}

.preentry-checklist legend {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.preentry-checklist label {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #dcecf1;
  border-radius: 9px;
  background: #fbfdfe;
  cursor: pointer;
  line-height: 1.7;
}

.preentry-checklist label:has(input:checked) {
  border-color: var(--primary-color);
  background: var(--entry-pale-blue);
}

.preentry-checklist input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.22rem;
  accent-color: var(--primary-color);
}

.preentry-agree-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem clamp(1.3rem, 4vw, 2.5rem);
  border: 2px solid var(--primary-color);
  border-radius: 999px;
  background: var(--primary-color);
  box-shadow: 0 8px 20px rgba(39, 171, 212, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.preentry-agree-button:disabled {
  border-color: #cbd2d5;
  background: #d7dde0;
  box-shadow: none;
  color: #69777d;
  cursor: not-allowed;
}

.preentry-storage-note,
.preentry-storage-error {
  margin: 0.75rem 0 0;
  color: #65777e;
  font-size: 0.78rem;
}

.preentry-storage-error {
  color: #a31430;
  font-weight: 700;
}

@media screen and (min-width: 900px) {
  .preentry-page #contents {
    padding-top: 110px;
  }
}

@media screen and (max-width: 1000px) {
  .preentry-flow ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .preentry-flow li::after {
    display: none;
  }
}

@media screen and (max-width: 899px) {
  .preentry-page #contents {
    padding-top: 80px;
  }

  .preentry-date-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 700px) {
  .preentry-hero,
  .preentry-date-section,
  .preentry-section,
  .preentry-agreement {
    border-radius: 14px;
  }

  .preentry-important-grid,
  .preentry-rule-grid {
    grid-template-columns: 1fr;
  }

  .preentry-flow ol {
    grid-template-columns: 1fr;
  }

  .preentry-flow a {
    min-height: 0;
    grid-template-columns: 2rem 1fr;
    justify-items: start;
    padding: 0.65rem 0.75rem;
    text-align: left;
  }

  .preentry-flow a strong {
    font-size: 0.88rem;
  }

  .preentry-consent-status {
    grid-template-columns: 2rem 1fr;
  }

  .preentry-consent-status a {
    grid-column: 2;
  }

  .preentry-agree-button {
    width: 100%;
  }

  .preentry-period-notice {
    grid-template-columns: 2.6rem 1fr;
    padding: 1rem;
  }

  .preentry-period-notice > i {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.15rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .preentry-page *,
  .preentry-page *::before,
  .preentry-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
