:root {
  --v4-card: #f8f5f0;
  --v4-card-border: rgba(30, 28, 25, 0.14);
}

.language-switcher {
  position: relative;
  z-index: 20;
}

.language-switcher summary {
  cursor: pointer;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  content: "⌄";
  font-size: 12px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.language-switcher[open] summary::after {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 190px;
  padding: 10px;
  color: var(--ink);
  background: rgba(248, 245, 240, 0.98);
  border: 1px solid var(--v4-card-border);
  box-shadow: 0 18px 45px rgba(30, 28, 25, 0.15);
}

.language-menu a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.language-menu a:hover,
.language-menu a:focus-visible,
.language-menu a[aria-current="page"] {
  color: var(--accent);
  background: rgba(166, 75, 49, 0.08);
}

.language-menu small {
  color: #7b736c;
  font-size: 10px;
}

.header-inverse .language-switcher summary {
  color: #fff;
}

.locale-page {
  font-family: Pretendard, "Noto Sans", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", "Noto Sans TC", Arial, sans-serif;
}

.locale-page.locale-ja {
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.locale-page.locale-zh-cn {
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.locale-page.locale-zh-tw {
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
}

.locale-keyword-line {
  max-width: 900px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.75;
}

.zh-hero-copy > .locale-keyword-line {
  margin: 20px 0 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.75;
}

.seo-services-v4 {
  background: #ded7cd;
}

.seo-services-v4 .services-heading-v4 {
  display: grid;
  grid-template-columns: 0.5fr 1.4fr 0.9fr;
  align-items: end;
  gap: 42px;
}

.services-heading-v4 h2 {
  margin: 0;
  letter-spacing: -0.045em;
  font-family: Georgia, "Noto Serif KR", "Noto Serif JP", "Noto Serif SC", "Noto Serif TC", serif;
  font-size: clamp(40px, 4.6vw, 70px);
  font-weight: 500;
  line-height: 1.08;
}

.services-heading-v4 > p:last-child {
  margin: 0;
  color: #5a534d;
  font-size: 14px;
  line-height: 1.85;
}

.service-keyword-grid-v4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 10px;
  background: rgba(30, 28, 25, 0.18);
}

.service-keyword-card-v4 {
  min-height: 290px;
  padding: 30px;
  background: var(--v4-card);
  display: flex;
  flex-direction: column;
}

.service-keyword-card-v4 > span {
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 800;
}

.service-keyword-card-v4 h3 {
  margin: 48px 0 16px;
  letter-spacing: -0.025em;
  font-family: Georgia, "Noto Serif KR", "Noto Serif JP", "Noto Serif SC", "Noto Serif TC", serif;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.2;
}

.service-keyword-card-v4 p {
  margin: auto 0 0;
  color: #5a534d;
  font-size: 13px;
  line-height: 1.8;
}

.locale-about-v4 {
  display: grid;
  grid-template-columns: 0.4fr 1.1fr 1fr;
  align-items: start;
  gap: 44px;
}

.locale-about-v4 h2,
.locale-director-v4 h2,
.locale-faq-v4 h2 {
  margin: 0;
  letter-spacing: -0.045em;
  font-family: Georgia, "Noto Serif KR", "Noto Serif JP", "Noto Serif SC", "Noto Serif TC", serif;
  font-size: clamp(40px, 4.7vw, 68px);
  font-weight: 500;
  line-height: 1.1;
}

.locale-about-copy-v4 {
  border-left: 1px solid var(--line);
  padding-left: 42px;
}

.locale-about-copy-v4 p,
.locale-director-copy-v4 > p:not(.eyebrow) {
  color: #5b544e;
  margin: 0 0 20px;
  line-height: 1.9;
}

.locale-director-v4 {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.locale-director-image-v4,
.locale-director-copy-v4 {
  min-width: 0;
}

.locale-director-v4 h2 {
  word-break: normal;
  overflow-wrap: anywhere;
}

.locale-director-image-v4 {
  position: relative;
  height: 680px;
  overflow: hidden;
}

.locale-director-image-v4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.locale-credentials-v4 {
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.locale-credentials-v4 li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}

.locale-faq-v4 {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(48px, 8vw, 120px);
}

.search-note-v4 {
  max-width: 760px;
  margin: 24px 0 0;
  color: #6c645e;
  font-size: 12px;
  line-height: 1.8;
}

.mobile-language-group-v4 {
  padding: 14px 2px 6px;
  color: #c9bfb7;
  letter-spacing: 0.14em;
  font-size: 9px;
  font-weight: 800;
}

.mobile-menu-panel a[aria-current="page"] {
  color: #e7b6a0;
}

@media (max-width: 1120px) {
  .service-keyword-grid-v4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .seo-services-v4 .services-heading-v4,
  .locale-about-v4,
  .locale-director-v4,
  .locale-faq-v4 {
    grid-template-columns: 1fr;
  }

  .locale-about-copy-v4 {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 28px 0 0;
  }

  .locale-director-image-v4 {
    height: 560px;
  }
}

@media (max-width: 540px) {
  .service-keyword-grid-v4 {
    grid-template-columns: 1fr;
  }

  .service-keyword-card-v4 {
    min-height: 245px;
    padding: 26px 24px;
  }

  .service-keyword-card-v4 h3 {
    margin-top: 38px;
  }

  .locale-director-image-v4 {
    height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher summary::after {
    transition: none;
  }
}
