:root {
  color-scheme: light;
  --navy: #091c38;
  --blue: #1267d4;
  --sky: #2b83ef;
  --ink: #14223a;
  --muted: #66758c;
  --line: #dce4ef;
  --surface: #ffffff;
  --background: #f2f6fb;
  --green: #16a46c;
  --red: #d84a59;
  --gold: #b99745;
  font-family:
    Inter, "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  touch-action: manipulation;
}

input,
select {
  font-size: 16px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, #12375d, #6da7ce);
  background-image:
    linear-gradient(90deg, rgb(7 35 65 / 82%) 0%, rgb(7 35 65 / 34%) 54%, transparent 78%),
    url("/assets/hero-tdl.png");
  background-position: center;
  background-size: cover;
}

body[data-park="tds"] .hero {
  background-image:
    linear-gradient(90deg, rgb(3 46 67 / 84%) 0%, rgb(3 46 67 / 32%) 54%, transparent 78%),
    url("/assets/hero-tds.png");
}

.hero::after {
  display: none;
}

.hero__shade {
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(transparent, rgb(2 20 40 / 36%));
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 500px;
  padding-block: 62px 92px;
}

.hero__copy {
  max-width: 650px;
  text-shadow: 0 2px 20px rgb(0 24 47 / 40%);
}

.eyebrow {
  margin: 0 0 12px;
  color: #83bbff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.6vw, 4.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h1 span {
  color: white;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 0.82em;
  font-style: normal;
  font-weight: 400;
}

.hero__description {
  margin: 24px 0 0;
  color: #d7e6f8;
  font-size: 0.9rem;
}

.update-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 270px;
  padding: 10px 12px;
  color: var(--ink);
  border: 0;
  border-radius: 4px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 16px 40px rgb(0 24 50 / 20%);
}

.hero__tools {
  width: 350px;
}

.hero__tools .update-card {
  width: 100%;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  margin-top: 10px;
  padding-inline: 15px;
  color: var(--muted);
  border-radius: 4px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 12px 30px rgb(0 24 50 / 18%);
}

.hero-search > span {
  color: #367bb7;
  font-size: 1.3rem;
}

.hero-search input {
  min-width: 0;
  width: 100%;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.live-dot,
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35d497;
  box-shadow: 0 0 0 4px rgb(53 212 151 / 13%);
}

.update-card div {
  flex: 1;
}

.update-card__label {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 0.62rem;
}

.update-card strong {
  font-size: 0.76rem;
}

.refresh-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  font-size: 0.72rem;
  color: white;
  border: 0;
  border-radius: 3px;
  background: #2573b6;
  cursor: pointer;
}

.refresh-button:disabled {
  opacity: 0.5;
}

.refresh-button .is-spinning {
  animation: spin 700ms linear infinite;
}

.main {
  position: relative;
  z-index: 2;
  margin-top: -54px;
  padding-bottom: 70px;
}

.switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  box-shadow: 0 12px 32px rgb(20 40 75 / 13%);
}

.switcher__group {
  display: flex;
  gap: 5px;
}

