/* Role-based heading colors */
.flow-role-heading.client-heading { color:#FF6D00; }
.flow-role-heading.partner-heading { color:#00BE00; }

/* Optional container hooks (role-specific placeholders) */
.flow-client { --flow-client: 1; }
.flow-partner { --flow-partner: 1; }
/* Partner role step number color */
.partner-step-number {
  background-color:#00BE00 !important;
}
/* flow.css - フローページのスタイル */
/* 注意: step-itemのホバー効果は一時的に無効化されています */

.flow-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}
.flow {
    padding: 1.5rem;
}

/* リンクのホバー・タップスタイル */
.flow-container a:not(.flow-toc-link, .flow-navigation-button, .step-item) {
  transition: all 0.2s ease;
}

.flow-container a:not(.flow-toc-link, .flow-navigation-button, .step-item):hover {
  text-decoration: underline;
}

.flow-container a:not(.flow-toc-link, .flow-navigation-button, .step-item):active {
  text-decoration: underline;
}

/* 目次のスタイル */
.flow-toc {
  background-color: #F9FAFB;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.flow-toc-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.flow-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flow-toc-link {
  display: block;
  padding: 0.5rem;
  color: #6B7280;
  text-decoration: none;
  transition: all 0.3s ease;
}

.flow-toc-link:hover {
  color: #111827;
  background-color: #F3F4F6;
  border-radius: 0.25rem;
}

.flow-toc-link.active {
  color: #FF6D00;
  font-weight: 700;
}

/* ステップのスタイル */
.flow-step {
    padding: 1rem;
  margin-bottom: 3rem;
}

.flow-step-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.flow-step-number {
  background-color: #9667FF;
  color: white;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
  line-height: 1.2;
  font-size: 24px;
}

.flow-step-number::before {
  content: "STEP";
  font-size: 0.875rem;
}

.flow-step-title {
  font-size: 1.5rem;
  font-weight: bold;
}

/* 注意書きのスタイル */
.flow-notice {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
}

.flow-notice-content {
  display: flex;
  align-items: start;
}

.flow-notice-icon {
  color: #3B82F6;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

/* セクションのスタイル */
.flow-section {
  margin-bottom: 2rem;
}

.flow-section-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.flow-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 6px;
  height: 1.2em;
  background: #9667FF;
  border-radius: 3px;
}

.flow-section-content {
  background-color: #F9FAFB;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.flow-section-text {
  color: #4B5563;
  margin-bottom: 1rem;
}

.flow-section-image {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* 番号付きリストのデザイン（アイコン風番号＋画像左寄せ） */
.flow-section-content ol {
  list-style: none;
  margin: 0 0 0 0.5em;
  padding: 0;
}

.flow-section-content ol li {
  display: block;
  margin-bottom: 1.5em;
  font-size: 1rem;
  color: #4B5563;
}

.flow-section-content .flow-list-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.7em;
}

/* guide-content 内でも flow-list-row を適用 */
.guide-content .flow-list-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.7em;
}

.flow-section-content .flow-list-num {
  min-width: 2.2em;
  height: 2.2em;
  background: #9667FF;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
  margin-right: 1em;
  flex-shrink: 0;
}

/* guide-content 内でも flow-list-num を適用 */
.guide-content .flow-list-num {
  min-width: 2.2em;
  height: 2.2em;
  background: #9667FF;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  /* font-size: 1.1em; */
  margin-right: 1em;
  flex-shrink: 0;
}

.flow-section-content .flow-list-body {
  flex: 1;
  display: block;
}

/* guide-content 内でも flow-list-body を適用 */
.guide-content .flow-list-body {
  flex: 1;
  display: block;
}

.flow-section-content .flow-list-img {
  width: 550px;
  max-width: 50vw;
  margin: 0 0 0 calc(2.2em + 1em);
  border-radius: 0.5em;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.08);
  object-fit: cover;
  display: block;
}

/* ナビゲーションのスタイル */
.flow-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #E5E7EB;
}

.flow-navigation-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #1F2937;
  color: white;
  /* border-radius: 0.375rem; */
  transition: background-color 0.3s ease;
}

.flow-navigation-button:hover {
  background-color: #374151;
}

