:root {
  --navy: #0d2342;
  --navy-deep: #071426;
  --ink: #151914;
  --muted: #667064;
  --paper: #f5f1e8;
  --paper-2: #ebe5d7;
  --white: #fff;
  --line: rgba(13,35,66,.14);
  --gold: #c28a3d;
  --max: 1120px;
  --sans: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.9; }
img { display: block; width: 100%; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin-top: 0; }

.sub-header { position: absolute; z-index: 10; inset: 0 0 auto; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.18); background: rgba(7,20,38,.42); backdrop-filter: blur(10px); }
.sub-header-inner, .sub-hero-inner, .sub-main, .sub-footer-inner { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.sub-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sub-brand { display: inline-flex; align-items: center; gap: 3px; color: var(--white); }
.sub-brand-mark { width: 30px; height: 30px; display: block; flex: 0 0 30px; object-fit: contain; }
.sub-brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 700; line-height: 1; }
.sub-nav { display: flex; align-items: center; gap: 22px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 800; }
.sub-nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.sub-nav a:hover { border-color: rgba(255,255,255,.72); }
.sub-nav .contact { padding: 9px 13px; color: var(--navy-deep); background: rgba(255,255,255,.92); }

.sub-hero { min-height: 520px; display: grid; align-items: end; color: var(--white); background-position: center; background-size: cover; }
.page-works .sub-hero { background-image: linear-gradient(90deg, rgba(7,20,38,.88), rgba(7,20,38,.54) 54%, rgba(7,20,38,.18)), url("projects/explore-hanno-card.webp"); }
.page-work-detail .sub-hero { background-image: linear-gradient(90deg, rgba(7,20,38,.92), rgba(7,20,38,.60) 58%, rgba(7,20,38,.22)), url("service/web-production-macro-v2.webp"); }
.page-about .sub-hero { background-image: linear-gradient(90deg, rgba(7,20,38,.92), rgba(7,20,38,.62) 56%, rgba(7,20,38,.22)), url("../edited/hero/HERO02_operacity-night_cinematic.webp"); }
.sub-hero-inner { padding: 150px 0 62px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.sub-hero h1 { max-width: 850px; margin-bottom: 18px; font-family: var(--serif); font-size: clamp(42px, 7vw, 78px); line-height: 1.12; }
.sub-hero .lead { max-width: 720px; margin: 0; color: rgba(255,255,255,.84); font-size: 16px; font-weight: 650; }

.sub-main { padding: 76px 0 92px; }
.page-intro { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 54px; padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.page-intro h2, .content-section h2 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(30px,4vw,48px); line-height: 1.3; }
.page-intro p, .content-section > p { margin-bottom: 0; color: var(--muted); font-size: 16px; }
.tag { display: inline-flex; margin-bottom: 14px; padding: 4px 9px; color: var(--navy); border: 1px solid var(--line); font-size: 11px; font-weight: 900; }
.text-link { display: inline-flex; margin-top: 20px; color: var(--navy); font-size: 14px; font-weight: 900; }
.text-link::after { content: "→"; margin-left: 8px; }

.project-feature { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(330px,.65fr); min-height: 460px; margin: 54px 0 0; background: var(--white); border-block: 1px solid var(--line); }
.project-feature figure { height: 100%; margin: 0; overflow: hidden; border-right: 1px solid var(--line); }
.project-feature img { height: 100%; object-fit: cover; object-position: top center; }
.project-feature-body { padding: 38px; display: flex; flex-direction: column; justify-content: space-between; }
.project-feature h2 { margin-bottom: 16px; font-family: var(--serif); font-size: clamp(31px,4vw,48px); line-height: 1.25; }
.project-feature p { color: var(--muted); font-size: 16px; }
.project-list { margin-top: 34px; border-bottom: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 34px; padding: 28px 0; border-top: 1px solid var(--line); }
.project-row figure { height: 150px; margin: 0; overflow: hidden; }
.project-row img { height: 100%; object-fit: cover; }
.project-row h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.4; }
.project-row p { margin-bottom: 0; color: var(--muted); font-size: 16px; }

.overview-lead { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 48px; padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.overview-lead h2 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(30px,4vw,48px); line-height: 1.3; }
.overview-lead p { margin-bottom: 0; color: var(--muted); font-size: 16px; }
.content-section { padding: 54px 0; border-bottom: 1px solid var(--line); }
.detail-table { width: 100%; margin-top: 24px; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.detail-table th, .detail-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 16px; }
.detail-table tr:last-child th, .detail-table tr:last-child td { border-bottom: 0; }
.detail-table th { width: 128px; color: var(--muted); font-weight: 800; }
.practice-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 28px; border-block: 1px solid var(--line); }
.practice-item { padding: 26px; border-right: 1px solid var(--line); }
.practice-item:last-child { border-right: 0; }
.practice-item strong { display: block; margin-bottom: 8px; color: var(--navy); }
.practice-item span { color: var(--muted); font-size: 16px; }

.sub-footer { padding: 30px 0; color: rgba(255,255,255,.6); background: #071018; font-size: 14px; }
.sub-footer-inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .sub-nav a:not(.contact) { display: none; }
  .page-intro, .overview-lead, .project-feature, .project-row, .practice-list { grid-template-columns: 1fr; }
  .project-feature { min-height: 0; }
  .project-feature figure { height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-row { gap: 18px; }
  .project-row figure { height: 220px; }
  .practice-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .practice-item:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .sub-header-inner, .sub-hero-inner, .sub-main, .sub-footer-inner { width: min(var(--max), calc(100% - 40px)); }
  .sub-brand-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .sub-brand-name { font-size: 23px; }
  .sub-nav .contact { padding: 8px 10px; font-size: 14px; }
  .sub-hero { min-height: 450px; }
  .sub-hero-inner { padding-top: 130px; }
  .project-feature-body { padding: 26px 22px; }
  .detail-table th, .detail-table td { display: block; width: 100%; }
  .detail-table th { padding-bottom: 3px; border-bottom: 0; }
  .detail-table td { padding-top: 3px; overflow-wrap: anywhere; }
  .sub-footer-inner { flex-direction: column; }
}
