:root {
  --ink: #333333;
  --muted: #767676;
  --paper: #f4f4f2;
  --mist: #e9e9e6;
  --soft: #fafafa;
  --line: #d8d8d5;
  --white: #ffffff;
  --gray-action: #777777;
  --gray-action-hover: #666666;
  --shadow: 0 18px 45px rgba(96, 96, 96, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  letter-spacing: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 10px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 92px; }
.brand-logo { width: 86px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 11px;
  text-decoration: none;
  border-radius: 999px;
  font-size: .88rem;
  color: var(--ink);
}
.nav-link:hover,
.nav-link.is-current { background: var(--mist); color: var(--ink); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-action); margin: 5px 0; }

.home-hero,
.page-hero {
  position: relative;
  min-height: calc(100svh - 74px);
  display: flex;
  align-items: end;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .46) 56%, rgba(255, 255, 255, 0));
}
.page-hero { min-height: 62svh; }
.hero-shade,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .46), rgba(244, 244, 242, .18) 44%, rgba(244, 244, 242, 0) 76%);
}
.page-hero-overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, .62), rgba(244, 244, 242, .28) 52%, rgba(244, 244, 242, .05));
}
.home-hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  padding: clamp(56px, 9vw, 110px) clamp(20px, 6vw, 76px);
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(255, 255, 255, .9), 0 4px 24px rgba(255, 255, 255, .86);
}
.hero-top-copy {
  position: absolute;
  top: calc(50% - 2.3cm);
  left: 50%;
  z-index: 1;
  width: min(1280px, calc(100% - 40px));
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: clamp(2.825rem, 6.69vw, 6.04rem);
  white-space: normal;
  font-weight: 700;
  line-height: calc(1.12em + 2mm);
  text-align: center;
  text-shadow: none;
}
.hero-top-copy span { display: block; }
.page-hero-content {
  width: min(980px, 100%);
  padding: clamp(56px, 9vw, 110px) clamp(20px, 6vw, 76px);
}
.home-hero h1,
.page-hero h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  margin: 0 0 18px;
}
.home-hero h1 {
  max-width: 980px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 1;
}
.page-hero h1 {
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 1;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 700;
  margin: 0 0 2px;
  text-align: center;
}
.hero-brand {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 20px;
  text-align: center;
}
.hero-lead,
.page-hero-content p:last-child { max-width: 680px; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.hero-lead { font-weight: 500; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.home-hero .eyebrow,
.page-hero .eyebrow { color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
}
.button.primary { background: var(--gray-action); border-color: var(--gray-action); color: var(--white); }
.button.primary:hover { background: var(--gray-action-hover); border-color: var(--gray-action-hover); }
.home-hero .button { text-shadow: none; }
.home-hero .button.primary { background: #111111; border-color: #111111; color: var(--white); box-shadow: none; }
.home-hero .button.primary:hover { background: #333333; border-color: #333333; }
.button.ghost,
.button.outline { background: rgba(255, 255, 255, .78); border-color: var(--gray-action); color: var(--ink); }
.hero-actions,
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.section-inner { width: min(1120px, 100%); margin: auto; padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 56px); }
.section-inner.narrow { width: min(860px, 100%); }
h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 24px;
}
.story-title {
  font-size: clamp(2.05rem, 6.3vw, 5.6rem);
  line-height: 1.12;
  margin-bottom: 34px;
}
.story-title span { display: block; }
h3 { font-size: 1.08rem; margin: 0 0 8px; }
.story-band,
.profile-section,
.works-preview { background: var(--white); }
.daily-text { font-family: "Noto Sans JP", sans-serif; font-size: 1.1rem; color: var(--ink); }
.image-text {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  background: var(--mist);
}
.image-text.reverse { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.image-text.reverse .image-panel { order: 2; }
.image-panel { height: 100%; min-height: 520px; }
.image-panel img { width: 100%; height: 100%; object-fit: cover; }
.text-panel { padding: clamp(48px, 7vw, 90px); }
.section-block { background: var(--paper); }

.value-grid,
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.value-grid article,
.step,
.work-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 22px rgba(120, 120, 120, .08); }
.value-grid article,
.step { padding: 28px; }
.value-grid span,
.step span { display: inline-block; color: var(--muted); font-weight: 800; margin-bottom: 14px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.text-link { color: var(--ink); font-weight: 700; }

.featured-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.featured-works a { position: relative; display: block; min-height: 360px; overflow: hidden; border-radius: 8px; text-decoration: none; background: var(--mist); }
.featured-works img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .4s ease; }
.featured-works span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}
.featured-works a:hover img { transform: scale(1.04); }

.cta-band,
.note-band { background: var(--mist); color: var(--ink); }
.cta-band .eyebrow,
.note-band .eyebrow { color: var(--muted); }
.profile-grid,
.company-layout,
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.profile-grid img { border-radius: 8px; width: 100%; max-width: 340px; box-shadow: var(--shadow); }
.prose-section p { font-size: 1.02rem; }
.step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 14px; color: var(--ink); cursor: pointer; }
.filter.is-active { background: var(--mist); border-color: var(--gray-action); color: var(--ink); }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work-card { overflow: hidden; }
.work-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.work-card div { padding: 18px; }
.tag { font-size: .78rem; color: var(--muted); font-weight: 700; margin: 0 0 6px; }

.company-list { border-top: 1px solid var(--line); margin: 0; }
.info-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.info-row dt { font-weight: 700; color: var(--ink); }
.info-row dd { margin: 0; }
.contact-form { display: grid; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; }
.contact-form input,
.contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: inherit; background: var(--white); }
.form-message { margin: 0; color: var(--ink); font-weight: 700; }

.site-footer { background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.footer-inner { width: min(1120px, 100%); margin: auto; padding: 38px clamp(20px, 5vw, 56px); display: flex; justify-content: space-between; gap: 24px; }
.footer-logo { width: 92px; height: auto; }
.footer-info p { margin: .2rem 0; color: var(--muted); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 74px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 14px 20px 22px; background: var(--white); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 12px; }
  .home-hero,
  .page-hero { min-height: 72svh; }
  .home-hero::after { height: 70%; background: linear-gradient(0deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .62) 64%, rgba(255, 255, 255, 0)); }
  .home-hero .hero-shade { background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .28) 40%, rgba(255, 255, 255, .58)); }
  .image-text,
  .image-text.reverse,
  .profile-grid,
  .company-layout,
  .contact-grid { grid-template-columns: 1fr; }
  .image-text.reverse .image-panel { order: 0; }
  .image-panel { min-height: 360px; }
  .value-grid,
  .featured-works,
  .works-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .featured-works a { min-height: 280px; }
  .footer-inner { display: block; }
  .footer-logo { margin-bottom: 18px; }
  .info-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
  .site-header { padding: 9px 16px; }
  .brand-logo { width: 78px; }
  .home-hero-content,
  .page-hero-content { padding: 54px 18px; }
  .home-hero { min-height: calc(100svh - 74px); }
  .hero-top-copy { top: calc(43% - 1cm); font-size: clamp(2.41rem, 10.71vw, 3.095rem); white-space: normal; }
  .hero-top-copy span { display: block; }
  .home-hero h1 { font-size: 3.25rem; }
  .story-title { font-size: clamp(2rem, 8.7vw, 2.65rem); }
  .section-inner { padding: 56px 18px; }
  .text-panel { padding: 44px 18px; }
  .button { width: 100%; }
  .hero-actions,
  .contact-actions { width: 100%; }
  .work-card img { aspect-ratio: 5 / 4; }
}
