:root {
  --ink: #101010;
  --ink-soft: #242424;
  --yellow: #f1b52a;
  --yellow-deep: #d89a12;
  --paper: #f6f3eb;
  --white: #ffffff;
  --line: #d9d5cb;
  --muted: #68655f;
  --max: 1180px;
  --shadow: 0 18px 50px rgba(16,16,16,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.skip-link { position: fixed; left: 10px; top: 10px; z-index: 9999; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.display-font {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  font-stretch: condensed;
  letter-spacing: .025em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16,16,16,.1);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink); }
.brand-mark svg { width: 18px; height: 18px; fill: var(--ink); }
.brand-word { font-size: 28px; line-height: 1; font-family: Impact, Haettenschweiler, "Arial Black", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.global-nav { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 700; }
.global-nav a { position: relative; padding: 28px 0; }
.global-nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 21px; height: 2px; background: var(--yellow); transition: right .2s ease; }
.global-nav a:hover::after, .global-nav a[aria-current="page"]::after { right: 0; }
.nav-contact { padding: 12px 18px !important; background: var(--ink); color: white; border: 1px solid var(--ink); transition: background .2s ease, color .2s ease; }
.nav-contact:hover { background: var(--yellow); color: var(--ink); }
.nav-toggle { display: none; border: 0; background: transparent; width: 46px; height: 46px; padding: 9px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 7px 0; transition: transform .2s ease; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  border-bottom: 1px solid var(--ink);
}
.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding: 62px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr);
  gap: 64px;
  align-items: center;
}
.hero-kicker { margin: 0 0 18px; font-size: 12px; font-weight: 850; letter-spacing: .16em; }
.hero-title { margin: 0; font-size: clamp(70px, 10vw, 156px); line-height: .77; text-transform: uppercase; transform: scaleX(.93); transform-origin: left center; }
.hero-jp { margin: 32px 0 0; max-width: 720px; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.45; letter-spacing: -.03em; font-weight: 800; }
.hero-lead { max-width: 650px; margin: 22px 0 0; font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; border: 1px solid var(--ink); font-size: 13px; font-weight: 800; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-light { background: rgba(255,255,255,.55); color: var(--ink); }
.button-yellow { background: var(--yellow); color: var(--ink); }

.hero-visual { position: relative; min-height: 430px; }
.hero-black-panel { position: absolute; inset: 16px 0 0 28px; background: var(--ink); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.hero-black-panel::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.23); }
.hero-black-panel::after { content: ""; position: absolute; left: -28px; bottom: -22px; width: 62%; height: 38%; background: var(--white); border: 1px solid var(--ink); }
.hero-code { position: absolute; inset: 56px 44px auto 74px; color: white; z-index: 2; }
.hero-code p { margin: 0 0 28px; color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.hero-code strong { display: block; font-size: clamp(56px, 6vw, 86px); line-height: .92; text-transform: uppercase; }
.hero-code ul { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.35); }
.hero-code li { padding: 12px 0; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.78); }
.hero-bolt { position: absolute; right: -8px; bottom: -2px; width: 158px; z-index: 3; fill: var(--yellow); filter: drop-shadow(0 10px 22px rgba(0,0,0,.18)); }

