/*
Theme Name: BRIGADE
Theme URI: https://brigadejapan.com/
Author: BRIGADE
Description: 株式会社BRIGADEコーポレートテーマ。
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: brigade
*/

:root {
  --ink: #101112;
  --paper: #ffffff;
  --white: #fff;
  --muted: #777975;
  --line: rgba(16, 17, 18, .18);
  --accent: #a7afa9;
  --max: 1180px;
  --side: clamp(22px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", YuGothic, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .045em;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { opacity: .58; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { width: auto; height: auto; clip: auto; margin: 10px; padding: 8px 14px; z-index: 9999; background: #fff; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 var(--side);
  color: var(--ink);
}
.brand { font-size: 18px; font-weight: 700; letter-spacing: .22em; text-decoration: none; }
.brand-wrap { display: flex; align-items: center; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { width: 154px; max-height: 38px; object-fit: contain; }
.nav-list { display: flex; gap: clamp(18px, 3vw, 44px); padding: 0; margin: 0; list-style: none; }
.nav-list a { font-size: 11px; letter-spacing: .18em; text-decoration: none; }
.menu-toggle { display: none; color: inherit; background: none; border: 0; font: inherit; letter-spacing: .14em; }

.hero {
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding: 150px var(--side) clamp(70px, 10vw, 130px);
  color: var(--ink);
  background: var(--white);
}
.hero-inner { width: min(100%, var(--max)); margin: 0 auto; }
.eyebrow, .section-label { margin: 0 0 28px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.hero h1 { max-width: 980px; margin: 0; font-size: clamp(44px, 8.2vw, 116px); font-weight: 500; line-height: .99; letter-spacing: -.035em; }
.hero-ja { max-width: 600px; margin: 50px 0 0 auto; }
.hero-lead { margin: 0 0 10px; font-size: clamp(19px, 2vw, 26px); font-weight: 500; letter-spacing: .07em; }
.hero-copy { margin: 0; color: #555753; font-size: clamp(15px, 1.5vw, 19px); }
.hero-mark { display: block; width: 68px; height: 1px; margin-top: 42px; background: var(--accent); }

.section { padding: clamp(90px, 13vw, 180px) var(--side); border-bottom: 1px solid var(--line); }
.section-inner { width: min(100%, var(--max)); margin: 0 auto; }
.split { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 2fr); gap: clamp(40px, 9vw, 140px); }
.section h2 { margin: 0 0 42px; font-size: clamp(31px, 5vw, 66px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.lead { max-width: 760px; margin: 0; font-size: clamp(19px, 2.3vw, 29px); line-height: 1.75; letter-spacing: .035em; }
.body-copy { max-width: 710px; margin: 34px 0 0; color: #40423f; }

.services { padding: 0; margin: 20px 0 0; list-style: none; border-top: 1px solid var(--ink); }
.services li { display: grid; grid-template-columns: 80px 1fr 1.1fr; gap: 30px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.services .num { color: var(--muted); font-size: 11px; letter-spacing: .16em; }
.services h3 { margin: 0; font-size: clamp(20px, 2.3vw, 28px); font-weight: 500; line-height: 1.4; }
.services p { margin: 0; color: #555753; font-size: 14px; }

.project { color: var(--ink); background: #f1f2ef; }
.project-card { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(50px, 9vw, 130px); align-items: end; }
.project-name { margin: 0; font-size: clamp(64px, 11vw, 148px); font-weight: 400; line-height: .86; letter-spacing: -.06em; writing-mode: vertical-rl; }
.project .body-copy { color: #4a4c49; }
.text-link { display: inline-block; margin-top: 38px; font-size: 12px; letter-spacing: .18em; text-decoration: none; border-bottom: 1px solid currentColor; }

.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 20px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 170px; color: var(--muted); font-size: 12px; font-weight: 400; }

.contact { color: var(--ink); background: var(--white); }
.contact .lead { margin-bottom: 55px; }
.wpcf7-form label { display: block; margin-bottom: 24px; font-size: 12px; letter-spacing: .12em; }
.wpcf7-form input:not([type="submit"]), .wpcf7-form textarea {
  width: 100%; padding: 15px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(16,17,18,.35); border-radius: 0; font: inherit;
}
.wpcf7-form input[type="submit"] { padding: 15px 42px; color: var(--white); background: var(--ink); border: 1px solid var(--ink); cursor: pointer; font: inherit; }
.wpcf7-form input[type="submit"]:hover { color: var(--ink); background: transparent; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 35px var(--side); color: #b9bcb8; background: var(--ink); border-top: 1px solid rgba(255,255,255,.15); font-size: 10px; letter-spacing: .11em; }
.site-footer p { margin: 0; }
.page-shell { min-height: 75vh; padding: 150px var(--side) 100px; }
.page-shell > * { width: min(100%, 820px); margin-inline: auto; }
.page-shell h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.1; }

@media (max-width: 760px) {
  body { line-height: 1.8; }
  .site-header { height: 68px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: fixed; inset: 0; padding: 100px var(--side); color: #fff; background: #111; mix-blend-mode: normal; }
  .site-nav.is-open { display: block; }
  .nav-list { display: grid; gap: 25px; }
  .nav-list a { font-size: 20px; }
  .hero-ja { margin-left: 0; }
  .split, .project-card { grid-template-columns: 1fr; }
  .services li { grid-template-columns: 44px 1fr; gap: 18px; }
  .services p { grid-column: 2; }
  .project-name { font-size: clamp(62px, 23vw, 104px); writing-mode: horizontal-tb; }
  .company-table th { width: 105px; }
  .site-footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
