/* 
 * 特殊パターンスタイル
 * 特定のパターンタイプに対する固有のスタイルを定義
 */

/* ヒーローセクション関連 */
.hero-section {
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-overlay.hero-text-enhance {
  background-color: rgba(0, 0, 0, 0.6);
}

.pattern-section.hero-section .pattern-container {
  position: relative;
  z-index: 2;
  padding: 5rem 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.pattern-section.hero-section .pattern-content {
  text-align: center;
  max-width: 800px;
}

.pattern-section.hero-section .pattern-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.pattern-section.hero-section .pattern-title {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pattern-section.hero-section .pattern-title::after {
  background-color: #fff;
}

.pattern-section.hero-section .pattern-title-accent {
  color: #8ed8ff;
}

.pattern-section.hero-section .pattern-description {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-left: auto;
  margin-right: auto;
}

/* ヒーローセクション内のボタンスタイル */
.pattern-section.hero-section .button-outline,
.inheritance-hero-section .button-outline {
  border: 2px solid white;
  color: white !important;
  background-color: transparent;
}

.pattern-section.hero-section .button-outline:hover,
.inheritance-hero-section .button-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white !important;
}

.inheritance-hero-section {
  /* 背景画像はHTMLのインラインスタイルで設定するため削除 */
  min-height: 600px;
  display: flex;
  align-items: center;
}

.inheritance-hero-section .pattern-content {
  max-width: 800px;
}

.inheritance-hero-section .pattern-title {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.inheritance-hero-section .pattern-title-accent {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
  color: #1c5f8a;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  margin-top: 0.5rem;
}

.inheritance-hero-section .pattern-description {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  max-width: 90%;
}

.inheritance-hero-section .pattern-buttons {
  margin-top: 2.5rem;
}

/* モバイル対応 */
@media (max-width: 768px) {
  /* メンバーセクション - モバイル */
  #members .pattern-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  /* ヒーローセクション - モバイル */
  .inheritance-hero-section {
    min-height: 500px;
  }
  
  .inheritance-hero-section .pattern-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .inheritance-hero-section .pattern-description {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* タブレット表示 */
  #members .pattern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .inheritance-hero-section .pattern-title {
    font-size: 2.5rem;
  }
}

/* サービスセクション特有スタイル - 改善版 */
.pattern-section#services {
  padding: 3rem 0;
  background-color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.pattern-section#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 0;
}

/* コンテナ設定 */
.pattern-section#services .pattern-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* 見出し部分 */
.pattern-section#services .text-center {
  margin-bottom: 2.5rem;
}

.pattern-section#services .pattern-title {
  font-size: 2.2rem;
  color: #2c3e50;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.pattern-section#services .pattern-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #1c5f8a, #3498db);
}

.pattern-section#services .pattern-title-accent {
  color: #8ed8ff;
}

.pattern-section#services .pattern-description {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  color: #5d6778;
}

/* グリッドレイアウト */
.pattern-section#services .pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* カードデザイン */
.pattern-section#services .pattern-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pattern-section#services .pattern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* アイコン */
.pattern-section#services .pattern-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background-color: rgba(28, 95, 138, 0.1);
  color: #1c5f8a;
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.pattern-section#services .pattern-card:hover .pattern-icon {
  background-color: #1c5f8a;
  color: white;
}

/* カードコンテンツ */
.pattern-section#services .pattern-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.pattern-section#services .pattern-card p {
  color: #5d6778;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* サービスボタン */
.pattern-section#services .button.button-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid #1c5f8a;
  border-radius: 50px;
  color: #1c5f8a;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: auto;
}

.pattern-section#services .button.button-outline:hover {
  background-color: #1c5f8a;
  color: white;
}

.pattern-section#services .button.button-outline .ml-1 {
  margin-left: 0.25rem;
}

/* サービスセクションのアニメーション */
.pattern-section#services .pattern-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.pattern-section#services .pattern-card:nth-child(1) {
  animation-delay: 0.1s;
}

.pattern-section#services .pattern-card:nth-child(2) {
  animation-delay: 0.3s;
}

.pattern-section#services .pattern-card:nth-child(3) {
  animation-delay: 0.5s;
}

/* サービスアイコン分類 */
#services .pattern-icon.service-company {
  background-color: rgba(56, 178, 172, 0.1);
  color: #38b2ac;
  border-color: rgba(56, 178, 172, 0.3);
}

#services .pattern-card:hover .pattern-icon.service-company {
  background-color: #38b2ac;
  color: white;
}

#services .pattern-icon.service-visa {
  background-color: rgba(246, 173, 85, 0.1);
  color: #f6ad55;
  border-color: rgba(246, 173, 85, 0.3);
}

#services .pattern-card:hover .pattern-icon.service-visa {
  background-color: #f6ad55;
  color: white;
}

#services .pattern-icon.service-inheritance {
  background-color: rgba(144, 205, 244, 0.1);
  color: #4299e1;
  border-color: rgba(144, 205, 244, 0.3);
}

#services .pattern-card:hover .pattern-icon.service-inheritance {
  background-color: #4299e1;
  color: white;
}

/* メンバーセクション特有スタイル */
#members.pattern-section {
  background-color: #fff;
  position: relative;
}

