/*
===============================================
  株式会社デシジョンワークス - メインスタイルシート
===============================================
*/

/* 
====================
  基本設定
====================
*/
:root {
  /* カラーパレット */
  --primary: #005baa;       /* メインカラー（ブルー） */
  --primary-dark: #004080;  /* ダークブルー */
  --primary-light: #3c8ac7; /* ライトブルー */
  --secondary: #00437a;     /* セカンダリーカラー */
  --accent: #ffa500;        /* アクセントカラー（オレンジ） */
  --text-dark: #333333;     /* 濃いテキスト色 */
  --text-medium: #555555;   /* 中間テキスト色 */
  --text-light: #777777;    /* 薄いテキスト色 */
  --bg-light: #f7f9fc;      /* 薄い背景色 */
  --bg-white: #ffffff;      /* 白背景 */
  --bg-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); /* グラデーション */
  
  /* スペーシング */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* その他の変数 */
  --border-radius: 4px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

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

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
}

/* 
====================
  タイポグラフィ
====================
*/
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.2rem;
  position: relative;
  margin-bottom: var(--spacing-md);
  padding-bottom: 15px;
}

h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  bottom: 0;
  left: 0;
  border-radius: 1.5px;
}

.text-center h2:after,
section.text-center h2:after,
.section-title.text-center h2:after,
div.text-center h2:after,
h2.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-medium);
}

