@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --primary: #7bb6f9;
  --secondary: #233a8c;
  --accent: #6ec6ca;
  --text-dark: #4a4a4a;
  --bg-light: #f6f8fc;
}

body {
  font-family: 'Noto Sans JP', 'Segoe UI', 'Hiragino Sans', 'Meiryo', sans-serif;
  margin: 0;
  background: var(--bg-light);
  color: var(--text-dark);
  padding-top: 60px;
}

header {
  background: #ffecd9;
  color: var(--text-dark);
  padding: 0.5em 0;
  box-shadow: 0 2px 8px rgba(255, 166, 83, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 102;
  transition: all 0.3s ease;
}

/* 메인 페이지 전용 스타일 */
.home-page {
  padding-top: 0;
}

.home-page header {
  position: fixed;
  background: rgba(255, 236, 217, 0.95);
  backdrop-filter: blur(5px);
}

.home-page .main-visual {
  margin-top: 100px;
}

.home-page .main-visual-hero {
  min-height: 520px;
  height: 65vw;
  max-height: 720px;
}

/* 일반 페이지 스타일 */
.main-visual {
  margin-top: 85px;
}

.main-visual-hero {
  position: relative;
  width: 100vw;
  min-height: 380px;
  height: 48vw;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/main.jpg') center center/cover no-repeat;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.2);
  background-blend-mode: multiply;
}

@media (max-width: 800px) {
  body {
    padding-top: 80px;
  }
  
  .home-page {
    padding-top: 0;
  }
  
  .main-visual {
    margin-top: 120px;
  }
  
  .home-page .main-visual {
    margin-top: 80px;
  }

  .home-page .main-visual-hero {
    min-height: 420px;
    height: 58vw;
    max-height: 620px;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 70px;
  }
  
  .home-page {
    padding-top: 0;
  }
  
  .main-visual {
    margin-top: 100px;
  }
  
  .home-page .main-visual {
    margin-top: 70px;
  }

  .home-page .main-visual-hero {
    min-height: 380px;
    height: 52vw;
    max-height: 520px;
  }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 1em;
  gap: 1.5em;
}

.logo-bg {
  padding: 0;
  background: none;
  border-radius: 0;
  display: inline-block;
  flex-shrink: 0;
}

.logo {
  height: 80px;
  vertical-align: middle;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

nav a {
  color: #4a4a4a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08em;
  transition: color 0.2s, background 0.2s, border-radius 0.2s;
  padding: 0.3em 0.9em;
  border-radius: 8px;
  white-space: nowrap;
}

nav a:hover {
  color: #fff;
  background: #7bb6f9;
}

.main-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5em;
  color: var(--secondary);
  text-align: center;
  margin: 1em 0;
  line-height: 1.4;
  font-weight: 700;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.hero-npo {
  font-size: 1.82em;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.4em;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  letter-spacing: 0.06em;
}

.hero-main {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 3.2em;
  color: var(--primary);
  font-weight: 900;
  margin: 0.2em 0;
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 1),
               -1px -1px 0 rgba(255, 255, 255, 1),
               1px -1px 0 rgba(255, 255, 255, 1),
               -1px 1px 0 rgba(255, 255, 255, 1),
               0 4px 8px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.08em;
  line-height: 1.4;
  -webkit-text-stroke: 1.5px var(--primary);
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-overlay p {
  font-size: 1.4em;
  color: #fff;
  margin-top: 1em;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5em 1em;
  border-radius: 30px;
}

section {
  margin: 2em 0;
}

.philosophy h2, .courses h2, .contact h2 {
  color: var(--primary);
  font-size: 1.6em;
  margin-bottom: 0.7em;
}

.course-block, .contact-form, .classroom-photos, .teacher-activity-photos {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(123,182,249,0.07);
  padding: 1.5em 1.2em;
  margin-bottom: 1.5em;
}

.course-block h3 {
  color: var(--secondary);
  margin-top: 1em;
  font-size: 1.5em;
  font-weight: 700;
}

.course-section h2, .course-block h3.main-course-title, .classroom-content h1 {
  color: var(--secondary);
  font-size: 1.8em;
  font-weight: 700;
  margin: 0.8em 0;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 1);
  letter-spacing: 0.04em;
}

.course-block ul, .course-block ol {
  margin-left: 1.2em;
}

.contact-form label {
  font-weight: 500;
  color: var(--secondary);
  display: block;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.6em;
  margin-top: 0.3em;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  background: #f9f6ff;
}

.contact-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1em 0;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 2em auto;
}

