/* 基本設定 */
:root {
    --primary: #1a4b7a;  /* 信頼感のある紺色 */
    --secondary: #4169e1; /* アクセントの金色 */
    --dark: #333;
    --light: #f9f9f9;
    --gray: #eaeaea;
}

body {
    font-family: 'Noto Sans JP', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

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

.section {
    padding: 80px 0;
}

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

.section-title span {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
    font-size: 20px;
    color: var(--primary);
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--secondary);
}

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

/* ヘッダー */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.global-nav {
    display: flex;
    align-items: center;
}

.global-nav ul {
    display: flex;
    margin-right: 30px;
}

.global-nav li {
    margin-left: 25px;
}

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

.global-nav a:hover {
    color: var(--primary);
}

.header-contact {
    text-align: right;
}

.tel {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: block;
}

.header-contact p {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* メインビジュアル */
.main-visual {
    margin-top: 70px;
    height: 60vh;
    max-height: 600px;
    position: relative;
    overflow: hidden;
}

.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background-color: rgba(0,0,0,0.6);
    padding: 30px;
    border-radius: 5px;
    max-width: 80%;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.slide-content p {
    font-size: 1.2rem;
}

/* 各セクションのスタイル */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.flow-step {
    text-align: center;
    position: relative;
}

.flow-step::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 30px;
    font-size: 1.5rem;
    color: var(--secondary);
}

.flow-step:last-child::after {
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    display: grid;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

.contact-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #0d3a66;
}

/* ==========================================
   お客様の声セクション専用スタイル
   ========================================== */

   #testimonials {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
  }
  
  #testimonials .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  #testimonials .section-title {
    text-align: center;
    margin-bottom: 50px;
  }
  
  #testimonials .section-title span {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
  }
  
  #testimonials .section-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #4169e1; /* アクセントカラー */
  }
  
  /* スライダー全体 */
  .testimonial-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
  }
  
  /* 個別のスライド */
  .testimonial-slide {
    display: none;
    width: 100%;
    transition: opacity 0.5s ease;
  }
  
  .testimonial-slide.active {
    display: block;
    opacity: 1;
  }
  
  /* グリッドレイアウト */
  .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 10px;
  }
  
  /* 各お客様の声アイテム */
  .testimonial-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    position: relative;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  /* 引用符デザイン */
  .testimonial-item::before {
    content: '"';
    font-family: serif;
    font-size: 120px;
    color: rgba(212, 175, 55, 0.1); /* アクセントカラーの10%不透明度 */
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    z-index: 0;
  }
  
  /* お客様のコメント */
  .testimonial-item blockquote {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    padding-right: 15px;
    font-style: italic;
  }
  
  /* クライアント情報 */
  .client-info {
    position: relative;
    padding-right: 85px; /* アイコンのためのスペース */
    min-height: 70px;
  }
  
  .client-info p {
    font-size: 14px;
    font-weight: 600;
    color: #1a4b7a; /* プライマリーカラー */
    margin: 0;
    line-height: 1.4;
  }
  
  /* クライアントアイコン */
  .client-icon {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4169e1; /* アクセントカラー */
    background: #fff;
    box-sizing: border-box;
  }
  
  .client-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  /* アニメーション */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* ==========================================
     レスポンシブ対応
     ========================================== */
  
  @media (max-width: 1024px) {
    .testimonial-grid {
      gap: 20px;
    }
    
    .testimonial-item {
      padding: 25px;
      min-height: 260px;
    }
  }
  
  @media (max-width: 768px) {
    .testimonial-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    #testimonials {
      padding: 60px 0;
    }
    
    .testimonial-item::before {
      font-size: 100px;
    }
    
    .client-icon {
      width: 60px;
      height: 60px;
    }
    
    .client-info {
      padding-right: 75px;
    }
  }
  
  @media (max-width: 576px) {
    .testimonial-grid {
      grid-template-columns: 1fr;
      gap: 25px;
    }
    
    .testimonial-item {
      min-height: auto;
      padding: 20px;
    }
    
    #testimonials .section-title {
      margin-bottom: 30px;
    }
    
    .client-icon {
      width: 50px;
      height: 50px;
      border-width: 2px;
    }
    
    .client-info {
      padding-right: 65px;
      min-height: 60px;
    }
    
    .testimonial-item::before {
      font-size: 80px;
      top: 5px;
      left: 15px;
    }
  }

  /* Googleマップ */
  .map-wrapper {
    position: relative;
    padding-top: 40%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .grayscale-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(90%) contrast(85%);
    border: none;
  }
  
  /* アニメーション */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* レスポンシブ */
  @media (max-width: 768px) {
    .testimonial-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .map-wrapper {
      padding-top: 70%;
    }
  }

/* フッター */
#footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 10px;
}

.footer-nav ul {
    display: grid;
    gap: 10px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

/* レスポンシブ */
@media (max-width: 992px) {
    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
    
    .flow-step:nth-child(2)::after {
        display: none;
    }
    
    .flow-step::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -25px;
        transform: translateX(50%);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s;
        padding: 20px;
    }
    
    .global-nav.active {
        right: 0;
    }
    
    .global-nav ul {
        flex-direction: column;
        margin: 0 0 30px;
    }
    
    .global-nav li {
        margin: 10px 0;
    }
    
    .header-contact {
        text-align: center;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .main-visual {
        height: 50vh;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .flow-steps {
        grid-template-columns: 1fr;
    }
    
    .flow-step::after {
        display: none;
    }
    
    .section {
        padding: 50px 0;
    }
}