html { scroll-behavior: smooth; overflow-x: clip; }
header > div { background: rgba(255, 251, 244, .14); border: 1px solid rgba(255, 255, 255, .32); -webkit-backdrop-filter: blur(10px) saturate(110%); backdrop-filter: blur(10px) saturate(110%); }
.nav-scrolled { background: rgba(255, 251, 244, .2) !important; box-shadow: 0 8px 28px rgba(48, 16, 28, .04); }
.form-message { margin-top: 12px; color: #831c39; font-size: .875rem; font-weight: 600; }
.grain::after { -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
main > section:last-child > div[aria-hidden="true"] { -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.site-icon { display: inline-block; width: 24px; height: 24px; flex: none; vertical-align: middle; }
.hero-subtitle { display: flex; align-items: baseline; gap: 10px; margin-top: 24px; color: #831c39; font-size: 12px; font-weight: 600; line-height: 1.65; letter-spacing: .12em; text-transform: uppercase; }
.hero-subtitle-japanese { flex: none; font-family: 'Noto Sans JP', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
button .site-icon, a .site-icon { width: 19px; height: 19px; }
.whatsapp-contact-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; max-width: 100%; min-height: 56px; margin: 24px auto 0; padding: 14px 22px; border: 1px solid rgba(131, 28, 57, .25); border-radius: 28px; background: rgba(255, 251, 244, .65); color: #831c39; font-size: 13px; font-weight: 700; line-height: 1.6; text-align: center; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.whatsapp-contact-copy { min-width: 0; }
.whatsapp-contact-button:hover { background: #831c39; border-color: #831c39; color: #fffaf5; }
.whatsapp-contact-button:focus-visible { outline: 2px solid #ff2254; outline-offset: 5px; }
.site-section { padding: clamp(64px, 8vw, 112px) 0; scroll-margin-top: 100px; }
.section-shell { width: min(100% - 48px, 1120px); margin-inline: auto; }
.section-eyebrow { display: inline-block; color: #ff2254; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.section-title { margin-top: 20px; color: #1a1a1a; font-size: clamp(32px, 4vw, 52px); font-weight: 900; line-height: 1.07; letter-spacing: -.045em; text-wrap: balance; }
.section-highlight { color: #ff2254; }
.section-muted { color: #77716c; }
.section-description { margin-top: 24px; color: #6c6661; font-size: 16px; line-height: 1.75; max-width: 620px; }
.site-section h3 { color: #1a1a1a; font-weight: 800; letter-spacing: -.025em; }
.site-section :is(button, a, [tabindex]):focus-visible, .mobile-navigation summary:focus-visible { outline: 2px solid #ff2254; outline-offset: 5px; }

/* A horizontal carousel with no relationship to vertical page scrolling. */
.learning-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.learning-intro .section-title { font-size: clamp(32px, 3.9vw, 50px); }
.learning-intro .section-muted { display: inline; }
.learning-carousel { min-width: 0; }
.learning-slides { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.learning-slides::-webkit-scrollbar { display: none; }
.learning-slide { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; flex: 0 0 100%; min-width: 0; min-height: 348px; padding: 38px 32px; scroll-snap-align: start; scroll-snap-stop: always; background: transparent; border: 0; overflow: hidden; }
.learning-slide h3 { position: relative; margin-top: 16px; font-size: 27px; line-height: 1.2; max-width: 300px; }
.learning-slide > p { position: relative; margin-top: 16px; color: #69615d; font-size: 15px; line-height: 1.75; }
.learning-slide .section-eyebrow { position: relative; }
.learning-kanji { position: absolute; right: 22px; top: 16px; z-index: -1; color: rgba(122, 16, 40, .075); font-family: 'Noto Sans JP', sans-serif; font-size: 160px; font-weight: 900; line-height: 1; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; gap: 20px; }
.carousel-dots, .carousel-arrows { display: flex; align-items: center; gap: 9px; }
.carousel-dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #897b79; border: 1px solid transparent; transition: color .2s, border-color .2s; cursor: pointer; }
.carousel-dot[aria-current='true'] { color: #9c1637; border-color: transparent; border-radius: 0; background: transparent; box-shadow: inset 0 -2px #9c1637; }
.circle-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(122, 16, 40, .16); border-radius: 50%; background: rgba(255, 251, 244, .6); color: #7a1028; cursor: pointer; transition: background .2s, opacity .2s; }
.circle-button:hover:not(:disabled) { background: #ffe8ee; }
.circle-button:disabled { opacity: .3; cursor: default; }
.learning-carousel .circle-button { width: 36px; height: 38px; border-color: transparent; background: transparent; }
.learning-carousel .circle-button:hover:not(:disabled) { background: rgba(255, 34, 84, .05); }
.carousel-autoplay[hidden] { display: none; }

/* One continuous horizontal chronology, with native panning on smaller screens. */
.journey-layout { display: block; }
.journey-intro { max-width: 760px; }
.journey-intro .section-title { max-width: 740px; }
.journey-timeline { display: grid; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 0; padding: 8px 8px 24px; margin: 42px 0 0; list-style: none; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c99da7 transparent; overscroll-behavior-x: contain; }
.journey-event { min-width: 0; }
.journey-date { display: block; padding-right: 18px; margin-bottom: 24px; color: #831c39; font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -.04em; white-space: nowrap; }
.journey-event-body { position: relative; border-top: 1px solid rgba(131, 28, 57, .25); padding: 25px 22px 0 0; }
.journey-event:last-child .journey-event-body { border-color: transparent; padding-right: 0; }
.journey-event-body::before { content: ''; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: #831c39; box-shadow: 0 0 0 6px #f7eeeb; }
.journey-event:last-child .journey-event-body::before { background: #ff2254; box-shadow: 0 0 0 6px #ffe5ec; }
.journey-event h3 { min-height: 2.6em; color: #1a1a1a; font-size: 18px; line-height: 1.3; }
.journey-event p { margin-top: 12px; color: #716761; font-size: 14px; line-height: 1.75; }

/* Editorial feature list, with one meaningful symbol per benefit. */
.benefits-section { background: transparent; }
.benefits-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); gap: clamp(36px, 7vw, 88px); align-items: start; }
.benefits-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 0; list-style: none; margin: 0; padding: 0; }
.benefit-item { display: flex; flex-direction: column; gap: 17px; padding: 24px 0; border-top: 1px solid rgba(122, 16, 40, .14); }
.benefit-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #9c1637; background: rgba(255, 34, 84, .065); }
.benefit-item h3 { font-size: 20px; line-height: 1.3; }
.benefit-item p { font-size: 14px; line-height: 1.75; color: #716761; margin-top: 9px; }

/* Explicit rows keep every photograph's edges and spacing aligned. */
.culture-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: end; }
.culture-intro .section-description { margin-bottom: 2px; }
.culture-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 16px; margin-top: 40px; }
.culture-tile { position: relative; min-width: 0; min-height: 0; margin: 0; isolation: isolate; overflow: hidden; border-radius: 22px; border: 1px solid rgba(255, 251, 244, .75); background: #e9ded7; }
.culture-feature { grid-column: span 2; grid-row: span 2; }
.culture-tall { grid-row: span 2; }
.culture-wide { grid-column: span 2; }
.culture-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.culture-feature .culture-photo { object-fit: cover; }
.culture-tile:hover .culture-photo { transform: scale(1.035); }
.culture-shade { position: absolute; inset: 0; background: linear-gradient(transparent 26%, rgba(42, 18, 24, .13) 48%, rgba(42, 18, 24, .78)); }
.culture-caption { position: absolute; inset-inline: 0; bottom: 0; padding: 20px; }
.culture-caption > p:first-child { font-size: 28px; line-height: 1.2; color: #fffaf4; }
.culture-caption > p { color: #fffaf4; }
.culture-caption > p:last-child { font-size: 12px; line-height: 1.55; margin-top: 6px; color: rgba(255, 250, 244, .87); }
.culture-feature .culture-caption { padding: 28px; }
.culture-feature .culture-caption > p:first-child { font-size: 44px; }
.culture-feature .culture-caption > p:last-child { font-size: 15px; }

/* The booking description and calendar form one section. */
.booking-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(32px, 6vw, 76px); }
.booking-intro { padding-top: 20px; }
.booking-meta { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 12px; line-height: 1.6; font-weight: 600; color: #831c39; }
.booking-meta .site-icon { width: 19px; height: 19px; }
.booking-instruction { margin-top: 12px; color: #80746f; font-size: 13px; }
.booking-surface { min-width: 0; border: 0; background: transparent; }
.booking-calendar { mix-blend-mode: multiply; filter: grayscale(1); display: block; width: 100%; min-width: 0; height: 650px; border: 0; background: transparent; }

/* The guide belongs to the page, without an oversized floating card. */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 7vw, 96px); align-items: center; padding-block: 48px; border-block: 1px solid rgba(122, 16, 40, .13); }
.guide-copy .section-title { font-size: clamp(32px, 3.6vw, 46px); }
.guide-title-line { display: block; }
.guide-details { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 24px; }
.guide-image { display: block; width: 100%; filter: drop-shadow(0 12px 14px rgba(56, 32, 17, .1)); }
.guide-benefits { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.guide-benefits li { display: flex; align-items: start; gap: 10px; font-size: 13px; line-height: 1.65; color: #716761; }
.guide-signup { padding: 28px 0; }
.guide-form-heading { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #831c39; text-transform: uppercase; }
.guide-form { display: grid; gap: 18px; margin-top: 24px; }
.guide-form label { display: block; }
.guide-form label > span { font-size: 11px; letter-spacing: .08em; }
.guide-form input { display: block; margin-top: 8px; min-height: 48px; border-radius: 12px; border: 1px solid rgba(122, 16, 40, .16); background: rgba(255, 251, 244, .6); padding: 12px 14px; font-size: 15px; }
.guide-form input:focus { border-color: #ff2254; background: #fffbf4; box-shadow: 0 0 0 3px rgba(255, 34, 84, .08); }
.guide-form button[type=submit] { margin-top: 3px; padding: 15px 18px; font-size: 14px; box-shadow: none; }
.guide-form > p { font-size: 11px; line-height: 1.65; color: #80746f; margin-top: -4px; }

/* A connected sequence, horizontal on desktop and vertical on a phone. */
.process-intro { max-width: 760px; }
.process-timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 48px 0 0; padding: 0; }
.process-timeline::before { content: ''; position: absolute; left: 28px; right: calc(25% - 52px); top: 27px; height: 1px; background: rgba(156, 22, 55, .24); }
.process-step { position: relative; min-width: 0; }
.process-node { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #831c39; background: #fbf2ed; border: 1px solid rgba(156, 22, 55, .24); box-shadow: 0 0 0 7px #f8f1e9; }
.process-step:last-child .process-node { color: #ff2254; border-color: #f9afbf; background: #fff0f3; }
.process-number { display: block; margin-top: 26px; margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .15em; color: #a66774; }
.process-step h3 { font-size: 21px; line-height: 1.3; }
.process-step p { margin-top: 12px; font-size: 14px; line-height: 1.75; color: #716761; }
.process-cta { display: flex; justify-content: center; margin-top: 42px; }

.mobile-navigation { display: none; position: relative; }
.mobile-navigation summary { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(122, 16, 40, .12); color: #831c39; cursor: pointer; list-style: none; }
.mobile-navigation summary::-webkit-details-marker { display: none; }
.mobile-navigation nav { position: absolute; right: 0; top: 50px; width: 240px; max-width: 78vw; border: 1px solid rgba(122, 16, 40, .12); border-radius: 18px; background: #fffbf4; padding: 10px; box-shadow: 0 16px 48px rgba(56, 24, 30, .12); }
.mobile-navigation nav a { display: block; border-radius: 10px; padding: 11px 14px; color: #5d4b4e; font-size: 14px; }
.mobile-navigation nav a:hover, header nav a[aria-current=page] { color: #bc2148; background: rgba(255, 34, 84, .04); }

.workbooks-main { min-height: 80svh; padding-top: 80px; }
.workbooks-section .section-shell, .workbooks-section > div { max-width: 1120px; }
.workbooks-back { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; color: #831c39; margin-bottom: 40px; }
.workbooks-section h2 { max-width: 850px; font-size: clamp(36px, 4.5vw, 60px); line-height: 1.1; letter-spacing: -.045em; }
.workbook-card { background: rgba(255, 251, 244, .65); border: 1px solid rgba(122, 16, 40, .12); box-shadow: none; }
.workbook-cover { position: relative; display: flex; min-height: 180px; margin: -8px -8px 24px; padding: 20px; justify-content: space-between; border-radius: 14px; border: 1px solid rgba(122, 16, 40, .1); color: #831c39; background: #f3e7dd; overflow: hidden; }
.workbook-cover .site-icon { align-self: flex-end; width: 32px; height: 32px; }
.workbook-level { font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.workbook-glyph { position: absolute; right: 18px; top: 25px; font-family: 'Noto Sans JP', sans-serif; font-size: 70px; font-weight: 900; opacity: .18; }
.workbook-card button { margin-top: auto; }
.workbook-card > p { margin-bottom: 24px; }
.certificate-main { min-height: 75svh; padding-top: 96px; }
.certificate-main #certificado { padding-block: 40px 64px; }
.certificate-main .workbooks-back { margin-bottom: 24px; }
.certificate-main #certificado .glass-card { padding: 0; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.certificate-main #certificado form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.certificate-main #certificado .form-message { grid-column: 1 / -1; }
.site-footer { padding: 28px 0 22px; background: rgba(255, 251, 244, .06); -webkit-backdrop-filter: blur(10px) saturate(110%); backdrop-filter: blur(10px) saturate(110%); }
.footer-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 24px; min-width: 0; }
.footer-brand > div { flex: none; }
.footer-brand > p { margin-top: 0; max-width: 260px; font-size: 12px; line-height: 1.65; }
.footer-navigation { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: baseline; gap: 24px; }
.footer-contact { grid-column: 2; grid-row: 1; }
.footer-contact > p { margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0; padding: 0; list-style: none; color: rgba(26, 26, 26, .7); font-size: 13px; line-height: 1.6; }
.footer-links a { display: inline-block; padding-block: 4px; }
.footer-links a:focus-visible { outline: 2px solid #ff2254; outline-offset: 4px; }
.footer-contact .footer-links { gap: 4px 18px; font-size: 12px; }
.footer-instagram-link { color: #831c39; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-instagram-link:hover { color: #ff2254; }
.footer-copyright { display: flex; justify-content: center; border-top: 1px solid rgba(26, 26, 26, .1); padding-top: 16px; margin-top: 24px; color: rgba(26, 26, 26, .45); font-size: 11px; line-height: 1.6; text-align: center; }

@media (max-width: 1023px) {
  .mobile-navigation { display: block; }
  .benefits-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; }
  .benefits-list { grid-template-columns: 1fr; }
  .benefit-item { flex-direction: row; gap: 16px; }
  .benefit-icon { flex: none; }
  .culture-gallery { grid-auto-rows: 190px; }
  .culture-caption { padding: 14px; }
  .culture-caption > p:first-child { font-size: 23px; }
  .booking-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-contact .footer-links { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .footer-layout { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .footer-brand { flex-direction: row; align-items: center; gap: 16px; }
  .footer-brand > p { max-width: 200px; }
  .footer-brand > div { gap: 8px; }
  .footer-brand img { width: 30px; height: 30px; }
  .footer-brand > div > span { font-size: 17px; }
  .footer-navigation { display: block; }
  .footer-navigation > p { margin-bottom: 8px; }
  .footer-links { gap: 6px 18px; }
  .footer-contact .footer-links { flex-direction: row; }
  .footer-copyright { margin-top: 20px; }
  .section-shell { width: min(100% - 40px, 1120px); }
  .section-description { font-size: 15px; }
  .learning-layout, .journey-layout, .benefits-layout, .booking-layout, .guide-layout, .culture-intro { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .learning-slide { padding: 30px 26px; min-height: 310px; }
  .learning-slide h3 { font-size: 25px; }
  .learning-intro .section-title { max-width: 540px; }
  .journey-intro .section-title { max-width: 540px; }
  .journey-timeline { grid-template-columns: repeat(6, 220px); margin-top: 32px; }
  .journey-date { font-size: 19px; }
  .journey-event h3 { font-size: 19px; }
  .benefits-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
  .benefit-item { flex-direction: column; }
  .benefit-item h3 { font-size: 19px; }
  .culture-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 12px; margin-top: 30px; }
  .culture-feature { grid-row: span 1; height: 340px; }
  .culture-gallery { grid-template-rows: 340px; }
  .culture-tall { grid-row: span 1; }
  .culture-wide { grid-column: span 1; }
  .culture-tile { border-radius: 18px; }
  .culture-caption > p:last-child { font-size: 11px; }
  .culture-caption > p:first-child { font-size: 24px; }
  .booking-intro { padding-top: 0; }
  .booking-surface { margin-inline: -4px; }
  .guide-layout { padding-block: 32px; gap: 12px; }
  .guide-copy .section-title { max-width: 520px; }
  .guide-details { grid-template-columns: 130px minmax(0, 1fr); }
  .guide-signup { padding-block: 20px 4px; }
  .process-timeline { display: block; margin-top: 36px; }
  .process-timeline::before { display: none; }
  .process-step:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 26px; bottom: -26px; width: 1px; background: rgba(156, 22, 55, .24); }
  .process-node { z-index: 1; }
  .process-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 22px; padding-bottom: 30px; }
  .process-step:last-child { padding-bottom: 0; }
  .process-node { width: 52px; height: 52px; }
  .process-number { margin: 3px 0 6px; }
  .process-step h3 { font-size: 21px; }
  .process-step p { margin-top: 8px; }
  .process-cta { margin-top: 32px; }
}
@media (max-width: 639px) {
  .certificate-main #certificado form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .section-shell { width: calc(100% - 32px); }
  .benefits-list { grid-template-columns: 1fr; }
  .benefit-item { flex-direction: row; }
  .journey-date { font-size: 17px; }
  .culture-gallery { grid-auto-rows: 250px; gap: 10px; }
  .culture-caption { padding: 12px; }
  .culture-caption > p:first-child { font-size: 22px; }
  .guide-details { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-section *, .site-section *::before { scroll-behavior: auto !important; transition-duration: 0s !important; animation: none !important; }
}

/* Crossfade translated copy while respecting the visitor's motion preference. */
::view-transition-old(root) { animation-duration: 180ms; animation-timing-function: ease; }
::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0s; }
}
