/* 料金ページ専用スタイル */

/* ページヘッダー */
.page-header {
  background-color: #f8f9fa;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/corporate_sv-background.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.page-description {
  font-size: 1.6rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* タブナビゲーション */
.pricing-tabs {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 50px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pricing-tabs ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-tabs li {
  margin: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.tabs-nav li {
  margin: 0;
  padding: 15px 20px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tabs-nav li i {
  display: inline-block;
  vertical-align: middle;
}

.tabs-nav li.active {
  color: #e83a3b;
}

.tabs-nav li.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #e83a3b;
}

.tabs-nav li:hover {
  color: #e83a3b;
}

/* 料金プランセクション */
.pricing-section {
  display: none;
  padding: 0 0 80px;
}

.pricing-section.active {
  display: block;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.section-subtitle {
  text-align: center;
  font-size: 1.6rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 50px;
}

/* カルーセルナビゲーション */
.carousel-nav {
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 5px;
}

.carousel-prev,
.carousel-next {
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  padding: 10px;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  color: #e83a3b;
}

.carousel-indicators {
  display: flex;
  gap: 8px;
}

.carousel-indicators span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
}

.carousel-indicators span.active {
  background-color: #e83a3b;
  transform: scale(1.2);
}

/* 料金カード */
.pricing-cards-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  transition: transform 0.3s ease-in-out;
}

.pricing-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  position: relative;
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
  border: 2px solid #ff8900;
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card.popular:hover {
  transform: translateY(-5px) scale(1.03);
}

.modern-card-header {
  background-color: #f8f9fa;
  padding: 25px 20px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.plan-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 20px 0 15px;
  color: #333;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.card-body {
  padding: 25px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.plan-description {
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.6rem;
  color: #555;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.plan-features li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 1.5rem;
}

.feature-name {
  color: #555;
  flex: 1;
}

.feature-value {
  font-weight: 600;
  color: #333;
  text-align: right;
}

.check {
  color: #e83a3b;
  font-size: 1.8rem;
  font-weight: bold;
}

.card-footer {
  padding: 20px;
  text-align: center;
  background-color: #fff;
}

.card-btn {
  width: 100%;
  padding: 12px 20px;
}

.popular .card-footer .btn-primary {
  background-color: #ff8900;
  border-color: #ff8900;
}

.popular .card-footer .btn-primary:hover {
  background-color: #e67800;
  border-color: #e67800;
}

/* オプションセクション */
.options-section {
  margin-top: 60px;
  margin-bottom: 40px;
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
}

.options-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #333;
  text-align: center;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.additional-options {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.option-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

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

.option-name {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.option-description {
  font-size: 1.4rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.option-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e83a3b;
  text-align: right;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

/* すべてのタブのお問い合わせボタンを非表示 */
.pricing-cta {
  text-align: center;
  margin-top: 40px;
  display: none; /* すべてのCTAボタンを非表示 */
}

/* Amazon出店タブスタイル改善 */
.subtab-nav {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

/* Amazon出店タブのCTAボタンスタイル */
.amazon-cta-button-wrapper {
  text-align: center;
  margin: 40px 0;
}

/* Amazon出店タブのセクションタイトル */
.amazon-section-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 40px 0 20px;
  text-align: center;
}

/* Amazon出店タブのカードコンテナ余白調整 */
#amazon-tab .pricing-cards-wrapper {
  margin: 40px 0;
}

#amazon-tab .pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    align-items: stretch;
    height: auto;
    min-height: 480px;
}

/* 楽天出店タブのカードコンテナ余白調整 */
#rakuten-tab .pricing-cards-wrapper {
  margin: 40px 0;
}

#rakuten-tab .pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    align-items: stretch;
    height: auto;
    min-height: 480px;
}

#rakuten-tab .plan-notes {
  text-align: center;
}

/* 楽天・Amazon出店タブの共通カードデザイン */
#rakuten-tab .modern-card,
#amazon-tab .modern-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 250px;
  max-width: 320px;
  height: auto;
  padding-bottom: 15px;
  background-clip: padding-box;
  border: 1px solid transparent;
}

/* タブごとの微調整 */
#rakuten-tab .modern-card {
  margin: 10px;
  width: 30%;
}

#amazon-tab .modern-card {
  margin: 4px;
  width: 31%;
}

