/* =========================================================
   HCG 実績・導入事例 (case/index.html) page styles
   Pairs with components.css (shared header/footer).
   ========================================================= */

:root {
  --hcg-text: #333333;
  --hcg-text-light: #666666;
  --hcg-white: #ffffff;
  --hcg-font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#programs, #schools, #business-training {
  scroll-margin-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--hcg-font);
  color: var(--hcg-text);
  background: var(--hcg-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-weight: 500; color: var(--hcg-navy); margin: 0; }

.hcg-container {
  max-width: var(--hcg-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Fade-in ---------- */
.hcg-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hcg-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero ---------- */
.hcg-hero {
  background: linear-gradient(180deg, #f4f6fb 0%, var(--hcg-white) 100%);
  padding: 76px 0 64px;
}

.hcg-hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hcg-hero__label {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--hcg-navy-deep);
  font-weight: 700;
  margin-bottom: 14px;
}

.hcg-hero h1 {
  font-size: 42px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hcg-hero__inner > .hcg-fade > p {
  font-size: 15.5px;
  color: var(--hcg-text-light);
  max-width: 560px;
}

/* ---------- Hero slideshow ---------- */
.hcg-hero__slideshow {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(11, 35, 65, 0.16);
}

.hcg-slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--hcg-navy);
}

.hcg-slideshow__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hcg-slideshow__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hcg-slideshow__slide.is-active {
  opacity: 1;
}

.hcg-slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hcg-slideshow__slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 24px 20px;
  background: linear-gradient(180deg, rgba(11, 35, 65, 0) 0%, rgba(6, 15, 30, 0.82) 78%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hcg-slideshow__company {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.hcg-slideshow__desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  line-height: 1.6;
}

.hcg-slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(6, 15, 30, 0.4);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
}

.hcg-slideshow__arrow--prev { left: 12px; }
.hcg-slideshow__arrow--next { right: 12px; }

.hcg-slideshow__arrow:hover {
  background: rgba(6, 15, 30, 0.65);
}

.hcg-slideshow__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.hcg-slideshow__dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hcg-slideshow__dots button.is-active {
  background: #ffffff;
}

/* ---------- Quicklinks ---------- */
.hcg-quicklinks {
  background: var(--hcg-white);
  border-bottom: 1px solid var(--hcg-border);
}

.hcg-quicklinks__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.hcg-quicklinks__list li {
  border-left: 1px solid var(--hcg-border);
}

.hcg-quicklinks__list li:last-child {
  border-right: 1px solid var(--hcg-border);
}

.hcg-quicklinks__list a {
  display: block;
  padding: 16px 28px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--hcg-navy);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.hcg-quicklinks__list a:hover {
  color: var(--hcg-navy-deep);
  background: var(--hcg-bg-light);
}

/* ---------- Map / achievements summary ---------- */
.hcg-map-section {
  padding-top: 0;
}

.hcg-map-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  background: var(--hcg-bg-light);
  border: 1px solid var(--hcg-border);
  border-radius: 16px;
  padding: 48px 56px;
}

.hcg-map-heading {
  font-family: var(--hcg-font-serif);
  margin: 0 0 32px;
}

.hcg-map-heading__line {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--hcg-navy);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.hcg-map-heading__line + .hcg-map-heading__line {
  margin-top: 2px;
}

.hcg-map-heading strong {
  font-size: 2.3em;
  font-weight: 900;
  color: var(--hcg-navy-deep);
  letter-spacing: -0.02em;
  margin: 0 1px;
}

.hcg-map-legend {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--hcg-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hcg-map-legend li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--hcg-text);
  line-height: 1.5;
}

.hcg-map-legend__mark {
  flex: none;
  width: 20px;
  text-align: center;
  color: var(--hcg-navy-deep);
  font-size: 15px;
  line-height: 1.5;
}

.hcg-map-legend__mark--dot {
  font-size: 12px;
}

.hcg-map-block__image {
  border-radius: 10px;
  overflow: hidden;
}

