:root {
  --color-navy: #17243a;
  --color-navy-light: #223452;
  --color-gold: #b6975b;
  --color-bg: #f7f8fa;
  --color-text: #1f2933;
  --color-muted: #657080;
  --color-white: #ffffff;
  --color-border: #d9dee7;
  --max-width: 1120px;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(23, 36, 58, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; color: var(--color-text); background: var(--color-white); line-height: 1.85; }
a { color: inherit; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; color: var(--color-navy); letter-spacing: .04em; }
.logo span { font-size: 12px; color: var(--color-muted); font-weight: 500; margin-top: 4px; }
.nav { display: flex; gap: 18px; align-items: center; font-size: 14px; color: var(--color-navy); }
.nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-gold); border-bottom-color: var(--color-gold); }
.nav-contact { padding: 9px 16px !important; background: var(--color-navy); color: var(--color-white) !important; border-radius: 999px; border-bottom: none !important; }

.page-hero { background: radial-gradient(circle at top right, rgba(182,151,91,.16), transparent 34%), linear-gradient(135deg,#fff 0%,#f4f6f9 60%,#eef1f5 100%); padding: 88px 24px 72px; }
.hero-inner, .section-inner { max-width: var(--max-width); margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--color-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--color-navy); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--color-gold); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--color-gold); }
.page-hero h1 { margin: 0 0 24px; color: var(--color-navy); font-size: clamp(36px, 5vw, 58px); line-height: 1.22; }
.hero-lead { max-width: 820px; font-size: 17px; color: #334155; margin: 0; }

/* Filter */
.section-filter { padding: 24px; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-tag { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-white); color: var(--color-muted); font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; user-select: none; font-family: inherit; line-height: 1; }
.filter-tag:hover { border-color: var(--color-gold); color: var(--color-gold); }
.filter-tag.active { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }

/* Cases grid */
.section { padding: 72px 24px; }
.section-soft { background: var(--color-bg); }
.cases-grid { display: grid; gap: 28px; }

.case-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 28px 60px rgba(23,36,58,.12); }

.case-header { display: flex; align-items: center; gap: 14px; padding: 28px 32px 0; }
.case-count { font-size: 13px; color: var(--color-muted); font-weight: 700; }

.case-badge { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.badge-web      { background: #e8f0fd; color: #2f5fae; }
.badge-forensics { background: #fce8e8; color: #a03030; }
.badge-security { background: #f0e8fd; color: #6a30ae; }
.badge-network  { background: #e8f4ef; color: #2f6f5e; }
.badge-ai       { background: #fff3e0; color: #8c5e00; }

.case-card h2 { margin: 14px 0 6px; color: var(--color-navy); font-size: clamp(18px,2.5vw,24px); padding: 0 32px; line-height: 1.4; }
.case-client { margin: 0 0 20px; font-size: 13px; color: var(--color-muted); padding: 0 32px; }

.case-body { display: grid; grid-template-columns: 1fr 1.2fr 1fr; border-top: 1px solid var(--color-border); }
.case-section { padding: 24px 28px; border-right: 1px solid var(--color-border); }
.case-section:last-child { border-right: none; }
.case-section h3 { font-size: 12px; font-weight: 800; color: var(--color-gold); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.case-section p { margin: 0; color: var(--color-muted); font-size: 14px; line-height: 1.85; }
.case-section ul { margin: 0; padding-left: 1.2em; color: var(--color-muted); font-size: 14px; line-height: 2; }
.case-result { background: linear-gradient(135deg,#f8fafc,#f3f6fb); }
.case-result h3 { color: var(--color-navy); }
.case-result p { color: #334155; font-weight: 500; }

/* Note card */
.note-card { background: var(--color-white); border: 1px solid var(--color-border); border-left: 5px solid var(--color-gold); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow); }
.note-card h2 { margin: 0 0 14px; color: var(--color-navy); font-size: 22px; }
.note-card p { margin: 0 0 10px; color: var(--color-muted); font-size: 15px; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; background: var(--color-navy); color: var(--color-white); border-radius: 999px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(23,36,58,.18); transition: transform .2s ease, box-shadow .2s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(23,36,58,.24); }

/* Footer */
.site-footer { background: #101927; color: var(--color-white); padding: 38px 24px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; font-size: 14px; color: rgba(255,255,255,.72); flex-wrap: wrap; }
.copyright { color: rgba(255,255,255,.58); font-size: 13px; }
.footer-disclaimer { max-width: var(--max-width); margin: 18px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; color: rgba(255,255,255,.42); line-height: 1.7; }

@media (max-width: 960px) {
  .nav { display: none; }
  .case-body { grid-template-columns: 1fr; }
  .case-section { border-right: none; border-bottom: 1px solid var(--color-border); }
  .case-section:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .page-hero { padding: 60px 20px 50px; }
  .section { padding: 56px 20px; }
  .case-card h2, .case-header, .case-client { padding-left: 22px; padding-right: 22px; }
  .case-section { padding: 18px 22px; }
}

/* ===== utility classes (extracted from inline styles) ===== */
.u-iflex-mt20 { display:inline-flex;margin-top:20px; }