.park-tab,
.type-tab {
  padding: 10px 16px;
  color: var(--muted);
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.park-tab.is-active,
.type-tab.is-active {
  color: white;
  background: #2676b7;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgb(20 40 75 / 9%);
}

.summary-card {
  position: relative;
  min-height: 136px;
  padding: 25px 30px;
}

.summary-card + .summary-card {
  border-left: 1px solid var(--line);
}

.summary-card--accent::before {
  position: absolute;
  top: 0;
  right: 30px;
  left: 30px;
  height: 3px;
  content: "";
  background: var(--gold);
}

.summary-card__label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.summary-card strong {
  font-family: Georgia, serif;
  font-size: 2.55rem;
  font-weight: 400;
  line-height: 1;
}

.summary-card strong small {
  margin-left: 4px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
}

.summary-card > small {
  display: block;
  margin-top: 13px;
  color: #9aa6b6;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.summary-card.is-muted {
  opacity: 0.48;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding-block: 38px 28px;
}

.filters {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
}

.filter {
  padding: 7px 13px;
  color: var(--muted);
  border: 0;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.filter.is-active {
  color: white;
  background: #2676b7;
}

.sort {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nearby-button {
  min-height: 38px;
  padding: 8px 12px;
  color: #256da8;
  border: 1px solid #b9d1e9;
  border-radius: 3px;
  background: white;
  cursor: pointer;
}

.nearby-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.nearby-button.is-loading span {
  display: inline-block;
  animation: spin 700ms linear infinite;
}

.sort select {
  padding: 9px 28px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: white;
}

.notice {
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1px solid #efcf7f;
  border-radius: 7px;
  color: #72540d;
  background: #fff9e9;
  font-size: 0.86rem;
}

.notice--error {
  border-color: #efb8be;
  color: #8c2732;
  background: #fff0f2;
}

.list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.list-heading h2 {
  margin: 0;
  font-size: 1.05rem;
}

.list-heading span {
  color: var(--muted);
  font-size: 0.8rem;
}

body.search-mode .switcher,
body.search-mode .summary,
body.search-mode .toolbar {
  display: none;
}

body.search-mode .main {
  margin-top: 0;
  padding-top: 34px;
}

body.search-mode .list-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

body.search-mode .list-heading h2 {
  font-size: 1.25rem;
}

.attraction-list {
  display: grid;
  gap: 9px;
}

.attraction-card {
  display: grid;
  grid-template-columns: 125px 1fr 110px;
  align-items: center;
  min-height: 88px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.attraction-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgb(26 50 85 / 8%);
}

.attraction-card__status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
}

.attraction-card.is-closed .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgb(216 74 89 / 10%);
}

.attraction-card.is-closed .attraction-card__status {
  color: var(--red);
}

.attraction-card.is-unknown .status-dot {
  background: #9aa6b6;
  box-shadow: 0 0 0 4px rgb(154 166 182 / 12%);
}

.attraction-card.is-unknown .attraction-card__status {
  color: #7c8899;
}

.attraction-card.is-preparing .status-dot {
  background: #e29a24;
  box-shadow: 0 0 0 4px rgb(226 154 36 / 12%);
}

.attraction-card.is-preparing .attraction-card__status {
  color: #a86a08;
}

.attraction-card.is-restricted .status-dot {
  background: #7357d8;
  box-shadow: 0 0 0 4px rgb(115 87 216 / 12%);
}

.attraction-card.is-restricted .attraction-card__status {
  color: #674bc9;
}

.attraction-card__main {
  padding-inline: 18px;
  border-left: 1px solid var(--line);
}

.attraction-card h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.facility-context {
  margin-bottom: 5px;
  color: #3477af;
  font-size: 0.62rem;
  font-weight: 700;
}

.facility-context[hidden] {
  display: none;
}

.operating-hours {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.operating-hours[hidden] {
  display: none;
}

.operating-hours > span:first-child {
  color: #3b7db6;
  font-size: 0.85rem;
}

.facility-distance {
  margin: 5px 0 0;
  color: #2676b7;
  font-size: 0.75rem;
  font-weight: 700;
}

.facility-distance[hidden] {
  display: none;
}

.passes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.pass {
  padding: 3px 6px;
  border-radius: 3px;
  color: #1861b7;
  background: #eaf3ff;
  font-size: 0.62rem;
}

.pass--standby {
  color: #6145a8;
  background: #f0ebff;
}

.pass--restaurant {
  color: #79520f;
  background: #fff4d9;
}

.pass--flavor {
  color: #9b3f62;
  background: #fff0f5;
}

.wait {
  text-align: right;
}

.wait strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.wait span {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.wait.is-long strong {
  color: var(--red);
}

.wait.is-text strong {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}

.loading,
.empty {
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.loading__spinner {
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 9px;
  vertical-align: -3px;
  border: 2px solid #cbd8e8;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

footer {
  padding-block: 25px;
  color: #a8b5c6;
  background: #f5f7f9;
  color: #77818c;
  font-size: 0.72rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
}

footer a {
  color: #2869a8;
  text-decoration: none;
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  body.search-mode .main {
    padding-top: 24px;
  }

  body.search-mode .list-heading h2 {
    max-width: calc(100% - 48px);
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero {
    min-height: 470px;
    background-image:
      linear-gradient(180deg, rgb(6 34 60 / 25%) 0%, rgb(6 34 60 / 78%) 78%),
      url("/assets/hero-tdl.png");
    background-position: 60% center;
  }

  .hero__content {
    min-height: 470px;
  }

  .hero__content {
    display: block;
    padding-block: 42px 70px;
  }

  body[data-park="tds"] .hero {
    background-image:
      linear-gradient(180deg, rgb(3 43 61 / 22%) 0%, rgb(3 43 61 / 80%) 78%),
      url("/assets/hero-tds.png");
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.65rem;
  }

  h1 {
    font-size: clamp(2.4rem, 11vw, 3.35rem);
  }

  .hero__description {
    margin-top: 18px;
    font-size: 0.8rem;
  }

  .update-card {
    width: 100%;
    min-width: 0;
    margin-top: 32px;
    padding: 9px 10px;
  }

  .hero__tools {
    width: 100%;
  }

  .hero-search {
    height: 48px;
  }

  .refresh-button {
    min-width: 58px;
    min-height: 34px;
    justify-content: center;
  }

  .summary {
    grid-template-columns: 1fr 1fr;
  }

  .switcher {
    display: block;
    margin-bottom: 12px;
    padding: 7px;
    border-radius: 4px;
  }

  .switcher__group {
    width: 100%;
  }

  .switcher__group + .switcher__group {
    margin-top: 7px;
  }

  .park-tab,
  .type-tab {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 8px 5px;
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .summary-card {
    min-height: 106px;
    padding: 17px;
  }

  .summary-card:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .summary-card--accent::before {
    right: 17px;
    left: 17px;
  }

  .summary-card strong {
    font-size: 2.15rem;
  }

  .summary-card__label {
    font-size: 0.72rem;
  }

  .summary-card > small {
    margin-top: 10px;
  }

  .toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 24px 22px;
  }

  .nearby-button {
    width: 100%;
    min-height: 44px;
  }

  .filters {
    width: 100%;
    padding: 3px;
  }

  .filter {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 7px 4px;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .sort {
    justify-content: space-between;
    min-height: 44px;
  }

  .sort select {
    min-height: 44px;
    max-width: 72%;
  }

  .attraction-card {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 14px;
    border-radius: 4px;
  }

  .attraction-card__status {
    grid-column: 1 / -1;
    align-items: flex-start;
    margin-bottom: 9px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .status-dot {
    flex: 0 0 auto;
    margin-top: 2px;
  }

  .attraction-card__main {
    min-width: 0;
    padding: 0 10px 0 0;
    border-left: 0;
  }

  .attraction-card h3 {
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .passes {
    gap: 5px;
    margin-top: 8px;
  }

  .pass {
    padding: 4px 6px;
    font-size: 0.6rem;
    line-height: 1.3;
  }

  .wait {
    align-self: center;
    min-width: 66px;
  }

  .wait strong {
    font-size: 1.85rem;
  }

  .wait.is-text strong {
    font-size: 0.74rem;
  }

  .notice {
    padding: 12px;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .loading,
  .empty {
    padding: 45px 16px;
    font-size: 0.85rem;
    line-height: 1.6;
  }

  footer .container {
    display: block;
  }

  footer {
    padding-bottom: calc(25px + env(safe-area-inset-bottom));
    line-height: 1.6;
  }

  footer p {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 20px);
  }

  .hero,
  .hero__content {
    min-height: 455px;
  }

  .hero__content {
    padding-top: 32px;
  }

  .update-card {
    gap: 7px;
  }

  .update-card strong {
    font-size: 0.72rem;
  }

  .refresh-button {
    min-width: 54px;
    padding-inline: 7px;
  }

  .park-tab {
    font-size: 0.68rem;
  }

  .type-tab {
    font-size: 0.7rem;
  }

  .summary-card {
    min-height: 99px;
    padding: 14px;
  }

  .summary-card strong {
    font-size: 1.95rem;
  }

  .summary-card > small {
    letter-spacing: 0.1em;
  }

  .filter {
    font-size: 0.7rem;
  }

  .sort span {
    flex: 0 0 auto;
  }

  .sort select {
    width: 100%;
    max-width: 76%;
  }

  .attraction-card {
    padding: 13px 12px;
  }

  .wait {
    min-width: 60px;
  }
}
