/* Contact Page Styles */

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(135deg, #0f1923, #1a2530);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 70, 85, 0.1), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.1), transparent 50%);
  z-index: 1;
}

.headline {
  font-size: 4rem;
  font-weight: 900;
  color: #ff4655;
  text-shadow: 0 0 20px rgba(255, 70, 85, 0.5);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  letter-spacing: 3px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #b0b0b0;
  position: relative;
  z-index: 2;
  margin-top: 1rem;
}

/* Contact Content */
.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.contact-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-intro h2 {
  font-size: 2.5rem;
  color: #ff4655;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-intro p {
  font-size: 1.2rem;
  color: #e0e0e0;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

/* Contact Info */
.contact-info {
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 2px solid #333;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 70, 85, 0.1), transparent);
  transition: left 0.6s ease;
}

.contact-info:hover::before {
  left: 100%;
}

.contact-info h3 {
  color: #ff4655;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 70, 85, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 70, 85, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 70, 85, 0.2);
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 70, 85, 0.2);
  border-radius: 8px;
}

.contact-details h4 {
  color: #ff4655;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.contact-details p {
  color: #e0e0e0;
  margin: 0;
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form-container {
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 2px solid #333;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.contact-form-container:hover::before {
  left: 100%;
}

.contact-form-container h3 {
  color: #00d4ff;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #00d4ff;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #1a1f25;
  color: #f0f0f0;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  background: linear-gradient(45deg, #ff4655, #ff6b77);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 70, 85, 0.4);
  position: relative;
  overflow: hidden;
}

.submit-btn .btn-text {
  position: relative;
  z-index: 2;
}

.submit-btn .btn-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover .btn-effect {
  left: 100%;
}

.submit-btn:hover {
  background: linear-gradient(45deg, #ff6b77, #ff4655);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 70, 85, 0.6);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Profile Section */
.profile-section {
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 2px solid #333;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-top: 2rem;
}

.profile-section h3 {
  color: #ff4655;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.profile-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 70, 85, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 70, 85, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 70, 85, 0.2);
  transform: scale(1.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ff4655;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #e0e0e0;
  font-weight: 600;
}

.profile-description {
  padding: 2rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.profile-description p {
  color: #e0e0e0;
  line-height: 1.8;
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .headline {
    font-size: 2.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .profile-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .profile-stats {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .stat-item {
    flex: 1;
    margin: 0 0.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .contact-intro h2 {
    font-size: 2rem;
  }
  
  .contact-intro p {
    font-size: 1rem;
  }
  
  .contact-info,
  .contact-form-container,
  .profile-section {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .headline {
    font-size: 2rem;
  }
  
  .contact-content {
    padding: 2rem 1rem;
  }
  
  .contact-info,
  .contact-form-container,
  .profile-section {
    padding: 1.5rem;
  }
  
  .contact-intro h2 {
    font-size: 1.8rem;
  }
  
  .profile-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    margin: 0;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
}

/* Success Animation */
.form-success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 2px solid #00d4ff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: #00d4ff;
  font-size: 1.2rem;
  z-index: 1000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .contact-content {
    padding: 2rem 1rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-item {
    justify-content: center;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .submit-btn {
    width: 100%;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-content {
    padding: 1rem 0.5rem;
  }
  
  .contact-intro p {
    font-size: 0.9rem;
  }
  
  .contact-form-container {
    padding: 1rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .contact-icon {
    margin: 0 auto;
  }
}
