:root {
  --black: #111111;
  --ink: #1a1a1a;
  --white: #ffffff;
  --off-white: #f7f6f4;
  --gray-100: #f1f0ee;
  --gray-300: #d8d6d2;
  --gray-500: #9a9792;
  --gray-700: #57534d;
  --line: rgba(17, 17, 17, 0.12);
  --serif: "Noto Serif JP", serif;
  --sans: "Zen Kaku Gothic New", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(247, 246, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand-emblem {
  width: 36px;
  height: 36px;
  object-fit: contain;
  position: relative;
  top: 3px;
}
.brand-name {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.site-nav {
  display: flex;
  gap: 40px;
}
.site-nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  height: 1px;
  background: var(--black);
  width: 100%;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.hero-emblem {
  position: absolute;
  top: calc(50% + 34px);
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  pointer-events: none;
}
.hero-emblem img {
  height: min(calc(100vh - 108px), 96vw);
  height: min(calc(100svh - 108px), 96vw);
  width: auto;
  max-width: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gray-700);
  margin: 0 0 28px;
}
.hero-logo {
  margin: 0 0 32px;
}
.hero-logo img {
  width: clamp(300px, 52vw, 680px);
  height: auto;
  margin: 0 auto;
}
.hero-lead {
  font-size: 15px;
  color: var(--gray-700);
  max-width: 460px;
  margin: 0 auto 44px;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gray-500);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
  overflow: hidden;
  position: relative;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  animation: scrollDown 2.2s var(--ease) infinite;
}
@keyframes scrollDown {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 44px;
  font-size: 13px;
  letter-spacing: 0.15em;
  border-radius: 999px;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  border: 1px solid var(--black);
}
.btn-outline {
  background: transparent;
  color: var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}
.btn-solid {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  font-family: var(--sans);
}
.btn-solid:hover {
  background: transparent;
  color: var(--black);
}

/* ---------- Sections ---------- */
.section {
  padding: 140px 24px;
  border-top: 1px solid var(--line);
}
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gray-500);
  margin: 0 0 16px;
  text-align: center;
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 34px);
  text-align: center;
  margin: 0 0 80px;
  letter-spacing: 0.08em;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.about-lede p {
  font-size: 15px;
  color: var(--gray-700);
  margin: 0;
}
.info-table {
  margin: 0;
  border-top: 1px solid var(--line);
}
.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.info-row dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray-500);
}
.info-row dd {
  margin: 0;
  font-size: 14px;
}
.info-row a { border-bottom: 1px solid var(--gray-300); }

/* ---------- Service ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.service-card {
  background: var(--off-white);
  padding: 48px 36px;
  transition: background 0.4s var(--ease);
}
.service-card:hover {
  background: var(--white);
}
.service-index {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: 0.05em;
}
.service-card p {
  font-size: 13.5px;
  color: var(--gray-700);
  margin: 0;
}

/* ---------- Works ---------- */
.works-note {
  text-align: center;
  font-size: 14px;
  color: var(--gray-700);
  margin: -56px 0 56px;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-placeholder {
  aspect-ratio: 4/3;
  background: var(--gray-100);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-placeholder span {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gray-500);
}

/* ---------- Contact ---------- */
.contact-lede {
  text-align: center;
  font-size: 14px;
  color: var(--gray-700);
  margin: -56px 0 56px;
}
.contact-form {
  max-width: 560px;
  margin: 0 auto 64px;
}
.form-row {
  margin-bottom: 26px;
}
.form-row label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  color: var(--gray-700);
}
.required {
  font-size: 10px;
  color: var(--white);
  background: var(--black);
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 8px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--black);
}
.contact-form .btn {
  width: 100%;
  text-align: center;
  border: 1px solid var(--black);
}
.form-note {
  font-size: 11.5px;
  color: var(--gray-500);
  text-align: center;
  margin: 18px 0 0;
}
.contact-direct {
  text-align: center;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.contact-direct p {
  margin: 6px 0;
  font-size: 13.5px;
  color: var(--gray-700);
}

.contact-mail a {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--black);
  border-bottom: 1px solid var(--gray-300);
}

/* ---------- Recruit ---------- */
.page-head {
  padding: 168px 24px 88px;
  text-align: center;
}
.page-head .section-title {
  margin-bottom: 0;
}
.recruit-inner {
  max-width: 760px;
  text-align: center;
}
.recruit-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--black);
  padding: 6px 18px;
  border-radius: 999px;
  margin: 0 0 24px;
}
.recruit-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: 0.08em;
  margin: 0 0 24px;
}
.recruit-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}
.recruit-tags li {
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
}
.recruit-lead {
  font-size: 15px;
  color: var(--gray-700);
  margin: 0 auto 64px;
  text-wrap: balance;
}
.recruit-block {
  margin: 0 0 80px;
  text-align: left;
}
.recruit-heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
  padding-left: 14px;
  border-left: 3px solid var(--black);
  line-height: 1.4;
}
.recruit-text {
  font-size: 14.5px;
  color: var(--gray-700);
  margin: 0 0 20px;
}
.recruit-text-sub {
  margin: 24px 0 0;
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.check-list li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(14px + 0.95em - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
}
.recruit-table {
  text-align: left;
  margin: 0;
}
.dd-note {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--gray-500);
}
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line);
}
.flow li {
  background: var(--off-white);
  padding: 28px 12px;
  text-align: center;
  font-size: 14px;
}
.flow li span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray-500);
}
.recruit-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--gray-500);
}
.recruit-apply {
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.recruit-apply-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gray-700);
  margin: 0 0 24px;
}
.recruit-mail {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: var(--gray-700);
}