#members.pattern-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(225, 236, 247, 0.2) 1px, transparent 1px), 
                    linear-gradient(to bottom, rgba(225, 236, 247, 0.2) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  z-index: 0;
}

/* メンバーセクションのグリッド修正 */
#members .pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

#members .pattern-card.member-card {
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: left;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

#members .pattern-card.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

#members .member-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

#members .member-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  transition: all 0.5s ease;
}

#members .pattern-card.member-card:hover img {
  transform: scale(1.05);
}

#members .member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: white;
}

#members .member-info h3 {
  margin: 0 0 0.5rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

#members .member-position {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0;
}

#members .pattern-card.member-card p {
  padding: 1.5rem;
  margin: 0;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5568;
}

#members .member-social {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem;
}

#members .member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f5f7fa;
  color: #4a5568;
  transition: all 0.3s ease;
}

#members .member-social a:hover {
  background-color: #4a90e2;
  color: white;
  transform: translateY(-3px);
}

#members .text-center.mt-12 {
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

#members .text-center.mt-12 .button {
  padding: 0.85rem 2.5rem;
}

/* 遺言・相続サービス特有のスタイル */
.inheritance-service {
  padding: 5rem 0;
  background-color: #f9fafb;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
    url("https://images.unsplash.com/photo-1589939705384-5185137a7f0f?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.inheritance-service .container {
  max-width: 1200px;
  padding: 0 1.5rem;
}

.inheritance-service h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.inheritance-service h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #1c5f8a, #3498db);
}

.inheritance-service p {
  line-height: 1.7;
  color: #5d6778;
}

/* サービスカード */
.inheritance-service .grid {
  margin-top: 3rem;
  gap: 2rem;
}

.inheritance-service .rounded-lg {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.inheritance-service .rounded-lg:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.inheritance-service .bg-primary {
  background-color: rgba(28, 95, 138, 0.1);
}

.inheritance-service .text-primary {
  color: #1c5f8a;
}

.inheritance-service .bg-gray-50 {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.inheritance-service .rounded-full {
  border-radius: 50%;
}

.inheritance-service .text-white {
  color: #fff;
}

/* 遺言相続セクションの個別設定 */
.inheritance-service [class*="rounded-button"] {
  border-radius: 50px !important;
}

.inheritance-service [class*="hover\:bg-primary-dark"]:hover {
  background-color: #164b6d;
}

/* 料金表スタイル */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.price-table th,
.price-table td {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.price-table th {
  background-color: #f8fafc;
  font-weight: 600;
}

.price-table tr:hover {
  background-color: #f8fafc;
}

.price-value {
  font-weight: 700;
  color: #4a90e2;
}

/* FAQ セクションスタイル */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.faq-item {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
  border-color: rgba(74, 144, 226, 0.3);
  box-shadow: 0 6px 15px rgba(74, 144, 226, 0.1);
}

.faq-question {
  width: 100%;
  background-color: #fff;
  border: none;
  padding: 18px 25px; /* パディングを20px 25pxから調整 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #f8fafc;
}

.faq-item.active .faq-question {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #4a90e2;
}

.faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background-color: rgba(74, 144, 226, 0.1);
  color: #4a90e2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.faq-item.active .faq-icon {
  background-color: #4a90e2;
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 18px 25px; /* パディングを20px 25pxから調整 */
  color: #5d6778;
  line-height: 1.7;
}

.faq-list {
  margin-top: 15px;
  padding-left: 10px;
}

.faq-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.faq-list li:last-child {
  margin-bottom: 0;
}

.faq-list li i {
  color: #4a90e2;
  margin-right: 12px;
  margin-top: 5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .faq-question {
    padding: 18px 20px;
    font-size: 1rem;
  }
  
  .faq-answer-inner {
    padding: 18px 20px;
    font-size: 0.95rem;
  }
  
  .faq-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }
  
  .faq-answer-inner {
    padding: 16px 18px;
  }
}

/* サービス詳細セクション */
.service-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.service-feature-icon {
  flex-shrink: 0;
  margin-right: 1.5rem;
  width: 50px;
  height: 50px;
}

.service-feature-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* プロセスフローセクション */
.process-flow {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
}

.process-line {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #e2e8f0;
  z-index: 1;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  position: relative;
  z-index: 2;
}

.process-step {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.process-step:nth-child(2) {
  animation-delay: 0.1s;
}

.process-step:nth-child(3) {
  animation-delay: 0.2s;
}

.process-step:nth-child(4) {
  animation-delay: 0.3s;
}

.process-step:nth-child(5) {
  animation-delay: 0.4s;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: #4a90e2;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
  z-index: 2;
  margin: 0 auto 18px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.85rem;
}

.step-description {
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.step-meta {
  font-size: 0.9rem;
  color: #718096;
  font-style: italic;
}

/* レスポンシブ調整 */
@media (max-width: 1200px) {
  .process-flow {
    max-width: 1000px;
  }
  
  .process-steps {
    gap: 20px;
  }
  
  .process-step {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 992px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .process-line {
    display: none;
  }
  
  .process-step:nth-child(4),
  .process-step:nth-child(5) {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .process-step {
    padding: 1.25rem;
  }
  
  .step-title {
    font-size: 1.1rem;
  }
  
  .step-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* サービスセクションのレスポンシブ対応 */
@media (max-width: 1024px) {
  .pattern-section#services .pattern-container {
    max-width: 900px;
  }
  
  .pattern-section#services .pattern-grid {
    gap: 1.5rem;
  }
  
  .inheritance-service .container {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .pattern-section#services {
    padding: 3.5rem 0;
  }
  
  .pattern-section#services .pattern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pattern-section#services .pattern-title {
    font-size: 1.8rem;
  }
  
  .inheritance-service {
    padding: 4rem 0;
  }
  
  .inheritance-service h2 {
    font-size: 1.8rem;
  }
  
  .inheritance-service .grid {
    gap: 1.5rem;
  }
  
  .inheritance-service .bg-gray-50 {
    padding: 1.5rem !important;
  }
}

@media (max-width: 640px) {
  .pattern-section#services {
    padding: 3rem 0;
  }
  
  .pattern-section#services .text-center {
    margin-bottom: 2rem;
  }
  
  .pattern-section#services .pattern-grid {
    grid-template-columns: 1fr;
  }
  
  .pattern-section#services .pattern-card {
    padding: 1.5rem;
  }
  
  .pattern-section#services .pattern-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .pattern-section#services .pattern-subtitle {
    font-size: 1.2rem;
  }
  
  .inheritance-service {
    padding: 3rem 0;
  }
  
  .inheritance-service h2 {
    font-size: 1.5rem;
  }
  
  .inheritance-service p {
    font-size: 0.95rem;
  }
}