.contact-form button:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123,182,249,0.2);
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-top: 1em;
}

.sns-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f6f8fc;
  object-fit: contain;
  transition: box-shadow 0.2s;
}

.sns-icon:hover {
  box-shadow: 0 4px 16px rgba(123,182,249,0.18);
}

.npo-link {
  text-align: center;
  margin: 2.5em 0 1.5em 0;
}

.npo-banner {
  max-width: 320px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(123,182,249,0.08);
}

footer {
  background: #f6f8fc;
  color: #7bb6f9;
  text-align: center;
  padding: 1.2em 0 1em 0;
  font-size: 0.95em;
  margin-top: 2em;
}

.classroom-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 1em;
  background: #f9f6ff;
  border-radius: 14px;
  padding: 1em 0.5em;
  justify-content: center;
}

.classroom-img {
  width: 31%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(123,182,249,0.08);
}

.teacher-activity-photos {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
  background: #f9f6ff;
  border-radius: 14px;
  padding: 1em 0.5em;
}

.teacher-img, .activity-img {
  width: 48%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(123,182,249,0.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  margin-left: 8px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 3px 0;
  background: #ffa653;
  border-radius: 2px;
  transition: 0.3s;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 35px;
  background: transparent;
}

.menu > li {
  position: relative;
  width: 110px;
  text-align: center;
  margin: 0;
  border-right: 1px solid #fff;
}

.menu > li:last-child {
  border-right: none;
}

.menu > li > a {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  width: 100%;
  line-height: 1;
  font-size: 0.9em;
  height: 35px;
  background-color: #f4b183;
  border-radius: 0;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f19a5c;
  width: 100%;
  padding: 0;
  margin: 0;
  z-index: 1000;
}

.menu > li:hover .submenu {
  display: block;
}

.menu > li:hover > a {
  background-color: #f4b183;
  color: #333;
}

.submenu li {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
  height: 35px;
  background-color: #f19a5c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu a {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  font-size: 0.85em;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 1;
  background-color: #f19a5c;
  border-radius: 0;
}

.submenu a:hover {
  background-color: #ee8534;
  color: #fff;
}

@media (max-width: 800px) {
  .nav-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    position: relative;
  }
  .hamburger {
    display: flex !important;
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 9999 !important;
    background: none;
  }
  .logo-bg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding-top: 16px;
  }
  .logo {
    display: block;
    margin: 0 auto;
  }
  .menu > li > a,
  .submenu a,
  .submenu li {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: 48px !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }
  .submenu {
    display: none !important;
  }
  nav ul.menu {
    background: #f4b183 !important;
  }
  .menu > li {
    border-bottom: none !important;
    margin: 0 !important;
  }
  .menu > li > a {
    background: #f4b183 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #f4b183 !important;
    color: #333 !important;
    transition: background 0.2s, color 0.2s;
  }
  .menu > li > a:hover, .menu > li > a:focus {
    background: #ee8534 !important;
    color: #fff !important;
  }
}

@media (max-width: 600px) {
  nav ul.menu {
    position: fixed !important;
    top: 85px !important;
    left: 0 !important;
    width: 100vw !important;
    z-index: 9999 !important;
  }
}

.philosophy-image {
  margin: 2em auto;
  text-align: center;
  max-width: 560px;
}

.feature-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(123,182,249,0.15);
  transition: transform 0.3s ease;
}

.feature-image:hover {
  transform: translateY(-4px);
}

.classroom-philosophy {
  font-size: 1.1em;
  line-height: 1.8;
  margin: 1.5em 0;
  padding: 0 1em;
  color: var(--text-dark);
}

.access-content {
  display: flex;
  gap: 2em;
  margin-bottom: 2em;
  align-items: flex-start;
}