.flow-navigation .step-item:hover {
    /* hover state adjusted */
    background-color: transparent;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.04);
  }


  .step-item.reverse .step-arrow {
    margin-left: 1rem;
    margin-right: 1.25rem;
  }

  .flow-navigation .step-icon-container {
    display: none;
  } 


/* ===================== */
/* パートナー用フロー色 */
/* ===================== */
.partner-flow .flow-step-number,
.partner-flow .flow-section-title::before,
.partner-flow .step-badge {
  background-color: #00BE00 !important;
}
.partner-flow .flow-notice {
  background-color: #E5F8E5 !important;
  border: 1px solid #00BE00 !important;
}
.partner-flow .flow-notice-icon {
  color: #00BE00 !important;
}
.partner-flow .flow-section-content .flow-list-num {
  background: #00BE00 !important;
}
.partner-flow .step-badge.partner {
  background-color: #00BE00 !important;
}
.partner-flow .step-item.partner:hover .step-badge {
  /* subtle hover accent */
  filter: brightness(1.05);
} 


/* レスポンシブ対応 */

@media (max-width: 1024px) {
  .flow-container {
    padding: 0px;
  }
  .flow {
    padding: 1rem;
}

.text-sm{
    font-size: 0.750rem;
}

  .flow-container ol{
    padding: 1rem;
  }

  .flow-step-title {
    font-size: 1.25rem;
  }

  .flow-toc-title {
    font-size: 1rem;
  }

  .flow-section-title {
    font-size: 1.1rem;
    padding-left: 1rem;
  }
  .flow-section-content {
    padding: 1rem;
  }

  .flow-section-content .flow-list-img {
    width: 100%;
    max-width: 60vw;
    margin-left: calc(2.2em + 0.5em);
  }
  .flow-list-body {
    font-size: 0.98rem;
  }
  .flow-list-num {
    font-size: 1rem;
    min-width: 2em;
    height: 2em;
  }
}

@media (max-width: 640px) {
    .main-content{
        padding: 0;
    }
    .flow {
        padding: 0.75rem;
    }
    .flow h1{
        font-size: 1.25rem;;
    }
  .flow-container {
    padding: 0;
  }
  .flow-step{
    padding: 0.375rem;
  }
  .flow-step-header {
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
  }
  .flow-step-title {
    font-size: 1.125rem;
  }
  .flow-step-number{
    width: 4rem;
    height: 4rem;
    font-size: 1.2rem;
  }
  .flow-section-title {
    font-size: 1.125rem;
    padding-left: 0.7rem;
  }
  .flow-section-content {
    padding: 0rem;
  }
  .flow-section-content ol {
    margin: 0;
  }
  .flow-section-content .flow-list-img {
    height: auto;
    max-width: 100%;
    margin-left: 0px;
  }
  .flow-section-content .flow-list-row {
    flex-direction: row;
    align-items: flex-start;
  }
  .flow-list-body {
    font-size: 0.95rem;
  }
  .flow-list-num {
    font-size: 0.95rem;
    min-width: 1.7em;
    height: 1.7em;
  }
  .flow-toc {
    padding: 1rem;
    font-size: 0.95rem;
  }
  .flow-toc-nav{
    gap: 0.25rem;
  }
  .flow-toc-title {
    font-size: 0.875rem;
  }
  .flow-toc-link {
    font-size: 0.75rem;
    padding: 0.375rem;

  }
  .flow-navigation {
    flex-direction: column-reverse;
    gap: 1rem;
    padding-top: 1rem;
  }
  p.mb-8{
    font-size: 0.875rem;
  }
}

.flow-select-buttons {
  display: none;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.flow-select-btn {
  flex: 1;
  padding: 0.9em 0;
  font-size: 1.1rem;
  border: none;
  border-radius: 0.5em;
  background: #f3f4f6;
  color: #333;
  font-weight: bold;
  margin: 0 0.5em;
  transition: background 0.2s, color 0.2s;
}
.flow-select-btn.client {
  background: #ede9fe;
  color: #7c3aed;
}
.flow-select-btn.partner {
  background: #e0f7fa;
  color: #009688;
}
.flow-select-btn:active, .flow-select-btn:focus {
  outline: 2px solid #9667FF;
  background: #ddd6fe;
}

@media (max-width: 768px) {
  .flow-select-buttons {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }
} 