/* 事務所文化セクション */
#culture.pattern-section.culture-section {
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

#culture.pattern-section.culture-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    z-index: 0;
}

#culture.pattern-section.culture-section .pattern-container {
    position: relative;
    z-index: 1;
    max-width: var(--container-width, 1800px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 1.5rem);
    box-sizing: border-box;
}

#culture.pattern-section.culture-section .culture-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.culture-text {
    padding-right: 2rem;
}

.culture-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    position: relative;
    line-height: 1.2;
}

.culture-title .text-primary {
    color: #1c5f8a;
    position: relative;
    display: inline-block;
}

.culture-title .text-primary::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #1c5f8a, #3498db);
    border-radius: 2px;
}

.culture-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #5d6778;
    margin-bottom: 3rem;
}

.space-y-4 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flex.items-start {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.flex.items-start:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.w-10.h-10.flex.items-center.justify-center.rounded-full.bg-primary.bg-opacity-10.text-primary.flex-shrink-0.mt-1 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(28, 95, 138, 0.1);
    color: #1c5f8a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 1.5rem;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.flex.items-start:hover .w-10.h-10.flex.items-center.justify-center.rounded-full.bg-primary.bg-opacity-10.text-primary.flex-shrink-0.mt-1 {
    background-color: #1c5f8a;
    color: white;
    transform: scale(1.1);
}

.ml-4 {
    flex: 1;
}

.text-lg.font-bold.text-gray-800.mb-1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.text-gray-700 {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5d6778;
}

.md\:w-1\/2 img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.md\:w-1\/2 img:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
    #culture.pattern-section.culture-section {
        padding: 80px 0;
    }

    .culture-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .culture-text {
        padding-right: 0;
        order: 1;
    }

    .culture-title {
        font-size: 2.4rem;
    }

    .md\:w-1\/2 {
        order: 0;
    }
}

@media (max-width: 768px) {
    #culture.pattern-section.culture-section {
        padding: 60px 0;
    }

    .culture-title {
        font-size: 2rem;
    }

    .culture-description {
        font-size: 1.1rem;
    }

    .flex.items-start {
        padding: 1.5rem;
    }

    .w-10.h-10.flex.items-center.justify-center.rounded-full.bg-primary.bg-opacity-10.text-primary.flex-shrink-0.mt-1 {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-right: 1rem;
    }

    .text-lg.font-bold.text-gray-800.mb-1 {
        font-size: 1.2rem;
    }

    .text-gray-700 {
        font-size: 1rem;
    }
}

/* お問い合わせセクション */
.contact-section-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background-color: #fff;
}

/* お問い合わせ左側：情報エリア */
.contact-section-custom .contact-info {
  background-color: #f8fafc;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.contact-section-custom .contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #1c5f8a, #3498db);
}

.contact-section-custom .contact-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.contact-section-custom .contact-info h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #1c5f8a, #3498db);
}

.contact-section-custom .contact-info p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #5d6778;
  margin-bottom: 2rem;
}

.contact-section-custom .contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-section-custom .contact-info ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: #5d6778;
}

.contact-section-custom .contact-info ul li i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(28, 95, 138, 0.1);
  color: #1c5f8a;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-section-custom .contact-info ul li span {
  line-height: 1.5;
  padding-top: 0.5rem;
}

/* お問い合わせ右側：フォームエリア */
.contact-section-custom .contact-form {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* WPFormsのスタイリング */
.contact-section-custom .wpforms-container {
  margin: 0;
}

.contact-section-custom .wpforms-field-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-section-custom .wpforms-required-label {
  color: #e74c3c;
}

.contact-section-custom .wpforms-field {
  margin-bottom: 1.5rem;
}

.contact-section-custom .wpforms-field-medium, 
.contact-section-custom input[type="text"],
.contact-section-custom input[type="email"],
.contact-section-custom input[type="tel"],
.contact-section-custom select,
.contact-section-custom textarea {
  width: 100% !important;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: none;
  background-color: #f8fafc;
}

.contact-section-custom .wpforms-field-medium:focus, 
.contact-section-custom input[type="text"]:focus,
.contact-section-custom input[type="email"]:focus,
.contact-section-custom input[type="tel"]:focus,
.contact-section-custom select:focus,
.contact-section-custom textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
  outline: none;
}

