/* ============================================================
   DYC株式会社 コーポレートサイト 共通スタイル
   main.css — 全ページ共通
   _ref-home.html / _ref-case-list.html / _ref-case-detail*.html
   から抽出・統合（デザイントークンを最上部に整理）
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  --brand: #1b65a4;
  --brand-dark: #0A2540;
  --brand-hover: #185FA5;
  --text-primary: #0A2540;
  --text-body: #1A2332;
  --text-muted: #5A6B7C;
  --text-light: #8895A4;
  --bg-white: #FFFFFF;
  --bg-soft: #F7F8FA;
  --bg-line: #E5E9EF;
  --border: #E5E9EF;
  --font-jp: 'Noto Sans JP', -apple-system, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-en: 'Inter', sans-serif;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
  background: var(--bg-white);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ===== LAYOUT CONTAINERS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  height: 28px;
  width: auto;
  display: block;
}

.logo-suffix {
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  margin-left: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover { color: var(--brand); }

.main-nav a.is-current { color: var(--brand); }

.main-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 2px;
  background: var(--brand);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ハンバーガーボタン（モバイルのみ表示。デスクトップでは display:none） */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ナビ＋CTAのラッパー。デスクトップでは display:contents で
   レイアウトに影響させず、モバイルでドロワー化する */
.header-drawer {
  display: contents;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--brand-dark);
  color: white;
}
.btn-primary:hover { background: #112D4D; }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text-primary); }

.btn-arrow::after {
  content: "→";
  margin-left: 8px;
  font-family: var(--font-en);
  transition: transform 0.2s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 24px 0 0;
  font-size: 12px;
  color: var(--text-light);
}
.breadcrumb ol { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--text-light); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li:last-child { color: var(--text-primary); }

/* ===== HERO ===== */
.hero {
  padding: 96px 0 88px;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-tagline::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brand);
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

.hero-title .accent {
  color: var(--brand);
}

.hero-desc {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
}

.hero-visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== METRICS BAR ===== */
.metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.metric {
  text-align: left;
  border-left: 2px solid var(--brand);
  padding-left: 16px;
}

.metric-value {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.metric-value .unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ===== SECTION COMMON ===== */
section {
  padding: 96px 0;
}

.section-header {
  margin-bottom: 64px;
  max-width: 720px;
}

.section-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brand);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-muted);
}

/* ===== SERVICES ===== */
.services {
  background: var(--bg-white);
}

.service-group {
  margin-bottom: 64px;
}
.service-group:last-child { margin-bottom: 0; }

.service-group-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--bg-line);
}

.service-group .service-item:first-of-type {
  border-top: none;
  padding-top: 40px;
}

.service-group-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 12px;
  background: var(--bg-soft);
  border-radius: 3px;
  white-space: nowrap;
}

.service-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.service-group-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
  line-height: 1.65;
  max-width: 380px;
  text-align: right;
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.service-item:last-child {
  border-bottom: 1px solid var(--border);
}

.service-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.1em;
  padding-top: 6px;
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 8px;
}

.service-subtitle {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.service-desc {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}

.service-tag {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* サービス一覧ページ: service-item をリンクとして使う場合の追加スタイル */
a.service-item {
  text-decoration: none;
  color: inherit;
}
a.service-item .service-title { transition: color 0.2s ease; }
a.service-item:hover .service-title { color: var(--brand); }

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
}
.service-more::after {
  content: "→";
  font-family: var(--font-en);
  transition: transform 0.2s ease;
}
a.service-item:hover .service-more::after { transform: translateX(3px); }

/* ===== PARTNER ===== */
.partner {
  background: var(--bg-soft);
}

.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.partner-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.badge-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 4px;
}

.badge-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 6px;
}

.badge-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== ABOUT (会社概要) ===== */
.about {
  background: var(--bg-white);
}

.about-table {
  border-top: 1px solid var(--border);
  width: 100%;
}

.about-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--border);
}

.about-th {
  padding: 20px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-soft);
  letter-spacing: 0.04em;
}

.about-td {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.85;
}

