:root {
  --page-bg: #ffffff;
  --panel-bg: #ffffff;
  --panel-soft: #f4fbf4;
  --text: #1f2b21;
  --muted: #5c6f61;
  --line: #d4e7d7;
  --brand: #4fbf62;
  --brand-strong: #1d8f4f;
  --brand-deep: #0b6d43;
  --accent: #37b0d5;
  --shadow: 0 18px 40px rgba(28, 87, 49, 0.08);
  --container: 1300px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 191, 98, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfffb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(212, 231, 215, 0.95);
}

.header-inner {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  overflow-wrap: anywhere;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.language-picker {
  position: relative;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 68px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-bg);
  color: var(--brand-deep);
  font-weight: 700;
  cursor: pointer;
}

.language-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 152px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.language-options[hidden] {
  display: none;
}

.language-options button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.language-options button[aria-pressed="true"],
.language-options button:hover {
  background: var(--panel-soft);
  color: var(--brand-deep);
}

.language-toggle:focus-visible,
.language-options button:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 3px;
}

html[lang="en"] .content-panel,
html[lang="en"] .menu-group,
html[lang="en"] .side-nav {
  overflow-wrap: anywhere;
}

html[lang="ja"] body {
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  line-break: strict;
}

html[lang="ja"] .footer-inner {
  word-break: normal;
}

.brand img {
  width: 132px;
  height: auto;
}

.brand-copy strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-toggle {
  border: 0;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-deep);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
  content: "";
}

.menu-toggle span::before {
  position: absolute;
  top: -9px;
}

.menu-toggle span::after {
  position: absolute;
  top: 9px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-9px) rotate(-45deg);
}

.global-nav {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.global-nav.is-open {
  max-height: min(640px, calc(100vh - 120px));
  overflow-y: auto;
}

.global-nav-panel {
  margin: 0 0 22px;
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.menu-group h3 {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 1rem;
  text-align: center;
}

.menu-group a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  text-align: center;
}

.hero {
  width: min(calc(100% - 40px), var(--container));
  margin: 34px auto 0;
  padding: 52px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(7, 47, 27, 0.46), rgba(10, 84, 45, 0.3)),
    linear-gradient(180deg, rgba(8, 48, 25, 0.08), rgba(8, 48, 25, 0.3)),
    url("../images/main-hero.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  border: 1px solid rgba(79, 191, 98, 0.14);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.hero p.eyebrow {
  margin: 0 0 14px;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 255, 236, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.38);
}