.contact-section-custom .wpforms-submit-container {
  text-align: center;
  margin-top: 1.5rem;
}

.contact-section-custom .wpforms-submit {
  background-color: #1c5f8a !important;
  color: white !important;
  border: none !important;
  padding: 0.85rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  text-align: center !important;
  box-shadow: 0 4px 6px rgba(28, 95, 138, 0.2) !important;
}

.contact-section-custom .wpforms-submit:hover {
  background-color: #164b6d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 8px rgba(28, 95, 138, 0.25) !important;
}

/* チェックボックス・ラジオボタンのスタイリング */
.contact-section-custom .wpforms-field-checkbox ul,
.contact-section-custom .wpforms-field-radio ul {
  padding: 0;
}

.contact-section-custom .wpforms-field-checkbox li,
.contact-section-custom .wpforms-field-radio li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.contact-section-custom .wpforms-field-checkbox input[type="checkbox"],
.contact-section-custom .wpforms-field-radio input[type="radio"] {
  margin-right: 0.5rem;
}

/* エラーメッセージのスタイリング */
.contact-section-custom .wpforms-error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.contact-section-custom .wpforms-field.wpforms-has-error input,
.contact-section-custom .wpforms-field.wpforms-has-error textarea,
.contact-section-custom .wpforms-field.wpforms-has-error select {
  border-color: #e74c3c;
}

/* 確認メッセージのスタイリング */
.contact-section-custom .wpforms-confirmation-container-full {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 1.5rem;
  border-radius: 6px;
  color: #155724;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .contact-section-custom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-section-custom .contact-info,
  .contact-section-custom .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-section-custom {
    padding: 3rem 1rem;
  }
  
  .contact-section-custom .contact-info h3 {
    font-size: 1.5rem;
  }
  
  .contact-section-custom .contact-info p {
    font-size: 1rem;
  }
  
  .contact-section-custom .contact-info ul li {
    font-size: 0.95rem;
  }
  
  .contact-section-custom .contact-info ul li i {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .contact-section-custom .wpforms-submit {
    width: 100% !important;
  }
}

/* 相続サービス詳細セクション
----------------------------------------------- */
.service-detail {
  padding: 60px 0;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.service-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1563986768609-322da13575f3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  z-index: 0;
}

.service-container {
  max-width: var(--container-width, 1800px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 1.5rem);
  position: relative;
  z-index: 1;
}

.service-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.service-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #1c5f8a, #3498db);
}

.service-title-accent {
  color: #4a90e2;
  position: relative;
}

.service-description {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 800px;
}

.service-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 4rem 0;
}

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

.feature-card {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(74, 144, 226, 0.1);
  color: #4a90e2;
  margin-right: 1.25rem;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.feature-card:hover .feature-icon {
  background-color: #4a90e2;
  color: white;
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.service-card {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(74, 144, 226, 0.1);
  color: #4a90e2;
  font-size: 1.75rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background-color: #4a90e2;
  color: white;
  transform: scale(1.1);
}

.service-content {
  flex: 1;
}

.service-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.service-card-description {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .features-grid {
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .service-detail {
    padding: 60px 0;
  }

  .service-title {
    font-size: 1.75rem;
  }

  .service-description {
    font-size: 1rem;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card,
  .service-card {
    padding: 1.5rem;
  }
  
  .feature-icon,
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
  }
}

@media (max-width: 768px) {
  .feature-icon,
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
  }
}

/* 相続料金セクション
----------------------------------------------- */
.price-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  background-image: linear-gradient(to bottom, rgba(248, 249, 250, 0.8), rgba(248, 249, 250, 1));
}

.price-container {
  max-width: var(--container-width, 1800px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 1.5rem);
}

.price-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.price-section .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.price-section .section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #1c5f8a, #3498db);
}

.price-section .section-description {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 600px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

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

.price-section .pricing-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  word-break: break-word;
}

.price-section .pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.price-section .pricing-card.featured {
  transform: scale(1.05);
  position: relative;
  z-index: 1;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: rgba(74, 144, 226, 0.3);
}

.price-section .pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.price-section .pricing-header {
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
}

.price-section .pricing-header.featured {
  background-color: #4a90e2;
  color: white;
  position: relative;
  overflow: hidden;
}

.price-section .pricing-header.basic {
  background-color: rgba(74, 144, 226, 0.08);
  position: relative;
  overflow: hidden;
}

.price-section .pricing-label {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #3570b2;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: 8px;
  z-index: 2;
}

.price-section .plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}

.price-section .plan-price {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}

.price-section .plan-price-note {
  font-size: 0.875rem;
  opacity: 0.8;
  font-weight: normal;
}

.price-section .plan-description {
  font-size: 1rem;
  opacity: 0.9;
  position: relative;
}

.price-section .pricing-features {
  padding: 1.5rem;
  flex-grow: 1;
}