/* 人気プラン共通スタイル */
#rakuten-tab .modern-card.popular,
#amazon-tab .modern-card.popular,
#amazon-tab .pricing-card.popular {
  border: 2px solid #e83a3b;
  transform: scale(1.02);
  z-index: 2;
  position: relative;
}

/* カードホバーエフェクト */
#amazon-tab .pricing-card:hover,
#rakuten-tab .pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 人気カードのスタイル統一 */
.pricing-card.popular {
  border: 2px solid #e83a3b;
  transform: scale(1.02);
  z-index: 2;
  background-color: #fff0f0;
}

/* カードヘッダー */
#amazon-tab .card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

/* カードボディ */
#amazon-tab .modern-card-body,
#rakuten-tab .modern-card-body {
  padding: 25px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* プラン機能リスト */
#amazon-tab .plan-features,
#rakuten-tab .plan-features {
  margin-bottom: 20px;
}

/* カードフッター */
#amazon-tab .card-footer,
#rakuten-tab .card-footer {
  padding: 20px;
  text-align: center;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

/* 料金表示 */
#amazon-tab .plan-price,
#rakuten-tab .plan-price {
  font-size: 24px;
  font-weight: bold;
  color: #e83a3b;
  margin: 15px 0;
}

.subtab-link {
  padding: 10px 20px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 0 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.subtab-link.active {
  background: #e83a3b;
  color: white;
  border-color: #e83a3b;
}

.subtab-pane {
  display: none;
}

.subtab-pane.active {
  display: block;
}

.pricing-cta .btn {
  margin: 0 10px;
}

/* CTA Block */
.cta-block {
  background-color: #f8f9fa;
  padding: 80px 0;
  text-align: center;
}

.cta-block h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.cta-block p {
  font-size: 1.6rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}


/* ECプランコンテナ */
.ec-plans-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
}

/* 特別枠のスタイル */
.featured-plan-section {
  background-color: rgba(232, 58, 59, 0.05);
  border-radius: 12px;
  padding: 40px 30px;
  margin: 50px 0;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 4px solid rgba(232, 58, 59, 0.3);
}

/* ECグロースサポートセクションのバッジ配置 */
.featured-plan-section {
  position: relative;
}

/* 2カラムレイアウト復活（レスポンシブ対応） */
.vertical-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin: 30px auto;
  max-width: 1000px;
}

/* スマホ表示時は縦並びに変更 */
@media (max-width: 768px) {
  .vertical-cards-container {
    grid-template-columns: 1fr;
    max-width: 95%;
  }
}

.featured-plan-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 20px 0 5px;
  color: #333;
}

.featured-plan-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

.featured-plan-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.featured-plan-benefits {
  flex: 1;
  min-width: 300px;
}

.featured-plan-benefits h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
}

.benefit-list {
  padding: 0;
  list-style: none;
}

.benefit-list li {
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1rem;
}

.benefit-list li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: #e83a3b;
}

/* 横長カードレイアウト - 非推奨、新しい縦型レイアウトを使用 */
.horizontal-plan-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

/* 縦型カード関連のスタイル（未使用）は削除しました */
/* 削除: featured-plan-cta */

.cta-section {
  margin: 10px 0;
  padding: 0;
}

.shopify-cta-button {
  display: inline-block;
  background-color: #f24242;
  color: white;
  text-decoration: none;
  padding: 20px 60px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  max-width: 400px;
  margin: 10px auto;
}

.shopify-cta-button:hover {
  background-color: #e22e2e;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* オリジナルECサイト開発セクションのスタイル */
.custom-section {
  margin: 50px 0;
}

.custom-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
}

