@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/noto-sans-sc-chinese-simplified-400-normal.woff2") format("woff2");
  unicode-range: U+3000-303F, U+3040-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/noto-sans-sc-chinese-simplified-500-normal.woff2") format("woff2");
  unicode-range: U+3000-303F, U+3040-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/fonts/noto-sans-sc-chinese-simplified-700-normal.woff2") format("woff2");
  unicode-range: U+3000-303F, U+3040-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url("/assets/fonts/noto-sans-sc-chinese-simplified-900-normal.woff2") format("woff2");
  unicode-range: U+3000-303F, U+3040-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/noto-sans-sc-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2122, U+2190-21FF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/noto-sans-sc-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2122, U+2190-21FF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/fonts/noto-sans-sc-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2122, U+2190-21FF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url("/assets/fonts/noto-sans-sc-latin-900-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2122, U+2190-21FF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/space-grotesk-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f6f3;
  --ink: #13212d;
  --accent: #1b8f74;
  --accent-2: #f77f00;
  --card: #ffffff;
  --muted: #5f6c77;
  --line: #d5dde5;
  --shadow: 0 16px 40px rgba(19, 33, 45, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top right, #f0f7ff 0%, #f7f6f3 45%, #f3f6ef 100%);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
}

html:lang(ja) body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
}

html:lang(ko) body {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

html:lang(ru) body {
  font-family: "Segoe UI", "Arial", "Helvetica Neue", sans-serif;
}

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

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus-visible {
  top: 12px;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(247, 246, 243, 0.86);
  border-bottom: 1px solid rgba(213, 221, 229, 0.65);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", "Noto Sans SC", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--accent) 0%, #2ab0d5 55%, var(--accent-2) 100%);
  box-shadow: 0 8px 20px rgba(43, 161, 136, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  margin-right: 8px;
}

.main-nav a {
  font-weight: 600;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}

.lang-picker {
  position: relative;
  min-width: 182px;
}

.lang-trigger {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(19, 33, 45, 0.08);
}

.lang-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #2ab0d5, #1b8f74);
  box-shadow: 0 6px 12px rgba(43, 161, 136, 0.25);
  flex: 0 0 auto;
}

.lang-current {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-caret {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.lang-picker.open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.lang-picker.open .lang-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lang-option:hover {
  background: #eef5fb;
}

.lang-option.active {
  color: #fff;
  background: var(--ink);
}

.hero {
  display: grid;
  gap: 24px;
  padding: 70px 0 34px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.05;
  font-family: "Space Grotesk", "Noto Sans SC", "Segoe UI", sans-serif;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  font-size: clamp(16px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--accent), #2ab0d5);
  box-shadow: 0 12px 20px rgba(42, 176, 213, 0.28);
}

.btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--card);
}

.section {
  padding: 30px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
  font-family: "Space Grotesk", "Noto Sans SC", "Segoe UI", sans-serif;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 6;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  animation: reveal 0.45s ease forwards;
}

.card:nth-child(2) {
  animation-delay: 0.06s;
}

.card:nth-child(3) {
  animation-delay: 0.12s;
}

.card:nth-child(4) {
  animation-delay: 0.18s;
}

.card:nth-child(5) {
  animation-delay: 0.24s;
}

.card:nth-child(6) {
  animation-delay: 0.3s;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.card p,
.body-copy,
li,
.site-footer p {
  color: var(--muted);
  line-height: 1.72;
}

.carousel {
  --slide-width: min(74%, 780px);
  --side-offset: min(44vw, 430px);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 12px 0;
}

.carousel-track {
  position: relative;
  height: clamp(220px, 36vw, 420px);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--slide-width);
  height: 100%;
  margin: 0;
  transform: translateX(-50%) scale(0.78);
  opacity: 0;
  filter: blur(1px) saturate(0.85);
  transition: transform 0.58s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, filter 0.45s ease;
  z-index: 1;
  pointer-events: none;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.carousel-slide.is-active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  filter: none;
  z-index: 3;
  pointer-events: auto;
}

.carousel-slide.is-prev {
  transform: translateX(calc(-50% - var(--side-offset))) scale(0.84);
  opacity: 0.66;
  filter: saturate(0.9);
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

.carousel-slide.is-next {
  transform: translateX(calc(-50% + var(--side-offset))) scale(0.84);
  opacity: 0.66;
  filter: saturate(0.9);
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

.carousel-slide.is-far-prev {
  transform: translateX(calc(-50% - (var(--side-offset) * 1.45))) scale(0.7);
  opacity: 0;
}

.carousel-slide.is-far-next {
  transform: translateX(calc(-50% + (var(--side-offset) * 1.45))) scale(0.7);
  opacity: 0;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 1px solid rgba(19, 33, 45, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-nav:hover {
  transform: translateY(-2px);
  background: #fff;
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

.policy {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.policy h3 {
  margin: 18px 0 6px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(213, 221, 229, 0.65);
  padding: 22px 0 30px;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes reveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .main-nav {
    gap: 12px;
  }

  .lang-picker {
    min-width: 154px;
  }

  .card {
    grid-column: span 12;
  }

  .carousel {
    --slide-width: min(82%, 680px);
    --side-offset: min(53vw, 300px);
  }

  .carousel-track {
    height: clamp(210px, 45vw, 360px);
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-around;
    margin: 0;
  }

  .lang-picker {
    margin-left: auto;
  }

  .hero {
    padding-top: 42px;
  }

  .carousel {
    --slide-width: 86%;
    --side-offset: 56vw;
  }

  .carousel-track {
    height: clamp(210px, 56vw, 300px);
  }

  .carousel-nav {
    width: 34px;
    height: 34px;
    margin-top: -17px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .card {
    transform: none;
    opacity: 1;
  }
}