.price-section .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.price-section .feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.price-section .feature-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.price-section .feature-icon.included {
  color: #4a90e2;
}

.price-section .feature-icon.not-included {
  color: #cbd5e0;
}

.price-section .feature-text {
  margin-left: 0.75rem;
  color: #4a5568;
  font-size: 0.95rem;
}

.price-section .feature-text.not-included {
  color: #a0aec0;
}

.price-section .pricing-footer {
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.price-section .pricing-note {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1rem;
}

.price-section .pricing-button {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  text-align: center;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  font-size: 0.95rem;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-section .pricing-button.primary {
  background-color: #4a90e2;
  color: white;
  box-shadow: 0 4px 6px rgba(74, 144, 226, 0.25);
}

.price-section .pricing-button.primary:hover {
  background-color: #357abd;
  box-shadow: 0 6px 8px rgba(74, 144, 226, 0.3);
  transform: translateY(-2px);
}

.price-section .pricing-button.outline {
  border: 2px solid #4a90e2;
  color: #4a90e2;
}

.price-section .pricing-button.outline:hover {
  background-color: #4a90e2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(74, 144, 226, 0.25);
}

.price-section .additional-services {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.price-section .service-category {
  margin-bottom: 2rem;
}

.price-section .category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(74, 144, 226, 0.2);
}

.price-section .service-table {
  width: 100%;
}

.price-section .service-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.price-section .service-name {
  color: #4a5568;
}

.price-section .service-price {
  font-weight: 600;
  color: #2c3e50;
}

.price-section .services-note {
  font-size: 0.875rem;
  color: #718096;
  margin-top: 1.5rem;
  font-style: italic;
}

@media (max-width: 1200px) {
  .price-section .pricing-button {
    font-size: 0.9rem;
    padding: 0.875rem 0.75rem;
  }
}

@media (max-width: 992px) {
  .price-section .pricing-grid {
    gap: 1.5rem;
  }
  
  .price-section .pricing-card {
    max-width: 100%;
  }
  
  .price-section .pricing-button {
    font-size: 0.85rem;
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .price-section {
    padding: 60px 0;
  }

  .price-section .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .price-section .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .price-section .services-grid {
    grid-template-columns: 1fr;
  }
  
  .price-section .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .price-section {
    padding: 40px 0;
  }
  
  .price-section .section-header {
    margin-bottom: 2.5rem;
  }
  
  .price-section .pricing-header {
    padding: 1.5rem 1rem;
  }
  
  .price-section .pricing-features,
  .price-section .pricing-footer {
    padding: 1.25rem 1rem;
  }
  
  .price-section .pricing-button {
    font-size: 0.85rem;
    padding: 0.75rem 0.5rem;
    letter-spacing: -0.01em;
  }
  
  .price-section .feature-text {
    font-size: 0.9rem;
  }
  
  .price-section .additional-services {
    padding: 1.5rem;
  }
}

/* 必要書類セクション
----------------------------------------------- */
.documents-section {
  padding: 60px 0;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.documents-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  z-index: 0;
}

.documents-container {
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 1.5rem);
  position: relative;
  z-index: 1;
}

.documents-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.documents-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.documents-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #1c5f8a, #3498db);
}

.documents-description {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

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

.document-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.document-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.document-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(28, 95, 138, 0.1);
  color: #1c5f8a;
  font-size: 1.5rem;
  margin-right: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.document-card:hover .document-icon {
  background-color: #1c5f8a;
  color: white;
  transform: scale(1.05);
}

.document-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.document-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.document-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

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

.document-check {
  color: #4a90e2;
  font-size: 1.1rem;
  margin-right: 0.75rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.document-text {
  color: #4a5568;
  line-height: 1.5;
}

.documents-notes {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
  position: relative;
}

.documents-notes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #1c5f8a, #3498db);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.notes-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notes-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

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

.notes-icon {
  color: #4a90e2;
  font-size: 1.1rem;
  margin-right: 0.75rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.notes-text {
  color: #4a5568;
  line-height: 1.5;
}

.documents-cta {
  text-align: center;
  margin-top: 3rem;
}

.documents-button {
  display: inline-block;
  background-color: #1c5f8a;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(28, 95, 138, 0.25);
  transition: all 0.3s ease;
}

.documents-button:hover {
  background-color: #164b6d;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(28, 95, 138, 0.3);
}

@media (max-width: 992px) {
  .documents-grid {
    gap: 1.5rem;
  }
  
  .document-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-right: 1rem;
  }
  
  .document-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .documents-section {
    padding: 60px 0;
  }
  
  .documents-title {
    font-size: 1.8rem;
  }
  
  .documents-description {
    font-size: 1rem;
  }
  
  .documents-grid {
    grid-template-columns: 1fr;
  }
  
  .documents-notes {
    padding: 2rem;
  }
  
  .notes-title {
    font-size: 1.3rem;
  }
  
  .documents-button {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }
}

/* 手続きフローセクション
----------------------------------------------- */
.process-flow-section {
  padding: 60px 0;
  background-color: #fff;
  position: relative;
}

.process-flow-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(248, 250, 252, 0.8) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(248, 250, 252, 0.8) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  z-index: 0;
}

.process-container {
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 1.5rem);
  position: relative;
  z-index: 1;
}

.process-header {
  text-align: center;
  margin-bottom: 3rem;
}

.process-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.process-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #1c5f8a, #3498db);
}

