/* ==========================================================================
   Pricing Section - 料金プラン専用スタイル
   ========================================================================== */

/* 料金セクション全体 */
#price {
  background: var(--white);
  padding: var(--section-padding) 0 !important;
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--scroll-offset) !important;
}

#price::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: var(--primary-blue);
  border-radius: 50%;
  opacity: 0.06;
  animation: float 20s ease-in-out infinite;
}

#price::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: var(--primary-blue);
  border-radius: 50%;
  opacity: 0.08;
  animation: float 15s ease-in-out infinite reverse;
}

/* 料金表 - モバイルファーストアプローチ */
.price-tables {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

/* 料金カード */
.price-card {
  background: var(--white);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 3px solid transparent;
  background-clip: padding-box;
  width: 100%;
}

.price-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 25px;
  z-index: -1;
}

.price-card:nth-child(1)::before {
  background: var(--primary-blue);
}

.price-card:nth-child(2)::before {
  background: var(--primary-blue);
}

.price-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 料金ヘッダー */
.price-header {
  padding: 25px 30px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.price-card:nth-child(1) .price-header {
  background: var(--primary-blue);
}

.price-card:nth-child(2) .price-header {
  background: var(--primary-blue);
}

.price-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 4s infinite;
}

.price-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 800;
  position: relative;
  z-index: 2;
  color: white !important;
}

.price-header p {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
  position: relative;
  z-index: 2;
  margin: 0;
  color: white !important;
}

/* 料金ボディ */
.price-body {
  padding: 25px 30px;
  background: var(--white);
}

/* 料金アイテム */
.price-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--gray-light);
  border-radius: 15px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.3s ease;
  gap: 8px;
}

.price-item::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--primary-blue);
  border-radius: 15px;
  z-index: -1;
  opacity: 0.3;
}

.price-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.price-item:last-child {
  margin-bottom: 0;
}

.price-label {
  color: var(--gray-medium);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0;
}

.price-amount {
  font-size: 26px;
  font-weight: 800;
  color: #e91e63;
  margin-top: 0;
}

.price-amount small {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-medium);
}

/* 初期費用 */
.entry-fees {
  background: var(--white);
  padding: 21px 21px;
  border-radius: 25px;
  text-align: center;
  border: 4px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.entry-fees::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--primary-blue);
  border-radius: 25px;
  z-index: -1;
}

.entry-fees h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--navy-dark);
  font-weight: 800;
  position: relative;
  padding-bottom: 8px;
}

.entry-fees h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 8px;
  background: var(--primary-blue);
  border-radius: var(--radius-xs);
}

/* 費用アイテムコンテナ - 横並び用 */
.fee-items-container {
  display: flex;
  flex-direction: column; /* モバイルファーストは縦並び */
  gap: 8px;
  margin: 0 auto;
}

.fee-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0; /* containerのgapを使用 */
  padding: 12px 16px;
  background: var(--gray-light);
  border-radius: 15px;
  transition: all 0.3s ease;
  text-align: left;
  gap: 0;
  flex: 1; /* 横幅を揃える */
}

.fee-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fee-item:last-child {
  margin-bottom: 0;
}

.fee-label {
  display: block;
  color: var(--gray-medium);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 0;
}

.fee-amount {
  font-size: 20px;
  font-weight: 800;
  color: #e91e63;
  margin-top: 0;
  white-space: nowrap;
}

