@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: #1F2A44;
  --ink2: #2E3C5E;
  --accent: #E4572E;
  --accent2: #B33F1D;
  --cream: #F5EFE6;
  --paper: #FFFAF3;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

[id] { scroll-margin-top: 116px; }

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

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: "Noto Serif JP", Georgia, "Songti SC", serif;
  line-height: 1.32;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ── 页头：品牌独占一行 + 菜单行 ───────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}

.brand-row {
  display: flex;
  align-items: center;
  padding: 8px 20px 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
  color: var(--ink);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.brand:hover { color: var(--accent); }
.brand-mark { height: 26px; width: auto; }

.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 10px;
  border-top: 2px solid var(--ink);
}

.burger,
.closer {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.burger:hover { background: var(--ink); color: var(--cream); }

.cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--paper);
  border: 2px solid var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cta:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ── 全屏遮罩菜单 ──────────────────────────────────────── */
.panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  padding: 18px 22px 40px;
  background: var(--ink);
  color: var(--cream);
  overflow-y: auto;
}

.panel.open { display: flex; }

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--accent);
}

.panel-brand {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.1em;
}

.closer { background: transparent; color: var(--cream); border-color: var(--cream); }
.closer:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.panel nav { margin-top: 16px; }
.panel nav p { display: flex; flex-direction: column; margin: 0; }

.panel nav a {
  display: block;
  min-height: 44px;
  padding: 14px 0;
  color: var(--cream);
  border-bottom: 1px solid rgba(245, 239, 230, 0.28);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 26px;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.panel nav a:hover { color: var(--accent); padding-left: 10px; }

/* ── 首屏 ──────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "copy copy" "a b";
  align-content: center;
  gap: 12px;
  min-height: 45vh;
  padding: 14px 20px 22px;
}

.copy { grid-area: copy; text-align: center; }

.copy h1 {
  margin: 0;
  font-size: clamp(26px, 6.6vw, 52px);
  color: var(--ink);
}

.shot { margin: 0; }

.shot {
  grid-area: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink2);
  border: 3px solid var(--ink);
}

.shot-a { grid-area: a; }
.shot-b { grid-area: b; background: var(--accent); border-color: var(--accent); }

.shot-img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1fr 1.6fr 1fr;
    grid-template-areas: "a copy b";
    align-items: center;
    gap: 26px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 20px 34px;
  }
  .shot { aspect-ratio: 4 / 5; }
  .shot-a { transform: translateY(-14px); }
  .shot-b { transform: translateY(18px); }
  .copy h1 { letter-spacing: 0.01em; }
}

/* ── 斜切色带 ──────────────────────────────────────────── */
.band {
  height: 26px;
  background: var(--accent);
  clip-path: polygon(0 58%, 100% 0, 100% 100%, 0 100%);
}

/* ── 正文区：左aside + 右正文 ──────────────────────────── */
.work {
  display: grid;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

@media (min-width: 900px) {
  .work {
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 44px;
    padding-top: 44px;
  }
  .rail { position: sticky; top: 124px; align-self: start; }
}

.rail {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 18px 16px 12px;
}

.rail-title {
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--ink);
}

.subtitle {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent2);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.rail-list a {
  display: block;
  min-height: 44px;
  padding: 11px 0;
  color: var(--ink);
  font-size: 16px;
  border-bottom: 1px solid rgba(31, 42, 68, 0.16);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.rail-list a:hover { color: var(--accent); padding-left: 6px; }

.column { min-width: 0; }

.column > article {
  padding: 28px 0;
  border-top: 3px solid var(--ink);
}

.column > article:first-child {
  border-top: 0;
  padding-top: 0;
}

.column h2 {
  font-size: clamp(21px, 3.2vw, 28px);
  padding-left: 14px;
  border-left: 8px solid var(--accent);
  color: var(--ink);
}

.column h3 {
  font-size: 19px;
  margin-top: 1.4em;
  color: var(--ink);
}

.column p,
.column ul,
.column ol,
.column blockquote { max-width: 70ch; }

.column ul,
.column ol { padding-left: 1.35em; }
.column li { margin: 0.35em 0; }

.column a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.column blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  background: var(--paper);
  border-left: 8px solid var(--ink);
}

.column blockquote p:last-child { margin-bottom: 0; }

.column figure {
  margin: 1.2em 0;
  border: 3px solid var(--ink);
  background: var(--ink2);
}

.column figcaption {
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
  padding: 8px 10px;
}

.column table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.column th,
.column td {
  border: 2px solid var(--ink);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.column th { background: var(--ink); color: var(--cream); }

.column hr {
  border: 0;
  border-top: 3px solid var(--accent);
  margin: 1.6em 0;
}

.column aside {
  border: 3px solid var(--accent);
  background: var(--paper);
  padding: 14px 16px;
  margin: 1.4em 0;
}

.column aside > :last-child { margin-bottom: 0; }

/* ── 页脚 ──────────────────────────────────────────────── */
.site-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
  padding: 34px 20px 18px;
  background: var(--ink);
  color: var(--cream);
  border-top: 10px solid var(--accent);
}

.foot-mark { grid-column: 1 / -1; }

.foot-brand {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(34px, 11vw, 78px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--cream);
}

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

.foot-col a {
  display: block;
  min-height: 44px;
  padding: 10px 0;
  color: var(--cream);
  border-bottom: 1px solid rgba(245, 239, 230, 0.24);
}

.foot-col a:hover { color: var(--accent); }

.foot-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 2px solid var(--accent);
}

.foot-legal p { margin: 0; font-size: 16px; }

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--cream);
  border: 2px solid var(--cream);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.totop:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

@media (min-width: 820px) {
  .site-foot {
    grid-template-columns: 1.7fr 1fr 1fr;
    padding: 44px 40px 20px;
  }
}

/* ── 滚动显现 ──────────────────────────────────────────── */
.has-js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.has-js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
  .burger, .cta, .closer, .panel nav a, .rail-list a, .totop { transition: none; }
  .shot-a, .shot-b { transform: none !important; }
}

@media (min-width: 620px) {
  .column > article { padding: 34px 0; }
}

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