/* ===== 株式会社CPS コーポレートサイト ===== */
:root {
  --red-deep: #9a0113;     /* ロゴの濃い赤 */
  --red: #d81e10;          /* ボタン・強調 */
  --red-bright: #f02a05;   /* ロゴの明るい赤(グラデーション用) */
  --red-tint: #fdf1ef;     /* 赤の薄い面 */
  --ink: #2a2a2e;          /* 本文 */
  --ink-sub: #5f5f66;      /* 補足 */
  --line: #e4e2e0;
  --bg: #ffffff;
  --bg-soft: #f7f6f5;
  --grad: linear-gradient(120deg, var(--red-deep), var(--red-bright));
  --radius: 10px;
  --wrap: 1120px;
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", system-ui, sans-serif;
  --font-en: "Montserrat", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.9;
  letter-spacing: .02em; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.45; margin: 0; letter-spacing: .03em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sp { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 32px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .06em;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  font-family: var(--font-body);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(154,1,19,.22); }
.btn-ghost { background: #fff; color: var(--red-deep); border-color: var(--red); }
.btn-ghost:hover { background: var(--red-tint); }
.btn-sm { min-height: 42px; padding: 0 22px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-en { font-family: var(--font-en); font-weight: 700; font-size: 15px; color: var(--red-deep); letter-spacing: .08em; }
.brand-ja { font-size: 11px; color: var(--ink-sub); }
.gnav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; }
.gnav a { text-decoration: none; }
.gnav a:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
  mask-image: linear-gradient(110deg, transparent 30%, #000 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .2em; color: var(--red); text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; line-height: 1.35; }
.hero h1 .line { display: block; white-space: nowrap; }
.accent-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 28px; font-size: 17px; color: var(--ink-sub); }
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.structure { width: 100%; height: auto; }
.structure .layer rect { fill: #fff; stroke: #d6d2cf; stroke-width: 1.2; }
.structure .l3 rect { stroke: none; fill: url(#g); }
.structure text { font-family: var(--font-head); font-weight: 700; font-size: 17px; fill: var(--ink); }
.structure text.en { font-family: var(--font-en); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; fill: var(--ink-sub); }
.structure text.on { fill: #fff; }
.structure .arrow { fill: none; stroke: var(--red); stroke-width: 1.6; }

/* ---------- Section common ---------- */
.section { padding: 104px 0; }
.sec-label { font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .2em; color: var(--red); text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.sec-label::before { content: ""; width: 24px; height: 2px; background: var(--grad); }
.sec-title { margin-top: 14px; font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; }
.sec-lead { margin-top: 20px; color: var(--ink-sub); max-width: 46em; }
.sub-title { margin-top: 72px; font-size: 22px; }

/* ---------- Issues ---------- */
.issues { background: var(--bg-soft); }
.issue-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.issue {
  position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 32px 28px 88px; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.issue:hover { border-color: var(--red); box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.issue-no { position: absolute; left: 32px; top: 30px; font-family: var(--font-en); font-weight: 700; font-size: 22px; color: var(--red); }
.issue-q { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.55; }
.issue-d { margin-top: 10px; font-size: 14.5px; color: var(--ink-sub); }
.issue-link { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--red-deep); }

/* ---------- Philosophy ---------- */
.mvv { margin-top: 48px; border-top: 1px solid var(--line); }
.mvv-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.mvv-k { font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .18em; color: var(--red-deep); }
.mvv-row p { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.values { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { padding: 32px 28px; border-radius: var(--radius); background: var(--bg-soft); position: relative; overflow: hidden; }
.value::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad); }
.value-en { font-family: var(--font-en); font-weight: 700; font-size: 12.5px; letter-spacing: .18em; color: var(--red); }
.value h3 { margin-top: 10px; font-size: 19px; }
.value p:last-child { margin-top: 12px; font-size: 14.5px; color: var(--ink-sub); }

/* ---------- Service ---------- */
.service { background: var(--bg-soft); }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.svc-head { display: flex; align-items: center; gap: 16px; }
.svc-no { font-family: var(--font-en); font-weight: 700; font-size: 30px; color: var(--red); line-height: 1; }
.svc h3 { font-size: 20px; }
.svc-desc { margin-top: 16px; font-size: 15px; color: var(--ink-sub); }
.svc-list { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-list li { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.svc-featured { margin-top: 48px; border: 1.5px solid var(--red); padding: 40px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px 48px; }
.svc-featured .svc-head { grid-row: span 2; align-items: flex-start; }
.svc-featured .svc-no { font-size: 44px; }
.svc-featured h3 { font-size: 26px; margin-top: 8px; }
.svc-featured .svc-desc { margin-top: 0; color: var(--ink); }
.svc-featured .svc-list li { background: var(--red-tint); border-color: #f5d3cf; color: var(--red-deep); font-weight: 500; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); padding: 2px 12px; border-radius: 999px; letter-spacing: .08em; }
.svc-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.inline-cta { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--radius); background: #fff; border: 1px dashed #d8d3cf; }
.inline-cta p { font-weight: 500; }

/* ---------- Flow ---------- */
.steps { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: s; }
.steps li { position: relative; background: var(--bg-soft); border-radius: var(--radius); padding: 22px 8px 20px; text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.step-no { display: block; font-family: var(--font-en); font-weight: 700; color: var(--red); font-size: 18px; }
.step-name { display: block; margin-top: 4px; font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.5; }
.step-name small { display: block; font-size: 11.5px; color: var(--ink-sub); font-weight: 500; }
.step-loop { background: var(--red-tint) !important; }
.contracts { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contract { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contract h4 { font-size: 16px; }
.contract p { margin-top: 8px; font-size: 14px; color: var(--ink-sub); }
.note { margin-top: 16px; font-size: 13px; color: var(--ink-sub); }

/* ---------- Company ---------- */
.company { background: var(--bg-soft); }
.company-table { margin: 40px 0 0; border-top: 1px solid var(--line); }
.company-table > div { display: grid; grid-template-columns: 200px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company-table dt { font-weight: 700; }
.company-table dd { margin: 0; }
.compliance { margin-top: 40px; padding: 28px 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.compliance h3 { font-size: 17px; }
.compliance ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; }
.compliance li::before { content: "—"; color: var(--red); margin-right: 8px; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, #fff, var(--red-tint)); }
.contact-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.contact-intro p { margin-top: 20px; }
.contact-note { font-size: 13.5px; color: var(--ink-sub); }
.mail-box { background: #fff; border-radius: 14px; padding: 40px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(154,1,19,.06); }
.mail-label { font-weight: 700; font-size: 14px; color: var(--ink-sub); }
.mail-addr { margin: 8px 0 24px; font-family: var(--font-en); font-weight: 600; font-size: clamp(17px, 2.2vw, 22px); color: var(--red-deep); word-break: break-all; user-select: all; }
.mail-guide { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; }
.mail-guide ul { margin: 8px 0 0; padding-left: 1.3em; }
.mail-small { margin-top: 16px; font-size: 12.5px; color: var(--ink-sub); }
.mail-small a { color: var(--red-deep); }

/* ---------- Footer ---------- */
.site-footer { background: #1f1d1d; color: #d9d6d3; padding: 56px 0 28px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { background: #fff; border-radius: 8px; padding: 4px; }
.f-name { font-weight: 700; color: #fff; }
.f-addr { font-size: 12.5px; color: #a9a5a1; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 40px; font-size: 12px; color: #8d8985; font-family: var(--font-en); }

.float-cta { display: none; }

/* ---------- Sub pages ---------- */
.page { padding: 80px 0 104px; }
.page .wrap { max-width: 800px; }
.page h1 { font-size: clamp(26px, 3.4vw, 34px); }
.page h2 { font-size: 18px; margin-top: 40px; }
.page p, .page li { color: var(--ink); font-size: 15px; }
.page p { margin-top: 12px; }
.page ul { padding-left: 1.4em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .gnav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding: 56px 0 72px; }
  .hero-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { max-width: 400px; }
  .values, .svc-grid { grid-template-columns: 1fr; }
  .svc-featured { grid-template-columns: 1fr; padding: 32px 24px; }
  .svc-featured .svc-head { grid-row: auto; }
  .contracts { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li:nth-child(4)::after { display: none; }
}
@media (max-width: 640px) {
  .pc { display: none; }
  .sp { display: inline; }
  body { font-size: 15px; }
  .section { padding: 72px 0; }
  .site-header .btn-sm { display: none; }
  .brand-ja { display: none; }
  .issue-grid, .contracts, .field-row { grid-template-columns: 1fr; }
  .issue { padding: 24px 22px 22px 64px; }
  .issue-no { left: 22px; top: 22px; font-size: 18px; }
  .mvv-row { grid-template-columns: 1fr; gap: 4px; }
  .mvv-row p { font-size: 17px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .company-table > div { grid-template-columns: 1fr; gap: 4px; }
  .mail-box { padding: 28px 20px; }
  .inline-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-actions .btn { flex: 1; padding: 0 16px; white-space: nowrap; }
  .float-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    min-height: 54px; align-items: center; justify-content: center; border-radius: 999px;
    background: var(--red); color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 8px 24px rgba(154,1,19,.3); transition: opacity .2s, transform .2s;
  }
  .float-cta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .site-footer { padding-bottom: 96px; }
}
