/**
 * Landing page and predefined interview page styles.
 * Shared by landing_base.html and its child templates.
 */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  color: #333333;
  line-height: 1.75;
  font-size: 16px;
}

.header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.logo-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
}

.logo {
  height: 36px;
  width: auto;
  max-width: 300px;
  display: inline-block;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.content-section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 60px 20px;
}

.hero-section {
  text-align: center;
  padding: 60px 20px 80px;
  background: #ffffff;
}

.hero-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 48px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
    white-space: normal;
  }
}

.hero-description {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  color: #333;
}

.hero-intro {
  font-size: 18px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-subsection {
  margin-bottom: 28px;
}

.hero-subsection h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #06ADCD;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-subsection ul {
  margin: 0;
  padding-left: 24px;
  list-style: disc;
}

.hero-subsection li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.steps-section {
  background: #ffffff;
  padding: 80px 20px;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.steps-container {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 48px;
  color: #1a1a1a;
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-number {
  background: #06ADCD;
  color: white;
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.step-description {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

@media (min-width: 769px) {
  .steps-grid {
    flex-direction: row;
    align-items: stretch;
  }

  .step-card {
    flex: 1;
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto 16px;
  }

  .step-description {
    text-align: left;
  }
}

.faq-section {
  padding: 80px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 32px;
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  font-weight: bold;
  color: #06ADCD;
  margin-bottom: 16px;
  font-size: 1.125rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.faq-question::before {
  content: 'Q';
  background: #06ADCD;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.faq-answer {
  color: #555;
  margin-left: 40px;
  line-height: 1.75;
  font-size: 15px;
}

.form-section {
  background: #ffffff;
  padding: 80px 20px;
  position: relative;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 1.75rem;
  font-weight: bold;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 40px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.form-col {
  flex: 1;
}

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
  background: #fafbfc;
}

.form-input:focus {
  outline: none;
  border-color: #06ADCD;
  background: white;
}

.form-input:disabled,
.form-input:read-only {
  background-color: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.7;
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
}

.privacy-section {
  margin: 30px 0;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #06ADCD;
}

.checkbox-label {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.checkbox-label a {
  color: #06ADCD;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.checkbox-label a:hover {
  border-bottom-color: #06ADCD;
}

.submit-button {
  width: 100%;
  padding: 16px 32px;
  background: #06ADCD;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 4px 20px rgba(6, 173, 205, 0.25);
}

.submit-button:hover:not(:disabled) {
  background: #0593ab;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 173, 205, 0.35);
}

.submit-button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (hover: none) {
  .submit-button:not(:disabled) {
    background: #06ADCD;
    box-shadow: 0 4px 20px rgba(6, 173, 205, 0.25);
  }
}

.fixed-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fixed-cta-button {
  background: #06ADCD;
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(6, 173, 205, 0.25);
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fixed-cta-button:hover {
  background: #0593ab;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 173, 205, 0.35);
}

@media (hover: none) {
  .fixed-cta-button {
    background: #06ADCD;
    box-shadow: 0 4px 20px rgba(6, 173, 205, 0.25);
  }
}

.fixed-cta-button svg {
  width: 20px;
  height: 20px;
}

.fixed-cta.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.contact-section {
  padding: 80px 20px;
  background: #ffffff;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
  font-weight: bold;
  color: #1a1a1a;
}

.contact-description {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.75;
}

.contact-email {
  font-size: 1rem;
  color: #06ADCD;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  padding: 12px 20px;
  background: #e6f9fc;
  border-radius: 8px;
  transition: all 0.3s ease;
  word-break: break-all;
}

.contact-email:hover {
  background: #06ADCD;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 173, 205, 0.2);
}

.error-section {
  text-align: center;
  padding: 20px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  margin-bottom: 24px;
}

.error-text {
  color: #d00;
  font-size: 16px;
  margin: 0;
}

.video-section {
  border-top: none;
  padding-top: 60px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .header {
    padding: 14px 0;
  }

  .logo-container {
    min-height: 40px;
  }

  .logo {
    height: 32px;
    max-width: 240px;
  }

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

  .steps-grid {
    flex-direction: column;
    gap: 30px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-container {
    padding: 30px 20px;
  }

  .fixed-cta-button {
    padding: 14px 30px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px 0;
  }

  .logo-container {
    min-height: 36px;
  }

  .logo {
    height: 28px;
    max-width: 200px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    padding: 25px;
  }

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

  .fixed-cta {
    bottom: 16px;
    width: calc(100% - 32px);
    max-width: none;
  }

  .fixed-cta-button {
    width: 100%;
    justify-content: center;
  }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