.lead {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

.section-title {
  margin-bottom: var(--spacing-lg);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

/* 
====================
  ボタン
====================
*/
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-accent:hover {
  background-color: #e69500;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

/* 
====================
  ヘッダー
====================
*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

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

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

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: var(--spacing-md);
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: var(--spacing-md);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

.close-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* 
====================
  ヒーローセクション
====================
*/
.hero {
  padding: 150px 0 100px;
  background: var(--bg-gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero::before {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -100px;
}

.hero::after {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -50px;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: white;
  position: relative;
  padding-bottom: 15px;
}

.hero-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: white;
  bottom: 0;
  left: 0;
  border-radius: 1.5px;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

h1.text-center::after,
.hero-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

/* 
====================
  フィーチャーセクション
====================
*/
.features {
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.feature-card {
  background-color: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--spacing-sm);
}

@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
  
  .feature-card {
    padding: var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .feature-card {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
}

/* 
====================
  会社情報セクション
====================
*/
.company-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  align-items: center;
}

.info-content h2 {
  margin-bottom: var(--spacing-sm);
}

.info-list {
  list-style: none;
  margin-top: var(--spacing-md);
}

.info-list li {
  margin-bottom: var(--spacing-xs);
  padding-left: 25px;
  position: relative;
}

.info-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.info-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1のアスペクト比（正方形） */
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--bg-light);
}

.info-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.info-image:hover img {
  transform: translate(-50%, -50%) scale(1.05);
}

/* 
====================
  サービスセクション
====================
*/
.services {
  background-color: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: row;
  height: auto; /* 固定高さから自動高さに変更 */
  min-height: 300px; /* 最小高さを設定 */
  align-items: stretch; /* 子要素の高さを揃える */
}

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

.service-image {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-light);
  padding: var(--spacing-sm);
  /* コンテナ自体のアスペクト比は変更しない */
}

.service-image img {
  max-width: 108%; /* 90% × 1.2 = 108% */
  max-height: 108%;
  width: auto;
  height: auto;
  object-fit: contain; /* 画像全体が表示されるように */
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 5px;
  background-color: white;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-content {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.service-title {
  margin-bottom: var(--spacing-xs);
  font-size: 1.4rem;
  color: var(--primary);
}

.service-text {
  margin-bottom: var(--spacing-sm);
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-action {
  text-align: right;
  margin-top: var(--spacing-xs);
}

@media (max-width: 1200px) {
  .services-grid {
    gap: var(--spacing-md);
  }
  
  .service-card {
    height: 300px;
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    height: 240px; /* 高さを増加 (220px→240px) */
  }
}

@media (max-width: 768px) {
  .service-card {
    flex-direction: column;
    height: auto;
  }
  
  .service-image {
    flex: none;
    width: 100%;
    height: 250px; /* 固定高さを増加 (220px→250px) */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
  }
  
  .service-image img {
    max-width: 108%; /* 90% × 1.2 = 108% */
    max-height: 108%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 5px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .service-content {
    padding: var(--spacing-md);
  }
}

/* 
====================
  代表者紹介セクション
====================
*/
.ceo-profile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  align-items: center;
}

.ceo-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1のアスペクト比（正方形） */
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--bg-light);
}

.ceo-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.ceo-image:hover img {
  transform: translate(-50%, -50%) scale(1.05);
}

.ceo-name {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.ceo-position {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.ceo-bio {
  margin-bottom: var(--spacing-md);
}

.ceo-experience-list {
  list-style: none;
  margin-bottom: var(--spacing-md);
}

.ceo-experience-list li {
  margin-bottom: var(--spacing-xs);
  padding-left: 25px;
  position: relative;
}

.ceo-experience-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* 
====================
  事例紹介セクション
====================
*/
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

.case-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.case-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1のアスペクト比（正方形） */
  overflow: hidden;
  background-color: var(--bg-light);
}

.case-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain; /* 画像全体を表示 */
  transition: var(--transition);
}

.case-card:hover .case-image img {
  transform: translate(-50%, -50%) scale(1.05);
}

.case-content {
  padding: var(--spacing-md);
}

.case-title {
  margin-bottom: 5px;
}

.case-company {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--spacing-sm);
}

.case-tag {
  font-size: 0.8rem;
  background-color: rgba(0, 91, 170, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
}

.case-text {
  margin-bottom: var(--spacing-sm);
}

/* 
====================
  CTA セクション
====================
*/
.cta {
  background: var(--bg-gradient);
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.cta h2 {
  color: white;
}

.cta h2:after {
  background-color: white;
  left: 50%;
  transform: translateX(-50%);
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
}

.cta-button {
  background-color: white;
  color: var(--primary);
}

.cta-button:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

/* 
====================
  事例投稿フォーム
====================
*/
.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.case-form {
  background-color: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-intro {
  margin-bottom: var(--spacing-md);
}

.form-hint {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 5px;
}

.form-control-file {
  padding: 8px 0;
}

.mt-30 {
  margin-top: 30px;
}

/* 
====================
  お問い合わせセクション
====================
*/
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.contact-info {
  margin-bottom: var(--spacing-md);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
}

.contact-icon {
  font-size: 1.2rem;
  margin-right: 15px;
  color: var(--primary);
}

.contact-text {
  flex: 1;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  transition: var(--transition);
}

.contact-social a:hover {
  color: var(--primary-dark);
}

.contact-social i {
  margin-right: 8px;
}

.contact-form {
  background-color: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 91, 170, 0.1);
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
}

.form-check-input {
  margin-right: 10px;
  margin-top: 5px;
}

.form-error {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

.has-error .form-control {
  border-color: #dc3545;
}

.has-error .form-error {
  display: block;
}

.success-message {
  background-color: #28a745;
  color: white;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
  display: none;
}

/* 
====================
  会社概要ページ
====================
*/
.page-header {
  padding: 150px 0 80px;
  background: var(--bg-gradient);
  color: white;
  margin-bottom: var(--spacing-xl);
}

.page-title {
  color: white;
  margin-bottom: var(--spacing-xs);
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-md);
}

.company-table tr {
  border-bottom: 1px solid #eee;
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table th,
.company-table td {
  padding: var(--spacing-sm);
  text-align: left;
}

.company-table th {
  width: 30%;
  color: var(--primary-dark);
  font-weight: 600;
}

.history-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 50px;
}

.history-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background-color: var(--primary-light);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-md);
}

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

.timeline-dot {
  position: absolute;
  top: 0;
  left: -50px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.timeline-date {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.timeline-content {
  background-color: white;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 
====================
  サービス詳細ページ
====================
*/
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.service-detail-image {
  display: none; /* 画像コンテナを非表示 */
}

.service-detail-image img {
  display: none; /* 画像も非表示 */
}

.service-detail-content h3 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
}

.service-detail-content {
  width: 100%; /* コンテンツ幅を最大化 */
  max-width: 800px; /* 読みやすさを考慮して最大幅を設定 */
  margin: 0 auto; /* 中央寄せ */
}

.service-features {
  background-color: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-top: var(--spacing-md);
}

.service-features h3 {
  margin-top: 0;
}

.features-list {
  list-style: none;
  margin: 0;
}

.features-list li {
  margin-bottom: var(--spacing-xs);
  padding-left: 25px;
  position: relative;
}

.features-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.service-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.process-step {
  text-align: center;
  background-color: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.process-step:not(:last-child):after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--primary);
}

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

/* 
====================
  事例詳細ページ
====================
*/
.case-detail-header {
  margin-bottom: var(--spacing-md);
}

.case-detail-image {
  position: relative;
  width: 50%; /* 画像サイズを50%に縮小 */
  padding-top: 50%; /* 1:1のアスペクト比を維持（幅の50%が高さも50%） */
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--bg-light);
  margin: 0 auto var(--spacing-md); /* 中央寄せ */
}

.case-detail-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.case-detail-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.case-section {
  background-color: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
}

.case-section h3 {
  margin-top: 0;
  color: var(--primary);
}

.case-results {
  background-color: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
}

.results-list {
  list-style: none;
  margin: 0;
}

.results-list li {
  margin-bottom: var(--spacing-xs);
  padding-left: 25px;
  position: relative;
}

.results-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.case-testimonial {
  font-style: italic;
  color: var(--text-medium);
  padding: var(--spacing-sm) 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: var(--spacing-md) 0;
}

.testimonial-author {
  font-style: normal;
  font-weight: 600;
  display: block;
  margin-top: var(--spacing-xs);
}

/* 
====================
  フッター
====================
*/
.footer {
  background-color: #0a2744;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.footer-logo img {
  height: 30px;
  margin-right: 10px;
}

.footer-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.footer-text {
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
  color: white;
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-bottom: 10px;
}

.footer-heading:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary-light);
  bottom: 0;
  left: 0;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(60, 138, 199, 0.2);
}

