/*
Theme Name: 交通事故通院マッチング
Theme URI: https://tsuinsupport.example.com
Author: Tsuinsupport Team
Author URI: https://tsuinsupport.example.com
Description: 交通事故被害者向け接骨院紹介サービスのWordPressテーマ。SEO対策と信頼性を重視したデザイン。
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsuinsupport
Domain Path: /languages
Requires at least: 5.9
Requires PHP: 7.4
*/

/* ===================================
   リセット・基本スタイル
   =================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Hiragino Sans', 'ヒラギノ角ゴ Pro', 'Yu Gothic', 'メイリオ', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0052a3;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================
   タイポグラフィ
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #222;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* ===================================
   ヘッダー
   =================================== */

.site-header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0066cc;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.main-navigation {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-navigation a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: #0066cc;
}

/* ===================================
   ヒーロー セクション
   =================================== */

.hero-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f7 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.hero-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.2rem;
  color: #0066cc;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.hero-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

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

.hero-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: #28a745;
  color: #fff;
}

.btn-primary:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
  background-color: #ff8c00;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #e67e00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* ===================================
   フィーチャー セクション
   =================================== */

.features-section {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

.features-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.features-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #0066cc;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #0066cc;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===================================
   サービス紹介 セクション
   =================================== */

.service-intro-section {
  padding: 4rem 2rem;
  background-color: #fff;
}

.service-intro-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-intro-content h2 {
  color: #0066cc;
  margin-bottom: 1.5rem;
}

.service-intro-content p {
  color: #555;
  margin-bottom: 1rem;
}

.service-intro-image {
  text-align: center;
}

.service-intro-image img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===================================
   ご利用の流れ セクション
   =================================== */

.flow-section {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

.flow-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.flow-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #0066cc;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.flow-step {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.flow-step-number {
  background-color: #0066cc;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.flow-step h3 {
  color: #0066cc;
  margin-bottom: 0.5rem;
}

.flow-step p {
  color: #666;
  font-size: 0.95rem;
}

/* ===================================
   お客様の声 セクション
   =================================== */

.testimonials-section {
  padding: 4rem 2rem;
  background-color: #fff;
}

.testimonials-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #0066cc;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #0066cc;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ddd;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  color: #333;
}

.testimonial-text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===================================
   CTA セクション
   =================================== */

.cta-section {
  padding: 3rem 2rem;
  background-color: #e8f0f7;
  text-align: center;
}

.cta-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.cta-section h2 {
  color: #0066cc;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================================
   フッター
   =================================== */

.site-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 2rem 1rem;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #ecf0f1;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #28a745;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1rem;
  text-align: center;
  color: #95a5a6;
  font-size: 0.9rem;
}

/* ===================================
   レスポンシブ対応
   =================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .service-intro-wrapper {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .flow-steps,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .header-wrapper {
    padding: 0.75rem 1rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .features-section,
  .flow-section,
  .testimonials-section,
  .service-intro-section {
    padding: 2rem 1rem;
  }
}
