/* Reusable AnA tour detail modules. */
.ana-tour {
  background: var(--ana-geppaku);
  color: var(--ana-gunjo);
  font-family: var(--ed-font-body);
}

.tour-html-canvas__content > :first-child {
  margin-top: 0;
}

.tour-html-canvas__content > :last-child {
  margin-bottom: 0;
}

.ana-tour-container {
  width: min(var(--ed-container, 1180px), calc(100% - var(--ed-page-gutter, 1rem) * 2));
  margin-inline: auto;
}

.ana-tour h1,
.ana-tour h2,
.ana-tour h3 {
  color: var(--ana-gunjo);
  font-family: var(--ed-font-display);
  font-weight: 560;
  letter-spacing: 0;
}

.ana-tour h1 {
  margin: 0;
  max-width: 11em;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  line-height: .98;
}

.ana-tour h2 {
  margin: 0;
  max-width: 13em;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.06;
}

.ana-tour h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.ana-tour p {
  color: #314a73;
  line-height: 1.72;
}

.ana-tour-hero {
  padding: clamp(2.4rem, 6vw, 5rem) 0 2rem;
  background: var(--ana-geppaku);
  border-bottom: 1px solid rgba(39, 117, 182, .18);
}

.ana-tour-hero__grid,
.ana-tour-two-col,
.ana-tour-route,
.ana-tour-final__inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.ana-tour-kicker,
.ana-tour-meta,
.ana-tour-tip,
.ana-tour-facts span,
.ana-tour-jump a,
.ana-tour-button {
  font-family: var(--ed-font-ui);
}

.ana-tour-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 .8rem;
  padding: .38rem .58rem;
  border: 1px solid rgba(39, 117, 182, .28);
  border-radius: 999px;
  background: #fff;
  color: var(--ana-hanada);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.ana-tour-lede {
  max-width: 46rem;
  margin: 1rem 0 0;
  font-size: 1.18rem;
}

.ana-tour-note {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-left: 3px solid var(--ana-mizugame);
  background: rgba(255, 255, 255, .72);
  color: #314a73;
  font-size: .95rem;
}

.ana-tour-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}

.ana-tour-facts span {
  padding: .45rem .62rem;
  border: 1px solid rgba(39, 117, 182, .22);
  border-radius: 999px;
  background: #fff;
  color: var(--ana-gunjo);
  font-size: .8rem;
  font-weight: 500;
}

.ana-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.35rem;
}

.ana-tour-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
  color: #526b94;
  font-family: var(--ed-font-ui);
  font-size: .78rem;
}

.ana-tour-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: .25rem .55rem;
  border: 1px solid rgba(39, 117, 182, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
}

.ana-tour-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border: 1px solid rgba(39, 117, 182, .32);
  border-radius: 8px;
  background: #fff;
  color: var(--ana-gunjo);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.ana-tour-button--primary {
  background: var(--ana-hanada);
  border-color: var(--ana-hanada);
  color: #fff;
}

.ana-tour-button:hover,
.ana-tour-button--primary:hover {
  color: var(--ana-gunjo);
  background: var(--ana-torinoko);
  border-color: var(--ana-torinoko);
}

.ana-tour-hero__image,
.ana-tour-route figure {
  align-self: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(39, 117, 182, .22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(25, 47, 96, .12);
}

.ana-tour-hero__image img,
.ana-tour-route img {
  display: block;
  width: 100%;
  height: clamp(18rem, 32vw, 28rem);
  object-fit: cover;
  object-position: center;
}

.ana-tour-hero__image img {
  height: clamp(20rem, 36vw, 30rem);
}

.ana-tour--html-canvas .ana-tour-hero__grid,
.ana-tour--html-canvas .ana-tour-route,
.ana-tour--index .ana-tour-hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
}

.ana-tour--html-canvas .ana-tour-hero__image,
.ana-tour--html-canvas .ana-tour-route figure,
.ana-tour--index .ana-tour-hero__image {
  align-self: center;
  width: 100%;
  aspect-ratio: 4 / 5;
}

