/* ============================================================
   WORK FLOW Page
   ============================================================ */

/* Hero は共通 .page-hero を使用（main.css） */

/* ============================================================
   はじめての方へ
   ============================================================ */
.wf-intro {
  padding: 80px 0 60px;
}

.wf-intro__heading {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 30px;
  color: #145393;
  line-height: 48px;
  letter-spacing: 0.16em;
  margin-bottom: 60px;
}

.wf-intro__text {
  max-width: 740px;
  margin: 0 auto;
}

.wf-intro__text p {
  font-size: 15px;
  line-height: 2;
  color: #555;
  margin-bottom: 20px;
}

.wf-intro__text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   譲渡までの流れ（タイムライン）
   ============================================================ */
.wf-steps {
  padding: 80px var(--gutter-width);
  background: #e8eff5;
}

.wf-steps__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 28px;
  color: #222;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.wf-steps__lead {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 48px;
}

.wf-steps__notes {
  text-align: center;
  margin-top: 48px;
}

.wf-steps__notes p {
  font-size: 13px;
  line-height: 1.8;
}

.wf-steps__notes p.wf-steps__notes-title {
  font-size: 16px;
  font-family: var(--font-ja);
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

/* Phase — 2カラム */
.wf-phase {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.wf-phase:last-of-type {
  margin-bottom: 0;
}

/* 左サイドバー — カード型 */
.wf-phase__sidebar {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 8px 8px 0 0;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.wf-phase__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #6e94bc;
  color: #fff;
  width: 100%;
  padding: 20px 0 10px;
  justify-content: center;
  border-radius: 6px 6px 0 0;
  position: relative;
}

.wf-phase__badge::after {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: 90px;
  height: 34px;
  background: #6e94bc;
  clip-path: path('M 0 0 H 90 L 51 29 Q 45 34 39 29 Z');
  z-index: 1;
}

.wf-phase__badge-en {
  font-family: var(--font-en);
  font-weight: var(--font-weight-demi);
  font-size: 16px;
  letter-spacing: 0.1em;
}

.wf-phase__badge-num {
  font-family: var(--font-en);
  font-weight: var(--font-weight-demi);
  font-size: 38px;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* アイコン + フェーズ名 */
.wf-phase__sidebar-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 45px 0;
}

.wf-phase__sidebar-icon img {
  /* width: 40px;
  height: 40px; */
}

.wf-phase__sidebar-name {
  font-family: var(--font-ja);
  font-size: 27px;
  font-weight: 700;
  color: #145393;
  text-align: center;
  letter-spacing: 0.16em;
  line-height: 37px;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

/* 下向き矢印 — サイドバーカード下部からはみ出す白い三角（先端丸め） */
.wf-phase__arrow {
  width: 90px;
  height: 20px;
  background: #fff;
  clip-path: path('M 0 0 H 90 L 51 16 Q 45 20 39 16 Z');
  position: absolute;
  bottom: -19px;
  left: 0;
  z-index: 2;
}

/* 右コンテンツ */
.wf-phase__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ステップ */
.wf-step {
  display: flex;
  align-items: flex-start;
  background: #fff;
  padding: 28px 32px;
  border-bottom: 1px solid #eee;
}

.wf-step:first-child {
  border-radius: 6px 6px 0 0;
}

.wf-step:last-child {
  border-bottom: none;
  border-radius: 0 0 6px 6px;
}

.wf-step:only-child {
  border-radius: 6px;
}

.wf-step__label {
  display: flex;
  flex-direction: column;
  width: 100px;
  flex-shrink: 0;
  padding-top: 3px;
  font-family: var(--font-en);
  font-weight: var(--font-weight-demi);
  font-size: 16px;
  letter-spacing: 0.04em;
  gap: 16px;
}

.badge-award {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background-color: #e24876;
  font-size: 13px;
  width: 80px;
  padding: 8px 4px;
}

.wf-step__body {
  flex: 1;
}

.wf-step__title {
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.12em;
  color: #145393;
}

.wf-step__desc {
  line-height: 28px;
}

/* ============================================================
   支援体制
   ============================================================ */
.wf-support {
  padding: 80px var(--gutter-width);
  background: #f7f7f7;
}

.wf-support .wf-inner {
  max-width: 1100px;
}

.wf-support__heading {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 30px;
  color: #145393;
  line-height: 48px;
  letter-spacing: 0.16em;
  margin-bottom: 30px;
}

/* カード */
.wf-support__card {
  background: #fff;
  border-radius: 6px;
  padding: 40px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.wf-support__card:last-child {
  margin-bottom: 0;
}

/* 右側に画像がないカード（POINT.02 など）は1列にする */
.wf-support__card--full {
  grid-template-columns: 1fr;
  gap: 40px;
}

.wf-support__card-label {
  display: block;
  font-family: var(--font-en);
  font-weight: var(--font-weight-demi);
  font-size: 20px;
  color: #145393;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.wf-support__card-title {
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 700;
  color: #222;
  line-height: 38px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.wf-support__card-body p {
  line-height: 28px;
  margin-bottom: 28px;
}

.wf-support__card-body p:last-child {
  margin-bottom: 0;
}

.wf-support__card-image {
  overflow: hidden;
}

.wf-support__card-image--association {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wf-support__card-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.wf-support__card .association {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  height: 100%;
  padding: 30px;
}

/* POINT.02 フロー図 — デスクトップは4列、モバイルのみSwiperスライダー */
.wf-support__flow {
  grid-column: 1 / -1;
  background-color: #fafafa;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  padding-top: 10px;
}

/* デスクトップ: Swiper未初期化時はグリッドで4列 */
.wf-support__flow .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wf-support__flow .swiper-slide {
  width: auto;
  max-width: 100%;
  min-width: 0;
  height: auto;
  flex-shrink: initial;
  box-sizing: border-box;
}

/* デスクトップ: Swiper残留スタイルを無効化し、card-body 幅いっぱいに広げる */
@media (min-width: 769px) {
  .wf-support__flow {
    width: 100%;
    overflow: visible;
  }
  .wf-support__flow .swiper-wrapper {
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .wf-support__flow .swiper-slide {
    width: auto !important;
    transform: none !important;
  }
}

.wf-support__flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 20px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

/* デスクトップではナビ・ページネーションを非表示 */
.wf-support__flow-prev,
.wf-support__flow-next,
.wf-support__flow-pagination {
  display: none;
}

.wf-support__flow-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: #145393;
  border-radius: 50%;
  color: #fff;
  text-align: center;
}

.wf-support__flow-badge-en {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: var(--font-weight-demi);
  color: #fff;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 2px;
}

.wf-support__flow-badge-num {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: var(--font-weight-demi);
  color: #fff;
  line-height: 1;
  letter-spacing: 0.04em;
}

.wf-support__flow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wf-support__flow-icon img {
  width: auto;
  height: auto;
  max-width: 100%;
}

.wf-support__flow-name {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  color: #222;
  text-align: center;
  line-height: 28px;
  letter-spacing: 0.08em;
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .wf-inner {
    padding: 0;
  }

  .wf-support__card {
    padding: 32px;
    gap: 32px;
  }

  .wf-step__title {
    font-size: 20px;
  }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 768px) {
  /* Intro */
  .wf-intro {
    padding: 48px var(--gutter-width) 40px;
  }

  .wf-intro__heading {
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    margin-bottom: 32px;
  }

  .wf-intro__text p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  /* Steps */
  .wf-steps {
    padding: 48px var(--gutter-width);
  }

  .wf-steps__title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .wf-steps__lead {
    font-size: 13px;
    margin-bottom: 32px;
  }

  .wf-steps__lead br {
    display: none;
  }

  .wf-steps__notes {
    margin-top: 32px;
  }

  .wf-steps__notes p {
    font-size: 12px;
    text-align: left;
  }

  .wf-steps__notes p.wf-steps__notes-title {
    font-size: 14px;
  }

  /* Phase — 横並び → 縦並び */
  .wf-phase {
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
  }

  .wf-phase__sidebar {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 14px 16px;
    background: #6e94bc;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
  }

  .wf-phase__badge {
    width: auto;
    padding: 0;
    background: none;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    border-radius: 0;
    position: static;
  }

  .wf-phase__badge::after {
    display: none;
  }

  .wf-phase__badge-en {
    font-size: 12px;
  }

  .wf-phase__badge-num {
    font-size: 22px;
    line-height: 1;
  }

  .wf-phase__sidebar-info {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  .wf-phase__sidebar-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
  }

  .wf-phase__sidebar-name {
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.06em;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .wf-phase__arrow {
    display: none;
  }

  /* Step */
  .wf-step {
    flex-direction: column;
    gap: 6px;
    padding: 20px 16px;
  }

  .wf-step:first-child {
    border-radius: 0;
  }

  .wf-step__label {
    flex-direction: row;
    width: auto;
    font-size: 14px;
    padding-top: 0;
    gap: 8px;
  }

  .badge-award {
    margin: 0;
    font-size: 10px;
    padding: 2px 8px;
  }

  .wf-step__title {
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
  }

  .wf-step__desc {
    font-size: 13px;
    line-height: 1.9;
  }

  /* Support */
  .wf-support {
    padding: 60px var(--gutter-width);
  }

  .wf-support__heading {
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
  }

  .wf-support__card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
    margin-bottom: 16px;
  }

  .wf-support__card-image {
    order: -1;
  }

  .wf-support__card-label {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .wf-support__card-title {
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0.06em;
  }

  .wf-support__card-body p {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 16px;
  }

  /* Flow — モバイルはSwiperスライダー */
  .wf-support__flow {
    padding: 24px 0 16px;
    width: 100%;
    background-color: transparent;
    margin-top: 0;
  }

  .wf-support__flow .swiper-wrapper {
    display: flex !important;
    grid-template-columns: none;
    gap: 0;
    padding: 0;
    max-width: none;
  }

  .wf-support__flow .swiper-slide {
    width: auto;
    max-width: none;
    flex-shrink: 0;
    padding: 8px 14px;
    box-sizing: border-box;
  }

  .wf-support__flow-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .wf-support__flow-item {
    padding: 20px 10px;
  }

  .wf-support__flow-badge {
    width: 64px;
    height: 64px;
  }

  .wf-support__flow-badge-num {
    font-size: 16px;
  }

  .wf-support__flow-name {
    font-size: 13px;
  }

  /* ページネーション表示 */
  .wf-support__flow-pagination {
    position: static;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .wf-support__flow-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #c7d4e0;
    opacity: 1;
    margin: 0 !important;
  }

  .wf-support__flow-pagination .swiper-pagination-bullet-active {
    background: #145393;
  }

  /* ナビゲーションはモバイルでは非表示 — ページネーションのみ */
  .wf-support__flow-prev,
  .wf-support__flow-next {
    display: none;
  }
  .wf-support__card-image--association img {
    max-width: 240px;
  }
}