.access-left {
  flex: 1;
  min-width: 0;
}

.access-map {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(123,182,249,0.08);
  margin: 0 auto 1.5em auto;
  display: block;
}

.access-info {
  margin-bottom: 1.5em;
}

.access-info p {
  margin: 0.8em 0;
  line-height: 1.6;
}

.access-info strong {
  color: var(--secondary);
  font-size: 1.1em;
}

.google-map {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(123,182,249,0.08);
}

.google-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: none;
}

@media (max-width: 600px) {
  .container {
    padding: 0 6px;
  }
  .nav-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
  }
  nav ul {
    gap: 1em;
  }
  .main-visual-hero {
    min-height: 220px;
    height: 38vw;
    max-height: 320px;
  }
  .main-visual-hero h1 {
    font-size: 1.2em;
  }
  .main-visual-hero p {
    font-size: 1.1em;
    padding: 0.3em 0.6em;
  }
  .main-img, .npo-banner {
    max-width: 98vw;
  }
  .contact-form {
    padding: 1em 0.5em;
  }
  .classroom-photos {
    flex-direction: column;
    gap: 0.7em;
    padding: 0.5em 0.2em;
  }
  .classroom-img {
    width: 100%;
    max-width: 98vw;
  }
  .hero-main {
    font-size: 1.8em;
  }
  .hero-npo {
    font-size: 1.2em;
  }
  .philosophy-image {
    margin: 1em auto;
    max-width: 90%;
  }
  .access-content {
    flex-direction: column;
    gap: 1em;
  }
  .access-map {
    width: 100%;
    max-width: none;
  }
  .google-map iframe {
    height: 350px;
    min-height: auto;
  }
}

@media (max-width: 800px) {
  body {
    padding-top: 0;
  }
  .main-title {
    font-size: 1.3em;
  }
  .main-visual {
    margin-top: 0;
  }
  .main-visual-hero {
    min-height: 300px;
    height: 42vw;
  }
  .hero-main {
    font-size: 2.4em;
  }
  .hero-npo {
    font-size: 1.4em;
  }
  .main-visual-hero p {
    font-size: 1.2em;
    padding: 0.4em 0.8em;
  }
  .nav-flex {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 16px;
  }
  .logo {
    height: 65px;
  }
  .hamburger {
    display: flex;
    position: relative;
    right: 0;
  }
  nav ul.menu {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    height: auto;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    z-index: 99;
    margin: 0;
    box-sizing: border-box;
    border-radius: 0;
  }
  nav ul.menu.open {
    display: flex;
  }
  .menu {
    height: auto;
    flex-direction: column;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    background: transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    align-items: flex-start;
  }
  .menu > li {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    border-right: none;
    border-bottom: 1px solid #eee;
    margin: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    align-items: flex-start;
  }
  .menu > li:last-child {
    border-bottom: none;
  }
  .menu > li > a {
    height: 48px;
    padding: 0 20px;
    justify-content: flex-start;
    text-align: left;
    background: none;
    color: #333;
    font-size: 1.1em;
    margin: 0;
    border-radius: 0;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    font-weight: 500;
  }
  .menu > li > a.active, .menu > li > a:focus {
    background: #f4b183;
    color: #333;
  }
  .submenu {
    position: static;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    display: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: none;
    align-items: flex-start;
  }
  .menu > li.active .submenu {
    display: flex;
    flex-direction: column;
  }
  .submenu li {
    height: 44px;
    text-align: left;
    border-bottom: 1px solid #eee;
    margin: 0;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }
  .submenu li:last-child {
    border-bottom: none;
  }
  .submenu a {
    height: 44px;
    padding: 0 36px;
    justify-content: flex-start;
    background: none;
    color: #333;
    font-size: 1.1em;
    border-radius: 0;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    margin: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    font-weight: 400;
  }
  .submenu a:hover, .submenu a:focus {
    background: #f19a5c;
    color: #333;
  }
  .menu > li > a:hover, .menu > li > a:focus {
    background: #f4b183;
    color: #333;
  }
  .container, .nav-flex {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
  }
  .philosophy-image {
    margin: 1.5em auto;
  }
  .access-content {
    flex-direction: column;
    gap: 1.5em;
  }
  .access-map {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5em auto;
  }
  .google-map {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-radius: 0;
  }
  .google-map iframe {
    height: 350px;
    min-height: auto;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 0;
  }
  .main-title {
    font-size: 1.1em;
  }
  .main-visual {
    margin-top: 0;
  }
  .main-visual-hero {
    min-height: 220px;
    height: 38vw;
  }
  .main-visual-hero h1 {
    font-size: 1.2em;
  }
  .main-visual-hero p {
    font-size: 1.1em;
    padding: 0.3em 0.6em;
  }
  .main-img, .npo-banner {
    max-width: 98vw;
  }
  .contact-form {
    padding: 1em 0.5em;
  }
  .classroom-photos {
    flex-direction: column;
    gap: 0.7em;
    padding: 0.5em 0.2em;
  }
  .classroom-img {
    width: 100%;
    max-width: 98vw;
  }
  .hero-main {
    font-size: 1.8em;
  }
  .hero-npo {
    font-size: 1.2em;
  }
  .philosophy-image {
    margin: 1em auto;
    max-width: 90%;
  }
  .access-content {
    flex-direction: column;
    gap: 1em;
  }
  .access-map {
    width: 100%;
    max-width: none;
  }
  .google-map iframe {
    height: 350px;
    min-height: auto;
  }
  nav ul.menu {
    top: 60px;
    right: 10px;
    width: 130px;
  }
  .logo {
    height: 55px;
  }
  .menu li a {
    padding: 8px;
    font-size: 0.85em;
  }
}