.ana-tour--html-canvas .ana-tour-hero__image,
.ana-tour--index .ana-tour-hero__image {
  min-height: clamp(24rem, 48vw, 36rem);
}

.ana-tour--html-canvas .ana-tour-route figure {
  min-height: clamp(22rem, 42vw, 32rem);
}

.ana-tour--html-canvas .ana-tour-hero__image img,
.ana-tour--html-canvas .ana-tour-route img,
.ana-tour--index .ana-tour-hero__image img {
  height: 100%;
  min-height: 0;
}

.ana-tour-jump {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid rgba(39, 117, 182, .16);
}

.ana-tour-jump .ana-tour-container {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-block: .65rem;
}

.ana-tour-jump a {
  flex: 0 0 auto;
  padding: .35rem .55rem;
  color: var(--ana-gunjo);
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
}

.ana-tour-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #fff;
}

.ana-tour-section--tint {
  background: var(--ana-geppaku);
  border-block: 1px solid rgba(39, 117, 182, .14);
}

.ana-tour-section__head {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.ana-tour-overview,
.ana-tour-card-grid,
.ana-tour-three-col {
  display: grid;
  gap: .8rem;
}

.ana-tour-overview {
  grid-template-columns: 1fr;
}

.ana-tour-overview div,
.ana-tour-card,
.ana-tour-list-card,
.ana-tour-day__body,
.ana-tour-faq details {
  border: 1px solid rgba(39, 117, 182, .18);
  border-radius: 8px;
  background: #fff;
}

.ana-tour-overview div {
  padding: .85rem .95rem;
}

.ana-tour-overview dt {
  margin-bottom: .18rem;
  color: var(--ana-hanada);
  font-family: var(--ed-font-ui);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.ana-tour-overview dd {
  margin: 0;
  color: var(--ana-gunjo);
  line-height: 1.45;
}

.ana-tour-card-grid,
.ana-tour-three-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ana-tour-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ana-tour-three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.ana-tour-card,
.ana-tour-list-card {
  padding: 1rem;
}

.ana-tour-card p,
.ana-tour-list-card p {
  margin-bottom: 0;
}

.ana-tour-index-grid {
  display: grid;
  gap: 1rem;
}

.ana-tour-index-card {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(39, 117, 182, .18);
  border-radius: 8px;
  background: #fff;
}

.ana-tour-index-card__media {
  height: clamp(14rem, 24vw, 20rem);
  margin: 0;
  background: var(--ana-geppaku);
}

.ana-tour-index-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ana-tour-index-card__body {
  display: grid;
  gap: .85rem;
  align-content: center;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.ana-tour-index-card__body p {
  margin: 0;
}

.ana-tour-index-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.ana-tour-index-meta span,
.ana-tour-choice-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.75rem;
  padding: .25rem .5rem;
  border: 1px solid rgba(39, 117, 182, .18);
  border-radius: 999px;
  background: rgba(238, 247, 242, .78);
  color: var(--ana-hanada);
  font-family: var(--ed-font-ui);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.ana-tour-index-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.ana-tour-compare {
  overflow-x: auto;
  border: 1px solid rgba(39, 117, 182, .18);
  border-radius: 8px;
  background: #fff;
}

.ana-tour-compare table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ana-tour-compare th,
.ana-tour-compare td {
  padding: .85rem .9rem;
  border-bottom: 1px solid rgba(39, 117, 182, .14);
  color: #314a73;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.ana-tour-compare th {
  color: var(--ana-gunjo);
  font-family: var(--ed-font-ui);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.ana-tour-compare tr:last-child th,
.ana-tour-compare tr:last-child td {
  border-bottom: 0;
}

.ana-tour-route {
  align-items: start;
}

.ana-tour-route-list {
  display: grid;
  gap: .45rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: route;
}

.ana-tour-route-list li {
  counter-increment: route;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .6rem;
  align-items: start;
  color: #314a73;
}

.ana-tour-route-list li::before {
  content: counter(route);
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ana-mizugame);
  color: var(--ana-gunjo);
  font-family: var(--ed-font-ui);
  font-size: .75rem;
  font-weight: 500;
}

.ana-tour-itinerary {
  display: grid;
  gap: .9rem;
}

.ana-tour-day {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: .8rem;
}

.ana-tour-day__marker {
  position: sticky;
  top: 4rem;
  align-self: start;
  padding: .55rem .45rem;
  border-radius: 8px;
  background: var(--ana-gunjo);
  color: #fff;
  font-family: var(--ed-font-ui);
  font-size: .8rem;
  font-weight: 500;
  text-align: center;
}

.ana-tour-day__body {
  padding: 1rem;
}

.ana-tour-day__body p {
  margin: .6rem 0 0;
}

.ana-tour-meta {
  color: var(--ana-hanada);
  font-size: .86rem;
  font-weight: 500;
}

.ana-tour-tip {
  padding-left: .75rem;
  border-left: 3px solid var(--ana-mizugame);
  font-size: .95rem;
}

.ana-tour-day__body img {
  display: block;
  width: 100%;
  max-height: 24rem;
  margin-top: .9rem;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
}

.ana-tour-day__gallery,
.ana-tour-media-grid,
.ana-tour-guest-grid,
.ana-tour-related-grid {
  display: grid;
  gap: .8rem;
}

.ana-tour-day__gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: .9rem;
}

.ana-tour-day__gallery img,
.ana-tour-media-grid img,
.ana-tour-guest-card img,
.ana-tour-related-card img {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.ana-tour-day__gallery img {
  aspect-ratio: 4 / 3;
}

.ana-tour-media-grid,
.ana-tour-guest-grid,
.ana-tour-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ana-tour-media-grid img,
.ana-tour-guest-card img,
.ana-tour-related-card img {
  aspect-ratio: 4 / 3;
}

.ana-tour-guest-card,
.ana-tour-related-card {
  padding: 1rem;
  border: 1px solid rgba(39, 117, 182, .18);
  border-radius: 8px;
  background: #fff;
}

.ana-tour-guest-card blockquote {
  margin: .85rem 0 0;
  color: #314a73;
  font-size: 1rem;
  line-height: 1.6;
}

.ana-tour-guest-card cite,
.ana-tour-related-card span {
  display: block;
  margin-top: .65rem;
  color: var(--ana-hanada);
  font-family: var(--ed-font-ui);
  font-size: .75rem;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
}

.ana-tour-related-card h3 {
  margin-top: .85rem;
}

.ana-tour-list-card ul {
  display: grid;
  gap: .42rem;
  margin: .8rem 0 0;
  padding-left: 1.1rem;
  color: #314a73;
}

.ana-tour-faq {
  display: grid;
  gap: .65rem;
}

.ana-tour-faq details {
  padding: .85rem 1rem;
}

.ana-tour-faq summary {
  cursor: pointer;
  color: var(--ana-gunjo);
  font-family: var(--ed-font-display);
  font-size: 1.05rem;
  font-weight: 560;
}

.ana-tour-faq p {
  margin-bottom: 0;
}

.ana-tour-final {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--ana-gunjo);
}

.ana-tour-final h2,
.ana-tour-final p {
  color: #fff;
}

.ana-tour-final .ana-tour-kicker {
  color: var(--ana-torinoko);
  background: transparent;
  border-color: rgba(255, 255, 255, .25);
}

@media (max-width: 900px) {
  .ana-tour-hero__grid,
  .ana-tour-two-col,
  .ana-tour-route,
  .ana-tour-final__inner,
  .ana-tour-three-col {
    grid-template-columns: 1fr;
  }

  .ana-tour-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ana-tour-card-grid--3,
  .ana-tour-day__gallery,
  .ana-tour-media-grid,
  .ana-tour-guest-grid,
  .ana-tour-related-grid,
  .ana-tour-index-card {
    grid-template-columns: 1fr;
  }

  .ana-tour-index-card__media img {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .ana-tour-card-grid,
  .ana-tour-day {
    grid-template-columns: 1fr;
  }

  .ana-tour-day__marker {
    position: static;
    width: fit-content;
  }

  .ana-tour-actions {
    display: grid;
  }

  .ana-tour-button {
    width: 100%;
  }
}
