* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1f2937;
  background: #f2f3f7;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* レジスターページ用iframe設定 */
iframe[aria-label='案件相談応募'] {
  margin-top: 90px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* タブレットでのiframe調整 */
@media (max-width: 1024px) and (min-width: 769px) {
  iframe[aria-label='案件相談応募'] {
    height: 900px !important;
  }
}

/* スマホでのiframe調整 */
@media (max-width: 768px) {
  iframe[aria-label='案件相談応募'] {
    margin-top: 80px;
  }
}

/* Typography improvements */
h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-title {
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* Keyframes - 一箇所で定義 */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes cardFloat1 {
  0%, 100% { transform: rotate(-2deg) translateY(0px); }
  50% { transform: rotate(-1deg) translateY(-5px); }
}

@keyframes cardFloat2 {
  0%, 100% { transform: rotate(3deg) translateY(-20px); }
  50% { transform: rotate(2deg) translateY(-25px); }
}

@keyframes cardFloat3 {
  0%, 100% { transform: rotate(-1deg) translateY(-40px); }
  50% { transform: rotate(0deg) translateY(-45px); }
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5);
    transform: scale(1.02);
  }
}

@keyframes pulseOrange {
  0%, 100% { 
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
    transform: scale(1.02);
  }
}

/* ヘッダーCSSはheader-freelance.jsに集約 */

/* Section Base */
.section {
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-size: 2.5em;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  color: #1f2937;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: 
    linear-gradient(135deg, rgba(248, 250, 252, 0.52) 0%, rgba(248, 250, 252, 0.50) 20%, rgba(226, 232, 240, 0.85) 100%),
    url(freelance_hero_bg.png);
    background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite reverse;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-left {
  color: #1f2937;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #d97706;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '●';
  color: #10b981;
  font-size: 0.8em;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1f2937;
}

.hero-title .highlight {
  color: #2563eb;
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #2563eb);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.2em;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
  font-weight: 500;
}

.benefit-item::before {
  content: '✓';
  background: #10b981;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-cta {
  text-align: center;
}

.cta-button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  padding: 18px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  animation: pulse 2.5s infinite;
  position: relative;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}

.cta-button::after {
  content: '';
  margin-left: 0;
  transition: transform 0.3s ease;
}

.cta-button:hover::after {
  transform: translateX(4px);
}

.cta-button:hover {
  animation: none;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.6);
}

.cta-note {
  font-size: 0.85em;
  color: #64748b;
  text-align: center;
}

.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-cards {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
  position: relative;
  transform-origin: center;
  transform: none !important;
}

.testimonial-card:nth-child(1) {
  z-index: 3;
  animation: cardFloat1 6s ease-in-out infinite;
}

.testimonial-card:nth-child(2) {
  z-index: 2;
  animation: cardFloat2 6s ease-in-out infinite;
}

.testimonial-card:nth-child(3) {
  z-index: 1;
  animation: cardFloat3 6s ease-in-out infinite;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1em;
}

.testimonial-info h4 {
  font-size: 0.95em;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: 0.8em;
  color: #64748b;
}

.testimonial-content {
  color: #475569;
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 12px;
}

