@charset "UTF-8";

/* ============================================================
   p3-middle.css
   Approach / How It Works / Services / Flow セクション
   ============================================================ */


/* ----------------------------------------------------------
   Approach — 「そのお悩み すべてPrexiaが解決します。」
   ---------------------------------------------------------- */

.section-primary {
  background: var(--primary);
  color: #fff;
}

.approach-section {
  position: relative;
}

.approach-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.10) 1px, transparent 1.4px);
  background-size: 14px 14px;
  pointer-events: none;
}

.approach-section .container {
  position: relative;
  z-index: 1;
}

/* 見出しブロック */
.approach-headline {
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

/* 「そのお悩み」バッジ (回転した手書き風タグ) */
.approach-overhead {
  display: inline-block;
  position: relative;
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.06em;
  color: var(--primary);
  background: #fff;
  border-radius: 999px;
  padding: 8px 26px;
  margin-bottom: 0;
  transform: rotate(-4deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.approach-overhead::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
}

.approach-h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-jp);
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
}

.approach-h2-jp {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: #fff;
  letter-spacing: 0.04em;
}

.approach-h2-jp em {
  font-style: normal;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.05em;
  background: linear-gradient(transparent 55%, rgba(255, 220, 80, 0.85) 55%);
  padding: 0 4px;
  letter-spacing: -0.01em;
  color: #fff;
}

.approach-h2-en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0;
}

/* カードグリッド */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 80px;
}

.approach-card {
  position: relative;
  background: #fff;
  color: var(--text-dark);
  border-radius: 8px;
  padding: 56px 32px 36px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

/* アイコン (カード上に飛び出す円) */
.approach-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -86px auto 18px;
  border: 6px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.approach-icon svg {
  width: 46px;
  height: 46px;
  display: block;
}

/* マーカー風ハイライト */
.ap-marker {
  background: linear-gradient(transparent 55%, rgba(255, 220, 80, 0.7) 55%);
  padding: 0 4px;
}

.approach-jp {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin: 0 0 20px;
  line-height: 1.4;
}

.approach-desc {
  color: var(--text-muted-light);
  font-size: 13.5px;
  line-height: 1.85;
  text-align: left;
  margin: 0;
}


/* ----------------------------------------------------------
   How It Works（関係図）
   ---------------------------------------------------------- */

.diagram-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 60px;
}

.diagram-node {
  border: 1px solid var(--border-dark);
  padding: 24px 48px;
  text-align: center;
  min-width: 220px;
}

.node-vc {
  border-color: var(--border-light);
}

.node-venture {
  border-color: var(--border-light);
}

.node-prexia {
  border-color: var(--primary);
  background: rgba(0, 139, 150, 0.12);
}

.node-label {
  display: block;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.0rem;
  color: var(--text-dark);
}

.node-sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted-light);
  margin-top: 4px;
}

.diagram-arrows {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.arrow-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arrow-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.arrow-label {
  font-size: 11px;
  color: var(--primary);
  letter-spacing: .1em;
  font-family: var(--font-en);
}

.arrow-down::after {
  content: "↓";
  font-size: 20px;
  color: var(--primary);
}

.diagram-center {
  display: flex;
  align-items: center;
  gap: 0;
}

.diagram-connector {
  padding: 0 24px;
  text-align: center;
}

.connector-label {
  display: block;
  font-size: 11px;
  color: var(--primary);
  letter-spacing: .1em;
  font-family: var(--font-en);
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
}

.connector-label::before,
.connector-label::after {
  content: "";
  display: block;
  border-top: 1px solid var(--primary);
  width: 100%;
  margin: 6px 0;
}

.diagram-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.diagram-services span {
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted-light);
  font-family: var(--font-jp);
}

.diagram-caption {
  text-align: center;
  color: var(--text-muted-light);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}


/* ----------------------------------------------------------
   Services — 「サービス内容」
   ---------------------------------------------------------- */

.services-section {
  position: relative;
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 139, 150, 0.10) 1px, transparent 1.4px) 0 0 / 14px 14px,
    var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 3 行(タイトル / 説明 / リスト)を subgrid で揃える */
  grid-template-rows: auto auto auto;
  gap: 70px 24px;
  margin-top: 80px;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0;
  background: #fff;
  color: var(--text-dark);
  border-radius: 8px;
  padding: 70px 28px 32px; /* 上は浮き出るアイコン分を確保 */
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

/* 浮き出るアイコンサークル (グリッド外に absolute で配置) */
.service-icon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.service-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.sv-marker {
  background: linear-gradient(transparent 55%, rgba(255, 220, 80, 0.7) 55%);
  padding: 0 4px;
}

.service-title {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 0 0 20px;
  align-self: start;
}

.service-desc {
  color: var(--text-muted-light);
  font-size: 13.5px;
  line-height: 1.8;
  text-align: left;
  margin: 0 0 18px;
  align-self: start;
}

.service-list {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  text-align: left;
  margin: 0;
  align-self: start;
}

.service-list li {
  font-size: 13px;
  color: var(--text-muted-light);
  padding: 6px 0 6px 18px;
  position: relative;
  line-height: 1.6;
}

.service-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--primary);
}


/* ----------------------------------------------------------
   Flow
   ---------------------------------------------------------- */

.flow-lead {
  color: var(--text-muted-light);
  font-size: 15px;
  margin: 16px 0 60px;
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 0;
}

.flow-step {
  flex: 1;
  padding: 0 20px;
}

.flow-arrow {
  font-size: 20px;
  color: var(--primary);
  padding-top: 40px;
  flex-shrink: 0;
}

.flow-num {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .25em;
  margin-bottom: 16px;
}

.flow-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.flow-desc {
  color: var(--text-muted-light);
  font-size: 13.5px;
  line-height: 1.8;
}


/* ----------------------------------------------------------
   Responsive — 1024px 以下
   ---------------------------------------------------------- */

@media screen and (max-width: 1024px) {
  .approach-headline {
    margin-bottom: 60px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 80px;
    margin-top: 64px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 16px;
    margin-top: 64px;
  }
}


/* ----------------------------------------------------------
   Responsive — 768px 以下
   ---------------------------------------------------------- */

@media screen and (max-width: 768px) {

  /* Approach */
  .approach-headline {
    margin-bottom: 50px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 80px;
    margin-top: 56px;
  }

  .approach-card {
    padding: 52px 24px 28px;
  }

  .approach-icon {
    width: 76px;
    height: 76px;
    margin-top: -74px;
  }

  .approach-icon svg {
    width: 40px;
    height: 40px;
  }

  /* How It Works */
  .diagram-center {
    flex-direction: column;
  }

  .connector-label::before,
  .connector-label::after {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    /* モバイルは1列なので subgrid 揃えは不要 */
    grid-template-rows: none;
    gap: 56px;
    margin-top: 56px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    padding: 64px 24px 28px;
  }

  /* flex に切り替わるためタイトル/説明/リストの align-self を解除 (左寄せ防止) */
  .service-title,
  .service-desc,
  .service-list {
    align-self: stretch;
  }

  .service-icon {
    width: 72px;
    height: 72px;
    top: -28px;
  }

  .service-icon svg {
    width: 36px;
    height: 36px;
  }

  /* Flow */
  .flow-steps {
    flex-direction: column;
    gap: 0;
  }

  .flow-arrow {
    padding: 8px 0;
    align-self: flex-start;
    padding-left: 0;
  }

  .flow-step {
    padding: 20px 0;
  }
}
