/* ==========================================================
   Destinations: home topic grid / Places banner, Places page, Yufuin page
   Design source: Canva (mobile, 375px). PC = same column, centered.
   ========================================================== */

:root {
  --ts-red: #c1001c;
  --ts-beige: #e5dcd0;
  --ts-navy: #0a2d5f;
  --ts-navy-shadow: #092b5e;
  --ts-blue: #5292c3;
  --ts-sky: #e9f9ff;
  --ts-sky-pale: #f0faff;
}

/* ---------- shared ---------- */
/* Footer wave SVG is transparent: match the colour of the page above it */
.dest-places footer {
  background-color: var(--ts-beige);
}

.dest-yufuin footer {
  background-color: var(--ts-sky);
}

.dest_heading {
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(18px, 5.2vw, 24px);
  color: #222;
  line-height: 1.3;
}

.dest_heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dest_heading span::before,
.dest_heading span::after {
  content: '';
  flex: 0 0 auto;
  width: 0.9em;
  height: 1.1em;
  background: url('../images/heading_slash_l.png') center / contain no-repeat;
}

.dest_heading span::after {
  background-image: url('../images/heading_slash_r.png');
}

.dest_arrow {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ts-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 6l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- home: hero (text) ---------- */
.home_hero {
  background: #fff;
  text-align: center;
}

.home_hero_inner {
  padding: clamp(28px, 7vw, 56px) 20px 0;
}

.home_hero_title {
  display: inline-block;
  margin: 0;
  padding-bottom: clamp(6px, 1.6vw, 12px);
  border-bottom: 2px solid var(--ts-red);
  line-height: 1.12;
}

.home_hero_l1,
.home_hero_l2 {
  display: block;
}

.home_hero_l1 {
  color: #1a1a1a;
  font-size: clamp(24px, 6.4vw, 44px);
}

.home_hero_l2 {
  color: var(--ts-red);
  font-size: clamp(31px, 8.6vw, 60px);
  letter-spacing: -0.005em;
}

.home_hero_l2 small {
  font-size: 0.5em;
  letter-spacing: 0;
}

.home_hero_sub {
  margin: clamp(8px, 2vw, 14px) 0 0;
  color: var(--ts-red);
  font-size: clamp(13px, 3.75vw, 21px);
  line-height: 1.35;
}

.lang-ja .home_hero_title,
.lang-ja .home_hero_sub,
.lang-zh .home_hero_title,
.lang-zh .home_hero_sub,
.lang-zh-tw .home_hero_title,
.lang-zh-tw .home_hero_sub,
.lang-ko .home_hero_title,
.lang-ko .home_hero_sub {
  font-family: "m-plus-2p", sans-serif;
}

.lang-ja .home_hero_sub,
.lang-zh .home_hero_sub,
.lang-zh-tw .home_hero_sub,
.lang-ko .home_hero_sub {
  font-size: clamp(12px, 3.4vw, 19px);
}

/* White -> beige wave (three crests, same shape as the design), button sits on it */
.home_hero_wave {
  position: relative;
  margin-top: clamp(14px, 4vw, 26px);
  padding-bottom: clamp(14px, 4vw, 24px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1500 65' preserveAspectRatio='none'%3E%3Cpath d='M0 65C90 65 160 0 250 0S410 65 500 65 660 0 750 0 910 65 1000 65 1160 0 1250 0 1410 65 1500 65Z' fill='%23e5dcd0'/%3E%3C/svg%3E") top / 100% clamp(18px, 4.33vw, 48px) no-repeat,
    linear-gradient(transparent clamp(18px, 4.33vw, 48px), var(--ts-beige) 0);
}

.home_hero_wave .home_about_button {
  position: relative;
  z-index: 1;
}

/* ---------- home: "What is Touristship?" ---------- */
.home_about_button {
  display: inline-block;
  min-width: min(62%, 300px);
  padding: 7px 44px 7px 28px;
  border: 1.5px solid #000;
  border-radius: 999px;
  background: #fff url('../images/home_btn_pattern.png') center / cover;
  color: #000;
  text-decoration: none;
  font-size: clamp(15px, 4.4vw, 19px);
  line-height: 1.3;
  position: relative;
  box-sizing: border-box;
}

.home_about_button::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--ts-red);
  border-right: 2px solid var(--ts-red);
  transform: translateY(-50%) rotate(45deg);
}

