@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --mute: rgba(31, 31, 31, 0.62);
  --line: rgba(31, 31, 31, 0.1);
  --line2: rgba(31, 31, 31, 0.2);
  --r: 10px;
  --rl: 24px;
  --serif: 'Noto Serif JP', 'Songti SC', 'SimSun', serif;
  --sans: 'Noto Sans JP', 'Hiragino Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --sh: 0 4px 6px rgba(0, 0, 0, 0.05), 0 22px 44px -30px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.01em;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--mute);
  margin-bottom: 4px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 28px) 40px;
}

/* ---------- 顶部两行：品牌行 + 菜单行 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 calc(-1 * clamp(14px, 3vw, 28px));
  padding: 10px clamp(14px, 3vw, 28px) 8px;
  background: rgba(245, 245, 245, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 2px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--ink);
  flex: 0 0 auto;
}

.mark-x {
  background: radial-gradient(circle at 32% 30%, #ffffff 0 22%, var(--ink) 23%);
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--paper);
  font-size: 16px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.cdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dock {
  margin-top: 8px;
  max-width: 100%;
}

.dock-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.dock-list::-webkit-scrollbar {
  display: none;
}

.dock-list li {
  flex: 0 0 auto;
}

.dock-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.dock-list a:hover {
  background: var(--paper);
  border-color: var(--line);
}

.ic {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--line2);
  transform: rotate(45deg);
  transition: background 0.22s ease;
}

.dock-list a:hover .ic,
.dock-list a.on .ic {
  background: var(--ink);
}

.dock-list a.on {
  background: var(--paper);
  border-color: var(--line2);
}

/* ---------- 左栏 + 正文 ---------- */
.split {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(14px, 2.4vw, 26px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 132px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--sh);
}

.rail-h {
  font-size: 18px;
  margin-bottom: 10px;
}

.rail-list a {
  display: block;
  padding: 9px 8px;
  min-height: 40px;
  border-left: 2px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.rail-list a:hover {
  background: var(--mist);
  border-left-color: var(--line2);
}

.rail-list a.on {
  background: var(--mist);
  border-left-color: var(--ink);
  font-weight: 500;
}

.main {
  min-width: 0;
}

.article {
  min-width: 0;
}

.article > div {
  scroll-margin-top: 140px;
}

.article > div:not(.hero) {
  position: relative;
  margin-bottom: 16px;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s ease;
}

.article > div:not(.hero)::after {
  content: "";
  position: absolute;
  left: clamp(18px, 2.4vw, 26px);
  right: clamp(18px, 2.4vw, 26px);
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ink), rgba(31, 31, 31, 0.05));
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.article > div:not(.hero):hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 28px 50px -30px rgba(0, 0, 0, 0.32);
}

.article > div:not(.hero):hover::after {
  transform: scaleX(1);
}

.article h2 {
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 0.6em;
}

.article h3 {
  font-size: 18px;
  margin: 1.2em 0 0.5em;
}

.article p,
.article li {
  color: rgba(31, 31, 31, 0.86);
}

.article ul,
.article ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.article ul {
  list-style: disc;
}

.article ol {
  list-style: decimal;
}

.article li {
  margin: 0.35em 0;
}

.article a {
  border-bottom: 1px solid var(--line2);
}

.article a:hover {
  border-bottom-color: var(--ink);
}

.article blockquote {
  margin: 0 0 1em;
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--line2);
  color: var(--mute);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  min-height: 70vh;
  margin-bottom: 16px;
  padding: clamp(20px, 4vw, 48px);
  border-radius: var(--rl);
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  background: linear-gradient(155deg, #ffffff 0%, #f5f5f5 58%, #e9e9e9 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.55) 56%, rgba(255, 255, 255, 0.08));
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-txt {
  position: relative;
  z-index: 2;
  max-width: min(680px, 94%);
  text-align: right;
}

.hero h1 {
  font-size: clamp(30px, 6.2vw, 62px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0.7em 0 0 auto;
  max-width: 36ch;
  font-size: 16px;
  color: var(--mute);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(20px, 3vw, 34px);
}

.cta {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rl);
  box-shadow: var(--sh);
}

.cta h2 {
  font-size: clamp(22px, 4vw, 34px);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.footline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.addr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  color: var(--mute);
}

.sep {
  width: 1px;
  height: 14px;
  background: var(--line2);
}

.footlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 16px;
  transition: background 0.22s ease;
}

.footlinks a:hover {
  background: var(--mist);
}

.copy {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--mute);
}

/* ---------- 滚动进入 ---------- */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .article > div:not(.hero):hover {
    transform: none;
  }
}

/* ---------- 宽屏：不对称格栅 ---------- */
@media (min-width: 1100px) {
  .article {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    grid-auto-flow: dense;
  }
  .article > div:not(.hero) {
    margin-bottom: 0;
    grid-column: span 12;
  }
  .article > div:not(.hero):nth-child(odd) {
    grid-column: span 5;
  }
  .article > div:not(.hero):nth-child(even) {
    grid-column: span 7;
  }
  .hero {
    grid-column: 1 / -1;
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
  }
  .rail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .hero {
    min-height: 62vh;
  }
  .hero h1 {
    font-size: clamp(28px, 8vw, 42px);
  }
  .footline {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 19px;
  }
  .contact {
    padding: 0 13px;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