.custom-panel {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.custom-panel-inner {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.custom-subtitle {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.custom-price {
  margin: 20px 0;
  text-align: center;
}

.price-item {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.price-label {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.support-options {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-options div {
  font-size: 14px;
  color: #555;
}

.support-options .price-value {
  font-size: 18px;
  font-weight: bold;
  color: #e83a3b;
  margin: 0 5px;
}

.feature-list-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 20px 0 10px;
}

.delivery-time {
  font-size: 14px;
  color: #555;
  margin: 20px 0;
}

.delivery-time span {
  font-weight: bold;
}

@media (max-width: 768px) {
  .custom-panel-inner {
    padding: 25px;
  }
}

.promotion-title {
  font-weight: bold;
  color: #e83a3b;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.promotion-title.large-title {
  font-size: 24px;
}

.promotion-note {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.small-note {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

.note-container {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.featured-plan-benefits {
  background-color: #f9f9f9;
  padding: 25px 50px;
  margin-top: 30px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.featured-plan-benefits h3 {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 30px;
}

.benefit-list li {
  position: relative;
  padding-left: 30px;
  color: #444;
  line-height: 1.5;
  font-size: 14px;
}

.benefit-list li i {
  position: absolute;
  left: 0;
  top: 2px;
  color: #e83a3b;
  font-size: 1.1rem;
}

.btn-large {
  padding: 12px 30px;
  font-size: 1.2rem;
}

/* サブセクションタイトル */
.subsection-title {
  font-size: 1.8rem;
  margin: 40px 0 10px;
  color: #333;
}

.subsection-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
}

/* モダンな3カラムカードレイアウト */
.plan-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.plan-toggle-buttons {
  display: inline-flex;
  background-color: #f5f5f5;
  padding: 5px;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.plan-toggle-button {
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
  color: #666;
  transition: all 0.3s ease;
}

.plan-toggle-button.active {
  background-color: #e83a3b;
  color: white;
  box-shadow: 0 2px 10px rgba(232, 58, 59, 0.3);
}

.modern-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.modern-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  text-align: center;
  margin-bottom: 20px;
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modern-card.popular {
  border: 2px solid #e83a3b;
  transform: scale(1.02);
  z-index: 2;
}

.modern-card-header {
  padding: 35px 25px 25px;
  text-align: center;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

/* 人気カードのヘッダー部分のみ赤い背景にする */
.modern-card.popular .modern-card-header,
.pricing-card.popular .card-header {
  background-color: #fff0f0;
}

.modern-card-title {
  font-size: 22px;
  margin: 0 0 5px;
  color: #e83a3b;
  font-weight: bold;
}

.modern-plan-name {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  margin-top: 15px;
}

.modern-card-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  min-height: 40px;
  line-height: 1.4;
}

.modern-price {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.price-value {
  color: #e83a3b;
}

.price-note {
  font-size: 14px;
  color: #888;
}

.modern-card-body {
  padding: 20px 25px;
  padding-top: 20px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.plan-content-title {
  text-align: left !important;
  margin-bottom: 15px;
}

.modern-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.modern-feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: #555;
  font-size: 14px;
}

.modern-feature-list li i {
  position: absolute;
  left: 0;
  top: 9px;
  color: #e83a3b;
}

.modern-plan-cta {
  margin-top: auto;
  text-align: center;
}

.modern-btn {
  display: inline-block;
  background-color: #e83a3b;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(232, 58, 59, 0.2);
  width: 80%;
}

.modern-btn:hover {
  background-color: #d62f30;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(232, 58, 59, 0.3);
}

.modern-card-footer {
  padding: 15px 25px 25px;
  background-color: #fafafa;
  border-top: 1px solid #eee;
}

.modern-card-footer h4 {
  font-size: 14px;
  color: #555;
  margin: 0 0 10px;
}

.modern-option-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #777;
}

.modern-option-list li {
  margin-bottom: 5px;
}

.modern-notes {
  text-align: center;
  color: #777;
  font-size: 13px;
  margin-top: 10px;
}

#amazon-tab .plan-notes {
  margin-top: 30px;
  color: #666;
  font-size: 14px;
  text-align: center;
}

#amazon-tab .plan-notes p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* スマホ表示では左寄せに */
@media (max-width: 768px) {
  #amazon-tab .plan-notes {
    text-align: left;
  }
}

/* 共通CTAボタンスタイル */
.shopify-cta {
  text-align: center;
  margin: 10px 0;
}

.shopify-cta .cta-button {
  display: inline-block;
  background-color: #f24242; /* 赤色の背景 */
  color: white;
  text-decoration: none;
  padding: 20px 60px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px; /* 大きな丸み */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.shopify-cta .cta-button:hover {
  background-color: #e22e2e;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.shopify-cta .secondary-link {
  display: block;
  margin-top: 15px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

/* モダンなカードと縦型カードのレスポンシブスタイル */
@media (max-width: 1024px) {
  .benefit-list {
    grid-template-columns: 1fr; /* ベネフィットリストも1カラムに */
  }
  
  .featured-plan-benefits {
    padding: 20px;
  }

  .modern-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modern-card.popular {
    grid-column: 1 / 3;
    width: 80%;
    margin: 0 auto 25px;
  }
}

@media (max-width: 768px) {
  .modern-cards-container {
    grid-template-columns: 1fr;
  }
  
  .modern-card {
    max-width: 100%;
  }
  
  .modern-card.popular {
    grid-column: auto;
    width: 100%;
    margin: 0 0 25px;
    transform: scale(1);
  }
  
  .modern-card-description {
    min-height: auto;
  }
  
  .plan-toggle-button {
    padding: 8px 15px;
    font-size: 13px;
  }
}

/* タブレット用のブレイクポイント */
@media (min-width: 769px) and (max-width: 1024px) {
  .modern-card {
    width: 48% !important;
    min-width: 280px !important;
    max-width: 420px !important;
    margin: 10px !important;
  }
  
  #ec-site-tab .pricing-cards,
  #rakuten-tab .pricing-cards,
  #amazon-tab .pricing-cards,
  #lp-tab .pricing-cards,
  #marketing-tab .pricing-cards {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
  }
  
  .carousel-nav.mobile-only {
    display: none !important;
  }
  
  /* ECグロースサポートカードのタブレット表示調整 */
  .featured-plan-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 20px auto 40px;
    position: relative;
  }
  
  .featured-plan-section .plan-toggle-container {
    margin-top: 30px;
    margin-bottom: 15px;
  }
  
  /* 注釈テキストの余白調整 */
  .plan-notes.modern-notes {
    margin-bottom: 50px;
  }
  
  .featured-plan-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
  }
}

/* 横長カードのレスポンシブスタイル */
@media (max-width: 992px) {
  .horizontal-card {
    flex-direction: column;
    min-height: auto;
  }
  
  .horizontal-card .card-left {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 25px;
  }
  
  .horizontal-card .card-right {
    padding: 25px;
  }
  
  .horizontal-card .btn {
    width: 100%;
    text-align: center;
  }

  /* 他のレスポンシブスタイル */
  .pricing-tabs ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    justify-content: flex-start;
  }

  .pricing-tabs li span {
    white-space: nowrap;
    padding: 15px 15px;
    font-size: 1.4rem;
  }

  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .option-item {
    padding: 15px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* カルーセル表示 */
  .carousel-nav {
    display: flex;
  }

  .pricing-cards-wrapper {
    overflow: hidden;
    position: relative;
  }

  .pricing-cards {
    grid-template-columns: repeat(3, 100%);
    scroll-snap-type: x mandatory;
    gap: 0;
    transform: translateX(0);
    transition: transform 0.5s ease;
  }

  .pricing-card {
    scroll-snap-align: center;
    margin: 0 10px;
    width: calc(100% - 20px);
    flex-shrink: 0;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }

  .options-section {
    margin: 30px 10px;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* CTAボタン調整 */
  .pricing-cta {
    padding: 0 15px;
  }

  /* カードの高さ揃え */
  .plan-features {
    margin-bottom: auto;
  }

  .card-footer {
    margin-top: auto;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .plan-name {
    font-size: 2rem;
  }

  .plan-price {
    font-size: 2.4rem;
  }

  .pricing-cta .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }

  .cta-block {
    padding: 60px 0;
  }

  .cta-block h2 {
    font-size: 2.2rem;
  }

  .option-name {
    font-size: 1.6rem;
  }

  .option-description {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .pricing-cta .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }

  .cta-block {
    padding: 40px 0;
  }

  .cta-block h2 {
    font-size: 2rem;
  }
}

.sp-only {
  display: none;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex;
  }

  .sp-only {
    display: inline-block;
  }
}

/* ECサイト構築タブのカードコンテナ余白調整 */
#ec-site-tab .pricing-cards-wrapper {
  margin: 20px 0;
}

#ec-site-tab .pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
  align-items: stretch;
}

/* LP制作タブのカードコンテナ余白調整 */
#lp-tab .pricing-cards-wrapper {
  margin: 40px 0;
}

#lp-tab .pricing-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  align-items: stretch;
  height: auto;
  min-height: 480px;
}

#lp-tab .plan-notes {
  text-align: center;
}

/* LP制作タブのカードデザイン - 楽天出店タブと同様のスタイル */
#lp-tab .modern-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  margin: 10px;
  width: 30%;
  min-width: 250px;
  max-width: 320px;
  height: auto;
  padding-bottom: 15px;
  background-clip: padding-box;
  border: 1px solid transparent;
}

