/* === Photo strip === */

.photo-strip {
  background: var(--navy);
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15;
  height: 400px;
  overflow: hidden;
}

.photo-strip img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .photo-strip {
    height: 300px;
  }

  .photo-strip img:nth-child(1),
  .photo-strip img:nth-child(2) {
    display: none;
  }

  .photo-strip img:nth-child(3) {
    height: 100%;
    width: auto;
  }
}

/* === Language toggle === */

.lang-toggle {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.lang-toggle-mobile {
  display: none;
}

/* Language visibility - JP is default */
.en { display: none !important; }

/* EN mode */
body.lang-en .en { display: block !important; }
body.lang-en .jp { display: none !important; }

/* Grid containers in EN mode */
body.lang-en .trial-two-col.en { display: grid !important; }

/* Inline span overrides */
body.lang-en span.en { display: inline !important; }
body.lang-en span.jp { display: none !important; }

/* About section always single column - JP and EN are swapped not side by side */
#about .two-column {
  grid-template-columns: 1fr;
}


:root {
  --navy: #1e3a6e;
  --orange: #f47c20;
  --orange-dark: #d96a10;
}

/* === Reset & base === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f5f5;
  color: #222;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* === Layout helpers === */

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: 1.5rem 0 3rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--navy);
}

/* === Header / Nav === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #eee;
  backdrop-filter: blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* === Hero === */

.hero {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: #444;
  font-size: 1.15rem;
}

.hero-logo-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: 550px;
  max-width: 80%;
  display: block;
}

.btn-primary {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn-primary:hover {
  background: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* === Cards & common blocks === */

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.bullet-list {
  margin: 0.6rem 0;
  padding-left: 1.2rem;
}

.bullet-list li {
  margin-bottom: 0.25rem;
}

/* === Courses / price table === */

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2rem;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.9rem;
}

.price-table th,
.price-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.price-table thead {
  background: #e8edf5;
  color: var(--navy);
  font-weight: 600;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #666;
}

/* === Teacher === */

.teacher-name {
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.teacher-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-photo-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.teacher-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* === Access / Map === */

.access-sub {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #555;
}

.map {
  padding: 0;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
}

/* === Booking / Calendly === */

/* Trial / Calendly section */
#trial {
  padding: 3rem 0 0;
}

.trial-text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.trial-note {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #555;
}

/* Calendly container */
.trial-calendly {
  max-width: 980px;
  margin: 1.5rem auto 0;
  padding: 0 1.2rem;
}

.trial-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.trial-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.4rem;
}

.trial-col-desc {
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  margin-bottom: 0.6rem;
}

@media (max-width: 700px) {
  .trial-two-col {
    grid-template-columns: 1fr;
  }
}

/* Calendly widget itself */
.calendly-inline-widget {
  width: 100%;
  border: 0;
}

/* === Contact / QR === */

.contact-info {
  margin-top: 0.4rem;
}

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.qr-wrapper img {
  max-width: 180px;
  width: 100%;
  border-radius: 8px;
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.qr-caption {
  font-size: 0.9rem;
  color: #444;
}

/* === Fixed social sidebar === */

.social-sidebar {
  position: fixed;
  bottom: 2rem;
  right: calc((100vw - 980px) / 2);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

@media (max-width: 1020px) {
  .social-sidebar {
    right: 1rem;
  }
}

.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.7rem 0.6rem;
  text-decoration: none;
  transition: opacity 0.2s;
  gap: 0.3rem;
}

.sidebar-item:hover {
  opacity: 0.85;
}

.sidebar-line {
  background: #06c755;
  color: #fff;
}

.sidebar-insta {
  background: #c13584;
  color: #fff;
}

.sidebar-qr {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: #fff;
  padding: 3px;
}

.sidebar-item svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

@media (max-width: 500px) {
  .social-sidebar {
    display: none;
  }
}



/* === Form status === */

.form-status {
  max-width: 520px;
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.form-status--success {
  background: #e6f4ea;
  color: #2d6a4f;
  border: 1px solid #b7dfca;
}

.form-status--error {
  background: #fdecea;
  color: #9b2335;
  border: 1px solid #f5c2c7;
}

/* === Footer social === */

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.6rem;
}

.footer-social-link {
  font-size: 0.8rem;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social-link:hover {
  color: var(--orange);
}

.site-footer {
  padding: 1.8rem 0 2.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* === Responsive === */

@media (max-width: 800px) {
  .two-column {
    grid-template-columns: 1fr;
    padding: 2.4rem 0;
  }

  .nav-links {
    gap: 0.6rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 500px) {
  /* Nav */
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem 0.6rem;
  }

  .logo {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }

  .lang-toggle-mobile {
    display: block;
  }

  .lang-toggle-desktop {
    display: none !important;
  }

  .logo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    align-items: center;
  }

  .logo-img {
    grid-column: 2;
    height: 34px;
    margin-top: 0.3rem;
  }

  .lang-toggle-mobile {
    grid-column: 3;
    justify-self: end;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.8rem;
    font-size: 0.88rem;
  }

  .nav-links a {
    padding: 0.2rem 0;
    border-bottom: 1px solid #eee;
  }

  /* Hero */
  .hero {
    padding: 0 0 2rem;
  }

  .hero-logo {
    max-width: 60%;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  /* Body padding */
  .container {
    padding: 0 1rem;
  }

  /* Section headings */
  .section-title {
    font-size: 1.2rem;
  }

  /* Reduce whitespace around trial/contact */
  #trial {
    padding: 2rem 0 0;
  }

  #contact {
    padding-top: 1.5rem;
  }
}
.contact-form {
  max-width: 520px;
  margin-top: 1.2rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: #444;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.3rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}
