/*
Theme Name: 交通事故マッチング
Theme URI: https://sekkotsuin.net
Description: 交通事故被害者と最適な通院先をマッチングするサービスのWordPressテーマ
Version: 1.0.0
Author: Manus AI
Author URI: https://manus.im
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jikomatching
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

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

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

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

body {
  font-family: 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* ============================================
   カラーパレット
   ============================================ */

:root {
  --color-primary: #003366;      /* 紺色 */
  --color-accent: #00AA66;       /* 緑色 */
  --color-secondary: #666666;    /* グレー */
  --color-light-gray: #f5f5f5;   /* ライトグレー */
  --color-white: #ffffff;        /* 白 */
  --color-text: #333333;         /* テキスト色 */
  --color-border: #ddd;          /* ボーダー色 */
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================
   ボタン
   ============================================ */

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #008844;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 170, 102, 0.3);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: #001f4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* ============================================
   コンテナ・レイアウト
   ============================================ */

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

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.col {
  flex: 1;
}

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

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

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.site-logo a {
  color: var(--color-primary);
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.site-nav a {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: var(--color-accent);
}

/* ============================================
   ファーストビュー（Hero Section）
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #004d80 100%);
  color: var(--color-white);
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  color: var(--color-white);
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.section {
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 20px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--color-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-light {
  background-color: var(--color-light-gray);
}

.section-white {
  background-color: var(--color-white);
}

/* ============================================
   カード
   ============================================ */

.card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: var(--color-primary);
  margin-bottom: 15px;
}

.card p {
  color: var(--color-secondary);
  line-height: 1.8;
}

/* ============================================
   フィーチャー（3つの特徴）
   ============================================ */

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

.feature {
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
  color: var(--color-white);
}

.feature h3 {
  margin-bottom: 15px;
}

.feature p {
  color: var(--color-secondary);
}

/* ============================================
   ステップ
   ============================================ */

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

.step {
  position: relative;
  padding-left: 60px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.step h3 {
  margin-bottom: 15px;
  color: var(--color-primary);
}

.step p {
  color: var(--color-secondary);
  line-height: 1.8;
}

/* ============================================
   ユーザーの声
   ============================================ */

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

.testimonial {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-accent);
  padding: 25px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.testimonial-text {
  color: var(--color-secondary);
  line-height: 1.8;
  font-style: italic;
}

/* ============================================
   FAQ
   ============================================ */

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.faq-question {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--color-secondary);
  line-height: 1.8;
  display: none;
}

.faq-answer.active {
  display: block;
}

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

.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: 15px;
}

.footer-section a {
  color: var(--color-white);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   フォーム
   ============================================ */

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 170, 102, 0.1);
}

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

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

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

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .site-nav ul {
    gap: 15px;
    font-size: 0.9rem;
  }

  .section {
    padding: 40px 20px;
  }

  .hero {
    padding: 50px 20px;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

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

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .header-inner {
    flex-direction: column;
    gap: 15px;
  }

  .container {
    padding: 0 15px;
  }
}
