:root {
  --red: #556b2f;
  --red-2: #44552b;
  --yellow: #111111;
  --base: #e3e7da;
  --ink: #111111;
  --line: #111111;
  --paper: #e3e7da;
  --dark: #111111;
  --white: #f3eedf;
  --header-h: 70px;
  --rail-w: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
  overflow-x: hidden;
  transition: background .34s var(--ease), color .34s var(--ease);
}
body.theme-black {
  --paper: #5f7046;
  --ink: #111111;
  --line: #111111;
}
body.is-menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--yellow);
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 950;
  line-height: .8;
  pointer-events: none;
  animation: loaderOut .9s var(--ease) .45s forwards;
}
.loading span { transform: translateY(.08em); }
@keyframes loaderOut { to { transform: translateY(-100%); visibility: hidden; } }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(8px);
  transition: background .34s var(--ease), border-color .34s var(--ease);
}
.mark {
  width: var(--rail-w);
  height: var(--header-h);
  flex: 0 0 var(--rail-w);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--red);
  border-right: 1px solid var(--line);
}
.mark-ring {
  display: block;
  width: 34px;
  aspect-ratio: 1;
  border: 9px solid var(--yellow);
  border-radius: 999px;
  transform: translate(-3px, -1px);
}
.mark-dot {
  position: absolute;
  width: 12px;
  aspect-ratio: 1;
  border: 5px solid var(--yellow);
  border-radius: 999px;
  right: 12px;
  bottom: 13px;
}
.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(21px, 2.9vw, 42px);
  padding-left: clamp(38px, 5vw, 72px);
  height: 100%;
}
.global-nav a,
.panel-nav a,
.site-footer nav a {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
sup {
  font-size: .38em;
  line-height: 1;
  margin-left: 1px;
  transform: translateY(-.2em);
}
.global-nav a::after,
.filters button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 4px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.global-nav a:hover::after,
.global-nav a.is-active::after,
.filters button:hover::after,
.filters button.is-current::after { transform: scaleX(1); }
.contact-pill,
.menu-button,
.panel-contact,
.footer-contact {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: var(--red);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: -.04em;
  line-height: 1;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.contact-pill:hover,
.menu-button:hover,
.panel-contact:hover,
.footer-contact:hover { transform: translateY(-1px); }
.contact-pill span,
.panel-contact span,
.footer-contact span { transition: transform .25s var(--ease); }
.contact-pill:hover span,
.panel-contact:hover span,
.footer-contact:hover span { transform: translateX(5px); }
.contact-pill {
  margin-left: auto;
  margin-right: 24px;
  min-width: 134px;
  height: 39px;
  font-size: 15px;
}
.menu-button {
  display: none;
  min-width: 96px;
  height: 39px;
  margin-left: auto;
  margin-right: 14px;
  padding: 0 18px;
  font-size: 14px;
}
.hamburger {
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.hamburger::before { top: 2px; }
.hamburger::after { bottom: 2px; }
.brand-mobile { display: none; }

.side-rail {
  position: fixed;
  z-index: 900;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  border-right: 1px solid var(--line);
  background: var(--paper);
  transition: background .34s var(--ease), border-color .34s var(--ease);
}
.side-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  display: inline-flex;
  white-space: nowrap;
  font-size: 38px;
  line-height: .8;
  font-weight: 950;
  letter-spacing: -.06em;
}
.side-brand sup { font-size: 9px; margin-left: 5px; }
.page-top {
  position: absolute;
  right: 7px;
  bottom: 78px;
  height: 50px;
  width: 24px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-size: 7px;
  letter-spacing: -.03em;
  line-height: 1.08;
  cursor: pointer;
}
.scroll-sign {
  position: absolute;
  left: 25px;
  bottom: 20px;
  height: 44px;
  width: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: rotate(90deg);
  transform-origin: center;
  font-size: 9px;
  white-space: nowrap;
}
.scroll-sign i {
  display: block;
  width: 42px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.scroll-sign i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}

.site-main {
  margin-left: var(--rail-w);
  padding-top: var(--header-h);
  min-height: 100vh;
}
.page { display: none; }
.page.is-active { display: block; }
.page-shell {
  padding: clamp(60px, 7vw, 100px) clamp(36px, 5.5vw, 86px) 100px;
  min-height: calc(100vh - var(--header-h));
}
.page-shell-narrow { max-width: 1180px; }
.page-title {
  margin: 0 0 clamp(26px, 4vw, 48px);
  font-size: clamp(82px, 12vw, 172px);
  line-height: .78;
  font-weight: 950;
  letter-spacing: -.075em;
}

.home-hero {
  min-height: clamp(260px, 39vw, 520px);
  padding: clamp(62px, 8vw, 100px) clamp(26px, 5.2vw, 80px) 48px;
  position: relative;
  display: flex;
  align-items: flex-start;
}
.home-hero h1 {
  margin: 0;
  max-width: 1220px;
  font-size: clamp(66px, 12.8vw, 190px);
  line-height: .76;
  font-weight: 950;
  letter-spacing: -.082em;
  text-transform: uppercase;
}
.home-hero h1 span { display: block; }
.home-hero h1 small {
  font-size: .45em;
  letter-spacing: -.08em;
  margin-left: .16em;
  vertical-align: middle;
}
.hero-copy {
  position: absolute;
  right: clamp(34px, 6vw, 100px);
  top: clamp(56px, 9vw, 130px);
  width: 150px;
  font-size: 22px;
  line-height: .98;
  letter-spacing: -.06em;
}
.hero-copy p { margin: 0; }

.home-works,
.works-grid,
.news-block,
.company-table,
.recruit-about,
.site-footer {
  border-top: 1px solid var(--line);
}
.work-row,
.work-card {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.work-row-large {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(500px, 2.3fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(34px, 5vw, 64px) clamp(22px, 5vw, 78px);
  align-items: end;
}
.work-row-wide {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(30px, 4vw, 54px) clamp(22px, 5vw, 78px);
  align-items: center;
}
.work-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.work-split .work-row {
  padding: 38px clamp(22px, 4vw, 54px) 44px;
  display: grid;
  gap: 28px;
}
.work-split .work-row + .work-row { border-left: 1px solid var(--line); }
.work-title h2,
.work-card h2 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: .85;
  font-weight: 950;
  letter-spacing: -.07em;
}
.work-title p,
.work-card p {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -.03em;
}
.work-title a,
.work-card a {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: -.03em;
}
.thumb {
  height: clamp(120px, 16vw, 230px);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0;
  background: var(--red);
  position: relative;
}
.thumb::before,
.thumb::after,
.thumb span::before,
.thumb span::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: color-mix(in srgb, var(--white) 72%, transparent);
}
.thumb span {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--red) 70%, #000 30%), transparent 65%),
    linear-gradient(45deg, color-mix(in srgb, var(--yellow) 50%, var(--white) 50%), color-mix(in srgb, var(--red) 75%, #000 25%));
}
.thumb span:nth-child(2) { filter: saturate(.85) brightness(1.12); transform: scale(1.01); }
.thumb span:nth-child(3) { filter: saturate(.7) brightness(.95); }
.thumb span::before { width: 60px; height: 60px; left: 20%; top: 20%; opacity: .62; }
.thumb span::after { width: 130px; height: 30px; left: 12%; bottom: 22%; opacity: .34; border-radius: 8px; }
.thumb-a span { background: linear-gradient(120deg, #a9b985, #e2e8d4 35%, #6f844d 36%, #d6dfc7 70%, #aebc8e); }
.thumb-b span { background: linear-gradient(110deg, #3f5328, #8a9a66 32%, #333 33%, #dbdbdb 68%, #556b2f 69%); }
.thumb-c span { background: linear-gradient(135deg, #4d6440, #b5c487 44%, #556b2f 45%, #26351d); }
.thumb-d span { background: linear-gradient(135deg, #d3dbc6, #f0f3eb 44%, #96a66e 45%, #5a6a42); }
.thumb-e span { background: linear-gradient(135deg, #b7c493, #f5f0da 34%, #1f2a30 35%, #556b2f 72%); }
.thumb-f span { background: linear-gradient(135deg, #d7dfcc, #fafafa 45%, #9cab77 46%, #20212b); }
.work-row:hover .thumb span,
.work-card:hover .thumb span { transform: scale(1.04); transition: transform .5s var(--ease); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: clamp(42px, 6vw, 80px) clamp(22px, 5vw, 78px) 12px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(50px, 7vw, 96px);
  line-height: .8;
  letter-spacing: -.07em;
}
.section-head a {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 16px;
  line-height: 1;
}
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  gap: 24px;
  align-items: center;
  min-height: 94px;
  padding: 24px clamp(22px, 5vw, 78px);
  border-bottom: 1px solid var(--line);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.news-item:hover { background: var(--red); color: var(--ink); }
.news-item time { font-size: 16px; }
.news-item span { font-size: clamp(22px, 2.6vw, 36px); line-height: 1; letter-spacing: -.055em; }
.news-item em { font-style: normal; font-size: 14px; text-decoration: underline; justify-self: end; }

.filters {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  margin-bottom: 34px;
}
.filters button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0 0 13px;
  cursor: pointer;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.065em;
}
.filters button::after { bottom: 0; height: 4px; }
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.work-card {
  padding: 42px clamp(22px, 3.8vw, 54px) 50px;
  min-height: 360px;
}
.work-card:nth-child(2n + 4) { border-left: 1px solid var(--line); }
.work-card-full { grid-column: 1 / -1; }
.work-card-full .thumb { height: clamp(160px, 18vw, 260px); }
.work-card.is-hidden { display: none; }

.company-hero {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(42px, 6vw, 76px) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
}
.company-hero h2,
.recruit-hero h2,
.recruit-about h2 {
  margin: 0;
  font-size: clamp(50px, 7vw, 100px);
  line-height: .85;
  letter-spacing: -.075em;
  font-weight: 950;
}
.company-hero p,
.recruit-hero p,
.recruit-about p {
  margin: 0;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.65;
  letter-spacing: -.04em;
}
.company-table { margin: 0; }
.company-table div {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--line);
  min-height: 86px;
  align-items: center;
}
.company-table dt { font-size: 18px; }
.company-table dd { margin: 0; font-size: clamp(22px, 2.7vw, 40px); line-height: 1.1; }

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(50px, 7vw, 92px) clamp(26px, 4vw, 58px);
}
.member {
  min-height: 250px;
  position: relative;
  padding-top: 120px;
  isolation: isolate;
}
.member::before,
.member::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--red);
}
.member.shape-circle::before { width: 155px; height: 155px; border-radius: 999px; top: 24px; left: 34px; }
.member.shape-square::before { width: 145px; height: 125px; top: 54px; left: 15px; }
.member.shape-triangle::before { width: 0; height: 0; background: transparent; border-left: 76px solid transparent; border-right: 76px solid transparent; border-top: 135px solid var(--red); top: 42px; left: 10px; }
.member.shape-dots::before { width: 95px; height: 95px; border-radius: 999px; top: 25px; left: 55px; box-shadow: 74px 54px 0 var(--red); }
.avatar {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 160px;
  border-radius: 60px 60px 8px 8px;
  background: linear-gradient(180deg, #f0f0f0 0 28%, #2b2b2b 29% 100%);
  filter: grayscale(1);
  box-shadow: 0 12px 18px rgba(0,0,0,.28);
}
.avatar::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 33px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #dcdcdc;
  box-shadow: inset 0 -12px 0 rgba(0,0,0,.16);
}
.avatar::after {
  content: "";
  position: absolute;
  top: 44px;
  left: -17px;
  width: 152px;
  height: 54px;
  border-radius: 999px;
  border-top: 18px solid #2b2b2b;
}
.member h2 {
  position: relative;
  margin: 0 0 8px;
  font-size: clamp(26px, 2.9vw, 42px);
  line-height: .82;
  letter-spacing: -.065em;
  font-weight: 950;
}
.member p { margin: 0; font-size: 12px; line-height: 1.3; }

.recruit-hero {
  display: grid;
  grid-template-columns: .84fr 1.2fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 460px;
}
.recruit-hero > div:first-child { padding: clamp(36px, 5vw, 72px) clamp(30px, 5vw, 76px) 38px 0; }
.recruit-hero p { margin-top: 28px; max-width: 520px; color: var(--ink); }
.people-visual {
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 80%, white 20%);
  position: relative;
  overflow: hidden;
}
.people-visual span {
  position: absolute;
  bottom: 0;
  width: 165px;
  height: 360px;
  border-radius: 80px 80px 0 0;
  background: linear-gradient(#d9d9d9 0 15%, #222 16% 100%);
  filter: grayscale(1);
}
.people-visual span::before {
  content: "";
  position: absolute;
  top: -66px;
  left: 48px;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: #ddd;
  box-shadow: inset -16px -12px 0 rgba(0,0,0,.2);
}
.people-visual span:nth-child(1) { left: 26%; background: linear-gradient(#d9d9d9 0 15%, #172536 16% 100%); }
.people-visual span:nth-child(2) { left: 61%; width: 150px; height: 330px; background: linear-gradient(#d9d9d9 0 15%, #efefef 16% 100%); }
.recruit-about { padding: clamp(44px, 5vw, 70px) 0 0; }
.recruit-about h2 { display: inline-block; margin-right: 24px; }
.recruit-about > button {
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  width: 54px;
  height: 54px;
  vertical-align: 18px;
  cursor: pointer;
}
.about-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 42px 0 44px;
}
.about-strip i {
  display: block;
  height: 170px;
  background: linear-gradient(135deg, #efefef, #aeaeae 52%, #556b2f 53% 56%, #dadada 57%);
}
.about-strip i:nth-child(2) { background: linear-gradient(135deg, #eee, #cfcfcf, #8b8b8b); }
.about-strip i:nth-child(3) { background: linear-gradient(135deg, #131313, #e8e8e8 55%, #556b2f 56%); }
.about-strip i:nth-child(4) { background: linear-gradient(135deg, #b6c49a, #333 55%, #556b2f 56%); }
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.about-cards article { padding: 42px 52px 50px 0; }
.about-cards article + article { border-left: 1px solid var(--line); padding-left: 52px; }
.about-cards h3 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: .9;
  letter-spacing: -.06em;
}
.about-cards h3 span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 18px;
  vertical-align: 8px;
}
.about-cards p { font-size: 18px; line-height: 1.4; }

.contact-form {
  border-top: 1px solid var(--line);
}
.contact-form label {
  display: grid;
  gap: 12px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -.045em;
  resize: vertical;
}
.contact-form ::placeholder { color: color-mix(in srgb, var(--ink) 45%, transparent); opacity: 1; }
.contact-form button {
  margin-top: 34px;
  width: 190px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--ink);
  cursor: pointer;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  opacity: 0;
  background: rgba(0,0,0,.05);
  transition: opacity .25s var(--ease);
}
body.is-menu-open .menu-panel { opacity: 1; pointer-events: auto; }
.panel-card {
  position: absolute;
  top: 10px;
  right: 14px;
  width: min(330px, calc(100vw - 28px));
  border-radius: 18px;
  background: var(--red);
  color: var(--dark);
  padding: 60px 34px 24px;
  transform: translateY(-16px) scale(.96);
  transform-origin: top right;
  transition: transform .32s var(--ease);
  box-shadow: 0 16px 36px rgba(0,0,0,.14);
}
body.theme-black .panel-card { color: var(--dark); }
body.is-menu-open .panel-card { transform: none; }
.panel-close {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 94px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
}
.panel-nav { display: grid; gap: 20px; }
.panel-nav a { font-size: 28px; letter-spacing: -.05em; }
.panel-contact {
  margin-top: 30px;
  width: 100%;
  height: 54px;
  background: var(--dark);
  color: var(--ink);
  font-size: 22px;
}
.panel-color {
  margin: 26px -34px -24px;
  padding: 17px 30px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--dark) 45%, transparent);
}
.panel-color span { font-size: 13px; }
.panel-color button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: inherit;
}
.panel-color button.is-current {
  background: var(--dark);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
}

.site-footer {
  margin-left: var(--rail-w);
  padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 78px) 34px;
  background: var(--paper);
  color: var(--ink);
}
.footer-marquee {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
  overflow: hidden;
}
.footer-marquee span {
  display: block;
  min-height: 80px;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: clamp(28px, 3vw, 44px);
}
.site-footer nav {
  display: flex;
  gap: clamp(20px, 3vw, 42px);
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.footer-contact {
  min-width: 156px;
  height: 44px;
  font-size: 18px;
  margin-bottom: 44px;
}
.footer-bottom {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: -.02em;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  :root { --header-h: 62px; --rail-w: 0px; }
  .site-main, .site-footer { margin-left: 0; }
  .global-nav, .contact-pill, .side-rail { display: none; }
  .site-header { justify-content: space-between; }
  .mark { width: 62px; height: 62px; flex-basis: 62px; }
  .mark-ring { width: 31px; border-width: 8px; }
  .mark-dot { width: 11px; right: 9px; bottom: 12px; border-width: 5px; }
  .brand-mobile {
    display: inline-flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.065em;
    font-weight: 950;
  }
  .brand-mobile sup { font-size: 9px; margin-left: 4px; }
  .menu-button { display: inline-flex; }
  .home-hero { min-height: 235px; padding: 76px 20px 30px; }
  .home-hero h1 { font-size: clamp(58px, 16vw, 112px); }
  .hero-copy { right: 22px; top: 74px; width: 94px; font-size: 14px; }
  .work-row-large,
  .work-row-wide { grid-template-columns: 1fr; padding: 26px 20px 34px; gap: 24px; }
  .work-row-wide .thumb { order: -1; }
  .work-split { grid-template-columns: 1fr 1fr; }
  .work-split .work-row { padding: 20px; }
  .work-title h2,
  .work-card h2 { font-size: clamp(28px, 8vw, 56px); }
  .thumb { height: clamp(110px, 28vw, 180px); }
  .page-shell { padding: 46px 20px 82px; }
  .page-title { font-size: clamp(62px, 17vw, 112px); }
  .filters { overflow-x: auto; padding-bottom: 10px; gap: 22px; }
  .filters button { font-size: clamp(28px, 8vw, 44px); flex: 0 0 auto; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-card { padding: 20px; min-height: auto; }
  .work-card-full { grid-column: 1 / -1; }
  .work-card:nth-child(2n + 4) { border-left: 1px solid var(--line); }
  .section-head { padding: 44px 20px 12px; }
  .news-item { grid-template-columns: 1fr; gap: 9px; padding: 22px 20px; min-height: 108px; }
  .news-item em { justify-self: start; }
  .company-hero,
  .recruit-hero { grid-template-columns: 1fr; }
  .company-table div { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .people-visual { min-height: 360px; border-left: 0; border-top: 1px solid var(--line); }
  .recruit-hero > div:first-child { padding-right: 0; }
  .about-strip { grid-template-columns: repeat(4, minmax(130px, 1fr)); overflow-x: auto; }
  .about-cards { grid-template-columns: 1fr; }
  .about-cards article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .footer-marquee { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { letter-spacing: -.04em; }
  .site-header { height: 51px; }
  .mark { width: 51px; height: 51px; flex-basis: 51px; }
  .mark-ring { width: 28px; border-width: 7px; }
  .mark-dot { width: 10px; right: 7px; bottom: 9px; border-width: 4px; }
  .brand-mobile { font-size: 27px; }
  .menu-button { min-width: 78px; height: 34px; margin-right: 10px; padding: 0 13px; font-size: 12px; gap: 8px; }
  .site-main { padding-top: 51px; }
  .home-hero h1 { font-size: clamp(56px, 18vw, 96px); }
  .home-hero h1 small { display: inline-block; font-size: .38em; }
  .hero-copy { width: 78px; font-size: 12px; top: 69px; }
  .work-split { grid-template-columns: 1fr 1fr; }
  .work-split .thumb { height: 100px; grid-template-columns: 1fr 1fr; }
  .work-split .thumb span:nth-child(3) { display: none; }
  .work-split .work-title h2 { font-size: 23px; line-height: .92; }
  .work-split .work-title p { font-size: 9px; }
  .work-split .work-title a { font-size: 11px; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-card { padding: 18px 20px 24px; }
  .work-card:not(.work-card-full) h2 { font-size: 23px; }
  .work-card:not(.work-card-full) p { font-size: 9px; }
  .work-card:not(.work-card-full) a { font-size: 11px; }
  .member-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .member { min-height: 210px; padding-top: 108px; }
  .avatar { width: 92px; height: 126px; }
  .avatar::before { left: 25px; width: 43px; height: 43px; }
  .member.shape-circle::before { width: 116px; height: 116px; left: 20px; }
  .member.shape-square::before { width: 112px; height: 94px; left: 12px; }
  .member.shape-triangle::before { border-left-width: 58px; border-right-width: 58px; border-top-width: 100px; }
  .member.shape-dots::before { width: 72px; height: 72px; box-shadow: 50px 40px 0 var(--red); }
  .member h2 { font-size: 24px; }
  .recruit-about h2 { font-size: clamp(40px, 11vw, 54px); }
  .about-strip { grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .about-strip i { height: 112px; }
  .footer-marquee { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; justify-content: start; }
}


/* ===== LONST content migrated into Onion layout ===== */
:root {
  --red: #556b2f;
  --red-2: #44552b;
  --yellow: #111111;
  --base: #e3e7da;
  --ink: #111111;
  --line: #111111;
  --paper: #e3e7da;
  --dark: #111111;
  --white: #f3eedf;
}
body { -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
body.static-page .page, .page.is-active { display: block; }
.site-header a.contact-pill, .panel-card a.panel-contact, .site-footer a.footer-contact { text-decoration: none; }
.loading span { text-transform: uppercase; }
.mark { text-decoration: none; }
.global-nav a[aria-current="page"]::after { transform: scaleX(1); }
.home-hero { min-height: clamp(330px, 43vw, 590px); overflow: hidden; border-bottom: 1px solid var(--line); }
.home-hero h1 { max-width: 1420px; }
.hero-copy { width: clamp(118px, 11vw, 190px); font-size: clamp(15px, 1.8vw, 24px); z-index: 2; }
.image-thumb {
  grid-template-columns: 1fr;
  background: var(--red);
  isolation: isolate;
}
.image-thumb::before,
.image-thumb span::before,
.image-thumb span::after { display: none; }
.image-thumb::after {
  display: block;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: color-mix(in srgb, var(--red) 28%, transparent);
  mix-blend-mode: multiply;
  z-index: 2;
  pointer-events: none;
}
.image-thumb img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.06);
  transform: scale(1.001);
  transition: transform .55s var(--ease), filter .55s var(--ease), opacity .55s var(--ease);
}
.hero-thumb { height: clamp(220px, 26vw, 370px); }
.about-thumb img { object-fit: contain; padding: clamp(22px, 4vw, 58px); filter: grayscale(1) contrast(1.05); }
.work-row:hover .image-thumb img,
.work-card:hover .image-thumb img { transform: scale(1.055); filter: grayscale(.76) contrast(1.08); }
.body-copy { margin-top: 28px; display: grid; gap: 16px; max-width: 680px; }
.body-copy p,
.lead-grid p,
.legal-copy p,
.legal-copy li,
.contact-lead p { font-weight: 700; letter-spacing: -.035em; }
.body-copy p { margin: 0; font-size: clamp(15px, 1.45vw, 20px); line-height: 1.7; }
.home-company { margin: 0 clamp(22px, 5vw, 78px); padding-left: 0; padding-right: 0; }
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 78px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 4vw, 54px) 0;
  margin-bottom: 34px;
}
.lead-grid p { margin: 0; font-size: clamp(16px, 1.7vw, 22px); line-height: 1.65; }
.work-card .work-link,
.work-title .work-link,
.work-link {
  display: inline-flex;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: -.03em;
  color: inherit;
}
.work-card .image-thumb { margin-bottom: 24px; }
.work-card:not(.work-card-full) .image-thumb { height: clamp(145px, 17vw, 245px); }
.work-card-full .image-thumb { height: clamp(230px, 30vw, 430px); }
.work-card:nth-child(2n + 4) { border-left: 1px solid var(--line); }
.page-contact .contact-form { margin-top: 34px; }
.contact-fieldset {
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 0;
}
.contact-fieldset legend {
  padding: 32px 0 0;
  font-size: 20px;
  font-weight: 950;
}
.contact-fieldset label { padding: 20px 0; }
.contact-form select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -.045em;
  appearance: none;
  border-radius: 0;
}
.contact-form textarea { min-height: 210px; }
.contact-form button,
.button-row button {
  min-width: 160px;
  padding: 0 24px;
}
.button-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button-row button[type="button"] { background: transparent; color: var(--ink); border: 1px solid currentColor; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.recaptcha-box { padding: 28px 0 0; }
.confirm-table { border-top: 1px solid var(--line); }
.confirm-table div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.confirm-table dt { font-size: 16px; font-weight: 950; }
.confirm-table dd { margin: 0; font-size: clamp(20px, 2.3vw, 34px); line-height: 1.25; }
.thanks-actions { padding-top: 36px; }
.legal-shell { max-width: 1280px; }
.legal-copy { border-top: 1px solid var(--line); }
.legal-block { border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 52px) 0; }
.legal-heading {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: .9;
  letter-spacing: -.06em;
  font-weight: 950;
}
.legal-copy p { margin: 0 0 18px; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.72; }
.legal-copy ul { margin: 12px 0 22px; padding-left: 1.1em; }
.legal-copy li { margin: 8px 0; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.62; }
.legal-right { text-align: right; }
.news-list-page { margin-top: 20px; }
@media (max-width: 1080px) {
  .home-company { margin: 0 20px; }
  .lead-grid { grid-template-columns: 1fr; }
  .hero-thumb { height: clamp(180px, 36vw, 300px); }
  .work-card:nth-child(2n + 4) { border-left: 1px solid var(--line); }
  .confirm-table div { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 680px) {
  .home-hero { min-height: 310px; }
  .lead-grid { margin-bottom: 22px; }
  .work-card .image-thumb { margin-bottom: 18px; }
  .work-card-full .image-thumb { height: clamp(190px, 48vw, 270px); }
  .contact-form label { font-size: 16px; }
  .contact-form input, .contact-form textarea, .contact-form select { font-size: clamp(21px, 7vw, 32px); }
  .panel-card { color: var(--dark); }
}

/* ===== Moss-green revision / black typography & rules ===== */
.mark {
  color: var(--ink);
  background: var(--red);
  border-right: 1px solid var(--line);
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.09em;
}
.mark-letter {
  display: block;
  transform: translate(-1px, -1px);
}
.mark-ring,
.mark-dot { display: none !important; }
.site-header,
.side-rail,
.site-footer,
.work-row,
.work-card,
.home-works,
.works-grid,
.news-block,
.company-table,
.recruit-about,
.contact-form,
.legal-copy,
.wp-post-list {
  border-color: var(--line);
}
.contact-pill,
.menu-button,
.panel-contact,
.footer-contact,
.contact-form button {
  background: var(--red);
  color: var(--ink);
}
.panel-card {
  background: var(--red);
  color: var(--ink);
  border: 1px solid var(--line);
}
.panel-close,
.panel-color button.is-current {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.panel-color { border-top-color: var(--line); }
.loading { background: var(--red); color: var(--ink); }
.news-item:hover { background: var(--red); color: var(--ink); }
.image-thumb { background: var(--red); }
.image-thumb::after { background: color-mix(in srgb, var(--red) 34%, transparent); }
.about-strip i { background: linear-gradient(135deg, #f0f3eb, #9aaa78 52%, var(--red) 53% 56%, #d9dfce 57%); }
.about-strip i:nth-child(3) { background: linear-gradient(135deg, #111111, #e8ebdf 55%, var(--red) 56%); }
.about-strip i:nth-child(4) { background: linear-gradient(135deg, #b6c49a, #111111 55%, var(--red) 56%); }
@media (max-width: 1080px) { .mark { font-size: 36px; } }
@media (max-width: 680px) { .mark { font-size: 32px; } }

/* ===== V4: main visual spacing + side rail fit ===== */
.home-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: clamp(18px, 2.8vw, 42px);
  min-height: clamp(360px, 45vw, 620px);
  padding: clamp(68px, 7.5vw, 108px) clamp(26px, 5.2vw, 80px) clamp(50px, 6vw, 82px);
  overflow: hidden;
}
.home-hero .hero-copy {
  position: static !important;
  justify-self: end;
  width: clamp(150px, 14vw, 240px);
  margin: 0;
  text-align: left;
  font-size: clamp(16px, 1.55vw, 24px);
  line-height: 1.08;
  letter-spacing: -.055em;
  z-index: auto;
}
.home-hero h1 {
  max-width: min(100%, 1420px);
  min-width: 0;
  font-size: clamp(62px, 11.2vw, 178px);
  line-height: .78;
  overflow-wrap: normal;
  word-break: normal;
}
.side-rail {
  overflow: hidden;
}
.page-top {
  left: 50%;
  right: auto;
  bottom: clamp(82px, 10vh, 112px);
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  background: var(--paper);
  border-width: 1px;
  font-size: 8px;
  line-height: 1.02;
  letter-spacing: -.025em;
  z-index: 3;
}
.page-top:hover {
  transform: translateX(-50%) translateY(-2px);
}
.scroll-sign {
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) rotate(90deg);
}
@media (max-width: 1080px) {
  .home-hero {
    min-height: auto;
    padding: 72px 20px 36px;
    gap: 20px;
  }
  .home-hero .hero-copy {
    width: min(34vw, 168px);
    font-size: clamp(13px, 2.1vw, 18px);
    justify-self: end;
  }
  .home-hero h1 {
    font-size: clamp(48px, 13.2vw, 104px);
    line-height: .82;
    letter-spacing: -.076em;
  }
}
@media (max-width: 680px) {
  .home-hero {
    padding: 64px 18px 32px;
    gap: 14px;
  }
  .home-hero .hero-copy {
    width: min(42vw, 150px);
    font-size: 12.5px;
    line-height: 1.12;
  }
  .home-hero h1 {
    font-size: clamp(40px, 14.5vw, 72px);
    line-height: .84;
  }
}
@media (max-height: 640px) and (min-width: 1081px) {
  .page-top {
    bottom: 60px;
    width: 38px;
    height: 38px;
    font-size: 7px;
  }
  .scroll-sign {
    display: none;
  }
}


/* ===== V5: MV copy placement, page-top restored, image centering ===== */
.home-hero {
  position: relative;
  display: block !important;
  min-height: clamp(380px, 47vw, 650px);
  padding: clamp(68px, 7.5vw, 110px) clamp(26px, 5.2vw, 80px) clamp(52px, 6.2vw, 86px);
  overflow: hidden;
  background: var(--red);
  color: var(--ink);
}
.home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: min(100%, 1420px);
  font-size: clamp(62px, 11.2vw, 184px);
  line-height: .78;
  overflow-wrap: normal;
  word-break: normal;
}
.home-hero h1 span,
.home-hero h1 small {
  color: var(--ink);
}
.home-hero h1 > span,
.home-hero h1 > small {
  white-space: nowrap;
}
.home-hero .hero-copy {
  position: absolute !important;
  z-index: 2;
  left: clamp(390px, 55%, calc(100% - 320px));
  top: clamp(150px, 16vw, 248px);
  width: clamp(220px, 19vw, 320px);
  margin: 0;
  color: #fff;
  text-align: left;
  font-size: clamp(18px, 1.68vw, 26px);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
  pointer-events: none;
}
.home-hero .hero-copy p {
  margin: 0;
}
.page-top {
  left: auto;
  right: 8px;
  bottom: 78px;
  width: 28px;
  height: 58px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: none;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-size: 7px;
  line-height: 1.04;
  letter-spacing: -.03em;
  white-space: normal;
  overflow: hidden;
}
.page-top:hover {
  transform: translateY(-2px);
}
.work-row-large,
.work-row-wide,
.about-row {
  align-items: center;
}
.work-row-large .image-thumb,
.work-row-wide .image-thumb,
.hero-thumb,
.about-thumb {
  display: grid;
  place-items: center;
}
.hero-thumb img,
.about-thumb img {
  display: block;
  margin: auto;
  width: 100%;
  height: 100%;
  object-position: 50% 50%;
}
.hero-thumb img {
  object-fit: cover;
}
.about-thumb img {
  object-fit: contain;
  transform: translateX(-4.85%);
}
.about-row:hover .about-thumb img {
  transform: translateX(-4.85%) scale(1.055);
}
.work-row-large:hover .hero-thumb img {
  transform: scale(1.055);
}

@media (max-width: 1080px) {
  .home-hero {
    display: flex !important;
    flex-direction: column;
    min-height: auto;
    padding: 66px 20px 36px;
    gap: 16px;
  }
  .home-hero h1 {
    order: 1;
    font-size: clamp(48px, 13.2vw, 104px);
    line-height: .82;
    letter-spacing: -.076em;
  }
  .home-hero h1 > span,
  .home-hero h1 > small {
    white-space: normal;
  }
  .home-hero .hero-copy {
    position: static !important;
    order: 2;
    width: min(100%, 420px);
    max-width: 420px;
    font-size: clamp(15px, 2.8vw, 20px);
    line-height: 1.18;
    color: #fff;
  }
  .work-row-large,
  .work-row-wide,
  .about-row {
    align-items: center;
  }
}

@media (max-width: 680px) {
  .home-hero {
    padding: 60px 18px 32px;
    gap: 12px;
  }
  .home-hero h1 {
    font-size: clamp(40px, 14.5vw, 72px);
    line-height: .84;
  }
  .home-hero .hero-copy {
    width: min(100%, 310px);
    font-size: 13px;
    line-height: 1.16;
  }
  .about-thumb img {
    transform: translateX(-4.85%);
  }
  .about-row:hover .about-thumb img {
    transform: translateX(-4.85%) scale(1.04);
  }
}

@media (max-height: 640px) and (min-width: 1081px) {
  .page-top {
    right: 8px;
    bottom: 64px;
    width: 26px;
    height: 52px;
    font-size: 6.5px;
  }
}

/* ===== V6: stable title fit, centered images, page-top center, PC color switch ===== */
body.theme-white {
  --paper: #f3eedf;
  --base: #f3eedf;
  --white: #f3eedf;
  --red: #111111;
  --red-2: #222222;
  --yellow: #f3eedf;
  --ink: #111111;
  --line: #111111;
  --dark: #111111;
  --accent: #111111;
  --accent-ink: #f3eedf;
  --hero-title: #f3eedf;
  --hero-copy: #ffffff;
  --panel-bg: #f3eedf;
  --panel-text: #111111;
  --hover-bg: #111111;
  --hover-text: #f3eedf;
}
body.theme-moss,
body.theme-black {
  --paper: #e3e7da;
  --base: #e3e7da;
  --white: #f3eedf;
  --red: #556b2f;
  --red-2: #44552b;
  --yellow: #111111;
  --ink: #111111;
  --line: #111111;
  --dark: #111111;
  --accent: #556b2f;
  --accent-ink: #111111;
  --hero-title: #111111;
  --hero-copy: #ffffff;
  --panel-bg: #556b2f;
  --panel-text: #111111;
  --hover-bg: #556b2f;
  --hover-text: #111111;
}

.loading {
  background: var(--accent);
  color: var(--accent-ink);
}
.site-header,
.side-rail,
.site-footer {
  background: var(--paper);
  color: var(--ink);
}
.site-header {
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}
.mark,
.contact-pill,
.menu-button,
.panel-contact,
.footer-contact,
.contact-form button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--line);
  transition:
    transform .34s var(--ease),
    background .34s var(--ease),
    color .34s var(--ease),
    border-color .34s var(--ease),
    box-shadow .34s var(--ease);
}
.mark {
  border-width: 0 1px 0 0;
  border-color: var(--line);
}
.contact-pill:hover,
.menu-button:hover,
.panel-contact:hover,
.footer-contact:hover,
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.header-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-right: 22px;
  height: 100%;
}
.header-color button,
.panel-color button {
  min-width: 54px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.035em;
  transition:
    transform .28s var(--ease),
    background .28s var(--ease),
    color .28s var(--ease),
    border-color .28s var(--ease);
}
.header-color button:hover,
.panel-color button:hover,
.header-color button.is-current,
.panel-color button.is-current {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}
.contact-pill {
  margin-right: 10px;
}
.panel-card {
  background: var(--panel-bg);
  color: var(--panel-text);
  border: 1px solid var(--line);
}
.panel-close {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--line);
  transition: transform .28s var(--ease), background .28s var(--ease), color .28s var(--ease);
}
.panel-close:hover {
  transform: translateY(-1px);
}
.panel-color {
  border-top-color: var(--line);
}

.home-hero {
  background: var(--accent);
  color: var(--hero-title);
  min-height: clamp(360px, 46vw, 620px);
  padding: clamp(66px, 7.2vw, 104px) clamp(24px, 5vw, 76px) clamp(48px, 5.8vw, 80px);
}
.home-hero h1 {
  max-width: 100%;
  width: min(100%, 1220px);
  font-size: clamp(54px, 9.8vw, 158px);
  line-height: .8;
  letter-spacing: -.084em;
  color: var(--hero-title);
  overflow: visible;
}
.home-hero h1 span,
.home-hero h1 small {
  color: var(--hero-title);
}
.home-hero h1 > span,
.home-hero h1 > small {
  white-space: nowrap;
}
.home-hero .hero-copy {
  left: clamp(420px, 38vw, 620px);
  top: clamp(248px, 24vw, 350px);
  width: clamp(210px, 19vw, 310px);
  color: var(--hero-copy);
  font-size: clamp(17px, 1.55vw, 24px);
  line-height: 1.05;
  text-shadow: 0 1px 8px rgba(0,0,0,.16);
}
.page-title {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: keep-all;
  font-size: clamp(64px, 10vw, 150px);
}

.image-thumb {
  background: var(--accent);
}
.image-thumb::after {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  mix-blend-mode: multiply;
}
body.theme-white .image-thumb::after {
  background: rgba(17,17,17,.08);
}
.hero-thumb {
  background: #f3eedf;
}
.hero-thumb img {
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.001);
}
.about-thumb {
  background: var(--accent);
}
.about-thumb img {
  object-fit: contain;
  object-position: 50% 50%;
  padding: clamp(20px, 4vw, 54px);
  transform: scale(1.001);
}
.about-row:hover .about-thumb img {
  transform: scale(1.045);
}
.work-row-large:hover .hero-thumb img {
  transform: scale(1.045);
}

.page-top {
  left: 50%;
  right: auto;
  bottom: 78px;
  width: 28px;
  height: 58px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-size: 7px;
  line-height: 1.05;
  letter-spacing: -.03em;
  white-space: normal;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform .34s var(--ease),
    background .34s var(--ease),
    color .34s var(--ease),
    border-color .34s var(--ease);
  will-change: transform;
}
.page-top:hover,
.page-top:focus-visible {
  transform: translateX(-50%) translateY(-3px);
  background: var(--accent);
  color: var(--accent-ink);
  outline: 0;
}
.scroll-sign {
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
}
.news-item:hover {
  background: var(--hover-bg);
  color: var(--hover-text);
}
.section-head a:hover,
.work-title a:hover,
.work-card a:hover,
.footer-bottom a:hover {
  opacity: .7;
}

@media (max-width: 1180px) and (min-width: 1081px) {
  .global-nav {
    gap: 24px;
    padding-left: 36px;
  }
  .contact-pill {
    min-width: 120px;
  }
  .header-color {
    margin-right: 14px;
  }
  .header-color button {
    min-width: 48px;
    padding: 0 9px;
  }
  .home-hero h1 {
    font-size: clamp(52px, 9.2vw, 112px);
  }
  .home-hero .hero-copy {
    left: 420px;
    top: clamp(240px, 24vw, 292px);
    width: 240px;
  }
}
@media (max-width: 1080px) {
  .header-color {
    display: none;
  }
  .home-hero {
    display: flex !important;
    flex-direction: column;
    min-height: auto;
    padding: 66px 20px 36px;
    gap: 16px;
  }
  .home-hero h1 {
    order: 1;
    width: 100%;
    font-size: clamp(46px, 12.6vw, 96px);
    line-height: .84;
    letter-spacing: -.078em;
  }
  .home-hero h1 > span,
  .home-hero h1 > small {
    white-space: normal;
  }
  .home-hero .hero-copy {
    position: static !important;
    order: 2;
    width: min(100%, 420px);
    max-width: 420px;
    color: var(--hero-copy);
    font-size: clamp(15px, 2.8vw, 20px);
    line-height: 1.18;
  }
  .page-title {
    font-size: clamp(56px, 14vw, 108px);
  }
}
@media (max-width: 680px) {
  .home-hero {
    padding: 60px 18px 32px;
    gap: 12px;
  }
  .home-hero h1 {
    font-size: clamp(38px, 13.2vw, 66px);
    line-height: .86;
  }
  .home-hero .hero-copy {
    width: min(100%, 310px);
    font-size: 13px;
    line-height: 1.16;
  }
  .page-title {
    font-size: clamp(48px, 15vw, 86px);
  }
  .hero-thumb img {
    object-position: 50% 50%;
  }
  .about-thumb img {
    padding: 22px;
    transform: scale(1.001);
  }
  .about-row:hover .about-thumb img {
    transform: scale(1.035);
  }
}
@media (max-height: 640px) and (min-width: 1081px) {
  .page-top {
    left: 50%;
    right: auto;
    bottom: 64px;
    width: 26px;
    height: 52px;
    font-size: 6.5px;
    transform: translateX(-50%);
  }
  .page-top:hover,
  .page-top:focus-visible {
    transform: translateX(-50%) translateY(-2px);
  }
}

/* V6.1: prevent MV title overflow by allowing the long first phrase to wrap like Onion */
.home-hero h1 > span:first-child {
  white-space: normal !important;
  max-width: min(100%, 7.8em);
}
.home-hero h1 > small,
.home-hero h1 > span:last-child {
  white-space: nowrap !important;
}
@media (max-width: 680px) {
  .home-hero h1 > span:first-child { max-width: 100%; }
}

/* ===== V7: cream default + stronger ABOUT image centering ===== */
body.theme-white {
  --paper: #f3eedf;
  --base: #f3eedf;
  --white: #f3eedf;
  --yellow: #f3eedf;
  --accent-ink: #f3eedf;
  --hero-title: #f3eedf;
  --panel-bg: #f3eedf;
  --hover-text: #f3eedf;
}
body.theme-moss,
body.theme-black {
  --white: #f3eedf;
}
.about-row .about-thumb {
  height: clamp(300px, 34vw, 500px);
  min-height: 300px;
  display: grid;
  place-items: center;
  background: var(--accent);
}
.about-row .about-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  padding: clamp(10px, 2.2vw, 34px);
  transform: scale(1);
  transform-origin: center center;
}
.about-row:hover .about-thumb img {
  transform: scale(1.04);
}
@media (max-width: 1080px) {
  .about-row .about-thumb {
    height: clamp(250px, 50vw, 420px);
    min-height: 250px;
  }
}
@media (max-width: 700px) {
  .about-row .about-thumb {
    height: clamp(220px, 70vw, 340px);
    min-height: 220px;
  }
  .about-row .about-thumb img {
    padding: 12px;
  }
}


/* ===== V8: dark moss mode + Japanese / English switch ===== */
body.lang-ja .english-content,
body.lang-ja .lang-en-only,
body.lang-en .japanese-content,
body.lang-en .lang-ja-only {
  display: none !important;
}

body.theme-white {
  --paper: #f3eedf;
  --base: #f3eedf;
  --white: #f3eedf;
  --red: #111111;
  --red-2: #222222;
  --yellow: #f3eedf;
  --ink: #111111;
  --line: #111111;
  --dark: #111111;
  --accent: #111111;
  --accent-ink: #f3eedf;
  --hero-title: #f3eedf;
  --hero-copy: #ffffff;
  --panel-bg: #f3eedf;
  --panel-text: #111111;
  --hover-bg: #111111;
  --hover-text: #f3eedf;
}

body.theme-moss,
body.theme-black {
  --paper: #1f3327;
  --base: #1f3327;
  --white: #1f3327;
  --red: #c7d3b3;
  --red-2: #a8b98e;
  --yellow: #1f3327;
  --ink: #e4ead8;
  --line: #d9e3cc;
  --dark: #e4ead8;
  --accent: #c7d3b3;
  --accent-ink: #1f3327;
  --hero-title: #1f3327;
  --hero-copy: #ffffff;
  --panel-bg: #1f3327;
  --panel-text: #e4ead8;
  --hover-bg: #c7d3b3;
  --hover-text: #1f3327;
}

body.theme-moss .site-header,
body.theme-moss .side-rail,
body.theme-moss .site-footer,
body.theme-black .site-header,
body.theme-black .side-rail,
body.theme-black .site-footer {
  background: var(--paper);
  color: var(--ink);
}

body.theme-moss .site-header,
body.theme-black .site-header {
  background: color-mix(in srgb, var(--paper) 95%, transparent);
}

body.theme-moss .home-hero,
body.theme-black .home-hero {
  background: var(--accent);
  color: var(--hero-title);
}

body.theme-moss .page-top,
body.theme-black .page-top {
  color: var(--ink);
}

body.theme-moss .hero-thumb,
body.theme-black .hero-thumb {
  background: var(--paper);
}

body.theme-moss .image-thumb::after,
body.theme-black .image-thumb::after {
  background: color-mix(in srgb, var(--paper) 22%, transparent);
  mix-blend-mode: multiply;
}

.header-color,
.header-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
}

.header-color {
  margin-right: 8px;
}

.header-lang {
  margin-right: 22px;
}

.header-lang button,
.panel-lang button {
  min-width: 42px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.035em;
  transition:
    transform .28s var(--ease),
    background .28s var(--ease),
    color .28s var(--ease),
    border-color .28s var(--ease);
}

.header-lang button:hover,
.panel-lang button:hover,
.header-lang button.is-current,
.panel-lang button.is-current {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.panel-color {
  margin: 26px -34px 0;
  border-top: 1px solid var(--line);
}

.panel-lang {
  margin: 0 -34px -24px;
  padding: 17px 30px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.panel-lang span {
  font-size: 13px;
}

@media (max-width: 1280px) and (min-width: 1081px) {
  .global-nav {
    gap: clamp(16px, 1.8vw, 30px);
    padding-left: clamp(22px, 3vw, 48px);
  }
  .contact-pill {
    min-width: 116px;
    margin-right: 8px;
  }
  .header-color {
    margin-right: 6px;
  }
  .header-lang {
    margin-right: 14px;
  }
  .header-color button,
  .header-lang button {
    min-width: 42px;
    padding: 0 8px;
  }
}

@media (max-width: 1080px) {
  .header-lang {
    display: none;
  }
}


/* ===== V9: mobile header collision fix + SEO deployment polish ===== */
@media (max-width: 1080px) {
  .site-header {
    justify-content: flex-start !important;
  }
  .brand-mobile {
    position: static !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: baseline;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100vw - 166px);
    margin: 0 8px 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    z-index: 2;
    font-size: clamp(21px, 5.8vw, 30px);
  }
  .brand-mobile sup {
    flex: 0 0 auto;
  }
  .menu-button {
    margin-left: auto !important;
    flex: 0 0 auto;
    z-index: 3;
  }
  .header-color,
  .header-lang {
    display: none !important;
  }
}
@media (max-width: 380px) {
  .brand-mobile {
    max-width: calc(100vw - 148px);
    margin-left: 8px;
    margin-right: 6px;
    font-size: clamp(19px, 5.4vw, 23px);
  }
  .brand-mobile sup {
    font-size: 8px;
    margin-left: 3px;
  }
  .menu-button {
    min-width: 72px;
    height: 32px;
    margin-right: 8px;
    padding: 0 10px;
    gap: 7px;
  }
}
@media (max-width: 340px) {
  .brand-mobile {
    font-size: 20px;
    max-width: calc(100vw - 142px);
  }
  .menu-button {
    min-width: 68px;
    padding: 0 9px;
  }
}
