/* ===========================================
   わきみずドットコム - カスタムスタイル
   =========================================== */

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Typography */
.heading-serif {
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.02em;
}

.font-handwritten {
  font-family: 'Caveat', cursive;
}

/* Section Label */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #64748B;
  font-weight: 500;
}

/* Custom Underline Accent */
.underline-accent {
  position: relative;
  display: inline-block;
}

.underline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #2563EB 0%, #059669 100%);
  opacity: 0.3;
  border-radius: 4px;
  z-index: -1;
}

/* Header Styles */
.header {
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
  color: #1E293B;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563EB;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Button Styles */
.btn-primary {
  background: #1E293B;
  color: #fff;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #334155;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

.btn-outline {
  background: transparent;
  color: #1E293B;
  border: 1px solid #1E293B;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #1E293B;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #1E293B;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-white:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
}

.text-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1E293B;
  font-weight: 500;
  transition: gap 0.3s ease;
}

.text-link-arrow:hover {
  gap: 14px;
}

/* Card Styles */
.card-elegant {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card-elegant:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.card-problem {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  transition: all 0.3s ease;
}

.card-problem::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2563EB 0%, #059669 100%);
  border-radius: 4px 0 0 4px;
}

.card-problem:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Service Card */
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color, #2563EB);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Pricing Card */
.pricing-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pricing-card.recommended {
  border: 2px solid #2563EB;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563EB;
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 2.5rem;
  bottom: 0;
  width: 2px;
  background: #E5E7EB;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: #1E293B;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.timeline-item.highlight .timeline-number {
  background: #2563EB;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid #E5E7EB;
}

.faq-question {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #2563EB;
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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

/* Form Styles */
.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-label .required {
  color: #DC2626;
  margin-left: 4px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 2rem;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Stats */
.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748B;
  margin-top: 0.5rem;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #E5E7EB;
}

.comparison-table th {
  background: #F5F3F0;
  font-weight: 600;
}

.comparison-table .wakimizu-col {
  background: rgba(37, 99, 235, 0.05);
  font-weight: 600;
  color: #2563EB;
}

.comparison-table .savings {
  color: #059669;
  font-weight: 600;
}

/* Photo Styles */
.photo-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.photo-placeholder {
  background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 0.875rem;
  aspect-ratio: 4/3;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 767px) {
  .stat-number {
    font-size: 1.75rem;
  }
  
  .section-label {
    font-size: 0.625rem;
  }
  
  .pricing-card {
    padding: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 3rem;
  }
  
  .timeline-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
}

/* Pricing Category Tabs */
.pricing-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pricing-tab.active {
  background: #1E293B;
  color: #fff;
}

.pricing-tab:not(.active):hover {
  background: #F5F3F0;
}

/* Signature Style */
.signature {
  font-family: 'Caveat', cursive;
  font-size: 1.75rem;
  color: #1E293B;
}

/* Hero Photo Decoration */
.hero-photo-container {
  position: relative;
}

.hero-photo-container::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid #2563EB;
  border-radius: 24px;
  opacity: 0.3;
  z-index: -1;
}

/* Trust Indicators */
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #64748B;
}

.trust-item::before {
  content: '✓';
  color: #059669;
  font-weight: bold;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #1E293B;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #2563EB;
  transform: translateY(-4px);
}
