/*
Theme Name: C3Soft Corporate
Theme URI: https://www.c3soft.co.jp/
Author: C3Soft
Description: 株式会社シースリー・ソフトウェア コーポレートサイト用テーマ（リニューアル版）。現行サイトの構成・ページはそのままに、信頼感と技術力が伝わるビジュアルに刷新。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: c3soft
*/

/* ══════════════════════════════════════════════════════
   Tokens
   ══════════════════════════════════════════════════════ */
:root {
  --ink:        #16223D;
  --ink-2:      #4B5875;
  --ground:     #FFFFFF;
  --surface:    #F5F7FB;
  --surface-2:  #EAEEF6;
  --accent:     #1E5AA8;
  --accent-dim: #EAF1FB;
  --accent-hi:  #2F72C9;
  --accent-ink: #0F3A73;
  --gold:       #C7942B;
  --gold-dim:   #FBF3E2;
  --muted:      #6B7684;
  --border:     #E2E7F0;
  --shadow:     rgba(22,34,61,.08);
  --radius-lg:  18px;
  --radius-md:  12px;
  --radius-sm:  8px;
}

/* ══════════════════════════════════════════════════════
   Reset & base
   ══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--ground);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hi); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.screen-reader-text { position: absolute; left: -9999px; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* ══════════════════════════════════════════════════════
   Header / Nav
   ══════════════════════════════════════════════════════ */
#masthead {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-branding-bar {
  background: var(--ink);
  color: #CBD5E8;
  font-size: 12px;
  line-height: 1.6;
  padding: 9px 0;
}
.site-branding-bar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 24px; width: 100%; }
.site-branding-bar a { color: #CBD5E8; white-space: nowrap; }
.site-branding-bar a:hover { color: #fff; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.site-logo { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.site-logo .custom-logo-link { display: flex; align-items: center; }
.site-logo img,
.site-logo .custom-logo {
  max-height: 42px !important;
  width: auto !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}
.site-title-link { display: flex; align-items: center; }
.site-logo .site-title {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: .01em;
  white-space: nowrap;
}
/* ロゴと社名の間に細い区切り線を入れて視覚的に整理 */
.site-logo .site-title::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--border);
  margin-right: 13px;
  vertical-align: -4px;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-menu > li { position: relative; }
.primary-menu > li > a {
  display: flex;
  align-items: center;
  height: 76px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a { color: var(--accent); }
.primary-menu .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px var(--shadow);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.primary-menu > li:hover .sub-menu,
.primary-menu > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-2);
}
.primary-menu .sub-menu a:hover { background: var(--accent-dim); color: var(--accent); }

.btn-contact-nav {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 8px;
  transition: background .2s, transform .2s;
}
.btn-contact-nav:hover { background: var(--accent-ink); transform: translateY(-1px); }

.menu-toggle { display: none; }

@media (max-width: 900px) {
  .primary-menu { display: none; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: none;
  }
  .btn-contact-nav { display: none; }
}

/* ══════════════════════════════════════════════════════
   Hero (front page)
   ══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: clamp(72px, 9vw, 116px) 0 0;
  background: var(--ground);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(30,90,168,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,90,168,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 520px at 72% 8%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 520px at 72% 8%, #000 0%, transparent 78%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.hero-glow-a { width: 540px; height: 540px; right: -120px; top: -200px; background: #CBDFF8; opacity: .55; }
.hero-glow-b { width: 380px; height: 380px; left: -160px; bottom: -120px; background: #DCEFE6; opacity: .5; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 76px);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold); }

.hero h1 {
  font-size: clamp(29px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}
.hero h1 .hero-line { display: block; }
.hero h1 em {
  font-style: normal;
  position: relative;
  color: var(--accent);
}
.hero h1 em::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: .06em;
  height: .16em;
  background: var(--gold);
  opacity: .28;
  border-radius: 2px;
}

.hero-lead {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 2.05;
  margin-bottom: 36px;
}
/* 3つのC を色分けして強調 */
.c-word { font-weight: 700; white-space: nowrap; }
.c-creative  { color: #1B57A3; box-shadow: inset 0 -.5em 0 #DCE9FA; }
.c-challenge { color: #0A7350; box-shadow: inset 0 -.5em 0 #D7F0E4; }
.c-cooperate { color: #9C6E11; box-shadow: inset 0 -.5em 0 #FAEDCE; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 15px 32px; border-radius: 4px;
  font-weight: 700; font-size: 14.5px;
  box-shadow: 0 8px 20px rgba(30,90,168,.20);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(30,90,168,.26); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); color: var(--ink-2);
  background: rgba(255,255,255,.75);
  padding: 14px 30px; border-radius: 4px;
  font-weight: 600; font-size: 14.5px;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: #fff; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(22,34,61,.16);
}
.hero-visual::before {
  content: '';
  position: absolute;
  top: 22px; right: -22px; bottom: -22px; left: 22px;
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  z-index: -1;
}
.hero-float-badge {
  position: absolute; left: -16px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ground);
  border: 1px solid #BCE6D5;
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 12.5px; font-weight: 700; color: #0A7350;
  box-shadow: 0 14px 34px var(--shadow);
}