.ticker { overflow: hidden; background: var(--ink); color: white; border-bottom: 1px solid var(--ink); }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 14px 0; font-size: 11px; font-weight: 800; letter-spacing: .16em; animation: ticker 24s linear infinite; }
.ticker-track span::after { content: "◆"; margin-left: 28px; color: var(--yellow); }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 104px 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: white; }
.section-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section-head { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 54px; align-items: start; margin-bottom: 54px; }
.section-label { margin: 0; font-size: 11px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.section-label::before { content: ""; display: inline-block; width: 36px; height: 7px; margin-right: 10px; background: var(--yellow); vertical-align: 1px; border: 1px solid var(--ink); }
.section-ink .section-label::before { border-color: var(--yellow); }
.section-title { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.2; letter-spacing: -.05em; font-weight: 780; }
.section-desc { max-width: 700px; margin: 20px 0 0; font-size: 15px; line-height: 2; color: var(--muted); }
.section-ink .section-desc { color: rgba(255,255,255,.68); }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.intro-strong { margin: 0; font-size: clamp(28px, 3.5vw, 48px); line-height: 1.55; letter-spacing: -.04em; font-weight: 760; }
.intro-copy { margin: 0; font-size: 16px; line-height: 2.1; color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 370px; padding: 30px; background: white; border: 1px solid var(--ink); overflow: hidden; }
.service-card:nth-child(2) { background: var(--yellow); }
.service-card::after { content: attr(data-no); position: absolute; right: -8px; bottom: -42px; font-family: Impact, "Arial Black", sans-serif; font-size: 150px; line-height: 1; color: rgba(16,16,16,.055); }
.service-eyebrow { font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.service-card h3 { margin: 58px 0 18px; font-size: 27px; line-height: 1.45; letter-spacing: -.03em; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.service-card:nth-child(2) p { color: rgba(16,16,16,.72); }
.service-list { list-style: none; margin: 30px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(16,16,16,.2); }
.service-list li { margin-top: 9px; font-size: 12px; font-weight: 700; }
.service-list li::before { content: "—"; margin-right: 8px; }

.news-list { border-top: 1px solid var(--ink); }
.news-row { display: grid; grid-template-columns: 140px 130px 1fr 28px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left .15s ease; }
.news-row:hover { padding-left: 10px; }
.news-date { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; width: fit-content; min-height: 26px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--ink); font-size: 10px; font-weight: 800; background: white; }
.tag-yellow { background: var(--yellow); }
.news-title { font-size: 14px; font-weight: 700; }
.news-arrow { font-size: 18px; }
.section-more { margin-top: 34px; display: flex; justify-content: flex-end; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.section-ink .text-link { border-color: white; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { background: white; color: var(--ink); border: 1px solid rgba(255,255,255,.2); }
.case-thumb { height: 190px; position: relative; overflow: hidden; background: var(--yellow); border-bottom: 1px solid var(--ink); }
.case-thumb::before, .case-thumb::after { content: ""; position: absolute; background: var(--ink); }
.case-thumb::before { width: 72%; height: 82%; left: 14%; top: 9%; transform: rotate(-5deg); }
.case-thumb::after { width: 48%; height: 54%; left: 41%; top: 26%; background: white; border: 1px solid var(--ink); transform: rotate(6deg); }
.case-card:nth-child(2) .case-thumb { background: #e8e4dc; }
.case-card:nth-child(3) .case-thumb { background: #cfcac0; }
.case-body { padding: 24px; }
.case-meta { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.case-card h3 { margin: 14px 0 12px; font-size: 20px; line-height: 1.55; }
.case-card p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--muted); }

.column-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.column-card { border-top: 4px solid var(--ink); padding-top: 18px; }
.column-card:nth-child(2) { border-color: var(--yellow-deep); }
.column-card .column-date { font-size: 11px; color: var(--muted); }
.column-card h3 { margin: 18px 0 12px; font-size: 20px; line-height: 1.6; }
.column-card p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--muted); }

.company-band { background: var(--yellow); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.company-band-inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 74px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.company-band h2 { margin: 0; font-size: clamp(42px, 6vw, 80px); line-height: .92; text-transform: uppercase; }
.company-band p { margin: 0 0 24px; font-size: 15px; line-height: 1.9; }
.company-band-links { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--ink); color: white; }
.footer-inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 64px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-brand { font-size: 48px; text-transform: uppercase; }
.footer-company { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.66); }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-nav a { font-size: 12px; line-height: 2.1; color: rgba(255,255,255,.8); }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; color: rgba(255,255,255,.48); font-size: 10px; }

/* sub pages */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--ink); }
.page-hero-inner { width: min(var(--max), calc(100% - 40px)); min-height: 330px; margin: 0 auto; padding: 70px 0 56px; display: flex; flex-direction: column; justify-content: flex-end; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 46px; font-size: 10px; color: var(--muted); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; color: #aaa; }
.page-title-en { margin: 0; font-size: clamp(70px, 10vw, 132px); line-height: .8; text-transform: uppercase; }
.page-title-jp { margin: 26px 0 0; font-size: 20px; font-weight: 800; }
.page-intro { max-width: 760px; margin: 24px 0 0; font-size: 14px; line-height: 1.95; color: var(--muted); }
.page-main { padding: 88px 0 120px; }
.page-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.company-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.company-table th, .company-table td { border-bottom: 1px solid var(--line); padding: 22px 18px; text-align: left; vertical-align: top; font-size: 14px; line-height: 1.9; }
.company-table th { width: 200px; font-size: 12px; background: var(--paper); }
.company-table ul { margin: 0; padding-left: 1.3em; }

.mission-lead { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; margin-bottom: 90px; }
.mission-word { font-size: clamp(72px, 10vw, 150px); line-height: .78; text-transform: uppercase; }
.mission-copy h2 { margin: 0; font-size: clamp(32px, 4vw, 54px); line-height: 1.5; letter-spacing: -.04em; }
.mission-copy p { margin: 30px 0 0; font-size: 16px; line-height: 2.15; color: var(--muted); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { border: 1px solid var(--ink); padding: 30px; min-height: 280px; }
.value-card:nth-child(2) { background: var(--yellow); }
.value-no { font-family: Impact, "Arial Black", sans-serif; font-size: 42px; }
.value-card h3 { margin: 60px 0 16px; font-size: 22px; }
.value-card p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.value-card:nth-child(2) p { color: rgba(16,16,16,.72); }

.recruit-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; border-top: 1px solid var(--ink); padding-top: 44px; }
.recruit-status { display: inline-flex; padding: 8px 12px; background: var(--yellow); border: 1px solid var(--ink); font-size: 11px; font-weight: 850; }
.recruit-copy h2 { margin: 0 0 24px; font-size: 32px; line-height: 1.5; }
.recruit-copy p { margin: 0; font-size: 15px; line-height: 2; color: var(--muted); }
.recruit-copy p + p { margin-top: 14px; }

.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; }
.contact-info h2 { margin: 0 0 18px; font-size: 28px; }
.contact-info p { margin: 0; font-size: 14px; line-height: 1.95; color: var(--muted); }
.contact-email { display: block; margin-top: 34px; padding: 26px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: clamp(20px, 2.5vw, 32px); font-weight: 800; word-break: break-word; }
.contact-box { padding: 34px; background: var(--paper); border: 1px solid var(--line); }
.contact-box h3 { margin: 0 0 18px; font-size: 18px; }
.contact-box ul { margin: 0; padding-left: 1.2em; }
.contact-box li { margin: 8px 0; font-size: 13px; line-height: 1.8; color: var(--muted); }