.welcome-title {
  color: var(--primary);
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 0.5em;
}

.welcome-subtitle {
  color: var(--secondary);
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1.5em;
  font-weight: 600;
}

.welcome-intro {
  font-size: 1.2em;
  line-height: 1.8;
  text-align: center;
  margin: 2em auto;
  max-width: 800px;
  color: var(--text-dark);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
  margin: 3em 0;
}

.skill-item {
  background: #fff;
  padding: 2em;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(123,182,249,0.1);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.15;
  z-index: 0;
}

.skill-item:nth-child(1)::before {
  background: #FFB6C1;  /* 말하기: 연한 핑크 */
}

.skill-item:nth-child(2)::before {
  background: #98FB98;  /* 듣기: 연한 초록 */
}

.skill-item:nth-child(3)::before {
  background: #87CEEB;  /* 쓰기: 연한 파랑 */
}

.skill-item:nth-child(4)::before {
  background: #DDA0DD;  /* 읽기: 연한 보라 */
}

.skill-item:hover {
  transform: translateY(-4px);
}

.skill-item h3 {
  color: var(--primary);
  font-size: 1.4em;
  margin-bottom: 1em;
  position: relative;
  z-index: 1;
}

.skill-item p {
  color: var(--text-dark);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.welcome-footer {
  text-align: center;
  font-size: 1.3em;
  color: var(--secondary);
  font-weight: 600;
  margin: 2em 0;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .welcome-title {
    font-size: 1.8em;
  }
  .welcome-subtitle {
    font-size: 1.3em;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
  .skill-item {
    padding: 1.5em;
  }
}

.lesson-structure {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  margin: 2em 0;
}

.lesson-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5em;
  background: #fff;
  padding: 1.2em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(123,182,249,0.08);
  transition: transform 0.3s ease;
}

.lesson-item:hover {
  transform: translateX(8px);
}

.lesson-number {
  background: var(--primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
}

.lesson-content {
  flex: 1;
}

.lesson-content h4 {
  color: var(--secondary);
  font-size: 1.2em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.lesson-content p {
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .lesson-item {
    padding: 1em;
    gap: 1em;
  }
  .lesson-number {
    width: 30px;
    height: 30px;
    font-size: 1em;
  }
  .lesson-content h4 {
    font-size: 1.1em;
  }
}

.features-photos {
  display: flex;
  gap: 2em;
  margin: 2em 0;
  justify-content: center;
}

.feature-photo {
  flex: 1;
  max-width: 400px;
}

.feature-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(123,182,249,0.15);
  transition: transform 0.3s ease;
}

.feature-img:hover {
  transform: scale(1.02);
}

@media (max-width: 800px) {
  .features-photos {
    flex-direction: column !important;
    gap: 1em !important;
    align-items: stretch !important;
  }
  .feature-photo {
    max-width: 100% !important;
    width: 100% !important;
  }
}

.feature-items {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  margin-top: 2em;
  padding: 0 1em;
}

.feature-item {
  display: flex;
  align-items: flex-start;
}

.feature-number {
  background: #A7C7FF;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.8em;
  flex-shrink: 0;
  margin-right: 1em;
  box-shadow: 0 2px 4px rgba(167,199,255,0.3);
}

.feature-text {
  font-size: 1.2em;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: 0.5em;
}

@media (max-width: 600px) {
  .feature-number {
    width: 35px;
    height: 35px;
    font-size: 1.5em;
  }
  
  .feature-text {
    font-size: 1.1em;
  }
  
  .feature-items {
    gap: 1.2em;
  }
}

.contact-intro {
  display: flex;
  align-items: flex-start;
  gap: 2em;
  margin-bottom: 2em;
  background: #fff;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(123,182,249,0.08);
}

.contact-text {
  flex: 1;
}

.contact-text p {
  margin: 0.5em 0;
  font-size: 1.1em;
  line-height: 1.6;
}

.contact-sns {
  padding-left: 1em;
  border-left: 2px solid var(--primary);
}

.sns-links {
  display: flex;
  gap: 1em;
  margin: 0;
}

.sns-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  transition: all 0.3s ease;
  object-fit: contain;
}

.sns-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123,182,249,0.2);
}

