/* ==========================================================================
   Japanese School Custom Styling
   ========================================================================== */

/* Color & Variable Overrides & Extensions */
:root {
  --bg-beige: #fdfaf6;       /* Warm beige background */
  --bg-light-grey: #f7f9fb;  /* Modern light grey background */
  --blue-navy: #19355e;      /* Deep navy for headers and trust */
  --accent-gold: #e2ab24;    /* Premium warm gold/amber for CTAs */
  --text-dark: #222b3c;      /* Soft dark grey for readable text */
  --transition: all 0.3s ease;
}

body {
  color: var(--text-dark);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* Common Section Layouts */
.section-padding {
  padding: 80px 20px;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 50px 15px;
  }
}

.bg-soft {
  background-color: var(--bg-light-grey);
}

.section-container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.section-heading-center {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 10px;
}

.section-heading-center h2 {
  font-size: 2.1rem;
  color: var(--blue-navy);
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-heading-center h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--blue);
  border-radius: 2px;
}

.section-summary-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Skip link styling */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
#japanese-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f6f9fd 70%, #fdf8e6 100%);
  padding: 120px 20px 80px 20px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 991px) {
  #japanese-hero {
    padding: 100px 15px 50px 15px;
  }
}

.hero-inner-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 991px) {
  .hero-inner-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.hero-content-block {
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background-color: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 15px;
}

.hero-content-block h1 {
  font-size: 2.8rem;
  color: var(--blue-navy);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .hero-content-block h1 {
    font-size: 2.1rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 35px;
}

.hero-actions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}
@media (max-width: 576px) {
  .hero-actions-container {
    flex-direction: column;
    align-items: stretch;
  }
}

.hero-actions-container .button {
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.button-primary {
  background-color: var(--yellow);
  color: var(--ink);
  border: none;
}
.button-primary:hover {
  background-color: #e5cc00;
  transform: translateY(-2px);
}

.button-secondary {
  background-color: white;
  color: var(--blue-navy);
  border: 1px solid var(--blue-navy);
}
.button-secondary:hover {
  background-color: var(--blue-soft);
  transform: translateY(-2px);
}

.button-link-access {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 10px 15px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button-link-access:hover {
  color: var(--blue-dark);
}
.button-link-access .arrow-right {
  margin-left: 6px;
  transition: transform 0.2s ease;
}
.button-link-access:hover .arrow-right {
  transform: translateX(4px);
}

.hero-image-block {
  display: flex;
  justify-content: center;
}

.hero-media-wrapper {
  margin: 0;
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: white;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-caption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 8px 12px;
  background-color: #fafbfc;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   2. 対象 (Target Audience)
   ========================================================================== */
.target-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 991px) {
  .target-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.target-card {
  background-color: var(--bg-beige);
  border: 1px solid #f2e6d5;
  border-radius: var(--radius);
  padding: 35px 25px;
  box-shadow: 0 4px 15px rgba(226, 171, 36, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.target-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(226, 171, 36, 0.1);
}

.target-icon-wrap {
  width: 44px;
  height: 44px;
  background-color: #f7eedf;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.target-number {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.target-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-navy);
  margin-bottom: 15px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}

.target-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   3. レベル別コース (Levels)
   ========================================================================== */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 991px) {
  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 576px) {
  .levels-grid {
    grid-template-columns: 1fr;
  }
}

.level-card {
  background-color: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 20px;
  position: relative;
  transition: var(--transition);
}
.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-soft);
}

.level-badge {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.level-badge-entry { background-color: #6dbb91; }
.level-badge-begin { background-color: #559dd8; }
.level-badge-mid   { background-color: #e5b94c; }
.level-badge-adv   { background-color: var(--blue); }

.level-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-navy);
  margin-top: 5px;
  margin-bottom: 15px;
}

.level-content-text {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 48px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.level-detail-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   4. 目的別コース (Purposes)
   ========================================================================== */
.purposes-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 768px) {
  .purposes-list-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.purpose-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
}
.purpose-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #eaf2fb;
}

.purpose-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-navy);
  margin-bottom: 10px;
}

.purpose-highlight {
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.95rem;
  margin-bottom: 12px;
  background-color: var(--blue-soft);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.purpose-info p:last-child {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   5. 授業スタイル (Teaching Style)
   ========================================================================== */
.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 991px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.style-intro-block {
  text-align: left;
}

.style-intro-block h2 {
  font-size: 2.1rem;
  color: var(--blue-navy);
  font-weight: 700;
  margin-bottom: 20px;
}

.style-desc-main {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.style-cards-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.style-feature-card {
  display: flex;
  gap: 20px;
  background-color: var(--bg-light-grey);
  border-radius: var(--radius);
  padding: 25px;
  border-left: 4px solid var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.style-feature-icon {
  font-size: 2rem;
  line-height: 1;
}

.style-feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-navy);
  margin-bottom: 8px;
}

.style-feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   6. 選べるレッスン形式 (Lesson System Options)
   ========================================================================== */
.lesson-style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 991px) {
  .lesson-style-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.lesson-style-card {
  background-color: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.lesson-style-header {
  padding: 30px;
  background: var(--bg-beige);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.style-badge {
  background-color: var(--accent-gold);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  position: absolute;
  top: 30px;
  right: 30px;
}

.bg-blue-theme {
  background-color: var(--blue);
}

.lesson-style-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-navy);
  margin-bottom: 10px;
}

.style-kicker {
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin: 0;
}

.lesson-style-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.lesson-style-desc-text {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 500;
}

.lesson-style-body ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.lesson-style-body li {
  margin-bottom: 10px;
}

/* ==========================================================================
   7. 日本語 講師 (Teachers)
   ========================================================================== */
.teachers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.teacher-card-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 35px;
  background-color: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  align-items: start;
}
@media (max-width: 768px) {
  .teacher-card-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}

.teacher-image-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 300/424;
}

.teacher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teacher-info-wrap {
  text-align: left;
}

.teacher-info-wrap h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-navy);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--blue-soft);
  padding-bottom: 5px;
  display: inline-block;
}

