:root {
  --paper: #f6f3ee;
  --ink: #1b1916;
  --muted: #6b645c;
  --line: #e4ddd4;
  --stone: #ebe4da;
  --accent: #8d4b32;
  --header: 80px;
  --max: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  padding-top: var(--header);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header);
  background: #fbf9f6; z-index: 1000;
}
.header-inner {
  height: 100%; display: flex; align-items: center; padding: 0 30px;
}
.logo-img { height: 24px; width: auto; }
.gnb { display: none; margin-left: auto; width: 28px; height: 28px; position: relative; }
.gnb .bar {
  position: absolute; left: 4px; width: 18px; height: 2px; background: var(--ink);
}
.gnb .bar:first-child { top: 10px; }
.gnb .bar:last-child { top: 17px; }
body.menu-open .gnb .bar:first-child { top: 13px; transform: rotate(40deg); }
body.menu-open .gnb .bar:last-child { top: 13px; transform: rotate(-40deg); }

.nav { margin-left: 36px; }
.nav > ul { display: flex; align-items: center; gap: 8px 18px; list-style: none; }
.nav > ul > li > a { display: inline-block; padding: 28px 0; font-size: 16px; font-weight: 700; }
.nav > ul > li > a:hover { color: var(--accent); }
.has-sub { position: relative; }
.depth {
  display: none; position: absolute; top: 72%; left: 0; min-width: 168px;
  background: #fff; border-radius: 10px; padding: 8px 0;
  box-shadow: 0 14px 30px rgba(27, 25, 22, 0.08);
}
.has-sub:hover .depth, .has-sub:focus-within .depth { display: block; }
.depth a { display: block; padding: 10px 16px; font-size: 14px; font-weight: 500; }
.depth a:hover { background: #f6f3ee; color: var(--accent); }
.lang { display: none; }

.hero {
  position: relative; height: 640px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
}
.visual {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(20, 16, 12, 0.28), rgba(20, 16, 12, 0.42)),
    url("../images/hero.webp") center / cover no-repeat;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero.is-paused .visual { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-text { position: relative; z-index: 1; max-width: var(--max); padding: 0 24px; }
.hero h1 { font-size: 56px; font-weight: 700; letter-spacing: -1px; line-height: 1.15; }
.hero .desc { margin-top: 12px; font-size: 18px; font-weight: 400; min-height: 1.4em; }
.capsule {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 28px; height: 46px; padding: 0 26px; border-radius: 80px;
  color: #fff; border: 1px solid #fff; font-size: 16px; font-weight: 500;
}
.capsule:hover { background: rgba(255, 255, 255, 0.14); }
.play {
  position: absolute; right: 22px; bottom: 18px; z-index: 2;
  width: 36px; height: 36px; color: #fff;
}
.play svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.hero.is-paused .icon-pause { display: none; }
.hero:not(.is-paused) .icon-play { display: none; }

.block { padding: 64px 28px 72px; }
.block-inner { max-width: var(--max); margin: 0 auto; }
.block h2 { font-size: 44px; font-weight: 700; margin-bottom: 28px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.card { display: block; }
.thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--stone); }
.card-title { margin-top: 16px; font-size: 20px; font-weight: 700; line-height: 1.45; }
.card:hover .card-title { color: var(--accent); }
.date {
  display: inline-block; margin-top: 12px; font-size: 12px; color: #8a8178;
  border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px;
}
.more-wrap { text-align: center; margin-top: 36px; }
.more {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink);
  display: inline-grid; place-items: center; font-size: 22px; line-height: 1;
}
.more:hover { color: #fff; background: var(--ink); }

.paths { background: var(--stone); padding: 48px 28px 56px; }
.paths-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 36px; }
.path { display: block; min-height: 64px; }
.path strong { display: block; font-size: 16px; font-weight: 500; }
.path span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.path:hover strong { color: var(--accent); }

.fold { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.fold details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fold summary {
  list-style: none; cursor: pointer; min-height: 64px;
  display: flex; align-items: center; font-size: 16px;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; margin-left: auto; font-size: 20px; }
.fold details[open] summary::after { content: "–"; }
.fold-body { padding: 4px 0 22px; color: var(--muted); }
.group-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.group-links a { color: var(--ink); }
.group-links a:hover { color: var(--accent); }

footer { padding: 28px 28px 32px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
}
.copy { font-size: 13px; color: var(--muted); }
.powered { margin-top: 4px; font-size: 12px; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.legal a:hover { color: var(--accent); }
.aside { font-size: 13px; font-weight: 700; }

@media (max-width: 760px) {
  :root { --header: 70px; }
  .gnb { display: block; }
  .nav {
    display: none; position: fixed; top: var(--header); left: 0; right: 0;
    background: #fbf9f6; padding: 8px 22px 24px; z-index: 999;
    max-height: calc(100vh - var(--header)); overflow: auto;
  }
  body.menu-open .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav > ul > li > a { padding: 12px 0; font-size: 20px; }
  .depth { display: block; position: static; box-shadow: none; background: transparent; padding: 0 0 8px 12px; }
  .lang { display: flex; gap: 18px; margin-top: 16px; font-weight: 700; }
  .lang .on { color: var(--accent); }
  .hero { height: 260px; }
  .hero h1 { font-size: 26px; }
  .hero .desc { font-size: 14px; }
  .capsule { height: 40px; margin-top: 16px; }
  .block h2 { font-size: 32px; }
  .news-grid, .paths-grid { grid-template-columns: 1fr; }
  .footer-inner { display: block; }
  .legal { margin-top: 14px; }
  .aside { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .visual { animation: none; }
}