/* ===== 代表メッセージ（about.html） ===== */
.message-body {
  max-width: 760px;
}
.message-body p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-body);
  margin-bottom: 20px;
}
.message-body p:last-of-type { margin-bottom: 0; }
.message-sign {
  margin-top: 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.message-sign .role {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 12px;
}

/* ===== お問い合わせフォーム（contact.html） ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  align-items: start;
}

.form-row { margin-bottom: 24px; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-label .req,
.form-label .opt {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 2px;
  padding: 1px 5px;
  margin-left: 8px;
}
.form-label .req {
  color: var(--brand);
  border: 1px solid var(--brand);
}
.form-label .opt {
  color: var(--text-light);
  border: 1px solid var(--border);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-body);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.form-textarea {
  min-height: 168px;
  line-height: 1.8;
  resize: vertical;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 28px;
}
.form-consent input { margin-top: 4px; flex-shrink: 0; }
.form-consent a { color: var(--brand); }

.form-note {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 16px;
}

/* お問い合わせ サイドバー */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
}
.contact-card .card-eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.contact-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 10px;
}
.contact-card .tel {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.contact-card p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-muted);
}
.contact-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
}
.contact-card .card-link::after {
  content: "→";
  font-family: var(--font-en);
  transition: transform 0.2s ease;
}
.contact-card .card-link:hover::after { transform: translateX(3px); }

/* ===== お知らせ一覧（news/index.html） ===== */
.news-list {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
}
.news-date {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}
.news-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.7;
}

/* ===== 規程ページ（privacy.html / security.html） ===== */
.legal-intro {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-body);
  margin-bottom: 48px;
}
.legal-section {
  margin-bottom: 40px;
}
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.legal-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 8px;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-body);
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul,
.legal-section ol {
  margin: 8px 0 14px;
  padding-left: 1.4em;
}
.legal-section li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 6px;
}
.legal-section li:last-child { margin-bottom: 0; }
.legal-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.95;
}

/* ===== PAGE HEADER (下層ページ共通) ===== */
.page-header {
  padding: 64px 0 56px;
}

.page-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brand);
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.page-desc {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-muted);
  max-width: 720px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 48px;
  background: var(--bg-soft);
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.filter-chip.is-active {
  background: var(--brand-dark);
  color: white;
  border-color: var(--brand-dark);
}

/* ===== CASE GRID ===== */
.case-section {
  padding-bottom: 96px;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.case-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.case-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
}

.case-thumb {
  height: 200px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-thumb svg {
  width: 100%;
  height: 100%;
}

.case-body {
  padding: 28px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-light);
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}
.case-meta .industry {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--brand);
  font-weight: 500;
  font-family: var(--font-jp);
  letter-spacing: 0.02em;
}
.case-meta .date::before {
  content: "掲載 ";
}

.case-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.case-client {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.case-summary {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.case-tag {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.case-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.case-link::after {
  content: "→";
  font-family: var(--font-en);
  transition: transform 0.2s ease;
}
.case-card:hover .case-link::after { transform: translateX(3px); }

/* ===== COMING SOON CARD ===== */
.case-card-placeholder {
  background: var(--bg-soft);
  border: 1px dashed var(--bg-line);
  border-radius: 4px;
  padding: 80px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}
.case-card-placeholder .icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-light);
  font-family: var(--font-en);
  font-size: 18px;
}
.case-card-placeholder .label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.case-card-placeholder .text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ===== CASE HERO (詳細ページ) ===== */
.case-hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
}
.case-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.industry-badge {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--brand);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.published-date {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}
.case-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.case-hero .client {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== INFO TABLE (詳細ページ) ===== */
.info-section {
  padding: 56px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.info-item {
  border-left: 2px solid var(--brand);
  padding-left: 16px;
}
.info-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.65;
}

/* ===== ARTICLE BODY (詳細ページ) ===== */
.case-body-section {
  padding: 88px 0;
}
.body-block {
  margin-bottom: 64px;
}
.body-block:last-child { margin-bottom: 0; }

.body-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.body-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brand);
}
.body-h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.body-block p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-body);
  margin-bottom: 16px;
}
.body-block p:last-child { margin-bottom: 0; }

.challenge-list {
  list-style: none;
  margin-top: 8px;
}
.challenge-list li {
  position: relative;
  padding: 16px 0 16px 32px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.85;
}
.challenge-list li:last-child { border-bottom: none; }
.challenge-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 16px;
  height: 1px;
  background: var(--brand);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.solution-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 28px 24px;
}
.solution-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.solution-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 12px;
}
.solution-desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-muted);
}