.hero p.description {
  max-width: 720px;
  margin: 22px auto 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

.quick-links {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  text-align: center;
}

.quick-links a {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(8, 45, 24, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.quick-links strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
}

.quick-links span {
  color: rgba(240, 255, 242, 0.84);
  font-size: 0.92rem;
}

.quick-links a.is-primary {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(5, 42, 22, 0.22);
}

.quick-links a.is-primary strong {
  color: var(--brand-strong);
}

.quick-links a.is-primary span {
  color: #3f5d4a;
}

.main-layout {
  width: min(calc(100% - 40px), var(--container));
  margin: 34px auto 70px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.paybag-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 26px;
  align-items: stretch;
}

.paybag-focus-media {
  min-height: 360px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.paybag-focus-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paybag-focus-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 18px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(79, 191, 98, 0.11), rgba(55, 176, 213, 0.08));
  border: 1px solid rgba(29, 143, 79, 0.16);
  text-align: center;
}

.paybag-focus-copy .focus-eyebrow {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.paybag-focus-copy h2 {
  margin-bottom: 12px;
}

.focus-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.side-nav,
.content-panel,
.info-card,
.stats-card {
  background: var(--panel-bg);
  border: 1px solid rgba(215, 208, 196, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.side-nav {
  padding: 20px 16px;
  align-self: start;
  position: sticky;
  top: 118px;
  text-align: center;
}

.side-nav h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  color: var(--brand-strong);
}

.side-nav .side-group-title {
  display: block;
  margin: 18px 0 8px;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
}

.side-nav .side-group-title:first-of-type {
  margin-top: 0;
}

.side-nav a {
  display: block;
  padding: 11px 10px;
  border-radius: 16px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.side-nav a:hover,
.side-nav a.is-active {
  background: var(--panel-soft);
  color: var(--brand-strong);
  font-weight: 700;
}

.content-panel {
  padding: 36px;
  text-align: center;
}

.content-panel h1,
.content-panel h2,
.content-panel h3 {
  margin-top: 0;
  color: var(--brand-strong);
}

.content-panel p,
.content-panel li {
  line-height: 1.85;
  color: #414141;
}

.content-panel ul {
  padding-left: 0;
  list-style-position: inside;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.section-block + .section-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.feature-grid,
.card-grid,
.certificate-grid,
.faq-grid,
.stats-band {
  --card-width: calc((100% - 18px) / 2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.feature-grid > *,
.card-grid > *,
.certificate-grid > *,
.faq-grid > *,
.stats-band > * {
  flex: 0 0 var(--card-width);
  min-width: 0;
}

.card-grid.columns-3,
.stats-band {
  --card-width: calc((100% - 36px) / 3);
}

.info-card,
.stats-card {
  padding: 22px;
  text-align: center;
}

.info-card h3,
.stats-card h3 {
  margin-bottom: 10px;
}

.stats-band {
  margin-top: 24px;
}

.stats-card strong {
  display: block;
  font-size: 2rem;
  color: var(--brand);
}

.timeline {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
}

.timeline::before {
  display: none;
}

.timeline li {
  position: relative;
  margin-bottom: 18px;
  padding: 0;
}

.timeline li::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(217, 143, 57, 0.3);
  vertical-align: middle;
}

.certificate-item {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 22px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  text-align: center;
}

.certificate-preview {
  display: block;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(29, 143, 79, 0.16);
  background: #ffffff;
}

.certificate-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.certificate-preview:hover img {
  transform: scale(1.025);
}

.certificate-item h3 {
  margin: 14px 0 0;
  text-align: center;
  font-size: 1rem;
}

.certificate-status {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 18px;
  border: 1px dashed rgba(29, 143, 79, 0.36);
  background:
    radial-gradient(circle at top, rgba(79, 191, 98, 0.14), transparent 55%),
    #ffffff;
  color: var(--brand-strong);
  font-size: 1.35rem;
  font-weight: 800;
}

.certificate-item .button {
  display: inline-flex;
  margin: 14px auto 0;
  padding: 11px 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.certificate-item p {
  margin: 10px auto 0;
}

.faq-item {
  padding: 22px;
  border-radius: 22px;
  background: var(--panel-soft);
  text-align: center;
}

.contact-methods .info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.contact-methods h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.contact-value {
  max-width: 100%;
  color: var(--brand-strong);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-methods p {
  flex: 1;
  color: var(--muted);
}

.contact-methods a:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  cursor: pointer;
}

.button.button-outline {
  border: 1px solid rgba(29, 143, 79, 0.28);
  background: #ffffff;
  color: var(--brand-strong);
}

.mini-banner {
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(79, 191, 98, 0.1), rgba(55, 176, 213, 0.08));
  border: 1px solid rgba(79, 191, 98, 0.16);
  text-align: center;
}

.map-embed {
  margin-top: 24px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(79, 191, 98, 0.16);
  box-shadow: var(--shadow);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-links {
  margin-top: 18px;
  text-align: center;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.product-gallery {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.product-gallery-main {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(79, 191, 98, 0.16);
  background: #f8fbf8;
  box-shadow: var(--shadow);
}

.product-gallery-main img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-thumb.is-active {
  border-color: var(--brand-strong);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.site-footer {
  margin-top: auto;
  background: linear-gradient(135deg, #0f6f43, #1d8f4f);
  color: rgba(255, 255, 255, 0.84);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 32px 0;
  text-align: center;
  line-height: 1.9;
  word-break: keep-all;
}

@media (max-width: 1100px) {
  .menu-grid,
  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.columns-3,
  .stats-band {
    --card-width: calc((100% - 18px) / 2);
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .paybag-focus {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .hero,
  .main-layout,
  .footer-inner,
  .global-nav {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-inner {
    gap: 12px;
    padding: 14px 0;
  }

  .header-actions {
    gap: 8px;
  }

  .language-toggle {
    width: 52px;
    height: 54px;
    gap: 6px;
    border-radius: 18px;
    font-size: 0.85rem;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.45;
  }

  .menu-toggle {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    width: 24px;
  }

  .global-nav.is-open {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .hero,
  .content-panel,
  .global-nav-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .global-nav-panel {
    margin-bottom: 14px;
  }

  .side-nav {
    display: none;
  }

  .quick-links,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .card-grid,
  .card-grid.columns-3,
  .certificate-grid,
  .faq-grid,
  .stats-band {
    --card-width: 100%;
  }

  .menu-grid {
    gap: 18px;
  }

  .menu-group h3 {
    margin-bottom: 8px;
    font-size: 0.98rem;
  }

  .menu-group a {
    padding: 6px 0;
    font-size: 0.95rem;
  }

  .hero {
    margin-top: 22px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .hero p.description,
  .content-panel p,
  .content-panel li {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .content-panel h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .product-gallery {
    gap: 12px;
    min-width: 0;
  }

  .product-gallery-main {
    border-radius: 18px;
  }

  .product-gallery-main img {
    height: auto;
    object-fit: contain;
  }

  .product-gallery-thumbs {
    width: 100%;
    max-width: 340px;
    justify-self: center;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-thumb {
    min-width: 0;
    border-radius: 12px;
  }

  .gallery-thumb img {
    height: 72px;
    object-fit: cover;
  }

  .paybag-focus-media {
    min-height: 240px;
  }

  .focus-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .focus-actions .button {
    width: 100%;
    justify-content: center;
  }

  .brand-copy span {
    display: none;
  }

  .brand img {
    width: 92px;
    flex-shrink: 0;
  }

  .footer-inner {
    font-size: 0.92rem;
  }
}

@media (max-width: 390px) {
  .brand-copy strong {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
  }

  .brand img {
    width: 64px;
    flex-shrink: 0;
  }

  .content-panel {
    padding: 20px 16px;
  }
}