/* タブレット以上 (768px以上) */
@media (min-width: 768px) {
  #price {
    padding: var(--section-padding) 0 !important;
    scroll-margin-top: var(--scroll-offset) !important;
  }

  .price-tables {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .price-card {
    border-radius: 30px;
  }

  .price-card::before {
    border-radius: 30px;
  }

  .price-header {
    padding: 35px 40px;
  }

  .price-header h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white !important;
  }

  .price-header p {
    font-size: 16px;
    color: white !important;
  }

  .price-body {
    padding: 35px 40px;
  }

  .price-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 20px;
    border-radius: 20px;
    gap: 20px;
  }

  .price-item::before {
    border-radius: 20px;
  }

  .price-label {
    font-size: 16px;
    white-space: nowrap;
  }

  .price-amount {
    font-size: 32px;
    white-space: nowrap;
  }

  .price-amount small {
    font-size: 18px;
  }

  /* 費用アイテムコンテナ - タブレット以上で横並び */
  .fee-items-container {
    flex-direction: row; /* 横並びに変更 */
    gap: 15px; /* 横並び時のアイテム間隔 */
    max-width: 100%; /* 横幅いっぱいに変更 */
  }

  .entry-fees {
    padding: 30px 30px;
    border-radius: 30px;
    max-width: 1000px;
  }

  .entry-fees::before {
    border-radius: 30px;
  }

  .entry-fees h4 {
    font-size: 20px;
    margin-bottom: 21px;
    padding-bottom: 8px;
  }

  .entry-fees h4::after {
    width: 120px;
    height: 8px;
  }

  .fee-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0; /* margin削除 */
    padding: 15px 21px;
    border-radius: 20px;
    min-width: 0; /* flexで自動調整 */
    flex: 1; /* 横幅を等しく分割 */
    vertical-align: top;
  }

  .fee-item:last-child {
    margin-right: 0;
  }

  .fee-label {
    font-size: 14px;
    margin-bottom: 0;
  }

  .fee-amount {
    font-size: 26px;
    white-space: nowrap;
  }
}

/* デスクトップ (1200px以上) */
@media (min-width: 1200px) {
  #price {
    padding: var(--section-padding) 0 !important;
    scroll-margin-top: var(--scroll-offset) !important;
  }

  .price-tables {
    max-width: 1100px;
  }

  .price-card {
    border-radius: 35px;
  }

  .price-card::before {
    border-radius: 35px;
  }

  .price-header h3 {
    font-size: 32px;
    color: white !important;
  }

  .price-header p {
    font-size: 18px;
    color: white !important;
  }

  /* 費用アイテムコンテナ - デスクトップでも横並び */
  .fee-items-container {
    flex-direction: row;
    gap: 20px; /* デスクトップでは少し大きめのgap */
    max-width: 100%;
  }

  .entry-fees {
    max-width: 1100px;
    border-radius: 35px;
  }

  .entry-fees::before {
    border-radius: 35px;
  }

  .fee-item {
    margin: 0; /* marginを削除 */
    padding: 25px 45px;
    min-width: 0; /* flexで自動調整 */
    flex: 1; /* 横幅を等しく分割 */
  }
}

/* モバイル（480px以下） */
@media (max-width: 480px) {
  #price {
    padding: var(--section-padding) 0 !important;
    scroll-margin-top: var(--scroll-offset) !important;
  }

  .price-tables {
    gap: 25px;
    margin-bottom: 40px;
  }

  .price-card {
    border-radius: 20px;
  }

  .price-card::before {
    border-radius: 20px;
  }

  .price-header {
    padding: 22px 20px;
  }

  .price-header h3 {
    font-size: 22px;
    margin-bottom: 6px;
    color: white !important;
  }

  .price-header p {
    font-size: 13px;
    color: white !important;
  }

  .price-body {
    padding: 22px 20px;
  }

  .price-item {
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    gap: 7px;
  }

  .price-item::before {
    border-radius: 12px;
  }

  .price-label {
    font-size: 14px;
  }

  .price-amount {
    font-size: 24px;
  }

  .price-amount small {
    font-size: 14px;
  }

  .entry-fees {
    padding: 40px 20px;
    border-radius: 20px;
  }

  .entry-fees::before {
    border-radius: 20px;
  }

  .entry-fees h4 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 8px;
  }

  .entry-fees h4::after {
    width: 120px;
    height: 8px;
  }

  .fee-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    gap: 0;
  }

  .fee-label {
    font-size: 12px;
    margin-bottom: 0;
  }

  .fee-amount {
    font-size: 24px;
    white-space: nowrap;
  }
}

/* アニメーション */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  .price-card,
  .price-header::before,
  #price::before,
  #price::after {
    transition: none;
    animation: none;
  }
}

/* 高コントラスト対応 */
@media (prefers-contrast: high) {
  .price-card {
    border-width: 4px;
  }
  
  .entry-fees {
    border-width: 5px;
  }
  
  .price-item,
  .fee-item {
    border: 2px solid var(--gray-medium);
  }
} 