/* 기본 설정 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic", "游ゴシック体",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 헤더 */
.site-header {
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.site-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
}

/* 버튼 */
.btn-primary {
  background: #d8433f;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* 섹션 공통 */
.section {
  padding: 64px 0;
}

.section h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 32px;
}

.bg-light {
  background: #faf7f5;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  background: #fff;
}

.hero-inner {
  display: flex;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2rem;
  margin: 8px 0 16px;
}

.hero-label {
  font-size: 0.9rem;
  color: #d8433f;
  letter-spacing: 0.1em;
}

.hero-sub {
  margin-bottom: 24px;
}

.hero-btn {
  font-size: 0.95rem;
}

.hero-image {
  flex: 1 1 45%;
}

/* Grid 레이아웃 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* 카드 & 텍스트 */
.card-simple {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.card-simple ul {
  margin: 0;
  padding-left: 20px;
}

.feature-card,
.course-card,
.gallery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.feature-card img,
.course-card img {
  width: 100%;
}

.feature-card h3,
.course-card h3 {
  font-size: 1.1rem;
  margin: 12px 16px 8px;
}

.feature-card p,
.course-card p {
  margin: 0 16px 16px;
  font-size: 0.9rem;
}

.gallery-item figcaption {
  padding: 8px 12px 12px;
  font-size: 0.85rem;
}

.center {
  text-align: center;
}

.note {
  font-size: 0.85rem;
  color: #777;
}

/* news */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.news-date {
  color: #777;
  white-space: nowrap;
}

/* contact */
.contact p {
  text-align: center;
}

.contact-simple{
  margin-top: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background: #faf7f5;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
}

.contact-simple h3{
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.instructor{
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #333;
}

.contact-lines{
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.contact-lines a{
  text-decoration: underline;
}



.footer-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-direction:column;
}
.footer-logo{
  height: 32px;
  width: auto;
}

/* footer */
.site-footer {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  border-top: 1px solid #eee;
}

/* ------------------------
   반응형 (모바일)
-------------------------*/
@media (max-width: 768px) {
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .site-nav.is-open {
    max-height: 260px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }

  .site-nav ul {
    flex-direction: column;
    padding: 12px 16px 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .hero-inner {
    flex-direction: column;
  }

  .grid-2,
  .grid-3,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }
}

/* 코스 카드: 이미지 없는 버전 */
.course-card--noimg{
  padding: 18px 18px 16px;
}

.course-card--noimg .course-body{
  padding: 0;
}

.course-desc{
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #444;
}

/* 시간표 리스트 */
.course-times{
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
}

.course-times li{
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.course-times li:last-child{
  border-bottom: none;
}

.course-times .tag{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e7e3e1;
  background: #faf7f5;
  font-size: 0.85rem;
  font-weight: 600;
}

.course-times .dow{
  text-align: center;
  font-weight: 700;
  color: #d8433f; /* 사이트 포인트 컬러 */
}

.course-times .time{
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #333;
}

/* 요일 공통 */
.course-times .dow{
  text-align: center;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 0;
}

/* 요일별 컬러 */
.course-times .dow.mon { background:#eef3ff; color:#3559e0; }
.course-times .dow.tue { background:#ffecec; color:#d8433f; }
.course-times .dow.wed { background:#ecfff0; color:#2f9e44; }
.course-times .dow.thu { background:#fff6e6; color:#f08c00; }
.course-times .dow.fri { background:#f3ecff; color:#845ef7; }
.course-times .dow.sat { background:#e7f5ff; color:#1c7ed6; }
.course-times .dow.sun { background:#fff0f6; color:#c2255c; }

.iframe-wrap{
  margin-top: 24px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #eee;
  background: #fff;
}

/* 모바일 최적화 */
@media (max-width: 768px){
  .iframe-wrap iframe{
    height: 900px;
  }
}

.price-box{
  margin-top: 28px;
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  text-align: center;
}

.price-box h3{
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.price-main{
  padding: 10px 0 6px;
}

.price-amount{
  font-size: 1.4rem;
  font-weight: 800;
  color: #222;
  margin: 0;
}

.price-detail{
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #555;
}

.price-cta{
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.mobile-contact-bar{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: none;
  z-index: 1000;
  background: #ffffff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.mc-btn{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.mc-btn.call{
  color: #d8433f;
}

.mc-btn.mail{
  color: #333;
}

/* 모바일에서만 표시 */
@media (max-width: 768px){
  .mobile-contact-bar{
    display: flex;
  }

  body{
    padding-bottom: 56px; /* 바에 가려지지 않도록 */
  }
}

.feature-text-only{
  gap: 24px;
}

.feature-item{
  background:#faf7f5;
  border:1px solid #eee;
  border-radius: 14px;
  padding: 20px 22px;
}

.feature-item h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-item p{
  margin: 0;
  font-size: 0.92rem;
  color:#444;
}

.lesson-gallery{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.lesson-gallery img{
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (max-width:768px){
  .lesson-gallery{
    grid-template-columns: repeat(2, 1fr);
  }
}

.memory-list{
  list-style:none;
  padding:0;
  margin: 18px auto 0;
  max-width: 640px;
}

.memory-list li{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.memory-list .year{
  font-weight: 600;
  color:#444;
}

.memory-list a{
  text-decoration: underline;
}

.memory-list .disabled{
  color:#aaa;
}
