/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  font-family: "NotoSansKR", sans-serif;
  line-height: 1.6;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid #e0e0e0;
}

.header-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 15px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 240px;
}

.logo-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Navigation */
.main-nav {
  padding-right: 20px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  padding: 5px 0;
  letter-spacing: 1px;
  display: block;
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
}

/* Main Content */
.main-visual {
  margin-top: 80px;
  width: 100%;
}

.main-visual-image,
.section-image {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

.content-sections {
  width: 100%;
}

.content-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .header {
    height: 50px;
  }

  .header-container {
    padding: 0 15px;
    height: 50px;
    position: relative;
  }

  .logo {
    width: 120px;
  }

  .mobile-menu-button {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    margin: 5px auto;
    transition: all 0.3s ease;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .main-nav ul li:last-child {
    border-bottom: none;
  }

  .main-nav ul li a {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    color: #000;
  }

  .mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .main-visual {
    margin-top: 50px;
  }
}

/* Additional Layout Elements */
.content-container {
  padding: 0;
}
.hero {
  padding: 8rem 0 4rem;
  background-color: #f8f9fa;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.section {
  padding: 4rem 0;
}
.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card h3 {
  margin-bottom: 1rem;
  color: #007bff;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.btn {
  background-color: #007bff;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #0056b3;
}
.footer {
  background-color: #333;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}
.menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
}
.menu-item {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.menu-image {
  width: 100%;
  height: auto;
  display: block;
}
.clinic-info {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}
.doctor-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: #f8f8f8;
  padding: 2rem;
  border-radius: 8px;
}
.doctor-image {
  width: 200px;
  height: auto;
  border-radius: 4px;
}
.doctor-text h2 {
  font-size: 2rem;
  color: #6a3906;
  margin-bottom: 0.5rem;
}
.doctor-title {
  font-size: 1.2rem;
  color: #666;
}
.treatment-cases {
  padding: 4rem 0;
}
.case-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.implant-info {
  background-color: #f8f8f8;
  padding: 4rem 0;
}
.implant-info h2 {
  text-align: center;
  color: #6a3906;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.implant-content {
  max-width: 1000px;
  margin: 0 auto;
}
.before-after {
  padding: 4rem 0;
}
footer {
  background-color: #6a3906;
  color: #fff;
  padding: 3rem 0;
}
.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.clinic-contact {
  margin-bottom: 2rem;
}
.clinic-contact p {
  margin-bottom: 0.5rem;
}
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

.youtube-item {
  display: block; /* ✅ 클릭 영역을 이미지 전체로 */
  transition: transform 0.3s ease;
}

.youtube-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.youtube-item:hover {
  transform: scale(1.03);
}

/* Remove all other @font-face declarations and add only NotoSansCJKkr declarations */
@font-face {
  font-family: "NotoSansKR";
  src: url("../font/NotoSansCJKkr-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "NotoSansKR";
  src: url("../font/NotoSansCJKkr-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "NotoSansKR";
  src: url("../font/NotoSansCJKkr-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "NotoSansKR";
  src: url("../font/NotoSansCJKkr-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "NotoSansKR";
  src: url("../font/NotoSansCJKkr-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "NotoSansKR";
  src: url("../font/NotoSansCJKkr-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}