.hcg-map-block__zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
}

.hcg-map-block__zoom img {
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.hcg-map-block__zoom:hover img {
  transform: scale(1.035);
}

.hcg-map-block__zoom-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 35, 65, 0.82);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(11, 35, 65, 0.25);
}

/* ---------- Map zoom modal ---------- */
.hcg-map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hcg-map-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.hcg-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 30, 0.86);
}

.hcg-map-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
}

.hcg-map-modal__dialog img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  border-radius: 8px;
  background: #fff;
}

.hcg-map-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.hcg-map-modal__close:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* ---------- Sections ---------- */
.hcg-section {
  padding: 90px 0;
}

.hcg-section--light {
  background: var(--hcg-bg-light);
}

.hcg-section--navy {
  background: var(--hcg-navy);
}

.hcg-section--navy .hcg-eyebrow {
  color: #8fb3ff;
}

.hcg-section--navy h2,
.hcg-section--navy .hcg-commission__main h3,
.hcg-section--navy .hcg-commission__sub h3 {
  color: var(--hcg-white);
}

.hcg-section--navy .hcg-lead,
.hcg-section--navy .hcg-commission p {
  color: rgba(255, 255, 255, 0.7);
}

.hcg-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--hcg-navy-deep);
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hcg-heading {
  font-size: 32px;
  margin-bottom: 18px;
}

.hcg-lead {
  font-size: 15.5px;
  color: var(--hcg-text-light);
  margin: 0 0 48px;
}

/* ---------- Report cards ---------- */
.hcg-report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hcg-report-card {
  display: flex;
  flex-direction: column;
  background: var(--hcg-white);
  border: 1px solid var(--hcg-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hcg-report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(11, 35, 65, 0.14);
}

.hcg-report-card__image {
  height: 200px;
  overflow: hidden;
}

.hcg-report-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hcg-report-card:hover .hcg-report-card__image img {
  transform: scale(1.05);
}

.hcg-report-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hcg-report-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hcg-report-card__body h3 {
  font-size: 18px;
  line-height: 1.5;
}

.hcg-report-card__body p {
  font-size: 13.5px;
  color: var(--hcg-text-light);
  margin: 0;
}

.hcg-report-card__link {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--hcg-navy-deep);
}

.hcg-tag {
  display: inline-block;
  background: var(--hcg-bg-light);
  border: 1px solid var(--hcg-border);
  color: var(--hcg-navy);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Split / Program list ---------- */
.hcg-split {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 56px;
}

.hcg-sticky-heading {
  position: sticky;
  top: 96px;
  align-self: start;
}

.hcg-sticky-heading .hcg-lead {
  margin-bottom: 0;
}

.hcg-program-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hcg-program-card {
  background: var(--hcg-white);
  border: 1px solid var(--hcg-border);
  border-radius: 8px;
  padding: 26px 28px;
}

.hcg-program-card__meta {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.hcg-program-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.hcg-program-card p {
  font-size: 14.5px;
  color: var(--hcg-text);
  margin: 0;
}

/* ---------- Area grid ---------- */
.hcg-area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hcg-area-card {
  background: var(--hcg-white);
  border: 1px solid var(--hcg-border);
  border-radius: 8px;
  padding: 24px;
}

.hcg-area-card h3 {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hcg-border);
}

.hcg-area-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hcg-area-card li {
  font-size: 13.5px;
  color: var(--hcg-text-light);
  padding-left: 14px;
  position: relative;
}

.hcg-area-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hcg-navy-deep);
}