/* 数値ストリップ */
.hero-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding: 30px 0 0;
  margin-bottom: 0;
}
.hero-metric { display: flex; flex-direction: column; gap: 6px; padding-right: 32px; }
.hero-metric strong {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 38px); font-weight: 800;
  color: var(--ink); line-height: 1; letter-spacing: -.02em;
}
.hero-metric span { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

/* Value pillars (Creative / Challenge / Cooperate) */
.pillars {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  background: var(--ground);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  position: relative;
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
}
.pillar-card.is-creative::before  { background: linear-gradient(90deg, #1E5AA8, #63A2E8); }
.pillar-card.is-challenge::before { background: linear-gradient(90deg, #0A7A56, #4FC79B); }
.pillar-card.is-cooperate::before { background: linear-gradient(90deg, #B07D14, #E4B84E); }
.pillar-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px var(--shadow); }
.pillar-mark {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  margin-bottom: 14px;
}
.pillar-card.is-creative  .pillar-mark { color: #1E5AA8; }
.pillar-card.is-challenge .pillar-mark { color: #0A7A56; }
.pillar-card.is-cooperate .pillar-mark { color: #B07D14; }
.pillar-card h3 { font-size: 19px; margin-bottom: 10px; }
.pillar-card p { font-size: 13.5px; color: var(--muted); line-height: 1.85; }

/* ══════════════════════════════════════════════════════
   Section basics
   ══════════════════════════════════════════════════════ */
.section { padding: 88px 0; }
.section-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--gold); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 15px; }

/* Announcement / info list */
.info-list { border-top: 1px solid var(--border); }
.info-item {
  display: flex; gap: 24px; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-item time { color: var(--muted); font-variant-numeric: tabular-nums; width: 110px; flex-shrink: 0; }
.info-item a { color: var(--ink); }
.info-item a:hover { color: var(--accent); }

/* Recruit cards */
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.recruit-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 220px;
  display: flex; align-items: flex-end;
  background: var(--ink);
}
.recruit-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
}
.recruit-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15,20,35,.85));
}
.recruit-card-body { position: relative; padding: 28px; color: #fff; }
.recruit-card-body .tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 8px;
}
.recruit-card-body h3 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.recruit-card-body p { color: #E4E9F5; font-size: 13px; max-width: 380px; }

/* Development achievements */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dev-card {
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.dev-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px var(--shadow); border-color: var(--accent-dim); }
.dev-card.featured { border-color: #B7EAD3; }
.dev-card.featured .dev-card-media { background: #E4F7EF; }
@media (min-width: 901px) {
  .dev-grid:has(.dev-card.featured) { grid-template-columns: repeat(3, 1fr); }
  .dev-card.featured { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; }
  .dev-card.featured .dev-card-media { aspect-ratio: auto; height: 100%; }
}
.dev-card-media {
  aspect-ratio: 16/10;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.dev-card-media img { width: 100%; height: 100%; object-fit: cover; }
.dev-card-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.dev-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  color: var(--accent); background: var(--accent-dim);
  padding: 4px 10px; border-radius: 100px;
  margin-bottom: 12px; align-self: flex-start;
}
.dev-tag.ai { color: #0A7A56; background: #E4F7EF; }
.dev-card h3 { font-size: 16px; margin-bottom: 8px; }
.dev-card p { font-size: 13px; color: var(--muted); flex: 1; }
.dev-card .dev-link { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--accent-ink), var(--accent));
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #DCE8F8; max-width: 480px; margin: 0 auto 32px; font-size: 15px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-ink); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--gold-dim); color: var(--accent-ink); }

/* ══════════════════════════════════════════════════════
   Generic page (会社概要 / ご挨拶 / 沿革 / etc.)
   ══════════════════════════════════════════════════════ */
.page-header {
  padding: 56px 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-header h1 { font-size: clamp(24px, 3vw, 34px); }

.page-content { padding: 64px 0 88px; }
.entry-content { max-width: 780px; }
.entry-content h2 { font-size: 22px; margin: 40px 0 16px; padding-top: 4px; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { font-size: 17px; margin: 28px 0 12px; }
.entry-content p { margin-bottom: 18px; color: var(--ink-2); font-size: 15px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 22px; color: var(--ink-2); }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.entry-content table th, .entry-content table td {
  border: 1px solid var(--border); padding: 12px 16px; text-align: left; vertical-align: top;
}
.entry-content table th { background: var(--surface); width: 200px; color: var(--ink); font-weight: 700; }
.entry-content img { border-radius: var(--radius-md); margin: 12px 0 24px; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 20px; color: var(--ink-2); font-style: normal; margin: 24px 0;
}

/* Access / office list */
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.office-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; background: var(--surface); }
.office-card h3 { font-size: 15px; margin-bottom: 10px; color: var(--accent); }
.office-card p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 4px; }

/* ══════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════ */
#colophon {
  background: var(--ink);
  color: #B9C4DA;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .site-title { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.9; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; font-size: 13px; }
.footer-col a { color: #B9C4DA; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 12px; color: #7C88A3; flex-wrap: wrap; gap: 12px;
}

/* ══════════════════════════════════════════════════════
   アクセスページ専用スタイル
   ══════════════════════════════════════════════════════ */
.access-block { margin-bottom: 72px; }
.access-block--mt { margin-top: 72px; border-top: 1px solid var(--border); padding-top: 72px; }
.access-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 28px;
}
.access-label {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--accent); background: var(--accent-dim);
    padding: 4px 12px; border-radius: 2px;
    white-space: nowrap;
}
.access-label.is-hq { color: #fff; background: var(--accent); }
.access-name { font-size: clamp(20px, 2.4vw, 26px); margin: 0; }

.access-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: stretch;
}
.access-map-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 320px;
    box-shadow: 0 16px 44px var(--shadow);
}
.access-map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.access-info {
    display: flex; flex-direction: column; justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
}
.access-dl { display: flex; flex-direction: column; gap: 0; }
.access-row {
    display: grid; grid-template-columns: 60px 1fr;
    gap: 0 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.access-row:first-child { padding-top: 0; }
.access-row:last-child { border-bottom: none; }
.access-row dt { color: var(--muted); font-weight: 500; padding-top: 1px; white-space: nowrap; }
.access-row dd { color: var(--ink); line-height: 1.75; }
.access-row dd a { color: var(--ink); font-weight: 600; }
.access-row dd a:hover { color: var(--accent); }

.access-map-link {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 22px;
    font-size: 13.5px; font-weight: 700; color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 11px 18px;
    background: var(--ground);
    transition: border-color .2s, box-shadow .2s;
    text-decoration: none;
    align-self: flex-start;
}
.access-map-link:hover { border-color: var(--accent); box-shadow: 0 4px 14px var(--shadow); color: var(--accent); }
.access-note { margin-top: 8px; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
    .access-inner { grid-template-columns: 1fr; }
    .access-map-wrap { min-height: 260px; aspect-ratio: 4/3; }
}

/* ══════════════════════════════════════════════════════
   Scroll reveal
   ══════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 56px; }
  .hero h1 .hero-line { display: inline; }
  .hero-lead .br-pc { display: none; }
  .hero-visual::before { display: none; }
  .hero-float-badge { left: auto; right: 10px; bottom: 12px; }
  .hero-metrics { grid-template-columns: 1fr; gap: 20px; }
  .hero-metric { padding-right: 0; flex-direction: row; align-items: baseline; gap: 12px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .dev-grid { grid-template-columns: 1fr 1fr; }
  .recruit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .office-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dev-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-branding-bar .wrap { justify-content: center; gap: 14px; font-size: 11px; }
  .site-logo .site-title { font-size: 13px; }
  .site-logo .site-title::before { display: none; }
  .site-logo img, .site-logo .custom-logo { max-height: 34px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════════════════════
   開発実績 詳細ページ（AIケーススタディ等）専用スタイル
   ══════════════════════════════════════════════════════ */
.case-hero {
  padding: 56px 0 72px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.case-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.case-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 700;
}
.case-badge-ai { background: #E4F7EF; color: #0A7A56; border: 1px solid #B7EAD3; }
.case-badge-tech { background: var(--ground); color: var(--ink-2); border: 1px solid var(--border); }
.case-dot { width: 6px; height: 6px; border-radius: 50%; background: #0A7A56; display:inline-block; }

.case-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.case-stat { padding: 0 28px; border-right: 1px solid var(--border); }
.case-stat:last-child { border-right: none; }
.case-stat-num { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.case-stat-label { font-size: 13px; color: var(--muted); }

.case-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 8px;
}
.case-feature-card { background: var(--ground); padding: 28px 24px; }
.case-feature-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.case-feature-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case-feature-title { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.case-feature-desc { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.case-ai-section {
  position: relative;
  background: linear-gradient(160deg, #101B33 0%, #16223D 55%, #12304A 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  overflow: hidden;
}
.case-ai-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(760px 420px at 30% 30%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(760px 420px at 30% 30%, #000 10%, transparent 80%);
  pointer-events: none;
}
.case-ai-section h2 { color: #fff; }
.case-ai-section p { color: #C3CEE4 !important; }
.case-ai-section .section-eyebrow { color: #6FD6AC; }
.case-ai-section .case-badge-ai { background: rgba(42,163,122,.16); color: #6FD6AC; border: 1px solid rgba(111,214,172,.34); }
.case-ai-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.case-ai-points { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.case-ai-points li { display: flex; gap: 10px; font-size: 13.5px; color: #C3CEE4; }
.case-ai-points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6FD6AC; flex-shrink: 0; margin-top: 7px; }
.case-chat-bubble { border-radius: 14px; padding: 13px 17px; font-size: 12.5px; line-height: 1.65; max-width: 320px; }
.case-chat-bubble.user { background: var(--accent-hi); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.case-chat-bubble.ai { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #DCE4F2; border-bottom-left-radius: 4px; backdrop-filter: blur(6px); }
.case-chat-bubble code { background: rgba(255,255,255,.12); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
.case-chat-label { font-size: 10px; color: #8492AE; margin-bottom: 4px; }
.case-chat-label.right { text-align: right; }
.case-chat-wrap { display: flex; flex-direction: column; gap: 10px; }

.case-tech-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.case-tech-pill { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 100px; background: var(--ground); font-size: 12.5px; color: var(--ink-2); }
.case-tech-dot { width: 8px; height: 8px; border-radius: 50%; }

.case-security-grid { display: grid; gap: 14px; margin-top: 28px; }
.case-security-item { display: flex; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.case-security-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.case-security-icon svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case-security-title { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.case-security-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .case-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .case-stat { border-right: none; padding: 0; }
  .case-features-grid { grid-template-columns: 1fr; }
  .case-ai-inner { grid-template-columns: 1fr; }
}

/* システム画面（スクリーンショット）ギャラリー */
.case-screens-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  margin-top: 8px;
}
.case-screen-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ground);
  box-shadow: 0 16px 40px var(--shadow);
}
.case-screen-card.is-main { grid-row: span 2; }
.case-screen-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-screen-caption {
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
@media (max-width: 900px) {
  .case-screens-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .case-screen-card.is-main { grid-row: auto; }
}
