/*--------------------------------------------------------------
# Contact Page Specific Styles
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Contact Hero Section
--------------------------------------------------------------*/
.contact-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 200px 0 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
}

.contact-hero .hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: #ffffff;
  width: 100%;
}

.contact-hero .hero-title {
  margin-bottom: 20px;
}

.contact-hero .title-en {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 400;
  letter-spacing: 8px;
  margin-bottom: -15px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.contact-hero .title-jp {
  display: block;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: 4px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.contact-hero .hero-text {
  font-size: 16px;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

/*--------------------------------------------------------------
# Contact Form Section
--------------------------------------------------------------*/
.contact-content {
  padding: 100px 0;
  background: #f8f9fa;
  position: relative;
}

.contact-wrapper {
  max-width: 1140px; /* Bootstrap5 container-xl */
  margin: 0 auto;
  padding: 0 20px;
}

/*--------------------------------------------------------------
# Contact Info
--------------------------------------------------------------*/
.contact-info-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.contact-info-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #00a859;
  position: relative;
}

.contact-info-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #28a745;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-item {
  display: flex;
  align-items: start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #00a859;
}

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

.contact-info-item .icon {
  width: 50px;
  height: 50px;
  background: #00a859;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-item .content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 5px;
}

.contact-info-item .content p {
  font-size: 15px;
  color: #666666;
  margin: 0;
  line-height: 1.6;
}

.contact-info-item .content a {
  color: #00a859;
  text-decoration: none;
  font-weight: 600;
}

.contact-info-item .content a:hover {
  color: #28a745;
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Contact Form
--------------------------------------------------------------*/
.contact-form-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #00a859;
  position: relative;
}

.contact-form-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #28a745;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.form-group .required {
  color: #dc3545;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  color: #333333;
  background: #ffffff;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #00a859;
  box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
}

.form-control.error {
  border-color: #dc3545;
}

.form-control::placeholder {
  color: #999999;
}

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

.checkbox-group {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #00a859;
}

.checkbox-group label {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.checkbox-group label a {
  color: #00a859;
  text-decoration: none;
}

.checkbox-group label a:hover {
  text-decoration: underline;
}

.radio-group {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 0;
}

.radio-label input[type="radio"] {
  accent-color: #00a859;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.submit-btn {
  background: linear-gradient(135deg, #00a859 0%, #28a745 100%);
  color: #ffffff;
  border: none;
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 168, 89, 0.3);
}

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

.submit-btn i {
  margin-left: 10px;
}

/*--------------------------------------------------------------
# Error Messages
--------------------------------------------------------------*/
.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

/*--------------------------------------------------------------
# Success Message
--------------------------------------------------------------*/
.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 25px;
  display: none;
}

/*--------------------------------------------------------------
# Responsive Design - Bootstrap5準拠
--------------------------------------------------------------*/
/* Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1399.98px) {
  .contact-wrapper {
    max-width: 1140px; /* container-xl */
  }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
  .contact-wrapper {
    max-width: 960px; /* container-lg */
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .contact-wrapper {
    max-width: 720px; /* container-md */
  }
  
  .contact-info-section,
  .contact-form-section {
    padding: 40px 30px;
  }
  
  .contact-hero .title-en {
    font-size: 80px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  .contact-content {
    padding: 60px 0;
  }
  
  .contact-wrapper {
    max-width: 540px; /* container-sm */
    padding: 0 15px;
  }
  
  .contact-info-section,
  .contact-form-section {
    padding: 30px 25px;
  }
  
  .contact-info-item {
    padding: 15px;
  }
  
  .contact-hero .title-en {
    font-size: 60px;
    letter-spacing: 4px;
  }
  
  .contact-hero .title-jp {
    font-size: 18px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .contact-wrapper {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .contact-info-section h2,
  .contact-form-section h2 {
    font-size: 24px;
  }
  
  .contact-info-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-hero .title-en {
    font-size: 50px;
  }
}