@media (max-width: 600px) {
  .contact-intro {
    flex-direction: column;
    gap: 1em;
    padding: 1em;
  }
  .contact-sns {
    padding-left: 0;
    border-left: none;
    border-top: 2px solid var(--primary);
    padding-top: 1em;
  }
  .sns-links {
    justify-content: center;
  }
  .sns-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 800px) {
  body {
    padding-top: 60px;
  }
  .main-title {
    font-size: 1.3em;
  }
  .main-visual {
    margin-top: 35px;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 55px;
  }
  .main-title {
    font-size: 1.1em;
  }
  .main-visual {
    margin-top: 30px;
  }
}

/* 모든 메인 컨텐츠의 기본 여백 설정 */
.contact-content,
.classroom-content,
.courses-content,
.thanks-content,
.error-content {
  margin-top: 85px;
}

/* 코스 안내 페이지 특별 조정 */
.courses-content {
  margin-top: 88px;
}

/* 교실 소개와 문의 페이지 조정 */
.classroom-content,
.contact-content {
  margin-top: 80px;
}

/* 각 섹션의 제목 스타일 통일 */
.contact h1,
.classroom-content h1,
.courses-content h1,
.thanks-content h1,
.error-content h1 {
  color: var(--secondary);
  font-size: 1.8em;
  font-weight: 700;
  margin: 0 0 0.8em 0;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 1);
  letter-spacing: 0.04em;
  position: relative;
}

/* 반응형 조정 */
@media (max-width: 800px) {
  .contact-content,
  .classroom-content,
  .courses-content,
  .thanks-content,
  .error-content {
    margin-top: 75px;
  }
  
  .courses-content {
    margin-top: 78px;
  }
  
  .classroom-content,
  .contact-content {
    margin-top: 70px;
  }
  
  .contact h1,
  .classroom-content h1,
  .courses-content h1,
  .thanks-content h1,
  .error-content h1 {
    font-size: 1.6em;
    margin: 0 0 0.6em 0;
  }
}

@media (max-width: 600px) {
  .contact-content,
  .classroom-content,
  .courses-content,
  .thanks-content,
  .error-content {
    margin-top: 65px;
  }
  
  .courses-content {
    margin-top: 68px;
  }
  
  .classroom-content,
  .contact-content {
    margin-top: 60px;
  }
  
  .contact h1,
  .classroom-content h1,
  .courses-content h1,
  .thanks-content h1,
  .error-content h1 {
    font-size: 1.4em;
    margin: 0 0 0.5em 0;
  }
}