.diagram-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  margin-top: 8px;
}
.diagram-box svg {
  width: 100%;
  max-width: 720px;
  display: block;
  margin: 0 auto;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.result-card {
  background: var(--bg-soft);
  padding: 28px;
  border-radius: 4px;
}
.result-value {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.result-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.voice-block {
  background: var(--bg-soft);
  border-left: 3px solid var(--brand);
  padding: 32px 36px;
  margin-top: 8px;
  position: relative;
}
.voice-block::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 24px;
  font-family: Georgia, serif;
  font-size: 64px;
  color: var(--brand);
  opacity: 0.2;
  line-height: 1;
}
.voice-block p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-body);
  margin-bottom: 16px;
  font-style: normal;
}
.voice-attribution {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.voice-attribution strong {
  color: var(--text-primary);
  font-weight: 700;
}

.related-services {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  margin-top: 24px;
}
.related-services h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.related-link:hover { border-color: var(--brand); color: var(--brand); }
.related-link::after {
  content: "→";
  font-family: var(--font-en);
  color: var(--text-light);
}

/* ===== 進め方ステップ（サービス個別ページ） ===== */
.step-list {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.step-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.step-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
}

/* ===== よくあるご質問（サービス個別ページ） ===== */
.faq-list {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.7;
}
.faq-q::before {
  content: "Q";
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand);
}
.faq-a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
}
.faq-a::before {
  content: "A";
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-light);
}

/* ===== PAGINATION (詳細ページ) ===== */
.case-nav {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.case-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.case-nav a, .case-nav span {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.case-nav a:hover { color: var(--brand); }
.case-nav-back {
  font-weight: 500;
  color: var(--text-primary) !important;
}

/* ===== CONTACT CTA ===== */
.contact-cta {
  background: var(--brand-dark);
  color: white;
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-cta h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.contact-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.95;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  text-decoration: none;
  color: white;
  transition: all 0.2s ease;
}
.contact-action:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

.contact-action-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-action-value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-action-arrow {
  font-family: var(--font-en);
  font-size: 20px;
  color: rgba(255,255,255,0.4);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #051628;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
  font-size: 13px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-mark { margin-bottom: 16px; }

.footer-brand p {
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.footer-legal a:hover { color: white; }

/* ============================================================
   RESPONSIVE
   デスクトップ(>900px)の表示は変更しない。
   指定幅以下でのみレイアウトを調整する。
   ============================================================ */

/* ===== タブレット幅以下: ハンバーガーメニュー ===== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  /* ナビ＋CTAをヘッダー下のドロワーに切り替え */
  .header-drawer {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(10,37,64,0.08);
    padding: 8px 0 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .header-drawer.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .header-drawer .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header-drawer .main-nav a {
    font-size: 15px;
    padding: 14px 32px;
    border-bottom: 1px solid var(--bg-line);
  }
  .header-drawer .main-nav a.is-current::after { display: none; }

  .header-drawer .header-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px 32px 0;
  }
  .header-drawer .header-cta .btn {
    width: 100%;
    padding: 12px 20px;
  }

  /* ハンバーガー → ✕ */
  .nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== タブレット: グリッドの段組み調整 ===== */
@media (max-width: 768px) {
  .container,
  .container-narrow { padding: 0 20px; }

  section { padding: 64px 0; }

  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .hero-visual { height: auto; }

  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 26px; }

  .service-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 0;
  }
  .service-group .service-item:first-of-type { padding-top: 32px; }
  .service-num { padding-top: 0; }
  .service-group-header { flex-wrap: wrap; gap: 10px; }
  .service-group-desc {
    margin-left: 0;
    max-width: none;
    text-align: left;
  }

  .partner-grid { grid-template-columns: 1fr; gap: 40px; }

  .about-row { grid-template-columns: 120px 1fr; }

  .page-header { padding: 48px 0 40px; }
  .page-title { font-size: 28px; }
  .case-hero h1 { font-size: 28px; }
  .body-h2 { font-size: 22px; }

  .case-section { padding-bottom: 64px; }
  .case-grid { grid-template-columns: 1fr; }

  .info-grid { grid-template-columns: 1fr 1fr; }
  .case-body-section { padding: 56px 0; }
  .body-block { margin-bottom: 48px; }
  .solution-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: 1fr; }
  .diagram-box { padding: 24px; }

  .contact-cta { padding: 56px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-cta h2 { font-size: 22px; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-grid-2 { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}

/* ===== モバイル: 単一カラム ===== */
@media (max-width: 480px) {
  .hero-title { font-size: 27px; }
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn { width: 100%; }

  .metrics-grid { grid-template-columns: 1fr; gap: 20px; }

  .partner-badges { grid-template-columns: 1fr; }

  .about-row { grid-template-columns: 1fr; }
  .about-th { padding: 12px 16px 4px; }
  .about-td { padding: 4px 16px 16px; }

  .info-grid { grid-template-columns: 1fr; }

  .voice-block { padding: 28px 24px; }

  .case-nav-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
