/*
Theme Name: 交通事故通院マッチング
Description: AIマッチング機能を搭載した交通事故治療紹介LPテーマ
Version: 1.0.0
Author: Gemini Web Designer
*/

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1d4ed8;
}

/* ============================================
   Layout
   ============================================ */

.container-custom {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding: 0 2rem;
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn,
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: #06b6d4;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #0891b2;
}

.btn-outline {
  border: 2px solid #2563eb;
  color: #2563eb;
}

.btn-outline:hover {
  background-color: #2563eb;
  color: #ffffff;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.site-logo a {
  color: #2563eb;
}

.site-nav {
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: #1f2937;
  font-weight: 500;
}

.site-nav a:hover {
  color: #2563eb;
}

@media (min-width: 768px) {
  .site-nav {
    display: block;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #ffffff;
  padding: 5rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3rem;
  }
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-visual-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-visual-item:last-child {
  margin-bottom: 0;
}

.hero-visual-icon {
  width: 3rem;
  height: 3rem;
  background-color: #22c55e;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-visual-text {
  font-size: 1.125rem;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 2rem;
}

.section-light {
  background-color: #ffffff;
}

.section-dark {
  background-color: #f9fafb;
}

/* ============================================
   Strengths Section
   ============================================ */

.strengths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.strength-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.strength-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.strength-card h3 {
  color: #2563eb;
  margin-bottom: 1rem;
}

.strength-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.strength-card li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.strength-card li:last-child {
  margin-bottom: 0;
}

.strength-icon {
  color: #22c55e;
  font-weight: 700;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* ============================================
   Process Section
   ============================================ */

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  text-align: center;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #2563eb;
}

.testimonial-title {
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.testimonial-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.testimonial-result {
  background-color: #f0f9ff;
  padding: 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #1e40af;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  background-color: #ffffff;
  color: #2563eb;
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.cta-button:hover {
  background-color: #f3f4f6;
}

/* ============================================
   Regions Section
   ============================================ */

.regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .regions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.region-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.region-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #f0f9ff;
}

.region-card a {
  text-decoration: none;
  color: inherit;
}

.region-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.region-link {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background-color: #1f2937;
  color: #ffffff;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-section a {
  color: #d1d5db;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ============================================
   Floating Banner
   ============================================ */

.floating-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #ffffff;
  padding: 1rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.floating-banner-content {
  flex: 1;
}

.floating-banner-text {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.floating-banner-subtext {
  font-size: 0.875rem;
  opacity: 0.9;
}

.floating-banner-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .floating-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-banner-subtext {
    display: none;
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 767px) {
  body {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }
}

/* ============================================
   固定ページ用追加CSS
   ============================================ */

/* 理由カードの基本設定 */
.match-reason-card {
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    border-left: 8px solid;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* カードの色バリエーション */
.match-reason-card.blue { background-color: #eff6ff; border-left-color: #1e3a8a; }
.match-reason-card.green { background-color: #f0fdf4; border-left-color: #22c55e; }
.match-reason-card.orange { background-color: #fff7ed; border-left-color: #fb923c; }

/* 理由ラベル（Reason 01など） */
.match-reason-label {
    display: inline-block;
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 900;
    font-size: 0.75rem;
    margin-right: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-reason-label.blue { background-color: #1e3a8a; }
.match-reason-label.green { background-color: #22c55e; }
.match-reason-label.orange { background-color: #fb923c; }

/* ご利用の流れ（ステップ） */
.match-step-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.match-step-item {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.match-step-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.match-step-number {
    color: #1e3a8a;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
}

/* 下部CTAボックス */
.match-cta-box {
    text-align: center;
    background-color: #1e3a8a;
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 2.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.match-cta-box h2 {
    color: #fff !important; /* 背景が濃いので白に強制 */
    margin-top: 0;
}

/* レスポンシブ調整（スマホ表示） */
@media (max-width: 640px) {
    .match-cta-box {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }
}