/* 料金プランセクション - 中央揃え目立つデザイン */

/* 1列レイアウト用のプランコンテナスタイル */
.plans-container.single-column {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* 各プランカードの基本スタイル（中央揃え版） */
.plan-card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 4rem 3rem;
  margin-bottom: 5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

/* プラン固有のスタイル */
.standard-plan {
  border-top: 6px solid var(--primary);
  background: linear-gradient(135deg, rgba(45, 91, 157, 0.02) 0%, rgba(45, 91, 157, 0.08) 100%);
}

.standard-plan::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(45, 91, 157, 0.15), transparent 70%);
  border-radius: 0 0 0 100%;
  z-index: 0;
}

.premium-plan {
  /* border-top: 6px solid var(--secondary); */
  border-top: 6px solid var(--primary);
  /* background: linear-gradient(135deg, rgba(248, 160, 26, 0.02) 0%, rgba(248, 160, 26, 0.08) 100%); */
  background: linear-gradient(135deg, rgba(45, 91, 157, 0.02) 0%, rgba(45, 91, 157, 0.08) 100%);
}

.premium-plan::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  /* background: radial-gradient(circle at top right, rgba(248, 160, 26, 0.15), transparent 70%); */
  background: radial-gradient(circle at top right, rgba(45, 91, 157, 0.15), transparent 70%);
  border-radius: 0 0 0 100%;
  z-index: 0;
}

/* プラン区切り線 */
.plan-divider {
  height: 3px;
  background: linear-gradient(to right, transparent, var(--primary-light), transparent);
  margin: 6rem 0;
  opacity: 0.6;
}

/* プランヘッダー（中央揃え） */
.plan-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.plan-title-area {
  margin-bottom: 2rem;
}