.teacher-intro-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 15px;
}

.teacher-motto {
  color: var(--muted);
  border-left: 3px solid var(--accent-gold);
  padding-left: 12px;
  font-style: italic;
}

/* ==========================================================================
   8. ギャラリー・授業風景 (Classroom Gallery)
   ========================================================================== */
.classroom-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 991px) {
  .classroom-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

.gallery-item {
  margin: 0;
  background-color: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding: 10px 5px;
  border-top: 1px solid var(--line);
  background-color: #fafbfc;
}

/* ==========================================================================
   9. 開講時間 & 授業料 (Opening Hours & Tuition Fee)
   ========================================================================== */
.info-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 991px) {
  .info-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.info-block-item {
  background-color: var(--bg-beige);
  border: 1px solid #f2e6d5;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: left;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.info-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-navy);
  margin: 0;
}

.info-body {
  font-size: 0.95rem;
}

.info-text-accent {
  font-weight: 600;
  color: var(--blue-navy);
  margin-bottom: 20px;
}

.hours-dl {
  margin: 0;
}

.hours-dl div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding: 12px 0;
}

.hours-dl dt {
  font-weight: 700;
  color: var(--text-dark);
}

.hours-dl dd {
  margin: 0;
  font-weight: 700;
  color: var(--blue);
}

.info-text-lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-navy);
  margin-bottom: 15px;
}

.info-text-sub {
  color: var(--muted);
  margin-bottom: 25px;
}

.info-btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-btn-row .button {
  width: 100%;
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   10. 問い合わせ・下部咨询区 (Bottom CTA & Enquiry)
   ========================================================================== */
#contact {
  background: linear-gradient(135deg, #091f3a 0%, #153259 100%);
  color: white;
}

.contact-card-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 50px;
  backdrop-filter: blur(10px);
}
@media (max-width: 991px) {
  .contact-card-box {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px 20px;
  }
}

.contact-box-left {
  text-align: left;
}

.contact-box-kicker {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.contact-box-left h2 {
  font-size: 2.1rem;
  color: white;
  font-weight: 800;
  margin-bottom: 20px;
}

.contact-box-desc {
  color: #d1e2f7;
  font-size: 0.98rem;
  margin-bottom: 35px;
}

.contact-box-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.button-cta {
  background-color: var(--yellow);
  color: var(--ink);
  border: none;
  font-weight: 700;
  text-align: center;
  padding: 15px 30px;
  font-size: 1rem;
}
.button-cta:hover {
  background-color: #e5cc00;
  transform: translateY(-2px);
}

.button-outline-white {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 14px;
  font-size: 0.95rem;
}
.button-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.contact-info-details {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
}

.contact-detail-line {
  margin-bottom: 12px;
  font-size: 0.92rem;
  display: flex;
  align-items: baseline;
}
@media (max-width: 576px) {
  .contact-detail-line {
    flex-direction: column;
    gap: 4px;
  }
}

.detail-label {
  color: #9cbce2;
  font-weight: 700;
  width: 110px;
  flex-shrink: 0;
}

.detail-val {
  font-weight: 500;
}

.detail-val a {
  color: white;
  text-decoration: underline;
  transition: opacity 0.2s;
}
.detail-val a:hover {
  opacity: 0.8;
}

/* Right Form box */
.contact-box-right-form {
  background-color: white;
  color: var(--text-dark);
  border-radius: 12px;
  padding: 35px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
@media (max-width: 576px) {
  .contact-box-right-form {
    padding: 25px 20px;
  }
}

.form-field-wrap {
  margin-bottom: 20px;
  text-align: left;
}

.form-field-wrap label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--blue-navy);
}

.form-field-wrap label span {
  background-color: var(--blue-dark);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 700;
}

.form-field-wrap input,
.form-field-wrap select,
.form-field-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-field-wrap input:focus,
.form-field-wrap select:focus,
.form-field-wrap textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 77, 156, 0.1);
}

.btn-submit-wide {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: 700;
  background-color: var(--yellow);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit-wide:hover {
  background-color: #e5cc00;
}
.btn-submit-wide:disabled {
  background-color: #e0e5eb;
  color: #a0acba;
  cursor: not-allowed;
}

.form-status {
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
}

.form-status.success {
  color: #2b8a3e;
}

.form-status.error {
  color: #c92a2a;
}
