/* 導入事例 固有CSS（共通部分は style.css） */
section { padding: clamp(4rem, 8vw, 7rem) 0; }

.accent { color: var(--gold); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.site-nav a.current { color: var(--navy); font-weight: 700; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 0;
  padding-top: 64px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero-svg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .06;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(3rem,7vw,5rem) var(--gutter);
  max-width: var(--wrap);
  margin: 0 auto;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 2px;
  padding: .3em .9em;
  font-size: .7rem;
  letter-spacing: .14em;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 1rem;
}

.page-hero-lead {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,.72);
  line-height: 1.9;
  max-width: 36em;
}

/* ===== 3層モデル セクション ===== */
.concept { background: var(--bg-soft); }

.concept-intro {
  max-width: 42em;
  margin-top: 1.2rem;
}

.concept-intro p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-top: .8rem;
}

.three-layer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.2rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.layer-card {
  background: var(--bg);
  padding: 1.8rem 1.5rem;
  position: relative;
}

.layer-card.ai-layer {
  background: var(--navy);
}

.layer-num {
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: .5rem;
}

.ai-layer .layer-num { color: var(--gold-light); }

.layer-card h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: .75rem;
}

.ai-layer h3 { color: #fff; }

.layer-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.ai-layer p { color: rgba(255,255,255,.68); }

.layer-badge {
  display: inline-block;
  margin-top: .75rem;
  font-size: .7rem;
  font-weight: 700;
  padding: .3em .85em;
  border-radius: 2px;
  background: var(--bg-mid);
  color: var(--text-muted);
  letter-spacing: .05em;
}

.ai-layer .layer-badge {
  background: rgba(255,255,255,.12);
  color: var(--gold-light);
}

.atm-note {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 2px;
}

.atm-note h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}

.atm-note p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-top: .5rem;
}

/* ===== 事例写真バナー ===== */
.case-img-banner {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 4.5;
  object-fit: cover;
  border-radius: 0;
}

.case-img-wrap {
  position: relative;
  line-height: 0;
}

.case-img-note {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: .65rem;
  color: rgba(255,255,255,.55);
  line-height: 1.2;
  pointer-events: none;
}

/* ===== 事例 ===== */
.cases-section { background: var(--bg); }

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}

.case-card-header {
  background: var(--navy);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.case-num-tag {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .18em;
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
}

.case-industry {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
}

.case-card-header h2 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 900;
  color: #fff;
  margin-top: .4rem;
  width: 100%;
}

.case-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.case-col h4 {
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.change-list li {
  font-size: .88rem;
  padding: .6rem 0 .6rem 1.4rem;
  border-top: 1px solid var(--border-light);
  position: relative;
  line-height: 1.55;
  color: var(--text);
}

.change-list li:first-child { border-top: 0; }

.change-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.change-list.gone li::before { background: #d0021b; opacity: .5; }

.change-list.light li::before { background: var(--gold); }

.change-list.human li::before { background: var(--navy); }

.case-focus-col {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem 1.3rem;
}

.case-focus-col h4 {
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: .6rem;
}

.case-focus-col .focus-text {
  font-size: .9rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.6;
}

.case-focus-col .focus-sub {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: .4rem;
}

.case-card-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.case-time-block h4 {
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: .6rem;
}

.case-time-headline {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}

.case-time-headline span {
  font-size: .6em;
  font-weight: 400;
  color: var(--text-muted);
}

.case-time-table {
  margin-top: .75rem;
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}

.case-time-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  padding: .35rem .5rem .35rem 0;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.case-time-table td {
  padding: .35rem .5rem .35rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  font-weight: 500;
}

.case-time-table td:last-child {
  font-weight: 700;
  color: var(--navy);
}

.case-time-note {
  font-size: .72rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: .6rem;
}

.case-voice {
  padding: 1.4rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  position: relative;
}

.case-voice::before {
  content: "\201C";
  position: absolute;
  top: .4rem;
  left: 1.1rem;
  font-size: 2.5rem;
  color: var(--gold-light);
  opacity: .4;
  line-height: 1;
  font-family: Georgia, serif;
}

.case-voice p {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.85;
  padding-top: 1rem;
  font-style: italic;
  text-wrap: pretty;
}

.case-voice cite {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  font-style: normal;
  margin-top: .6rem;
  font-weight: 500;
}

/* ===== CTA セクション ===== */
.cases-cta {
  background: var(--navy-dark);
  color: #fff;
  text-align: center;
}

.cases-cta h2 { color: #fff; }

.cases-cta .lead {
  color: rgba(255,255,255,.65);
  margin-left: auto;
  margin-right: auto;
}

.cta-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.site-footer p {
  font-size: .76rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== TYPOGRAPHY ===== */
h2, h3 { text-wrap: balance; }

p, li { text-wrap: pretty; }

.sp-br { display: none; }

@media (max-width: 600px) { .sp-br { display: inline; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 16px rgba(27,42,74,.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .9rem var(--gutter); border-top: 1px solid var(--border-light); font-size: .95rem; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 11px;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 1px; }
  .three-layer { grid-template-columns: 1fr; }
  .case-body { grid-template-columns: 1fr; }
  .case-card-footer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-cta { display: none; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .cta-btn-row { flex-direction: column; align-items: stretch; }
  .cta-btn-row .btn { text-align: center; }
}
