:root {
  --bg: #FDFCFB;
  --surface: #FFFFFF;
  --text: #343642;
  --text-sub: #737373;
  --accent: #5CB8E4;
  --accent-tint: #EAF6FC;
  --gradient-start: #F6F0F2;
  --gradient-end: #A3E5FF;
  --line: #E7E5E2;
  --serif: 'Zen Old Mincho', serif;
  --sans: 'Zen Kaku Gothic New', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.logo {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.logo img { height: 60px; width: auto; display: block; }
nav a {
  font-size: 14px;
  color: var(--text-sub);
  margin-left: 28px;
}
nav a:hover { color: var(--accent); }

nav a.btn {
  display: inline-block;
  white-space: nowrap;
  padding: 9px 20px;
  font-size: 13px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 42px);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 760px;
}
.hero-nowrap { white-space: nowrap; }
.hero p.lead {
  color: var(--text-sub);
  font-size: 16px;
  max-width: 520px;
}

/* Hero background photo slideshow (index page only) */
.hero-photo .wrap { z-index: 2; }
.hero-photo .eyebrow { color: #fff; }
.hero-photo h1 { color: #fff; }
.hero-photo p { color: rgba(255, 255, 255, 0.88); }

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  animation-name: hero-slide-cycle;
  animation-duration: 21s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.hero-slide.slide-1 { animation-delay: 0s; }
.hero-slide.slide-2 { animation-delay: 7s; }
.hero-slide.slide-3 { animation-delay: 14s; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--text);
  opacity: 0.6;
  pointer-events: none;
}

@keyframes hero-slide-cycle {
  0%      { opacity: 0; transform: scale(1); }
  7.14%   { opacity: 1; transform: scale(1.02); }
  33.33%  { opacity: 1; transform: scale(1.06); }
  40.48%  { opacity: 0; transform: scale(1.08); }
  100%    { opacity: 0; transform: scale(1.08); }
}
@keyframes hero-slide-cycle-fade-only {
  0%      { opacity: 0; }
  7.14%   { opacity: 1; }
  33.33%  { opacity: 1; }
  40.48%  { opacity: 0; }
  100%    { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation-name: hero-slide-cycle-fade-only; transform: none; }
}

@media (max-width: 640px) {
  .hero-photo { padding: 70px 0 60px; }
}

/* Section */
.section { padding: 70px 0; border-top: 1px solid var(--line); }
.section-title {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 40px;
}
.section-lead {
  color: var(--text-sub);
  font-size: 15px;
  max-width: 560px;
  margin-bottom: 40px;
}

/* Pain point list */
.pain-list { list-style: none; max-width: 620px; }
.pain-list li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--text);
}
.pain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Value grid */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.value-grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.value-item {
  background: var(--surface);
  padding: 32px;
}
.value-item h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 10px;
}
.value-item p { color: var(--text-sub); font-size: 14.5px; }

/* Profile */
.profile {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.profile .avatar {
  width: 160px; height: 160px;
  background: var(--accent-tint);
  border-radius: 2px;
  overflow: hidden;
}
.profile .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 10px; }
.profile p { color: var(--text-sub); font-size: 14.5px; }