/* 메인 비주얼 여백 유지 */
.main-visual {
  margin-top: 140px;
}

@media (max-width: 800px) {
  .main-visual {
    margin-top: 120px;
  }
}

@media (max-width: 600px) {
  .main-visual {
    margin-top: 100px;
  }
}

/* 섹션 여백 조정 */
section {
  margin: 2em 0;
}

.course-section {
  margin-top: 1.5em;
}

/* 모바일 메뉴에서는 margin-top 제거 */
@media (max-width: 800px) {
  .menu li a {
    height: 44px;
    margin-top: 0;
  }
}

.four-skills-image {
  text-align: center;
  margin: 2em auto;
  max-width: 600px;
}

.skills-main-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 166, 83, 0.15);
}

@media (max-width: 800px) {
  .four-skills-image {
    max-width: 90%;
    margin: 1.5em auto;
  }
}

@media (max-width: 600px) {
  .four-skills-image {
    max-width: 95%;
    margin: 1em auto;
  }
}

.friend-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.friend-button:hover {
  transform: scale(1.05);
}

.friend-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.friend-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.popup-content {
  background: white;
  padding: 2em;
  border-radius: 20px;
  position: relative;
  max-width: 320px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.popup-content h3 {
  color: #333;
  font-size: 1.4em;
  margin-bottom: 1em;
  line-height: 1.4;
}

.popup-content p {
  color: #666;
  margin-bottom: 1.5em;
}

.popup-qr {
  margin: 1.5em 0;
}

.popup-qr img {
  max-width: 200px;
  width: 100%;
  height: auto;
}

.line-add-button {
  display: inline-block;
  background: #00B900;
  color: white;
  padding: 0.8em 2em;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.line-add-button:hover {
  opacity: 0.9;
}

@media (max-width: 800px) {
  .friend-icon {
    width: 70px;
    height: 70px;
  }
  
  .popup-content {
    max-width: 280px;
    padding: 1.5em;
  }
}

@media (max-width: 600px) {
  .friend-button {
    bottom: 15px;
    right: 15px;
  }
  
  .friend-icon {
    width: 60px;
    height: 60px;
  }
  
  .popup-content {
    max-width: 260px;
    padding: 1.2em;
  }
  
  .popup-content h3 {
    font-size: 1.2em;
  }
}

.lesson-schedule {
  margin: 2em 0;
  text-align: center;
}

.schedule-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 800px) {
  .lesson-schedule {
    margin: 1.5em 0;
  }
}

@media (max-width: 600px) {
  .lesson-schedule {
    margin: 1em 0;
  }
}

.classroom-photos.top-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 1.5em 0 2.5em 0;
  justify-content: center;
  background: none;
  padding: 0;
}

.top-photos .classroom-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 31%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(123,182,249,0.15);
  transition: transform 0.3s ease;
}

.top-photos .classroom-img:hover {
  transform: translateY(-4px);
}

@media (max-width: 800px) {
  .classroom-photos.top-photos {
    gap: 0.8em;
    margin: 1.2em 0 2em 0;
  }
  
  .top-photos .classroom-img {
    width: 32%;
  }
}

@media (max-width: 600px) {
  .classroom-photos.top-photos {
    gap: 0.5em;
    margin: 1em 0 1.5em 0;
  }
  
  .top-photos .classroom-img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    max-width: none;
    margin-bottom: 0.5em;
  }
}

.classroom-overview-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  color: #555;
  line-height: 1.8;
}

@media (max-width: 800px) {
  .classroom-overview-list {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
  }
  .classroom-overview-list > div {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 800px) {
  .activity-description > div {
    flex-direction: column !important;
    gap: 1em !important;
  }
}

@media (max-width: 600px) {
  .program-flex {
    flex-direction: column !important;
    gap: 1em !important;
    align-items: stretch !important;
  }
  .program-text, .textbook-image {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    padding: 0 !important;
  }
  .textbook-img {
    max-width: 160px !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto 1em auto;
  }
} 