/* ========== Quad, inc. corporate site ========== */
:root {
  --ink: #0b0f1a;
  --ink-2: #111827;
  --paper: #f5f6f8;
  --white: #ffffff;
  --accent: #ff7114;
  --accent-deep: #e05f06;
  --accent-dim: rgba(255, 113, 20, 0.12);
  --muted: #5b6472;
  --muted-dark: #9aa3b2;
  --line: rgba(11, 15, 26, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --en: "Archivo", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --jp: "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); font-weight: 700; }
.pc { display: block; }
@media (max-width: 760px) { .pc { display: none; } }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- reveal animation (JS有効時のみ非表示スタート) ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
html.js .reveal.d1 { transition-delay: 0.12s; }
html.js .reveal.d2 { transition-delay: 0.24s; }
html.js .reveal.d3 { transition-delay: 0.36s; }
html.js .reveal.d4 { transition-delay: 0.48s; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 18px 32px;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.header.is-scrolled {
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 32px;
  box-shadow: 0 1px 0 var(--line-dark);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-name { font-family: var(--en); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; color: var(--white); }
.brand-inc { font-weight: 400; font-size: 13px; color: var(--muted-dark); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-family: var(--en); font-weight: 600; font-size: 13px; letter-spacing: 0.08em;
  color: var(--muted-dark); transition: color 0.2s;
}
.nav a:hover { color: var(--white); }
.header-cta {
  font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--white); padding: 10px 20px; border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.header-cta:hover { background: var(--accent); color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 320px);
    background: var(--ink); flex-direction: column; padding: 96px 36px; gap: 22px; }
  .nav.is-open { display: flex; }
  .nav a { font-size: 16px; }
  .header-cta { margin-left: auto; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; z-index: 110;
  }
  .nav-toggle span { height: 2px; background: var(--white); transition: transform 0.3s; }
  .nav-toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding: 190px 32px 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; top: -220px; right: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,113,20,0.26), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 1080px; margin: 0 auto; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.32em;
  color: var(--accent); margin-bottom: 26px;
}
.hero-title {
  font-family: var(--en); font-weight: 900;
  font-size: clamp(52px, 9.5vw, 118px);
  line-height: 0.98; letter-spacing: -0.03em;
  margin-bottom: 34px;
}
.hero-title .line { display: block; }
.accent { color: var(--accent); }
.hero-lead { font-size: 16.5px; color: #c7cdd8; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 90px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; padding: 16px 32px; border-radius: 999px;
  border: 0; cursor: pointer; transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--line-dark); }
.btn-ghost:hover { border-color: var(--white); }

.hero-stats {
  position: relative;
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 34px 28px 44px; }
.stat + .stat { border-left: 1px solid var(--line-dark); }
.stat-label { font-size: 12.5px; color: var(--muted-dark); letter-spacing: 0.1em; margin-bottom: 6px; }
.stat-value { font-family: var(--mono); font-weight: 600; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1; }
.stat-value .unit { font-size: 0.42em; margin-left: 6px; color: #c7cdd8; }

@media (max-width: 760px) {
  .hero { padding-top: 140px; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { padding: 20px 4px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-head { margin-bottom: 64px; }
.section-en {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.3em;
  color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.section-en .sq { width: 8px; height: 8px; background: var(--accent); display: inline-block; }
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900; line-height: 1.5; letter-spacing: 0.01em;
}
.section-sub { margin-top: 18px; color: var(--muted); }
.section-dark .section-sub { color: var(--muted-dark); }

/* ---------- cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); padding: 36px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,15,26,0.08); }
.card-num { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 16px; }
.card h3 { font-size: 18.5px; font-weight: 700; line-height: 1.6; margin-bottom: 14px; }
.card p { font-size: 14.5px; color: var(--muted); }
.section-dark .card { background: transparent; border-color: var(--line-dark); }
.section-dark .card:hover { box-shadow: none; border-color: rgba(255,255,255,0.4); }
.section-dark .card p { color: var(--muted-dark); }
.card-line { border-top: 2px solid var(--accent); }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- before/after ---------- */
.ba {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 20px;
  margin-bottom: 56px;
}
.ba-col { border: 1px solid var(--line-dark); padding: 32px; }
.ba-col.after { border-color: var(--accent); background: var(--accent-dim); }
.ba-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; color: var(--muted-dark); margin-bottom: 14px; }
.ba-col.after .ba-tag { color: var(--accent); }
.ba-main { font-size: 20px; font-weight: 700; line-height: 1.6; }
.ba-main strong { color: var(--accent); }
.ba-col.before .ba-main strong { color: inherit; }
.ba-sub { margin-top: 8px; font-size: 13.5px; color: var(--muted-dark); }
.ba-arrow { align-self: center; font-size: 28px; color: var(--accent); font-family: var(--en); font-weight: 900; }
@media (max-width: 760px) {
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---------- service ---------- */
.svc-list { display: flex; flex-direction: column; }
.svc {
  display: grid; grid-template-columns: 110px 1fr; gap: 28px;
  padding: 44px 0; border-top: 1px solid var(--line);
}
.svc:last-of-type { border-bottom: 1px solid var(--line); }
.svc-num { font-family: var(--mono); font-size: 14px; color: var(--accent); padding-top: 6px; }
.svc h3 { font-size: 21px; font-weight: 900; margin-bottom: 14px; line-height: 1.6; }
.svc p { color: var(--muted); font-size: 14.5px; max-width: 760px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 18px; }
.svc-tags li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; color: var(--muted);
}
@media (max-width: 700px) { .svc { grid-template-columns: 1fr; gap: 8px; } }

.svc-special {
  margin-top: 56px; background: var(--ink); color: var(--white); padding: 48px 44px;
  position: relative; overflow: hidden;
}
.svc-special::after {
  content: ""; position: absolute; top: -120px; right: -80px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,113,20,0.3), transparent 65%);
}
.svc-special-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em; color: var(--accent); margin-bottom: 12px; }
.svc-special h3 { font-size: 24px; font-weight: 900; margin-bottom: 18px; }
.svc-special p { color: #c7cdd8; font-size: 14.5px; max-width: 780px; position: relative; }
.svc-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; position: relative; }
.svc-flow span {
  border: 1px solid var(--line-dark); padding: 12px 20px; font-size: 13.5px; font-weight: 700; border-radius: 6px;
  background: rgba(255,255,255,0.04);
}
.svc-flow i { color: var(--accent); font-style: normal; font-weight: 900; }
@media (max-width: 700px) { .svc-special { padding: 36px 24px; } }