.article-list { border-top: 1px solid var(--ink); }
.article-item { display: grid; grid-template-columns: 130px 1fr; gap: 34px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.article-item time { font-size: 11px; font-weight: 700; color: var(--muted); }
.article-item h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.5; }
.article-item p { margin: 0; max-width: 760px; font-size: 13px; line-height: 1.85; color: var(--muted); }
.article-item .tag { margin-top: 16px; }

.case-detail-list { display: grid; gap: 22px; }
.case-detail { display: grid; grid-template-columns: 260px 1fr; border: 1px solid var(--ink); }
.case-detail-visual { min-height: 260px; background: var(--yellow); position: relative; overflow: hidden; }
.case-detail-visual::before { content: "CASE"; position: absolute; left: 20px; bottom: 14px; font-family: Impact, "Arial Black", sans-serif; font-size: 88px; line-height: .8; opacity: .18; }
.case-detail:nth-child(2) .case-detail-visual { background: #d9d5cb; }
.case-detail:nth-child(3) .case-detail-visual { background: #bbb6ad; }
.case-detail-body { padding: 32px; }
.case-detail-body h2 { margin: 12px 0 18px; font-size: 25px; line-height: 1.45; }
.case-detail-body p { margin: 0; font-size: 14px; line-height: 1.95; color: var(--muted); }
.case-detail-body dl { display: grid; grid-template-columns: 100px 1fr; gap: 10px 18px; margin: 24px 0 0; font-size: 12px; }
.case-detail-body dt { font-weight: 800; }
.case-detail-body dd { margin: 0; color: var(--muted); }

.privacy-copy { max-width: 860px; }
.privacy-copy h2 { margin: 46px 0 14px; font-size: 20px; }
.privacy-copy h2:first-child { margin-top: 0; }
.privacy-copy p, .privacy-copy li { font-size: 13px; line-height: 1.95; color: var(--muted); }
.privacy-copy ul { padding-left: 1.4em; }

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

@media (max-width: 960px) {
  .header-inner { height: 68px; }
  .nav-toggle { display: block; }
  .global-nav { position: fixed; inset: 68px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 20px 24px; background: white; border-bottom: 1px solid var(--ink); }
  .global-nav.is-open { display: flex; }
  .global-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .global-nav a::after { display: none; }
  .nav-contact { margin-top: 10px; text-align: center; border-bottom: 0 !important; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 40px; padding-top: 44px; }
  .hero-title { font-size: clamp(74px, 18vw, 150px); }
  .hero-visual { min-height: 370px; max-width: 620px; width: 100%; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-desc { margin-top: 14px; }
  .intro-grid, .mission-lead, .recruit-panel, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .service-grid, .case-grid, .column-grid, .value-grid { grid-template-columns: 1fr; }
  .company-band-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .case-detail { grid-template-columns: 1fr; }
  .case-detail-visual { min-height: 180px; }
}

@media (max-width: 640px) {
  .header-inner, .hero-inner, .section-shell, .company-band-inner, .footer-inner, .page-hero-inner, .page-shell { width: min(100% - 28px, var(--max)); }
  .brand-word { font-size: 23px; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-inner { padding-top: 34px; }
  .hero-title { font-size: clamp(66px, 25vw, 106px); }
  .hero-jp { font-size: 27px; }
  .hero-lead { font-size: 14px; }
  .hero-visual { min-height: 310px; }
  .hero-black-panel { inset: 8px 0 0 12px; }
  .hero-black-panel::after { left: -12px; bottom: -14px; }
  .hero-code { inset: 42px 30px auto 40px; }
  .hero-code strong { font-size: 52px; }
  .hero-code ul { margin-top: 24px; }
  .hero-bolt { width: 112px; }
  .section { padding: 78px 0; }
  .section-title { font-size: 39px; }
  .service-card { min-height: 330px; padding: 24px; }
  .news-row { grid-template-columns: 92px 1fr 22px; gap: 12px; }
  .news-row .tag { display: none; }
  .news-title { font-size: 13px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .page-hero-inner { min-height: 270px; padding-top: 46px; }
  .breadcrumbs { margin-bottom: 34px; }
  .page-title-en { font-size: clamp(64px, 22vw, 98px); }
  .page-main { padding: 64px 0 90px; }
  .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { border-bottom: 0; padding-bottom: 8px; }
  .company-table td { padding-top: 8px; }
  .article-item { grid-template-columns: 1fr; gap: 10px; }
  .case-detail-body { padding: 24px; }
  .contact-box { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
