:root {
  --bg: #f2f2f0;
  --bg-alt: #ffffff;
  --ink: #111111;
  --muted: #6a6a68;
  --line: #111111;
  --footer-bg: #111111;
  --footer-ink: #f2f2f0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --bg-alt: #1b1b1b;
    --ink: #eeeeee;
    --muted: #9a9a98;
    --line: #eeeeee;
    --footer-bg: #eeeeee;
    --footer-ink: #111111;
  }
  .logo-img { filter: invert(1); }
  .footer-logo { filter: none; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Inter Tight", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .06em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.en {
  font-family: "Inter Tight", system-ui, sans-serif;
  letter-spacing: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0;
}
@media (min-width: 600px) {
  .brand { font-size: 24px; }
}
.brand .logo-img { width: 32px; height: 32px; flex: none; object-fit: contain; }
.logo-img { max-width: 100%; height: auto; }

nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .04em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Main / Hero ---------- */
main { display: block; }

.hero-frame {
  margin: 24px 16px;
  border: 1px solid var(--line);
  height: 80vh;
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 640px) {
  .hero-frame { margin: 16px; height: auto; aspect-ratio: 1 / 1; min-height: 320px; }
}

.hero-dog {
  max-height: 88%;
  max-width: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translate(-10%, -6%);
}
@media (max-width: 640px) {
  .hero-dog { max-height: 82%; max-width: 80%; transform: translate(-3%, -10%); }
}

.hero-mark {
  position: absolute;
  right: 4%;
  bottom: 5%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.hero-mark .logo-img {
  height: 150px;
  width: auto;
}
@media (max-width: 640px) {
  .hero-mark .logo-img { height: 80px; }
  .hero-mark { right: 6%; bottom: 5%; }
}

.intro {
  padding: 72px 0;
  text-align: left;
}
.intro p {
  margin: 0;
  font-size: 22px;
  line-height: 1.9;
}
@media (min-width: 640px) {
  .intro p { font-size: 26px; }
}

/* ---------- Sections ---------- */
section.block {
  border-top: 1px solid var(--line);
  padding: 90px 0;
  background: var(--bg);
}
section.block.alt { background: var(--bg-alt); }
@media (max-width: 640px) {
  section.block { padding: 60px 0; }
}

.section-head { margin-bottom: 48px; }
.section-head .num {
  display: block;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.section-head h2 {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 10px;
}
@media (min-width: 640px) {
  .section-head h2 { font-size: 64px; }
}
.section-head .label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .18em;
}

/* generic sub-heading used on inner pages */
h2.jp-head {
  font-family: "Inter Tight", "Zen Kaku Gothic New", sans-serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .02em;
  margin: 56px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
h2.jp-head:first-of-type { margin-top: 0; }
h3 { font-size: 17px; font-weight: 500; margin: 28px 0 8px; }

/* ---------- Panels / Works ---------- */
.panel {
  border: 1px solid var(--line);
  padding: 28px;
}
.works { display: grid; gap: 20px; }
.work {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  padding: 24px;
}
.work img { width: 84px; height: 84px; flex: none; border: 1px solid var(--line); }
.work h3 { margin: 0 0 8px; font-size: 18px; }
.work p { margin: 0; color: var(--muted); font-size: 14px; }
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: .04em;
}

ul.plain { padding-left: 1.2em; margin: 0; }
ul.plain li { margin-bottom: 10px; }
ul.plain li:last-child { margin-bottom: 0; }

table.info { width: 100%; border-collapse: collapse; }
table.info th, table.info td {
  text-align: left;
  vertical-align: top;
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 400;
}
table.info th { width: 8em; color: var(--muted); white-space: nowrap; }
.note { color: var(--muted); font-size: 13px; }

/* ---------- Oyakata hero (sub product) ---------- */
.product-hero {
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin: 40px 0;
}
.product-hero img { width: 96px; height: 96px; flex: none; border: 1px solid var(--line); }
.product-hero h1 {
  margin: 0 0 6px;
  font-family: "Inter Tight", "Zen Kaku Gothic New", sans-serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: .02em;
}
.product-hero p { margin: 0; color: var(--muted); font-size: 14px; }

.page-head {
  padding: 56px 0 0;
}
.page-head h1 {
  font-family: "Inter Tight", "Zen Kaku Gothic New", sans-serif;
  font-weight: 600;
  font-size: 32px;
  margin: 0 0 8px;
}
.page-head p { margin: 0; color: var(--muted); font-size: 14px; }

main.wrap { padding-bottom: 100px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 28px 0;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
footer.site a { color: var(--footer-ink); opacity: .8; text-decoration: underline; }
footer.site a:hover { opacity: 1; }
.brand-footer { display: inline-flex; align-items: center; gap: 12px; }
.footer-logo { height: 20px; width: auto; }

@media (max-width: 520px) {
  .brand { font-size: 20px; }
  nav { gap: 4px 14px; }
  table.info th { width: 6.5em; }
}

.nowrap { white-space: nowrap; }
