/* ========================================
   HaHaHa韓国語学院 - New Design
   ======================================== */

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

:root {
  --orange: #FD6512;
  --orange-light: #FF7F1A;
  --red: #C9352B;
  --text: #2c2c2c;
  --text-light: #666;
  --border: #e0e0e0;
  --bg-light: #f8f8f8;
  --white: #fff;
  --max-width: 1080px;
  --header-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-light); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ========================================
   Header / Nav
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.site-logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--bg-light);
  color: var(--orange);
  text-decoration: none;
}

.nav-blog a {
  color: var(--orange);
  border: 1px solid var(--orange);
}

.nav-blog a:hover {
  background: var(--orange);
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  padding: 6px 10px;
  margin: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   Hero Slider (index only)
   ======================================== */

.hero-slider {
  position: relative;
  overflow: hidden;
  background: #111;
  max-width: 675px;
  margin: 0 auto;
  aspect-ratio: 675 / 240;
}

.hero-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  padding: 32px 24px 20px;
  font-size: 14px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.slider-btn:hover { background: rgba(255,255,255,0.35); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.slider-dot.active { background: #fff; }

/* ========================================
   Page Hero (inner pages)
   ======================================== */

.page-hero {
  background: var(--orange);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-hero .en {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-top: 6px;
}

/* ========================================
   Main Layout
   ======================================== */

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ========================================
   Sections / Components
   ======================================== */

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 24px;
  margin-top: 48px;
}

.section-title:first-child { margin-top: 0; }

/* Recruit CTA banner */
.cta-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: #fff;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s;
  margin: 16px 0;
}
.cta-banner:hover { opacity: 0.85; color: #fff; text-decoration: none; }

/* Topics list */
.topics-list {
  list-style: none;
}

.topics-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  line-height: 1.7;
}

.topics-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 10px;
}

.badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  vertical-align: middle;
  margin: 0 4px;
}

/* News DL */
.news-list { list-style: none; }

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.news-date {
  color: var(--text-light);
  font-size: 13px;
  padding-top: 2px;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.photo-grid img {
  width: 100%;
  border-radius: 4px;
}

/* ========================================
   Intro / About page
   ======================================== */

.about-greeting {
  background: var(--bg-light);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 28px;
}

.about-greeting .kr {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  display: block;
  margin-bottom: 4px;
}

.about-greeting .jp {
  color: var(--text-light);
  font-size: 14px;
}

.instructor-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: 20px;
}

.instructor-card img {
  width: 200px;
  flex-shrink: 0;
  border-radius: 6px;
}

/* ========================================
   Program page
   ======================================== */

.lesson-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.lesson-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 20px;
}

.lesson-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.lesson-card p { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 10px;
}

.price-table td {
  padding: 7px 10px;
  border: 1px solid var(--border);
}

.price-table td:last-child { text-align: right; font-weight: 600; }

/* Timetable */
.timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
}

.timetable th, .timetable td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: center;
}

.timetable th {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
}

.timetable tr:nth-child(even) td { background: var(--bg-light); }

.level-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.level-item {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-light);
  border-radius: 6px;
}

.level-label {
  flex-shrink: 0;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  align-self: flex-start;
  margin-top: 2px;
}

/* ========================================
   Events page
   ======================================== */

.event-section {
  margin-bottom: 56px;
}

.event-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  color: var(--orange);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.event-item img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.event-item p { font-size: 14px; color: var(--text-light); }

/* ========================================
   Access page
   ======================================== */

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.access-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}

.access-card iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 6px;
  margin-bottom: 16px;
}

.access-info { font-size: 14px; line-height: 1.9; }
.access-info strong { display: block; margin-bottom: 4px; }

/* ========================================
   Contact page
   ======================================== */

.contact-info {
  background: var(--bg-light);
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 36px;
  font-size: 14px;
}

.contact-info p { margin-bottom: 6px; }

.contact-form { max-width: 680px; }

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-label .required {
  color: var(--red);
  margin-left: 4px;
}

.form-label .sub {
  font-weight: 400;
  color: var(--text-light);
  font-size: 12px;
  margin-left: 6px;
}

.form-control {
  width: 100% !important;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--white);
  color: var(--text);
}

.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(43, 69, 144, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 160px;
}

.btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-secondary {
  background: #e0e0e0;
  color: var(--text);
  margin-left: 10px;
}

.btn:hover { opacity: 0.82; }

a.btn-primary:hover {
  color: #fff;
  text-decoration: none;
}

a.btn-secondary:hover {
  color: var(--text);
  text-decoration: none;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: #1a2a52;
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 28px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .site-logo-text {
  color: #fff;
  font-size: 15px;
}

.footer-brand .site-logo-text small { color: rgba(255,255,255,0.5); }

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover { color: #fff; }

.footer-contact { font-size: 13px; line-height: 2; }
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
  .lesson-cards { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 16px;
  }

  .site-nav a {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 6px;
  }

  .nav-toggle { display: flex; }

  .hero-slider { aspect-ratio: unset; max-height: 240px; }
  .hero-slide img { height: 240px; }

  .page-hero { padding: 32px 16px; }
  .page-hero h1 { font-size: 20px; }

  .site-main { padding: 36px 16px 56px; }

  .photo-grid { grid-template-columns: 1fr; }

  .instructor-card {
    flex-direction: column;
  }
  .instructor-card img { width: 100%; max-width: 260px; }

  .event-grid { grid-template-columns: 1fr; }

  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .news-date { font-size: 12px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .site-logo-text { font-size: 14px; }
  .section-title { font-size: 17px; }
}
