/* Styles for the Japanese service guide. Shared tokens and components come from landing.css. */

.guide-page {
  --guide-content-width: 1080px;
}

.guide-container {
  width: min(100% - 2rem, var(--guide-content-width));
  margin-inline: auto;
}

.guide-skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary-color);
  padding: 0.7rem 1rem;
  box-shadow: var(--card-shadow);
}

.guide-skip-link:focus {
  transform: translateY(0);
}

.guide-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse at 85% 12%, rgba(207, 111, 86, 0.10), transparent 35%),
    linear-gradient(180deg, rgba(232, 241, 236, 0.68), rgba(249, 247, 244, 0.2));
  text-align: center;
}

.guide-hero__inner {
  max-width: 900px;
}

.guide-eyebrow {
  margin-bottom: 0.7rem;
  color: var(--primary-color);
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 18ch;
  margin: 0 auto;
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.3;
}

.guide-hero__lead {
  margin: 1rem auto 0;
  color: var(--primary-color);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 700;
}

.guide-hero__copy {
  max-width: 66ch;
  margin: 1rem auto 0;
  color: var(--text-secondary);
}

.guide-hero__principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 2rem 0;
  text-align: left;
}

.guide-hero__principles p,
.guide-coach-card,
.guide-step,
.guide-feature-card,
.guide-faq__item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.guide-hero__principles p {
  padding: 1rem 1.1rem;
}

.guide-hero__principles strong,
.guide-hero__principles span {
  display: block;
}

.guide-hero__principles strong {
  margin-bottom: 0.4rem;
  color: var(--primary-color);
}

.guide-hero__principles span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.guide-actions .btn {
  white-space: normal;
  text-align: center;
}

.guide-section {
  padding: clamp(3.25rem, 7vw, 5rem) 0;
}

.guide-section--tint {
  background: rgba(232, 241, 236, 0.55);
}

.guide-section__header {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.guide-section__header h2,
.guide-feature-layout h2,
.guide-safety h2,
.guide-bottom-cta h2 {
  color: var(--text-primary);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.35;
}

.guide-section__header > p:last-child,
.guide-feature-layout > div:first-child > p:not(.guide-eyebrow),
.guide-bottom-cta > .guide-container > p {
  margin-top: 0.7rem;
  color: var(--text-secondary);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.guide-step {
  padding: 1.4rem;
}

.guide-step__number {
  display: inline-grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  font-family: var(--font-latin);
  font-weight: 700;
}

.guide-step h3,
.guide-feature-card h3 {
  margin-bottom: 0.55rem;
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.45;
}

.guide-step p,
.guide-coach-card > p:not(.guide-coach-card__label),
.guide-feature-card p,
.guide-faq__item p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.guide-step p + p,
.guide-feature-card h3 + p + h3,
.guide-feature-card p + p {
  margin-top: 0.85rem;
}

.guide-inline-note {
  max-width: 78ch;
  margin: 1.5rem auto 0;
  border-left: 3px solid var(--accent-warm-gold);
  padding: 0.35rem 0 0.35rem 1rem;
  color: var(--text-secondary);
}

.guide-page a:not(.btn):not(.brand-logo):not(.footer-logo) {
  color: var(--primary-hover);
  text-underline-offset: 0.18em;
}

.guide-coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}

.guide-coach-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.35rem;
}

.guide-coach-card__label {
  align-self: flex-start;
  margin-bottom: 0.8rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.guide-coach-card h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.guide-coach-card h3 span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}

.guide-coach-card > p:not(.guide-coach-card__label) {
  flex: 1;
  margin: 0.75rem 0 1rem;
}

.guide-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  min-height: 2.75rem;
  font-weight: 700;
}

.guide-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.guide-feature-layout > div:first-child > .btn {
  margin-top: 1.25rem;
}

.guide-feature-card {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.guide-number-list {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  color: var(--text-secondary);
}

.guide-number-list li {
  padding-left: 0.25rem;
  line-height: 1.7;
}

.guide-number-list strong {
  color: var(--text-primary);
}

.guide-small-note {
  margin-top: 1rem;
  border-top: 1px solid var(--card-border);
  padding-top: 0.9rem;
  font-size: 0.9rem;
}

.guide-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  padding-left: 1.3rem;
  color: var(--text-secondary);
}

.guide-tips li {
  padding-left: 0.2rem;
}

.guide-faq {
  display: grid;
  gap: 0.8rem;
  max-width: 900px;
  margin: 0 auto;
}

.guide-faq__item {
  padding: 1.2rem 1.4rem;
}

.guide-faq__item h3 {
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.5;
}

.guide-safety {
  padding: clamp(2.75rem, 6vw, 4rem) 0;
  background: #f3eee5;
}

.guide-safety__inner {
  max-width: 900px;
}

.guide-safety h2 {
  margin-bottom: 1rem;
}

.guide-safety ul {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.3rem;
  color: var(--text-primary);
}

.guide-safety li {
  padding-left: 0.2rem;
}

.guide-bottom-cta {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: linear-gradient(180deg, rgba(232, 241, 236, 0.45), rgba(249, 247, 244, 0.5));
  text-align: center;
}

.guide-bottom-cta > .guide-container > p {
  max-width: 65ch;
  margin: 0.7rem auto 1.5rem;
}

.guide-footer-logo {
  color: var(--text-primary);
  font-family: var(--font-latin);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 768px) {
  .guide-page .header-container {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    padding: 0.7rem 1rem;
  }

  .guide-page .site-nav {
    display: block;
    order: 3;
    flex-basis: 100%;
  }

  .guide-page .site-nav .nav-list {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
  }

  .guide-page .site-nav .nav-link {
    font-size: 0.85rem;
  }

  .guide-hero__principles,
  .guide-steps,
  .guide-feature-layout,
  .guide-tips {
    grid-template-columns: 1fr;
  }

  .guide-hero__principles {
    text-align: left;
  }

  .guide-feature-layout {
    gap: 1.5rem;
  }

  .guide-section__header {
    text-align: left;
  }

  .guide-hero .guide-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-hero .guide-actions .btn,
  .guide-bottom-cta .guide-actions .btn {
    width: 100%;
    min-height: 3rem;
  }
}

@media (max-width: 360px) {
  .guide-container {
    width: min(100% - 1.25rem, var(--guide-content-width));
  }

  .header-container {
    gap: 0.4rem;
    padding-inline: 0.65rem;
  }

  .guide-page .brand-logo {
    gap: 0.25rem;
    font-size: 1.05rem;
  }

  .guide-page .header-cta .btn {
    padding-inline: 0.65rem;
    font-size: 0.78rem;
  }

  .guide-step,
  .guide-coach-card,
  .guide-faq__item {
    padding: 1rem;
  }
}

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