/* ---------- Members ---------- */
.members-list {
  display: flex;
  flex-direction: column;
  gap: 96px;
  max-width: 880px;
  margin: 0 auto;
}
.member-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin: 0 0 28px;
}
.member-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 0.1em;
  margin: 0;
}
.member-role {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin: 0;
}
.member-table {
  margin: 0;
}
.member-table .info-row {
  grid-template-columns: 140px 1fr;
}
.member-table dd {
  line-height: 1.9;
}
.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.member-list li {
  padding: 3px 0;
}

/* ---------- Works page ---------- */
.works-list-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.work-year {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.24em;
  margin: 0 0 20px;
}
.works-list {
  border-top: 1px solid var(--line);
}
.work {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.work.has-flyer {
  grid-template-columns: 1fr 190px;
}
.work-period {
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: var(--gray-500);
  margin: 0 0 6px;
}
.work-now {
  display: inline-block;
  margin-left: 12px;
  padding: 0 12px 2px;
  font-size: 11px;
  letter-spacing: 0.2em;
  line-height: 18px;
  color: var(--white);
  background: var(--black);
  border-radius: 999px;
  vertical-align: 1px;
}
.work-now.is-upcoming {
  color: var(--black);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--black);
}
.work.has-flyer.is-landscape {
  grid-template-columns: 1fr 300px;
}
.work-flyer {
  margin: 0;
  align-self: start;
}
.work-flyer a {
  display: block;
  position: relative;
  cursor: zoom-in;
}
.work-flyer img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--gray-100);
}
.work-flyer a::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5.5 5.5'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  transition: background-color 0.3s var(--ease);
}
.work-flyer a:hover::after {
  background-color: rgba(17, 17, 17, 0.92);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 14, 14, 0.88);
  cursor: zoom-out;
}
.lightbox img {
  display: block;
  max-width: min(92vw, 880px);
  max-height: 90vh;
  width: auto;
  height: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.work-tag {
  display: block;
  width: fit-content;
  margin-top: 8px;
  padding: 2px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray-700);
}
.work-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin: 0 0 14px;
}
.work-info {
  margin: 0;
}
.work-info > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 3px 0;
  font-size: 13.5px;
  line-height: 1.8;
}
.work-info dt {
  color: var(--gray-500);
  letter-spacing: 0.08em;
}
.work-info dd {
  margin: 0;
}
.work-info .is-light dd {
  font-weight: 700;
}
.work-info .is-crew {
  grid-template-columns: 1fr;
  margin-top: 6px;
}
.work-link {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gray-300);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: border-color 0.3s var(--ease);
}
.work-link:hover {
  border-bottom-color: var(--black);
}
.works-more {
  text-align: center;
  margin: 0;
}
.works-credit {
  margin: 28px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--gray-500);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 64px 24px 40px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.footer-emblem {
  width: 40px;
  margin: 0 auto 24px;
  filter: invert(1);
  opacity: 0.9;
}
.footer-name {
  width: auto;
  height: 64px;
  margin: 0 auto 20px;
  filter: invert(1);
}
.footer-copy {
  font-size: 11px;
  color: var(--gray-500);
  margin: 0;
  letter-spacing: 0.05em;
}

/* 文節ごとに折り返す（main.js が日本語の文節を .ph で包む） */
.ph {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.hero-lead,
.contact-lede,
.works-note {
  text-wrap: balance;
}

@media (max-height: 780px) {
  .hero-scroll { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .site-nav {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--off-white);
    flex-direction: column;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .site-nav.open { max-height: 420px; }
  .site-nav a {
    padding: 18px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }
  .recruit-table .info-row,
  .member-table .info-row { grid-template-columns: 1fr; gap: 6px; }
  .work { padding: 28px 0; }
  .work.has-flyer, .work.has-flyer.is-landscape { grid-template-columns: 1fr; }
  .work-flyer { width: 150px; margin-top: 18px; }
  .work.is-landscape .work-flyer { width: 240px; }
  .work-info > div { grid-template-columns: 64px 1fr; gap: 8px; }
  .flow { grid-template-columns: 1fr; }
  .section { padding: 96px 20px; }
  .section-title { margin-bottom: 56px; }
}

[hidden] { display: none !important; }