#lp-tab .modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#lp-tab .modern-card.popular {
  border: 2px solid #e83a3b;
  transform: scale(1.02);
  z-index: 2;
}

/* LPタブのバッジは共通スタイルを使用 */

/* マーケティングタブのカードレイアウト中央配置用スタイル */
#marketing-tab .pricing-cards-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

#marketing-tab .pricing-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  scroll-snap-type: x mandatory;
}

#marketing-tab .modern-card {
  width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: center;
}

#marketing-tab .amazon-section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #333;
}

#marketing-tab .pricing-section-wrapper {
  margin: 0 auto 40px;
  max-width: 1200px;
}

/* スマホ表示用カルーセルスタイル */
@media (max-width: 768px) {
  .carousel-nav {
    display: flex !important;
    justify-content: center;
    margin: 7px 0 5px;
  }
  
  .pricing-cards-wrapper {
    position: relative;
    width: 100% !important;
    overflow: visible !important;
  }
  
  /* すべてのタブに共通のカルーセル設定 */
  .pricing-cards {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 15px 15px 20px !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: auto !important;
    max-width: none !important;
    margin-bottom: 30px;
    margin-top: 15px !important;
    overflow-x: auto !important;
    -ms-overflow-style: none;  /* IE, Edge 対応 */
    scrollbar-width: none;  /* Firefox 対応 */
  }
  
  /* Chrome, Safari用スクロールバー非表示 */
  .pricing-cards::-webkit-scrollbar {
    display: none;
  }
  
  /* すべてのカードにスクロールスナップ設定 */
  #amazon-tab .modern-card,
  #rakuten-tab .modern-card,
  #marketing-tab .modern-card,
  #lp-tab .modern-card {
    scroll-snap-align: center;
  }
  
  .modern-card {
    width: 85% !important;
    min-width: 280px !important;
    max-width: 320px !important;
    flex: 0 0 auto !important;
    margin: 10px 0 !important;
    box-sizing: border-box !important;
  }
  
  /* カードの上下余白調整 */
  .modern-card-header,
  .modern-card-body,
  .modern-card-price,
  .modern-card-features {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* カードのフッター部分を調整 */
  .card-footer {
    padding-bottom: 15px !important;
  }
  
  /* ECサイト構築タブのスマホ表示調整 */
  #ec-site-tab .pricing-cards {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding: 0 15px !important;
    scroll-behavior: smooth;
    justify-content: flex-start !important;
    margin-bottom: 30px;
    margin-top: 15px !important;
  }
  
  /* カード表示の調整 */
  #ec-site-tab .modern-card {
    scroll-snap-align: center;
  }
  
  /* ボタンセクションの余白調整 */
  .pricing-cta {
    margin-top: 30px;
  }
  
  /* ECグロースサポートカードのスマホ表示調整 */
  .featured-plan-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    padding: 0 15px;
    position: relative;
  }
  
  .featured-plan-section .plan-toggle-container {
    margin-top: 30px;
    margin-bottom: 15px;
  }
  
  .featured-plan-section .featured-plan-title {
    margin-top: 30px;
  }
  
  .featured-plan-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .featured-plan-card {
    width: 100%;
    max-width: 320px;
    margin: 10px auto;
  }
  
  /* 個別タブの調整 */
  #ec-site-tab .pricing-cards-wrapper,
  #marketing-tab .pricing-cards-wrapper,
  #shopify-tab .pricing-cards-wrapper,
  #lp-tab .pricing-cards-wrapper,
  #rakuten-tab .pricing-cards-wrapper,
  #amazon-tab .pricing-cards-wrapper {
    overflow-x: auto !important;
  }
  
  #ec-site-tab .pricing-cards,
  #marketing-tab .pricing-cards,
  #shopify-tab .pricing-cards,
  #lp-tab .pricing-cards,
  #rakuten-tab .pricing-cards,
  #amazon-tab .pricing-cards {
    flex-wrap: nowrap !important;
  }
}