/* フッター最後のカラムのお問い合わせ見出しのセンタリング */
.footer-grid > div:last-child .footer-heading:after {
  left: 50%;
  transform: translateX(-50%);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

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

/* フッター最後のカラムを中央揃えに */
.footer-grid > div:last-child {
  text-align: center;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-contact-icon {
  margin-right: 10px;
  color: var(--primary-light);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: var(--spacing-sm);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: #071d36;
  padding: var(--spacing-sm) 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* 
====================
  レスポンシブデザイン
====================
*/
@media (max-width: 992px) {
  :root {
    --spacing-xl: 4rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* タブレットサイズでのボタン表示改善 */
  .hero-buttons {
    gap: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons .btn {
    padding: 12px 20px;
  }
  
  .hero-buttons .btn-outline {
    background-color: rgba(255, 255, 255, 0.3);
    border-width: 2px;
  }
  
  .service-detail {
    grid-template-columns: 1fr;
  }
  
  /* .service-detail-image {
    order: -1;
  } */
  
  .process-step:not(:last-child):after {
    display: none;
  }
  
  /* 事例詳細画像のタブレット対応 */
  .case-detail-image {
    width: 60%; /* 画像サイズを調整 */
    padding-top: 60%; /* アスペクト比を維持 */
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* モバイル表示時のみ閉じるボタンを表示 */
  .nav.active .close-menu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 30px 30px;
    z-index: 1001;
    overflow-y: auto; /* スクロール可能に */
  }
  
  .nav.active {
    right: 0;
    width: 85%; /* 画面幅の85%に制限 */
    max-width: 300px;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    margin: 0 0 var(--spacing-sm);
    width: 100%;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  
  .nav-cta {
    margin: var(--spacing-md) 0 0;
    width: 100%;
  }
  
  .nav-cta .btn {
    width: 100%;
  }
  
  /* 閉じるボタンのスタイルはすでに定義済みのため削除 */
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 0;
  }
  
  /* スマホでのアウトラインボタンを見やすく改善 */
  .hero-buttons .btn-outline {
    background-color: rgba(255, 255, 255, 0.95); /* より不透明度を上げる */
    border: 2.5px solid var(--primary); /* 境界線を太くする */
    color: var(--primary-dark); /* テキスト色を濃くする */
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* ドロップシャドウを強くする */
  }
  
  .hero-buttons .btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  }
  
  .features-grid,
  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  :root {
    --spacing-xl: 2.5rem;
    --spacing-lg: 1.5rem;
    --spacing-md: 1rem;
  }
  
  h1, .hero-title {
    font-size: 1.8rem;
    padding-bottom: 12px;
  }
  
  h2 {
    font-size: 1.5rem;
    padding-bottom: 12px;
    margin-bottom: var(--spacing-sm);
  }
  
  h2:after, .hero-title:after {
    width: 60px;
    height: 2px;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  section {
    padding: var(--spacing-lg) 0;
  }
  
  .company-info,
  .ceo-profile,
  .contact-grid,
  .case-detail-sections {
    grid-template-columns: 1fr;
  }
  
  .company-table th {
    width: 40%;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
  
  .timeline-dot {
    left: 0;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
  
  .history-timeline:before {
    left: 12px;
  }
  
  .map-container {
    height: 300px;
  }
  
  /* サービス画像の小画面対応 */
  .service-image {
    height: 200px; /* 高さを調整 */
    padding: var(--spacing-xs);
  }
  
  .service-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
  }
  
  .service-content {
    padding: var(--spacing-sm);
  }
  
  .service-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  
  /* 事例詳細画像の小画面対応 */
  .case-detail-image {
    width: 90%; /* 画像サイズを最適化 */
    padding-top: 90%; /* アスペクト比を維持 */
  }
  
  /* コンタクトフォームの最適化 */
  .contact-form {
    padding: var(--spacing-sm);
  }
  
  .form-group {
    margin-bottom: 10px;
  }
  
  .form-control {
    padding: 12px 15px; /* パディングを増加 */
    font-size: 16px; /* フォントサイズを調整（iOSのズーム防止） */
  }
  
  textarea.form-control {
    min-height: 120px;
  }
  
  .form-label {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .btn[type="submit"] {
    width: 100%; /* 全幅ボタン */
    padding: 14px 0;
    font-size: 1.1rem;
    margin-top: 10px;
  }
  
  /* フッターの余白調整 */
  .footer {
    padding: var(--spacing-md) 0 0;
  }
  
  .footer-grid {
    gap: var(--spacing-md);
  }
  
  /* ヘッダー部分の調整 */
  .page-header {
    padding: 120px 0 50px;
  }
  
  /* ヒーローセクションの調整 */
  .hero {
    padding: 100px 0 60px;
  }
}