.home_about_button:hover {
  opacity: 0.85;
}

/* ---------- home: topic grid (one image + positioned links) ---------- */
.home_topics {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 12px 36px;
}

.home_topics_grid {
  position: relative;
  container-type: inline-size;
}

.home_topics_art {
  display: block;
  width: 100%;
  height: auto;
}

/* Cell geometry, as % of the 940x848 grid artwork */
.home_topic {
  position: absolute;
  width: 29.79%;
  height: 31.01%;
  border-radius: 6cqw;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.home_topic:hover {
  transform: translateY(-2px);
}

.home_topic_c0 { left: 3.19%; }
.home_topic_c1 { left: 35.32%; }
.home_topic_c2 { left: 67.45%; }
.home_topic_r0 { top: 1.53%; }
.home_topic_r1 { top: 34.55%; }
.home_topic_r2 { top: 67.57%; }

/* Label sits on the coloured band at the bottom of each tile (arrow is part of the art) */
.home_topic_label {
  position: absolute;
  left: 7%;
  right: 17%;
  top: 71.5%;
  height: 25.5%;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 2.9cqw;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

/* Tiles whose band is yellow use dark text, as in the design */
.home_topic_c1.home_topic_r0 .home_topic_label,
.home_topic_c0.home_topic_r1 .home_topic_label,
.home_topic_c2.home_topic_r2 .home_topic_label {
  color: #111;
}

.lang-zh .home_topic_label,
.lang-zh-tw .home_topic_label,
.lang-ko .home_topic_label {
  font-family: "m-plus-2p", sans-serif;
  font-size: 2.6cqw;
}

.lang-ja .home_topic_label {
  font-family: "m-plus-2p", sans-serif;
  font-size: 3.2cqw;
}

.home_topic_message {
  position: absolute;
  left: 35.32%;
  width: 29.79%;
  top: 66%;
  height: 33%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.home_topic_message img {
  width: 92%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* ---------- home: Places banner ---------- */
.home_places_banner {
  display: block;
  position: relative;
  margin-top: 2.2%;
  container-type: inline-size;
  text-decoration: none;
  color: #222;
  transition: transform 0.15s ease;
}

.home_places_banner:hover {
  transform: translateY(-2px);
}

.home_places_banner img {
  display: block;
  width: 100%;
  height: auto;
}

.home_places_banner_title,
.home_places_banner_sub {
  position: absolute;
  left: 4%;
  right: 3%;
  text-align: center;
  line-height: 1.15;
}

.home_places_banner_title {
  top: 14%;
  height: 25.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.8cqw;
}

.home_places_banner_sub {
  top: 46%;
  padding: 0 18% 0 14%;
  font-size: 3.1cqw;
}

.lang-ja .home_places_banner_title,
.lang-ja .home_places_banner_sub,
.lang-zh .home_places_banner_title,
.lang-zh .home_places_banner_sub,
.lang-zh-tw .home_places_banner_title,
.lang-zh-tw .home_places_banner_sub,
.lang-ko .home_places_banner_title,
.lang-ko .home_places_banner_sub {
  font-family: "m-plus-2p", sans-serif;
}

.lang-ja .home_places_banner_sub,
.lang-zh .home_places_banner_sub,
.lang-zh-tw .home_places_banner_sub,
.lang-ko .home_places_banner_sub {
  font-size: 2.75cqw;
  padding: 0 15% 0 13%;
}

/* ---------- home: fit hero + topics + Places banner in one phone screen ---------- */
/* Grid + banner height is ~1.213x their width; the rest (header, hero, heading) is ~300px.
   Width is capped by the screen height, with a floor so the tile labels stay readable. */
@media (max-width: 750px) {
  .home_hero_inner {
    padding-top: 16px;
  }

  .home_hero_wave {
    margin-top: 10px;
    padding-bottom: 10px;
  }

  .home_content_area .dest_heading {
    margin-bottom: 8px;
  }

  .home_topics {
    max-width: max(270px, min(720px, calc((100vh - 306px) / 1.213)));
    max-width: max(270px, min(720px, calc((100svh - 306px) / 1.213)));
    padding-bottom: 12px;
  }
}

/* ---------- Places page ---------- */
.places_intro {
  background: #fff;
  text-align: center;
}

.places_title {
  margin: 0 auto;
  padding: 36px 24px 0;
  max-width: 620px;
  font-size: clamp(28px, 8.4vw, 42px);
  line-height: 1.2;
  color: #1a1a1a;
  position: relative;
  z-index: 1;
}

.places_hero {
  display: block;
  width: 100%;
  max-width: 750px;
  height: auto;
  margin: 0 auto;
}

/* Fill the area beside the (max 750px) hero so the wave joins the page edges */
@media (min-width: 751px) {
  .places_intro {
    /* hero is 750x225 at this width; the wave meets the image edges ~119px above its bottom */
    background: linear-gradient(#fff calc(100% - 119px), var(--ts-beige) calc(100% - 119px));
  }
}

.places_body {
  padding: 14px 20px 60px;
}

.places_list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 660px;
  display: grid;
  gap: 12px;
}

.places_card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 16px 2px 2px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1a1a;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.places_card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.places_card_img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px 0 0 6px;
  flex: 0 0 auto;
}

.places_card_text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.places_card_name {
  font-size: 24px;
}

.places_card_pref {
  font-size: 17px;
  color: #7d776f;
}

.lang-ja .places_card_text,
.lang-zh .places_card_text,
.lang-zh-tw .places_card_text,
.lang-ko .places_card_text {
  font-family: "m-plus-2p", sans-serif;
}

.places_soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
  background: #fffbf5;
  border-radius: 8px;
  color: #7d776f;
  font-size: 17px;
  text-align: center;
}

.places_soon_lock {
  width: 18px;
  height: 21px;
  color: #b9b2a8;
}

/* ---------- Yufuin page ---------- */
.yf_page {
  background: var(--ts-sky);
  color: var(--ts-navy);
  font-family: "M PLUS 2", sans-serif;
}

.lang-en .yf_page {
  font-family: "Figtree", "M PLUS 2", sans-serif;
}

.lang-zh .yf_page { font-family: "Noto Sans SC", sans-serif; }
.lang-zh-tw .yf_page { font-family: "Noto Sans TC", sans-serif; }
.lang-ko .yf_page { font-family: "Noto Sans KR", sans-serif; }

/* Korean: wrap at spaces, not in the middle of words */
.lang-ko .yf_page,
.lang-ko .home_topics,
.lang-ko .places_page {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.yf_hero_wrap {
  background: linear-gradient(#fff 0, #fff 42%, var(--ts-sky) 62%);
}

.yf_hero {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  container-type: inline-size;
}

.yf_place {
  margin: 0;
  padding: 18px 22px 0;
  font-size: 15px;
  color: #7d776f;
  position: relative;
  z-index: 2;
}

.yf_place_name {
  color: var(--ts-red);
  font-size: 26px;
  margin-right: 6px;
}

.yf_hero_title {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 19cqw;
  margin: 0;
  font-weight: 800;
  color: var(--ts-navy);
}

/* Arched title (SVG text on paths); font-size is in SVG units (viewBox 375 wide) */
.yf_hero_arc {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.yf_hero_arc text {
  fill: var(--ts-navy);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.lang-en .yf_hero_arc text {
  font-family: 'faricy-new-web', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0;
}

.lang-ja .yf_hero_arc text {
  font-family: 'm-plus-2p', 'M PLUS 2', sans-serif;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.yf_hero_img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2cqw;
}

.yf_body {
  max-width: 750px;
  margin: 0 auto;
  padding: 30px 0 70px;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
}

.yf_body p {
  margin: 0 0 0.2em;
}

/* Japanese / Chinese body copy uses a first-line indent like the design */
.lang-ja .yf_body p,
.lang-zh .yf_body p,
.lang-zh-tw .yf_body p {
  text-indent: 1em;
}

.yf_body strong {
  font-weight: 700;
}

.yf_section_title {
  margin: 0 0 6px;
  text-align: center;
  color: var(--ts-blue);
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.3;
  letter-spacing: 0.06em;
}

/* TOC */
.yf_toc {
  padding: 10px 24px 40px;
}

.yf_toc_lead {
  text-align: center;
  color: var(--ts-blue);
  font-weight: 700;
  margin-bottom: 18px !important;
  text-indent: 0 !important;
}

.yf_toc_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.yf_toc_list a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 6px 14px;
  background: #fff;
  border: 1.5px solid var(--ts-navy-shadow);
  border-radius: 6px;
  box-shadow: 3px 4px 0 var(--ts-navy-shadow);
  color: var(--ts-navy);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.yf_toc_list a:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 2px 0 var(--ts-navy-shadow);
}

.yf_toc_num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ts-blue);
  color: #fff;
  font-family: "Figtree", sans-serif;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yf_toc_column a {
  background: var(--ts-sky-pale);
  padding-left: 0;
  gap: 10px;
  overflow: hidden;
}

.yf_toc_chip {
  background: var(--ts-blue);
  color: #fff;
  font-family: "Figtree", sans-serif;
  font-size: 13px;
  padding: 2px 10px;
  border: 1px solid var(--ts-navy-shadow);
  border-left: 0;
}

.yf_toc_column .yf_toc_text {
  color: var(--ts-blue);
}

/* About */
.yf_about {
  padding: 30px 0 50px;
}

.yf_about_box {
  background: #fff;
  margin: 14px 24px 0;
  padding: 22px 18px 26px;
}

.yf_about_box > p:first-child {
  margin-bottom: 1.2em;
}

.yf_tagline {
  margin: 40px 24px 10px !important;
  text-align: center;
  text-indent: 0 !important;
  color: var(--ts-blue);
  font-weight: 700;
  font-size: 18px;
}

.yf_intro {
  margin: 0 24px !important;
  text-align: center;
  text-indent: 0 !important;
}

/* Tip ("💡") blocks */
.yf_tip {
  margin: 18px 0 8px;
}

.yf_tip_head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 14px;
  margin: 0 0 12px;
  background: #fff;
  border-radius: 0 8px 8px 0;
}

.yf_about_box .yf_tip_head {
  background: var(--ts-sky-pale);
  margin-left: -18px;
  margin-right: 4px;
  padding-left: 18px;
}

.yf_bulb {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
}

.yf_bulb svg {
  display: block;
  width: 100%;
  height: 100%;
}

.yf_tip_title {
  line-height: 1.35;
}

.yf_tip_eyebrow {
  display: block;
  font-size: 13px;
  color: var(--ts-blue);
  font-weight: 700;
  margin-bottom: 2px;
}

.yf_tip_title h4 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--ts-navy);
}

/* Items 01-06 */
.yf_item {
  padding: 30px 24px 34px;
  scroll-margin-top: 10px;
}

.yf_item > .yf_tip {
  margin-left: -24px;
}

.yf_item > .yf_tip > p {
  margin-left: 24px;
}

.yf_item_title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ts-navy);
}

.yf_item_num {
  flex: 0 0 auto;
  font-family: "Figtree", sans-serif;
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  color: var(--ts-blue);
  letter-spacing: -0.02em;
}

.yf_item_img {
  display: block;
  width: 100%;
  height: auto;
  margin: 4px 0 14px;
}

/* Column */
.yf_column {
  padding: 40px 18px 10px;
  scroll-margin-top: 10px;
}

.yf_column .yf_section_title {
  margin-bottom: 18px;
}

.yf_column_card {
  background: #ffffe6;
  border-radius: 8px;
  padding: 20px 16px 22px;
  margin-bottom: 16px;
}

.yf_column_card h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #f6dc3c;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ts-navy);
}

.yf_column_num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff42e;
  color: var(--ts-blue);
  font-family: "Figtree", sans-serif;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yf_more {
  text-align: center;
  text-indent: 0 !important;
  padding: 40px 24px 0;
}

.yf_more a {
  display: inline-block;
  padding: 8px 46px 8px 30px;
  border-radius: 999px;
  background: var(--ts-blue);
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  position: relative;
}

.yf_more a::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

.yf_more a:hover {
  opacity: 0.85;
}

@media (min-width: 751px) {
  .yf_body {
    font-size: 17px;
  }
}