.standard-plan .plan-title {
  font-size: 2.8rem;
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

.premium-plan .plan-title {
  font-size: 2.8rem;
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

.plan-price {
  font-size: 2.2rem;
  color: var(--text);
  font-weight: 600;
  background: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plan-icon-wrapper {
  margin: 2rem 0 0;
  display: flex;
  justify-content: center;
}

.standard-plan .plan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(45, 91, 157, 0.15);
  color: var(--primary);
  font-size: 3rem;
  box-shadow: 0 8px 20px rgba(45, 91, 157, 0.25);
  border: 4px solid white;
}

.premium-plan .plan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  /* background-color: rgba(248, 160, 26, 0.15);
  color: var(--secondary);
  font-size: 3rem;
  box-shadow: 0 8px 20px rgba(248, 160, 26, 0.25); */
  background-color: rgba(45, 91, 157, 0.15);
  color: var(--primary);
  font-size: 3rem;
  box-shadow: 0 8px 20px rgba(45, 91, 157, 0.25);
  border: 4px solid white;
}

/* キーポイント（強調説明文） */
.plan-key-point {
  margin: 3rem auto;
  padding: 3rem;
  max-width: 100%;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.standard-plan .plan-key-point {
  background: linear-gradient(135deg, rgba(45, 91, 157, 0.08) 0%, rgba(45, 91, 157, 0.15) 100%);
  border: 2px solid rgba(45, 91, 157, 0.2);
}

.premium-plan .plan-key-point {
  /* background: linear-gradient(135deg, rgba(248, 160, 26, 0.08) 0%, rgba(248, 160, 26, 0.15) 100%);
  border: 2px solid rgba(248, 160, 26, 0.2); 
  */
  background: linear-gradient(135deg, rgba(45, 91, 157, 0.08) 0%, rgba(45, 91, 157, 0.15) 100%);
  border: 2px solid rgba(45, 91, 157, 0.2);
}

.plan-key-point p {
  font-size: 2rem;
  line-height: 1.7;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.standard-plan .plan-key-point p {
  color: var(--primary);
}

.premium-plan .plan-key-point p {
  color: var(--primary);
}

/* 情報セクションコンテナ（横並び） */
.plan-info-row {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

/* 各情報セクション */
.plan-info-section {
  flex: 1;
  min-width: 0;
  padding: 2.5rem;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.standard-plan .plan-info-section {
  background-color: rgba(45, 91, 157, 0.05);
  border: 2px solid rgba(45, 91, 157, 0.15);
}

.premium-plan .plan-info-section {
  /* background-color: rgba(248, 160, 26, 0.05);
  border: 2px solid rgba(248, 160, 26, 0.15); */
  background-color: rgba(45, 91, 157, 0.05);
  border: 2px solid rgba(45, 91, 157, 0.15);
}

.plan-info-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* セクションヘッダー */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.section-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.standard-plan .section-icon {
  background-color: rgba(45, 91, 157, 0.2);
  color: var(--primary);
}

.premium-plan .section-icon {
  /* background-color: rgba(248, 160, 26, 0.2);
  color: var(--secondary); */
  background-color: rgba(45, 91, 157, 0.2);
  color: var(--primary);
}

.section-icon i {
  font-size: 2.2rem;
}

.standard-plan .section-title {
  font-size: 2rem;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

.premium-plan .section-title {
  font-size: 2rem;
  margin: 0;
  /* color: var(--secondary); */
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

/* 情報リスト */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  position: relative;
  padding: 1.2rem 1rem 1.2rem 3.5rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--text);
  text-align: left;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 60px;
  display: flex;
  align-items: center;
}

.info-list li:last-child {
  margin-bottom: 0;
}

.standard-plan .info-list li::before {
  content: "✓";
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--primary);
  background: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(45, 91, 157, 0.3);
  z-index: 2;
  flex-shrink: 0;
}

.premium-plan .info-list li::before {
  content: "✓";
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--secondary);
  background: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(248, 160, 26, 0.3);
  z-index: 2;
  flex-shrink: 0;
}

/* ワークフロー（下段フルワイド） */
.plan-info-full {
  width: 100%;
  padding: 3rem;
  margin-bottom: 3rem;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
  text-align: center;
}

.standard-plan .plan-info-full {
  background-color: rgba(45, 91, 157, 0.05);
  border: 2px solid rgba(45, 91, 157, 0.15);
}

.premium-plan .plan-info-full {
  /* background-color: rgba(248, 160, 26, 0.05);
  border: 2px solid rgba(248, 160, 26, 0.15); */
  background-color: rgba(45, 91, 157, 0.05);
  border: 2px solid rgba(45, 91, 157, 0.15);
}

.plan-info-full:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ワークフローステップ */
.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1.0rem;
  margin-top: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5rem;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.workflow-steps::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100px;
  flex-shrink: 0;
}

.standard-plan .step-number {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #2d5b9d;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(45, 91, 157, 0.3);
}

.premium-plan .step-number {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  /* background-color: var(--secondary); */
  background-color: #2d5b9d;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
  /* box-shadow: 0 4px 12px rgba(248, 160, 26, 0.3); */
  box-shadow: 0 4px 12px rgba(45, 91, 157, 0.3);
}

.workflow-step.active .step-number {
  transform: scale(1.2);
}

.standard-plan .workflow-step.active .step-number {
  background-color: var(--primary-dark);
  box-shadow: 0 0 0 6px rgba(45, 91, 157, 0.2);
}

.premium-plan .workflow-step.active .step-number {
  background-color: var(--secondary-dark);
  box-shadow: 0 0 0 6px rgba(248, 160, 26, 0.2);
}

.step-name {
  font-size: 1.3rem;
  padding-top: 2rem;
  text-align: center;
  line-height: 1.2;
  color: var(--text);
  font-weight: 600;
  word-break: keep-all;
  overflow-wrap: break-word;
  white-space: nowrap;
  max-width: 90px;
  text-overflow: ellipsis;
}

.workflow-step.active .step-name {
  font-weight: 700;
}

.standard-plan .workflow-step.active .step-name {
  color: var(--primary-dark);
}

.premium-plan .workflow-step.active .step-name {
  color: var(--secondary-dark);
}

.step-arrow {
  position: relative;
  width: 30px;
  height: 3px;
  background-color: var(--border-gray);
  margin: 0 0.5rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.step-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 12px;
  border-color: transparent transparent transparent var(--border-gray);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .plans-container.single-column {
    padding: 2rem 1rem;
  }

  .plan-card {
    padding: 3rem 2rem;
  }

  .plan-title {
    font-size: 2.4rem !important;
  }

  .plan-price {
    font-size: 1.8rem;
  }

  .plan-info-row {
    flex-direction: column;
    gap: 2rem;
  }

  .workflow-steps {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
  }

  .workflow-step {
    min-width: auto;
    width: 100%;
  }

  .step-name {
    font-size: 1.6rem;
    max-width: none;
    white-space: normal;
    text-overflow: initial;
    overflow: visible;
    padding-top: .5rem;
    padding-bottom: 2rem;
  }

  .step-arrow {
    display: none;
  }
}