.testimonial-highlight {
  color: #2563eb;
  font-weight: 700;
  font-size: 1.1em;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 80px 32px;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-item {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #f59e0b);
  border-radius: 20px 20px 0 0;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.stat-item:nth-child(1)::before {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.stat-item:nth-child(2)::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.stat-item:nth-child(3)::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.stat-number {
  font-size: 1.6em;
  font-weight: 700;
  color: #2563eb;
  display: block;
  margin-bottom: 12px;
  line-height: 1.2;
  position: relative;
}

.stat-number::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: currentColor;
  opacity: 0.3;
  border-radius: 1px;
}

.stat-label {
  color: #64748b;
  font-weight: 500;
  font-size: 0.95em;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* Problem Section */
.problem-section {
  background: #f8fafc;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.problem-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-5px);
}

.problem-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
}

.problem-card:nth-child(1) .problem-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.problem-card:nth-child(1) .problem-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.problem-card:nth-child(2) .problem-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.problem-card:nth-child(2) .problem-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.problem-card:nth-child(3) .problem-icon {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.problem-card:nth-child(3) .problem-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.problem-card h3 {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1f2937;
}

.problem-card p {
  color: #64748b;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.solution-box {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
}

.solution-box h3 {
  font-size: 1.8em;
  margin-bottom: 16px;
  font-weight: 800;
}

.solution-box p {
  font-size: 1.1em;
  opacity: 0.9;
  line-height: 1.6;
}

/* Cases Section */
.cases-section {
  background: white;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.case-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 16px;
  border-left: 5px solid #2563eb;
  transition: transform 0.3s ease;
}

.case-card:hover {
  transform: translateY(-5px);
}

.case-card h3 {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #1f2937;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.case-details {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.case-tag {
  background: #2563eb;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}

.case-description {
  color: #64748b;
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.case-note {
  color: #94a3b8;
  font-size: 0.85em;
  font-style: italic;
}

/* Flow Section */
.flow-section {
  background: #f8fafc;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  position: relative;
}

.flow-step {
  text-align: center;
  position: relative;
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.step-number {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 800;
  margin: 0 auto 24px;
}

.step-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1f2937;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.step-description {
  color: #64748b;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* Benefits Section */
.benefits-section {
  background: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.benefit-card {
  background: #f8fafc;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.benefit-card:nth-child(1) .benefit-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.benefit-card:nth-child(2) .benefit-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.benefit-card:nth-child(3) .benefit-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.benefit-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1f2937;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.benefit-description {
  color: #64748b;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* FAQ Section */
.faq-section {
  background: #f8fafc;
}

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

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1f2937;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-toggle {
  font-size: 1.2em;
  color: #2563eb;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #64748b;
  line-height: 1.6;
}

.faq-answer.active {
  padding: 0 24px 24px;
  max-height: 200px;
}

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

/* Skills Section styles moved to shared/themes/common.css */

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: white;
  text-align: center;
  padding: 100px 0;
}

.final-cta .section-title {
  color: white;
  margin-bottom: 24px;
}

.final-cta p {
  font-size: 1.2em;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-wrapper {
  text-align: center;
}

.final-cta-button {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 18px 40px;
  border: none;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  animation: pulseOrange 2.5s infinite;
  position: relative;
  text-decoration: none;
  display: inline-block;
}

.final-cta-button::after {
  content: '';
  margin-left: 0;
  transition: transform 0.3s ease;
}

.final-cta-button:hover::after {
  transform: translateX(4px);
}

.final-cta-button:hover {
  animation: none;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.6);
}



/* タブレット向け（1024px以下） */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  /* ヘッダー関連はheader-freelance.jsに移動 */
  
  .testimonial-cards {
    max-width: 350px;
  }
}

/* スマホ向け（768px以下） */
@media (max-width: 768px) {
  body {
    line-height: 1.65;
  }
  
  /* ナビゲーション関連はheader-freelance.jsに移動 */
  
  /* ヒーローセクション */
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .hero-content {
    padding: 0 16px;
    gap: 30px;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
  }
  
  .hero-subtitle {
    font-size: 1em;
    margin-bottom: 24px;
  }
  
  .hero-benefits {
    gap: 8px;
    margin-bottom: 24px;
    width: fit-content;
    margin-left: auto;
    margin-right: 45px;
  }
  
  .benefit-item {
    font-size: 0.9em;
  }
  
  /* CTAボタン（フォーム削除後） */
  .cta-button {
    padding: 16px 28px;
    font-size: 1em;
    margin-bottom: 12px;
  }
  .testimonial-card:nth-child(1) {
    transform: none;
    animation:  none;
  }
  
  .testimonial-card:nth-child(2) {
    transform: none;
    animation:  none;
  }
  
  .testimonial-card:nth-child(3) {
    transform: none;
    animation:  none;
  }
  
  
  /* 統計セクション */
  .stats-section {
    padding: 60px 16px;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
  }
  
  .stat-item {
    padding: 30px 24px;
    border-radius: 16px;
    margin: 0 8px;
  }
  
  .stat-item:hover {
    transform: translateY(-2px);
  }
  
  .stat-number {
    font-size: 1.4em;
  }
  
  .stat-label {
    font-size: 0.9em;
    line-height: 1.4;
  }
  
  /* セクション全般 */
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }
  
  /* 問題提起セクション */
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .problem-card {
    padding: 24px 20px;
  }
  
  .problem-card h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
  }
  
  .solution-box {
    padding: 30px 20px;
  }
  
  .solution-box h3 {
    font-size: 1.4em;
  }
  
  .solution-box p {
    font-size: 1em;
  }
  
  /* 案件セクション - 横スライド */
  .cases-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 0 16px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
  }
  
  .cases-grid::-webkit-scrollbar {
    height: 6px;
  }
  
  .cases-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
  }
  
  .cases-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  
  .cases-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
  
  .case-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    padding: 20px;
  }
  
  .case-card h3 {
    font-size: 1.2em;
    margin-bottom: 16px;
  }
  
  /* フローセクション */
  .flow-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .flow-step {
    padding: 24px 20px;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5em;
    margin-bottom: 16px;
  }
  
  /* 特徴セクション */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .benefit-card {
    padding: 24px 20px;
  }
  
  .benefit-title,
  .step-title,
  .case-card h3 {
    line-height: 1.4;
    letter-spacing: -0.01em;
  }
  
  /* FAQ */
  .faq-question {
    padding: 16px;
    font-size: 0.95em;
  }
  
  .faq-answer {
    font-size: 0.9em;
    padding-top: 8px;
  }
  
  .faq-answer.active {
    padding: 8px 16px 16px;
  }
  
  /* 最終CTA */
  .final-cta {
    padding: 60px 0;
  }
  
  .final-cta .section-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }
  
  .final-cta p {
    font-size: 1em;
    margin-bottom: 24px;
  }
  
  .final-cta-button {
    padding: 16px 28px;
    font-size: 1em;
  }
  
  /* 証言カード（スマホ用調整） */
  .testimonial-cards {
    max-width: 100%;
  }
  
  /* Skills Section responsive styles moved to shared/themes/common.css */
}