/* ---------- Commission ---------- */
.hcg-commission {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.hcg-commission__main,
.hcg-commission__sub {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 28px 30px;
}

.hcg-commission__year {
  font-size: 13px;
  font-weight: 700;
  color: #8fb3ff;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hcg-commission__main h3,
.hcg-commission__sub h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.hcg-commission p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* ---------- Business training cases ---------- */
.hcg-business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.hcg-business-card {
  display: flex;
  gap: 18px;
  background: var(--hcg-white);
  border: 1px solid var(--hcg-border);
  border-radius: 8px;
  padding: 24px 26px;
}

.hcg-business-card__num {
  flex: none;
  font-size: 22px;
  font-weight: 700;
  color: var(--hcg-navy-deep);
  line-height: 1.3;
}

.hcg-business-card__body h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.hcg-business-card__body .hcg-tag {
  margin-bottom: 10px;
}

.hcg-business-card__body p {
  font-size: 13.5px;
  color: var(--hcg-text-light);
  margin: 0;
}

/* ---------- Reason grid ---------- */
.hcg-reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hcg-reason-card {
  background: var(--hcg-white);
  border: 1px solid var(--hcg-border);
  border-radius: 8px;
  padding: 26px 24px;
}

.hcg-reason-card__num {
  font-size: 24px;
  font-weight: 700;
  color: var(--hcg-navy-deep);
  margin-bottom: 12px;
}

.hcg-reason-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.hcg-reason-card p {
  font-size: 13.5px;
  color: var(--hcg-text-light);
  margin: 0;
}

/* ---------- Flow ---------- */
.hcg-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hcg-flow-item {
  background: var(--hcg-white);
  border: 1px solid var(--hcg-border);
  border-radius: 8px;
  padding: 24px;
}

.hcg-flow-item__step {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--hcg-navy-deep);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hcg-flow-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.hcg-flow-item p {
  font-size: 13.5px;
  color: var(--hcg-text-light);
  margin: 0;
}

/* ---------- CTA ---------- */
.hcg-cta {
  background: var(--hcg-navy);
  border-radius: 16px;
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hcg-cta h2 {
  color: var(--hcg-white);
  font-size: 26px;
  margin-bottom: 12px;
}

.hcg-cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  margin: 0;
  max-width: 480px;
}

.hcg-cta__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex: none;
}

.hcg-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hcg-button--primary {
  background: #ffffff;
  color: var(--hcg-navy);
}

.hcg-button--primary:hover {
  background: #e6ebf5;
}

.hcg-button--outline {
  background: transparent;
  color: var(--hcg-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hcg-button--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hcg-hero__inner { grid-template-columns: 1fr; }
  .hcg-map-block { grid-template-columns: 1fr; padding: 36px 32px; gap: 32px; }
  .hcg-map-block__image { max-width: 420px; margin: 0 auto; }
  .hcg-split { grid-template-columns: 1fr; gap: 32px; }
  .hcg-sticky-heading { position: static; }
  .hcg-area-grid { grid-template-columns: repeat(2, 1fr); }
  .hcg-business-grid { grid-template-columns: 1fr; }
  .hcg-commission { grid-template-columns: 1fr; }
  .hcg-reason-grid { grid-template-columns: repeat(2, 1fr); }
  .hcg-flow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hcg-hero { padding: 56px 0 44px; }
  .hcg-hero h1 { font-size: 30px; }
  .hcg-quicklinks__list {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hcg-quicklinks__list a {
    padding: 14px 18px;
    white-space: nowrap;
  }
  .hcg-map-block { padding: 28px 20px; border-radius: 12px; }
  .hcg-map-heading { margin-bottom: 24px; }
  .hcg-map-heading__line { font-size: 17px; }
  .hcg-map-heading strong { font-size: 2em; }
  .hcg-report-grid { grid-template-columns: 1fr; }
  .hcg-business-grid { grid-template-columns: 1fr; }
  .hcg-section { padding: 60px 0; }
  .hcg-heading { font-size: 26px; }
  .hcg-area-grid { grid-template-columns: 1fr; }
  .hcg-reason-grid { grid-template-columns: 1fr; }
  .hcg-flow { grid-template-columns: 1fr; }
  .hcg-cta { padding: 40px 28px; flex-direction: column; text-align: center; }
  .hcg-cta__buttons { justify-content: center; }
}