.process-description {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

.process-flow {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
}

.process-line {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #e2e8f0;
  z-index: 1;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  position: relative;
  z-index: 2;
}

.process-step {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.process-step:nth-child(2) {
  animation-delay: 0.1s;
}

.process-step:nth-child(3) {
  animation-delay: 0.2s;
}

.process-step:nth-child(4) {
  animation-delay: 0.3s;
}

.process-step:nth-child(5) {
  animation-delay: 0.4s;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: #4a90e2;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
  z-index: 2;
  margin: 0 auto 18px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.85rem;
}

.step-description {
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.step-meta {
  font-size: 0.9rem;
  color: #718096;
  font-style: italic;
}

/* レスポンシブ調整 */
@media (max-width: 1200px) {
  .process-flow {
    max-width: 1000px;
  }
  
  .process-steps {
    gap: 20px;
  }
  
  .process-step {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 992px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .process-line {
    display: none;
  }
  
  .process-step:nth-child(4),
  .process-step:nth-child(5) {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .process-step {
    padding: 1.25rem;
  }
  
  .step-title {
    font-size: 1.1rem;
  }
  
  .step-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* サービス比較セクション */
.service-comparison {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

.comparison-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.comparison-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.comparison-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(74, 144, 226, 0.2);
  text-align: center;
}

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

.feature-item {
  display: flex;
  margin-bottom: 1.25rem;
}

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

.feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #4a90e2;
  margin-top: 0.25rem;
  margin-right: 1rem;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.4rem 0;
}

.feature-description {
  font-size: 0.95rem;
  color: #5d6778;
  line-height: 1.5;
  margin: 0;
}

.section-notice {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 15px 20px;
  color: #5d6778;
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 4px solid #4a90e2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .comparison-item {
    padding: 25px;
  }
  
  .comparison-title {
    font-size: 1.3rem;
  }
  
  .feature-title {
    font-size: 1.05rem;
  }
  
  .feature-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .comparison-item {
    padding: 20px;
  }
  
  .comparison-title {
    font-size: 1.2rem;
  }
  
  .feature-icon {
    margin-right: 0.75rem;
  }
  
  .feature-title {
    font-size: 1rem;
  }
}

/* 遺言書の種類と特徴セクション */
.will-types-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 0; /* パディングを20pxから15pxに減らす */
}

.will-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px; /* 間隔を40pxから30pxに減らす */
  margin-bottom: 25px; /* マージンボトムを30pxから25pxに減らす */
}

.will-type-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px; /* パディングを40pxから30pxに減らす */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.will-type-title {
  font-size: 1.5rem; /* フォントサイズを1.6remから1.5remに減らす */
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem; /* マージンボトムを1.75remから1.5remに減らす */
  padding-bottom: 0.75rem; /* パディングボトムを0.85remから0.75remに減らす */
  border-bottom: 2px solid rgba(74, 144, 226, 0.15);
  text-align: center;
}

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

.will-feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem; /* マージンボトムを1.75remから1.5remに減らす */
}

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

.will-feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-color: rgba(74, 144, 226, 0.1);
  color: #4a90e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
  margin-top: 0.25rem;
}

.will-feature-content {
  flex: 1;
}

.will-feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.will-feature-description {
  font-size: 1rem;
  color: #5d6778;
  line-height: 1.6;
  margin: 0;
}

.will-types-notice {
  background-color: #f8fafc;
  border-radius: 10px;
  padding: 20px 25px;
  color: #5d6778;
  font-size: 0.95rem;
  line-height: 1.6;
  border-left: 4px solid #4a90e2;
  margin-bottom: 30px;
}

/* FAQセクションの調整 */
.faq-section {
  padding: 60px 0 50px; /* 下部のパディングを少し減らす */
}

.faq-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-section .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.faq-section .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #1c5f8a, #3498db);
}

