/* ===== 料金ページ専用CSS ===== */

/* ===== ヒーローセクション 中央配置修正 ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.hero__content {
  transform: translateY(60px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero__content {
    transform: translateY(40px);
  }

  .hero__title {
    margin-bottom: 1rem;
  }

  .hero__description {
    margin-bottom: 1.5rem;
  }

  .hero__title-location {
    font-size: 0.75em;
    margin-top: 0.2em;
  }
}

@media (max-width: 480px) {
  .hero__content {
    transform: translateY(30px);
  }

  .hero__title {
    margin-bottom: 0.8rem;
  }

  .hero__description {
    margin-bottom: 1.2rem;
  }

  .hero__title-location {
    font-size: 0.8em;
    margin-top: 0.1em;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* 他のページと同じ文字効果を適用 */
.hero__title-main {
  background: linear-gradient(135deg, var(--color-white), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* pricingページのロケーションテキストの表示修正 */
.hero__title-location {
  font-size: 0.5em;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
  background: none !important;
  opacity: 1 !important;
}

/* ===== 料金概要セクション ===== */
.pricing-overview {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f9ff, #f0f8ff);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.overview-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.overview-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.overview-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
}

.overview-item__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  padding: 20px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.overview-item__title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.overview-item__description {
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
}

/* ===== 料金プランセクション ===== */
.pricing-plans {
  padding: 6rem 0;
  background: var(--color-background);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.plan-card {
  background: white;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

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

.plan-card--featured {
  border: 2px solid var(--color-primary);
  transform: scale(1.05);
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
}

.plan-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.02),
    rgba(59, 130, 246, 0.02)
  );
  z-index: -1;
}

.plan-card__badge {
  position: absolute;
  top: -1px;
  right: 2rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 12px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.plan-card__header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.plan-card__title {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 1rem;
}

.plan-card__price-amount {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.plan-card__price-currency {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-left: 0.25rem;
}

.plan-card__subtitle {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
}

.plan-feature__icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.plan-feature__text {
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1rem;
}

.plan-card__action {
  text-align: center;
}

.plans-note {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  border-left: 4px solid var(--color-primary);
}

.plans-note__text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== FAQセクション ===== */
.faq {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f9ff, #ffffff);
}

.faq__content {
  max-width: 800px;
  margin: 4rem auto 0;
}

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item__question:hover {
  background: rgba(37, 99, 235, 0.02);
}

.faq-item__question-text {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  flex: 1;
  padding-right: 1rem;
}

.faq-item__toggle {
  width: 32px;
  height: 32px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.faq-item__toggle svg {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-item__toggle {
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-primary)
  );
}

.faq-item.active .faq-item__toggle svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-text {
  padding: 0 2.5rem 2rem 2.5rem;
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* ===== お問い合わせCTAセクション ===== */
.contact-cta {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: white;
}

.contact-cta .section-title,
.contact-cta .section-subtitle {
  color: white;
}

.contact-cta .section-title::after {
  background: rgba(255, 255, 255, 0.3);
}

.contact-cta__content {
  margin: 3rem 0;
}

.contact-benefits {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-benefit:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.contact-benefit__icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact-benefit__text {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-cta__buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--large {
  padding: 16px 40px;
  font-size: 1.125rem;
  min-width: 280px;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .overview-item {
    padding: 2rem 1.5rem;
  }

  .overview-item__icon {
    width: 60px;
    height: 60px;
    padding: 15px;
  }

  .overview-item__title {
    font-size: 1.25rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .plan-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .plan-card--featured {
    transform: none;
  }

  .plan-card__price-amount {
    font-size: 2.5rem;
  }

  .plan-card__title {
    font-size: 1.5rem;
  }

  .contact-benefits {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .contact-benefit {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .contact-cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn--large {
    min-width: 250px;
  }

  .faq-item__question {
    padding: 1.5rem 1.5rem;
  }

  .faq-item__question-text {
    font-size: 1rem;
  }

  .faq-item__answer-text {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .pricing-overview,
  .pricing-plans,
  .faq,
  .contact-cta {
    padding: 4rem 0;
  }

  .overview-item {
    padding: 1.5rem 1rem;
  }

  .plan-card {
    padding: 1.5rem 1rem;
    margin: 0;
  }

  .plan-card__price-amount {
    font-size: 2.25rem;
  }

  .contact-benefit {
    padding: 0.75rem 1rem;
  }

  .btn--large {
    min-width: 200px;
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* ===== アニメーション ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header,
.overview-item,
.plan-card,
.faq-item,
.plans-note,
.contact-benefits,
.contact-benefit,
.contact-cta__buttons {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* セクションヘッダーのアニメーション遅延 */
.section-header {
  animation-delay: 0.1s;
}

/* 料金概要アイテムのアニメーション遅延 */
.overview-item:nth-child(1) {
  animation-delay: 0.2s;
}

.overview-item:nth-child(2) {
  animation-delay: 0.4s;
}

.overview-item:nth-child(3) {
  animation-delay: 0.6s;
}

/* 料金プランカードのアニメーション遅延 */
.plan-card:nth-child(1) {
  animation-delay: 0.2s;
}

.plan-card:nth-child(2) {
  animation-delay: 0.4s;
}

.plan-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* その他要素のアニメーション遅延 */
.plans-note {
  animation-delay: 0.8s;
}

.contact-benefits {
  animation-delay: 0.3s;
}

/* 個別のcontact-benefit要素の遅延時間 */
.contact-benefit:nth-child(1) {
  animation-delay: 0.4s;
}

.contact-benefit:nth-child(2) {
  animation-delay: 0.5s;
}

.contact-benefit:nth-child(3) {
  animation-delay: 0.6s;
}

.contact-cta__buttons {
  animation-delay: 0.7s;
}

/* ===== アクセシビリティ対応 ===== */
@media (prefers-reduced-motion: reduce) {
  .section-header,
  .overview-item,
  .plan-card,
  .faq-item,
  .plans-note,
  .contact-benefits,
  .contact-benefit,
  .contact-cta__buttons {
    animation: none;
  }

  .overview-item:hover,
  .plan-card:hover,
  .faq-item:hover,
  .contact-benefit:hover {
    transform: none;
  }
}

/* ===== フォーカス状態の改善 ===== */
.faq-item__question:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