/* ---------- support points ---------- */
.support-points { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.support-points > div { border: 1px solid var(--line-dark); padding: 30px; }
.support-points h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; color: var(--white); }
.support-points h4::before { content: "■ "; color: var(--accent); font-size: 11px; vertical-align: 2px; }
.support-points p { font-size: 14px; color: var(--muted-dark); }
@media (max-width: 760px) { .support-points { grid-template-columns: 1fr; } }

/* ---------- case ---------- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  padding: 40px 36px;
}
.case-industry { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 18px; }
.case-result { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 14px; }
.case-result strong { font-family: var(--mono); font-size: 44px; color: var(--accent); font-weight: 600; letter-spacing: -0.02em; }
.case-result strong span { font-size: 0.5em; }
.case-note { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.case-desc { font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- mission ---------- */
.section-mission {
  background: var(--ink); color: var(--white); position: relative; overflow: hidden;
}
.section-mission::before {
  content: "Q"; position: absolute; right: -60px; bottom: -140px;
  font-family: var(--en); font-weight: 900; font-size: 560px; line-height: 1;
  color: rgba(255,255,255,0.03); pointer-events: none;
}
.mission-label { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 26px; }
.mission-copy {
  font-family: var(--en); font-weight: 800; font-size: clamp(30px, 5vw, 54px);
  line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 40px;
}
.mission-text { color: #c7cdd8; max-width: 800px; margin-bottom: 22px; font-size: 15px; }

/* ---------- members ---------- */
.member {
  background: var(--white); border: 1px solid var(--line); padding: 40px 36px;
}
.member-lead { margin-bottom: 20px; border-left: 3px solid var(--accent); }
.member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.member-role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 8px; }
.member-head h3 { font-size: 24px; font-weight: 900; margin-bottom: 20px; }
.member-head .en { font-family: var(--en); font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 10px; letter-spacing: 0.06em; }
.member-msg { font-size: 19px; font-weight: 900; margin-bottom: 16px; }
.member-body p { font-size: 14.5px; color: var(--muted); }
.member-body .member-msg { color: var(--ink); }
.member-bio {
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 13.5px !important;
}
@media (max-width: 860px) { .member-grid { grid-template-columns: 1fr; } }

/* ---------- company ---------- */
.company-table { border-top: 1px solid var(--line-dark); }
.company-table > div {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 26px 8px; border-bottom: 1px solid var(--line-dark);
}
.company-table dt { font-weight: 700; color: var(--muted-dark); font-size: 14px; }
.company-table dd { font-size: 15px; }
.office { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.office + .office { margin-top: 10px; }
.office-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--accent);
  border: 1px solid rgba(255,113,20,0.5); padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 700px) { .company-table > div { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- contact ---------- */
.section-contact { background: var(--paper); }
.contact-form {
  background: var(--white); border: 1px solid var(--line); padding: 52px 48px;
  max-width: 760px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 22px; }
.req {
  font-size: 10.5px; color: var(--white); background: var(--accent);
  padding: 2px 8px; border-radius: 3px; margin-left: 8px; font-weight: 700; vertical-align: 1px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  display: block; width: 100%; margin-top: 8px;
  font-family: var(--jp); font-size: 15px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--white);
}
.agree { font-weight: 500 !important; display: flex !important; align-items: center; gap: 10px; }
.agree input { width: 17px; height: 17px; accent-color: var(--accent); }
.agree a { color: var(--accent); text-decoration: underline; }
.btn-submit { width: 100%; justify-content: center; font-size: 16px; padding: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 16px; font-size: 13.5px; text-align: center; min-height: 1.4em; }
.form-note.ok { color: #1a8a4a; }
.form-note.err { color: #d93636; }
.btn-submit[disabled] { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 700px) {
  .contact-form { padding: 32px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--white); padding: 56px 0; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer-nav a { font-family: var(--en); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted-dark); }
.footer-nav a:hover { color: var(--white); }
.copyright { width: 100%; font-family: var(--mono); font-size: 11.5px; color: var(--muted-dark); margin-top: 8px; }