.faq-section .section-description {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

/* FAQコンテナの調整 */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.faq-item {
  margin-bottom: 12px; /* 項目間の余白を少し減らす（16pxから12pxへ） */
}

/* よくある質問ボタンの調整 */
.faq-more-button {
  display: inline-block;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  margin-top: 1.5rem; /* 上部マージンを調整 */
  transition: all 0.3s ease;
  text-decoration: none;
}

.faq-more-button:hover {
  background-color: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

/* 実績事例セクションの調整 */
.case-studies-section {
  padding: 60px 0 50px; /* 下部のパディングを少し減らす */
  background-color: #f8fafc;
}

.case-studies-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.case-studies-section .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.case-studies-section .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #1c5f8a, #3498db);
}

.case-studies-section .section-description {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

/* 実績事例カードの調整 */
.case-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 0; /* 元のマージンを削除し、グリッドのgapに任せる */
}

.case-image {
  height: 200px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.case-content {
  padding: 1.5rem;
}

.case-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.case-description {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.case-meta {
  display: flex;
  align-items: center;
  color: #718096;
  font-size: 0.875rem;
}

.case-meta-item {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.case-meta-icon {
  margin-right: 0.5rem;
  color: #4a90e2;
}

.case-footer {
  padding: 0 1.5rem 1.5rem;
  text-align: right;
}

.case-button {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid #1c5f8a;
  border-radius: 50px;
  color: #1c5f8a;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.case-button:hover {
  background-color: #1c5f8a;
  color: white;
}

/* 実績事例グリッドの調整 */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem; /* グリッド間の間隔を調整 */
  margin-bottom: 2rem;
}

/* サービス料金表の余白調整 */
.service-table .service-row {
  padding: 0.6rem 0; /* 行間のパディングを少し減らす */
}

/* 各セクション間の余白調整（特に複数のテーブルがあるセクション） */
.price-section .pricing-grid {
  margin-bottom: 3rem; /* 料金表グリッドの下マージンを減らす（4remから3remへ） */
}

/* その他の特殊サービステーブルの調整 */
.other-services-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem; /* 上部マージンを調整 */
}

.other-services-table tr {
  border-bottom: 1px solid #e2e8f0;
}

.other-services-table tr td,
.other-services-table tr th {
  padding: 1rem;
  text-align: left;
}

.other-services-table tr td:last-child,
.other-services-table tr th:last-child {
  text-align: right;
}

.other-services-table tr th {
  font-weight: 600;
  color: #2c3e50;
  background-color: #f8fafc;
}

.service-price-value {
  font-weight: 700;
  color: #1c5f8a;
  white-space: nowrap;
}

/* 全体のバランス調整 */
/* 全ての見出しやテキストの余白を統一化 */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

p {
  margin-top: 0;
}

/* 余白の統一 */
.pattern-section,
.service-detail,
.price-section,
.documents-section,
.process-flow-section,
.faq-section,
.case-studies-section {
  padding: 60px 0;
}

.pattern-section .pattern-container,
.service-container,
.price-container,
.documents-container,
.process-container {
  padding: 0 1.5rem;
}

/* 見出し下の装飾線の位置調整 */
.pattern-section .pattern-title::after,
.service-title::after,
.documents-title::after,
.process-title::after,
.price-section .section-title::after,
.faq-section .section-title::after,
.case-studies-section .section-title::after {
  bottom: -8px;
}

/* ホバーエフェクトの統一 */
.pattern-card:hover,
.service-card:hover,
.feature-card:hover,
.document-card:hover,
.process-step:hover,
.pricing-card:hover,
.faq-item:hover,
.case-card:hover,
.will-type-card:hover,
.comparison-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ボタンスタイルの統一 */
.button,
.documents-button,
.pricing-button,
.case-button,
.faq-more-button {
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* 各セクションの共通調整 - セクションタイトル周りの余白調整 */
.pattern-section .pattern-title,
.service-title,
.documents-title,
.process-title,
.price-section .section-title,
.faq-section .section-title,
.case-studies-section .section-title {
  margin-top: 0.5rem;
}

.pattern-section .pattern-description,
.service-description,
.documents-description,
.process-description,
.price-section .section-description,
.faq-section .section-description,
.case-studies-section .section-description {
  margin-top: 1rem;
}

/* レスポンシブ調整の統一 */
@media (max-width: 992px) {
  .will-types-grid {
    gap: 25px;
  }
  
  .will-type-card {
    padding: 25px;
  }
  
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pattern-section,
  .service-detail,
  .price-section,
  .documents-section,
  .process-flow-section,
  .faq-section,
  .case-studies-section {
    padding: 40px 0;
  }
  
  .will-types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  h2, .section-title {
    font-size: 1.75rem;
  }
  
  .will-type-title {
    font-size: 1.4rem;
  }
  
  .case-title {
    font-size: 1.15rem;
  }
  
  .case-description {
    font-size: 0.9rem;
  }
  
  .case-content {
    padding: 1.25rem;
  }
  
  .case-footer {
    padding: 0 1.25rem 1.25rem;
  }
  
  .faq-section .section-title,
  .case-studies-section .section-title,
  .price-section .section-title,
  .documents-title,
  .process-title {
    font-size: 1.75rem;
  }
  
  .faq-section .section-description,
  .case-studies-section .section-description,
  .price-section .section-description,
  .documents-description,
  .process-description {
    font-size: 1rem;
  }
  
  .faq-section .section-header,
  .case-studies-section .section-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .other-services-table tr td,
  .other-services-table tr th {
    padding: 0.85rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .pattern-section,
  .service-detail,
  .price-section,
  .documents-section,
  .process-flow-section,
  .faq-section,
  .case-studies-section {
    padding: 30px 0;
  }
  
  .will-type-card {
    padding: 20px;
  }
  
  .will-type-title {
    font-size: 1.3rem;
  }
  
  .faq-section .section-title,
  .case-studies-section .section-title {
    font-size: 1.5rem;
  }
}

/* 実績詳細へのリンクボタン */
.all-cases-button {
  display: inline-block;
  background-color: #1c5f8a;
  color: white;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(28, 95, 138, 0.25);
  transition: all 0.3s ease;
  margin-top: 1.5rem; /* 上部マージンを調整 */
}

.all-cases-button:hover {
  background-color: #164b6d;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(28, 95, 138, 0.3);
}

/* よくある質問ボタン配置を調整 */
.faq-more-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

/* 全体の微調整 */
/* 各セクション間の自然な流れを作る */
.pattern-section + .pattern-section {
  padding-top: 50px; /* 連続するパターンセクション間の余白を少し減らす */
}

/* ボタン周りの余白統一 */
.section-buttons,
.cta-buttons {
  margin-top: 2rem;
  text-align: center;
}

/* マウスオーバー時の遷移速度調整 */
.pattern-card,
.service-card,
.feature-card,
.document-card,
.process-step,
.pricing-card,
.faq-item,
.case-card,
.will-type-card,
.comparison-item,
.button,
.documents-button,
.pricing-button,
.case-button,
.faq-more-button,
.all-cases-button {
  transition: all 0.25s ease; /* 0.3sから0.25sに少し早く */
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .case-studies-grid {
    gap: 1.25rem; /* グリッド間隔を少し縮める */
  }
  
  .faq-question,
  .faq-answer-inner {
    padding: 16px 20px; /* さらにパディングを減らす */
  }
  
  .all-cases-button,
  .faq-more-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .faq-question,
  .faq-answer-inner {
    padding: 14px 18px; /* さらに小さい画面ではもっとパディングを減らす */
  }
  
  .faq-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }
  
  .all-cases-button,
  .faq-more-button {
    width: 100%; /* 小さい画面では横幅いっぱいに */
    text-align: center;
  }
}

/* モバイル表示の改善 */
@media (max-width: 768px) {
  /* ヒーローセクション */
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .pattern-section.hero-section .pattern-container {
    padding: 1rem;
    flex-direction: column;
  }
  
  .pattern-section.hero-section .pattern-content {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .pattern-section.hero-section .pattern-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .pattern-section.hero-section .pattern-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* ボタン配置の改善 */
  .pattern-section.hero-section .pattern-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 1rem;
  }
  
  /* ボタンスタイルの改善 */
  .pattern-buttons .button {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    margin: 0;
  }
  
  /* ヒーローセクション内のボタンスタイル */
  .pattern-section.hero-section .button-outline,
  .inheritance-hero-section .button-outline {
    border: 2px solid white;
    color: white !important;
    background-color: transparent;
  }
  
  .pattern-section.hero-section .button-outline:hover,
  .inheritance-hero-section .button-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
  }
  
  .button-primary,
  .button-outline {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .button-primary:hover,
  .button-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }
  
  /* サービスセクションの改善 */
  .pattern-section#services {
    padding: 2rem 0;
  }
  
  .pattern-section#services .pattern-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pattern-section#services .pattern-card {
    padding: 1.5rem;
  }
  
  /* メンバーセクションの改善 - モバイル */
  #members .pattern-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 450px;
    margin: 0 auto;
  }
  
  #members .pattern-card.member-card {
    max-width: 100%;
  }
  
  #members .member-image {
    height: 250px;
  }
  
  #members .member-image img {
    height: 250px;
  }
  
  /* inheritance-hero-section - モバイル調整 */
  .inheritance-hero-section {
    min-height: 500px;
  }
  
  .inheritance-hero-section .pattern-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .inheritance-hero-section .pattern-title-accent {
    margin-top: 0.3rem;
    padding: 0.1em 0.3em;
  }
  
  .inheritance-hero-section .pattern-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
  }
  
  .inheritance-hero-section .pattern-buttons {
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* さらに小さいスクリーン用 */
  .hero-section {
    padding: 3rem 0;
  }
  
  .pattern-section.hero-section .pattern-title {
    font-size: 1.5rem;
  }
  
  .pattern-section.hero-section .pattern-description {
    font-size: 0.9rem;
  }
  
  .pattern-buttons .button {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
  
  /* メンバーセクション - さらに小さい画面 */
  #members .member-image {
    height: 220px;
  }
  
  #members .member-image img {
    height: 220px;
  }
  
  #members .member-info h3 {
    font-size: 1.1rem;
  }
  
  #members .member-position {
    font-size: 0.9rem;
  }
  
  #members .pattern-card.member-card p {
    font-size: 0.9rem;
    padding: 1.25rem;
  }
  
  #members .member-social {
    padding: 0 1.25rem 1.25rem;
  }
  
  #members .member-social a {
    width: 35px;
    height: 35px;
  }
  
  /* inheritance-hero-section - 小さい画面 */
  .inheritance-hero-section {
    min-height: 450px;
  }
  
  .inheritance-hero-section .pattern-title {
    font-size: 1.75rem;
  }
  
  .inheritance-hero-section .pattern-description {
    font-size: 0.9rem;
  }
}

/* グローバルなボタンスタイルの改善 - 全体対応 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.button-primary {
  background-color: #4a90e2;
  color: white;
  border: none;
}

.button-primary:hover {
  background-color: #3a7bc8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button-outline {
  border: 2px solid #4a90e2;
  color: #4a90e2;
  background: transparent;
}

.button-outline:hover {
  background-color: #4a90e2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ボタンアイコンの位置調整 */
.button i {
  margin-right: 0.5rem;
  font-size: 1.1em;
}

/* CTAボタンの改善 */
.cta-button,
.wp-block-button__link,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  background-color: #4a90e2;
  color: white !important;
}

.cta-button:hover,
.wp-block-button__link:hover,
.btn-primary:hover,
.btn-secondary:hover {
  background-color: #3a7bc8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .cta-button,
  .wp-block-button__link,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    margin: 0.5rem auto;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* カスタムスタイルここまで */