/* Testimonials */
.testimonial {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.testimonial p.quote { font-size: 15px; margin-bottom: 12px; }
.testimonial .who { font-size: 13px; color: var(--text-sub); }

/* Before / After */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ba-card { background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.ba-card .tag { font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.ba-card p { font-size: 14.5px; color: var(--text-sub); }

/* Steps */
.step-list { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step .num {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 20px;
}
.step:not(:last-child) .num::after {
  content: '↓';
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-sub);
}
.step h3 { font-family: var(--serif); font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--text-sub); font-size: 14.5px; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px;
}
.price-card .label { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.price-card .price {
  font-family: var(--serif);
  font-size: 30px;
  margin-bottom: 4px;
}
.price-card .strike {
  font-size: 13px;
  color: var(--text-sub);
  text-decoration: line-through;
  margin-bottom: 20px;
}
.price-card ul { list-style: none; margin-bottom: 24px; }
.price-card li {
  font-size: 14px;
  color: var(--text-sub);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn {
  display: inline-block;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 82%, #000); }
.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-block { display: block; text-align: center; }

/* CTA band */
.cta-band {
  background: var(--accent-tint);
  color: var(--text);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--text);
}
.cta-band .section-lead { color: var(--text-sub); }
.cta-band a.btn-outline { border-color: var(--accent); color: var(--accent); }
.cta-band a.btn-outline:hover { background: var(--accent); color: #fff; }

/* Footer */
footer.site {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-sub);
  font-size: 13px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer-nav a { font-size: 14px; color: var(--text-sub); }
.footer-nav a:hover { color: var(--accent); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-links a { font-size: 13px; color: var(--text-sub); }
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
}
.footer-legal a { font-size: 12px; color: var(--text-sub); }
.footer-legal a:hover { color: var(--accent); }

/* Legal documents (privacy / legal notice) */
.legal-doc h2 { font-family: var(--serif); font-size: 19px; margin: 40px 0 12px; }
.legal-doc p { color: var(--text-sub); font-size: 15px; margin: 0 0 1.4em; }
.legal-doc ul { margin: 0 0 1.4em; padding-left: 1.4em; color: var(--text-sub); font-size: 15px; }
.legal-doc li { margin-bottom: 0.5em; }
.legal-doc a { color: var(--accent); }
.legal-updated { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-sub); }

@media (max-width: 640px) {
  .value-grid, .before-after, .price-grid { grid-template-columns: 1fr; }
  .value-grid.cols-3 { grid-template-columns: 1fr; }
  .value-grid.cols-4 { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile .avatar { width: 80px; height: 80px; }
  nav a { margin-left: 16px; }
}

/* Program list (top page) */
.programs { padding-bottom: 20px; }
.program-group-title {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--accent);
  margin: 36px 0 4px;
}
.program-group-title:first-of-type { margin-top: 0; }
.program {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.program-tag { font-size: 13px; color: var(--accent); padding-top: 4px; }
.program-body h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.program-body p { color: var(--text-sub); font-size: 15px; max-width: 520px; }
.program-link {
  align-self: center;
  font-size: 14px;
  white-space: nowrap;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}
.program-link:hover { background: var(--accent); color: #fff; }
.program.is-soon .program-link { border-color: var(--line); color: var(--text-sub); pointer-events: none; }

/* Partner band */
.partner { background: var(--accent-tint); padding: 56px 0; margin-top: 20px; }
.partner-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.partner h2 { font-family: var(--serif); font-size: 20px; margin-bottom: 10px; color: var(--text); }
.partner p { color: var(--text-sub); font-size: 15px; max-width: 460px; }
.partner-link { font-size: 14px; padding: 12px 24px; background: var(--accent); color: #fff; border-radius: 2px; white-space: nowrap; }

@media (max-width: 640px) {
  .program { grid-template-columns: 1fr; gap: 10px; }
  .program-link { justify-self: start; }
  .partner-inner { flex-direction: column; align-items: flex-start; }
}

/* Roadmap flow diagram */
.roadmap-diagram-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.roadmap-diagram {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .roadmap-diagram { width: 680px; max-width: none; }
}

/* Blog */
.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.blog-filter-btn {
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-sub);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.blog-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.blog-filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.blog-post-date { font-size: 13px; color: var(--text-sub); }
.author-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 999px;
}
.author-badge.badge-shirasaka { background: var(--accent-tint); color: var(--accent); }
.author-badge.badge-kawamura { background: color-mix(in srgb, var(--gradient-end) 35%, var(--surface)); color: color-mix(in srgb, var(--gradient-end) 55%, #000); }
.author-badge.badge-jimukyoku { background: var(--line); color: var(--text-sub); }

.blog-empty { color: var(--text-sub); font-size: 14px; padding: 40px 0; text-align: center; }

/* Blog card (list) */
.blog-card {
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.blog-card:last-child { border-bottom: none; }
.blog-card h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 10px; transition: color 0.15s ease; }
.blog-card:hover h3 { color: var(--accent); }
.blog-card-excerpt { color: var(--text-sub); font-size: 15px; }

/* Blog article (individual post page) */
.blog-back-link { display: inline-block; font-size: 13px; color: var(--text-sub); margin-bottom: 24px; }
.blog-back-link:hover { color: var(--accent); }
.blog-article h1 { font-family: var(--serif); font-size: 26px; line-height: 1.5; margin: 18px 0 28px; }
.blog-post-image { width: 100%; max-width: 480px; border-radius: 4px; margin-bottom: 24px; display: block; }
.blog-post-body p { color: var(--text-sub); font-size: 15px; margin: 0 0 1.6em; }
.blog-post-body p:last-child { margin-bottom: 0; }

/* Contact form */
.form-lead { color: var(--text-sub); font-size: 15px; margin-bottom: 36px; }
.form-notice {
  display: none;
  border: 1px solid var(--accent);
  background: var(--accent-tint);
  color: var(--text);
  font-size: 14px;
  padding: 14px 18px;
  margin-bottom: 28px;
}
.form-notice.show { display: block; }
.contact-form .field { margin-bottom: 26px; }
.contact-form label { display: block; font-family: var(--serif); font-size: 15px; margin-bottom: 8px; }
.contact-form .req { margin-left: 8px; font-family: var(--sans); font-size: 11px; color: var(--accent); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
}
.contact-form textarea { min-height: 200px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { color: var(--text-sub); font-size: 13px; margin: 8px 0 28px; }
.form-privacy a { color: var(--accent); }
.contact-form button.btn { border: none; cursor: pointer; font-family: var(--sans); }
