@import url("https://unpkg.com/aos@2.3.1/dist/aos.css");
@import url("https://cdn.jsdelivr.net/npm/tailwindcss@3.4.0/dist/tailwind.min.css");

/* Global Styles */
:root {
  --orange-500: #f97316; --orange-600: #ea580c; --orange-100: #ffedd5;
  --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-600: #4b5563; --gray-800: #1f2937; --gray-900: #111827; --white: #ffffff;
  --green-500: #22c55e;
  --blue-500: #3b82f6; --blue-600: #2563eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

*, *::before, *::after {
  box-sizing: inherit;
}

body { 
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, Verdana, Meiryo, sans-serif;
  color: var(--gray-800); 
  line-height: 1.6; 
  background-color: var(--white); 
  margin: 0; 
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.min-h-screen { min-height: 100vh; }
.flex-grow { flex-grow: 1; }

/* Header */
header { 
  background-color: var(--white); 
  color: var(--gray-800); 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}
header .container { display: flex; align-items: center; justify-content: space-between; height: 90px; }
header a { color: inherit; text-decoration: none; }
.logo { 
  display: flex; 
  align-items: center;
}
.logo img { 
  height: 80px;
  width: auto; 
}

.header-right-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav.desktop-nav {
  display: flex;
}
nav.desktop-nav a { 
  padding: 0.5rem 1rem; 
  font-size: 1rem; 
  font-weight: 600;
  border-radius: 6px; 
  transition: background-color 0.2s, color 0.2s; 
}
nav.desktop-nav a:hover { background-color: var(--gray-100); color: var(--orange-600); }
nav.desktop-nav a.active { font-weight: 700; color: var(--orange-500); }

/* ドロップダウンメニュー */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 6px;
  z-index: 1000;
  border: 1px solid var(--gray-200);
  padding: 0.5rem 0;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-800);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.dropdown-content a:hover {
  background-color: var(--orange-100);
  color: var(--orange-600);
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

.header-buttons { display: flex; align-items: center; gap: 0.75rem; }

.header-buttons .btn {
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  gap: 0.5rem;
}

.header-buttons .btn svg {
  width: 20px;
  height: 20px;
}

/* モバイルメニューボタン - 改善版 */
.menu-button { 
  display: none; 
  background: none; 
  border: none; 
  color: var(--gray-800); 
  cursor: pointer;
  padding: 12px;
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.menu-button:hover {
  background-color: var(--gray-100);
}

.menu-button:focus {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

/* ハンバーガーアイコン */
.menu-button span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--gray-800);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-button.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Nav - 改善版 */
nav.mobile-nav { 
  display: none; 
  background-color: var(--white); 
  padding: 1rem; 
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
}

nav.mobile-nav.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav.mobile-nav a { 
  display: block; 
  padding: 1rem 1.5rem; 
  color: var(--gray-800); 
  text-decoration: none; 
  border-radius: 8px; 
  font-weight: 500;
  margin-bottom: 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

nav.mobile-nav a:hover { 
  background-color: var(--orange-100); 
  color: var(--orange-600); 
}

nav.mobile-nav a.active {
  background-color: var(--orange-500);
  color: var(--white);
  font-weight: 600;
}

/* モバイル用お問い合わせボタン */
.mobile-cta-button {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.mobile-cta-button .btn {
  width: 100%;
  justify-content: center;
  min-height: 44px;
  background-color: var(--gray-800);
  color: var(--white);
  border: 2px solid transparent;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
}

.mobile-cta-button .btn:hover {
  background-color: var(--gray-900);
  transform: translateY(-1px);
}

.mobile-cta-button .btn.active {
  background-color: var(--gray-700);
}

/* --- Component: Buttons --- */
.btn {
    display: inline-block; text-decoration: none; font-weight: 700; border-radius: 8px; padding: 0.8rem 2.5rem; font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 2px solid transparent;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
.btn-primary { background-color: var(--orange-500); color: var(--white); }
.btn-primary:hover { background-color: var(--orange-600); }
.btn-light { background-color: var(--white); color: var(--orange-600); }
.btn-light:hover { background-color: var(--gray-50); }
.btn-sm { 
  font-size: 0.875rem; 
  padding: 0.6rem 1.2rem; 
  box-shadow: none; 
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-sm svg {
    width: 18px;
    height: 18px;
}
.btn-dark { background-color: var(--gray-900); color: var(--white); }
.btn-dark:hover { background-color: var(--gray-800); }
.btn-dark.active {
    background-color: var(--gray-600);
    cursor: default;
}
.btn-outline { border-color: var(--gray-200); background-color: var(--white); color: var(--gray-800); }
.btn-outline:hover { background-color: var(--gray-50); }
.btn-block { display: block; width: 100%; }

.btn-outline-primary { 
  background-color: transparent; 
  color: var(--orange-600); 
  border: 2px solid var(--orange-500);
}
.btn-outline-primary:hover { 
  background-color: var(--orange-500); 
  color: var(--white);
  border-color: var(--orange-500);
}

/* --- Page-specific sections --- */
/* Hero Section (index.html) */
.hero { 
  background-color: var(--orange-100); 
  color: var(--gray-800); 
  padding: 4rem 1rem; 
  text-align: left; 
  position: relative; 
  overflow: hidden;
}

.hero .container { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 2rem; 
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-text { 
  flex: 1; 
  margin-right: 0;
  padding-right: 0;
  max-width: 600px;
  text-align: left;
}

.hero h1 { font-size: 2.8rem; font-weight: 800; margin: 0; line-height: 1.3; }
.hero .subtitle { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--orange-600); }
.hero p { font-size: 1.125rem; margin: 1.5rem 0 0; }
.hero-cta { margin-top: 2.5rem; }
.hero-character { 
  flex-shrink: 0; 
  width: 380px; 
  height: auto; 
  max-width: none;
  margin-left: 0;
}

/* Generic Content Sections */
.content-section { padding: 5rem 1rem; }
.content-section h2 { font-size: 2.5rem; font-weight: 800; text-align: center; margin-bottom: 3rem; }
.content-section .section-subtitle { text-align: center; font-size: 1.125rem; color: var(--gray-600); max-width: 800px; margin: -2rem auto 3rem; }

/* Problem Section (index.html) */
.problem-section { background-color: var(--gray-50); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.problem-card { background-color: var(--white); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow-md); text-align: center; }
.problem-card .icon { 
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
  background-color: var(--orange-100); color: var(--orange-500); border-radius: 50%; margin-bottom: 1.5rem;
}
.problem-card .icon svg { width: 32px; height: 32px; }
.problem-card h3 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.problem-card p { color: var(--gray-600); }

/* Solution Section (index.html) */
.solution-section { display: flex; align-items: center; gap: 3rem; max-width: 1200px; margin: 0 auto; }
.solution-image { flex: 1; }
.solution-image img { max-width: 100%; border-radius: 8px; }
.solution-text { flex: 1; }
.solution-text h3 { font-size: 1.75rem; color: var(--orange-600); }
.solution-text p { margin-bottom: 1rem; }

/* Service & Case Promo Section (index.html) */
.service-case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.promo-card { background: var(--gray-50); padding: 2rem; border-radius: 8px; }
.promo-card h3 { font-size: 1.75rem; margin-top: 0; }
.promo-card p { margin-bottom: 1.5rem; }

/* CTA Section (shared) */
.cta-section { background-color: var(--orange-100); text-align: center; padding: 5rem 1rem; }
.cta-section h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 2rem; }
.cta-section p { font-size: 1.125rem; color: var(--gray-600); max-width: 800px; margin: 0 auto 3rem; line-height: 1.7; }

/* Footer */
footer {
  background-color: var(--gray-900);
  color: var(--gray-100);
  padding: 3rem 1rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 0.0001fr 0.0001fr 0.0001fr 1fr 0.6fr 1fr;
  gap: 0;
  margin-bottom: 2rem;
}

.footer-company {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.footer-company-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
}

.footer-company-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.footer-right {
  display: contents;
}

.footer-services, .footer-site-links, .footer-social {
  gap: 0.5rem;
}

.footer-services h4 {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
}

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

.footer-services ul li {
  margin-bottom: 1rem;
}

.footer-services ul li a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  display: block;
}

.footer-services ul li a:hover {
  color: var(--orange-500);
}

.footer-site-links h4 {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
}

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

.footer-site-links ul li {
  margin-bottom: 1rem;
}

.footer-site-links ul li a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  display: block;
}

.footer-site-links ul li a:hover {
  color: var(--orange-500);
}

.footer-social h4 {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-300);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
}

.social-link:hover {
  color: var(--orange-500);
  transform: translateX(5px);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* CTA バナー（ページ下部） */
.bottom-cta-banner {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  padding: 3rem 1rem;
  text-align: center;
  margin-top: 4rem;
}

.bottom-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.bottom-cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.bottom-cta-banner p {
  font-size: 1.125rem;
  margin: 0 0 2rem;
  opacity: 0.95;
}

.bottom-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.bottom-cta-buttons .btn {
  background-color: var(--white);
  color: var(--orange-600);
  border: 2px solid var(--white);
}

.bottom-cta-buttons .btn:hover {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.bottom-cta-buttons .btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.bottom-cta-buttons .btn-outline-white:hover {
  background-color: var(--white);
  color: var(--orange-600);
}

/* --- Styles for sub-pages --- */
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }

.page-header { padding: 4rem 1rem; text-align: center; background-color: var(--white); border-bottom: 1px solid var(--gray-200); }
.page-header h1 { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); margin: 0; }
.page-header p { font-size: 1.125rem; color: var(--gray-600); margin-top: 0.5rem; max-width: 800px; margin-left:auto; margin-right:auto; }

/* About Page specifics */
.content-section .container.narrow { max-width: 1000px; }

/* ミッション・ビジョンセクション */
.vision-mission { 
  background-color: var(--white); 
  text-align: left; 
  padding: 4rem 1rem; 
  border-bottom: 1px solid var(--gray-200);
}
.mission-section,
.message-section {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 4rem;
  padding-top: 1rem;
}
.message-section {
  padding-top: 3rem;
}
.section-label-large {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--orange-500);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
.section-number {
  position: absolute;
  left: 0;
  top: 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange-500);
  letter-spacing: 0.1em;
  line-height: 1;
  width: 3rem;
}
.section-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  line-height: 1;
}
.mission-section h2 { 
  font-size: 2rem; 
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

/* 代表者紹介 */
.representative { 
  display: flex; 
  flex-direction: column; 
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}
.representative-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  margin-bottom: 0;
}
.representative-message {
  flex: 2;
  padding-right: 2rem;
  text-align: left;
}
.representative-message h3 {
  font-size: 1.75rem;
  margin: 0 0 2rem;
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.4;
}
.representative-message p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}
.representative-photo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.representative-img { 
  width: 100%; 
  height: auto; 
  aspect-ratio: 3/4;
  object-fit: cover; 
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 1rem;
}
.representative-name {
  text-align: center;
  width: 100%;
}
.name-title {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}
.name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}
.name-en {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* 代表経歴セクション */
.representative-profile-section {
  background-color: var(--gray-50);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.representative-profile-section h4 {
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  color: var(--gray-900);
  font-weight: 600;
}
.profile-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-content li {
  margin-bottom: 1rem;
  padding-left: 1rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
}
.profile-content li:before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--orange-500);
  font-weight: 600;
}

.representative-text h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.representative-text .title { color: var(--gray-600); margin-bottom: 1.5rem; }
.representative-story p { margin-bottom: 1rem; }

/* Service Page specifics */
.grid { display: grid; gap: 2rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.service-card { background-color: var(--white); border-radius: 8px; box-shadow: var(--shadow-md); overflow: hidden; display: flex; flex-direction: column; }
.service-card-header { padding: 1.5rem; background-color: var(--orange-500); color: var(--white); }
.service-card-header h3 { margin: 0; font-size: 1.5rem; }
.service-card-header .price { font-size: 1.1rem; opacity: 0.9; }
.service-card-body { padding: 1.5rem; flex-grow: 1; }
.service-card-body h4 { font-size: 1.1rem; color: var(--orange-600); margin-top: 0; margin-bottom: 0.5rem; }
.service-card-body p { margin: 0 0 1rem; }
.service-card-body ul { list-style: none; padding: 0; margin: 0; }
.service-card-body ul li { display: flex; align-items: start; gap: 0.5rem; margin-bottom: 0.5rem; }
.service-card-body ul li svg { flex-shrink: 0; margin-top: 4px; color: var(--orange-500); }
.comparison-table { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-md); }
.comparison-table table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 1rem; text-align: center; border: 1px solid var(--gray-200); }
.comparison-table th { background: var(--gray-100); }
.comparison-table td:first-child { text-align: left; font-weight: 600; }
.comparison-table .check { color: var(--orange-500); font-weight: bold; }
.download-section { background: linear-gradient(to right, var(--orange-500), var(--orange-600)); color: white; padding: 4rem 1rem; text-align: center; border-radius: 8px; }
.download-section h2 { font-size: 2rem; margin: 0 0 1rem; }
.download-section p { max-width: 600px; margin: 0 auto 1.5rem; opacity: 0.9; }
.training-section { background-color: white; padding: 3rem; border-radius: 8px; }
.training-step { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.training-step-number { background-color: var(--orange-100); color: var(--orange-600); font-weight: 700; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.training-step-content h4 { margin: 0 0 0.25rem; }

/* Case Page specifics */
.case-card { background-color: var(--white); border-radius: 8px; box-shadow: var(--shadow-md); margin-bottom: 3rem; overflow: hidden; }
.case-card-inner { padding: 2.5rem; }
.case-title { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); margin: 0 0 0.5rem; }
.case-client { color: var(--gray-600); margin-bottom: 2rem; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.case-section h4 { font-size: 1.1rem; color: var(--orange-600); border-left: 3px solid var(--orange-500); padding-left: 0.75rem; margin-bottom: 0.75rem; }
.case-section p, .case-section ul { color: var(--gray-800); }
.case-section ul { list-style-position: inside; padding-left: 0.5rem; }
.case-results { background-color: var(--orange-50); border-top: 1px solid var(--orange-100); padding: 2rem 2.5rem; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; text-align: center; }
.result-item .value { font-size: 2.25rem; font-weight: 800; color: var(--orange-600); }
.result-item .label { color: var(--gray-600); }

/* New Case Study Card Styles */
.case-study-card {
    display: block !important;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 400px;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}
.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--gray-100);
    display: block !important;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block !important;
}
.case-study-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}
.card-content {
    padding: 1.5rem;
    min-height: 200px;
    display: block !important;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}
.card-category {
    background-color: var(--orange-100);
    color: var(--orange-600);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
}
.card-date {
    color: var(--gray-600);
}
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    color: var(--gray-900);
    display: block !important;
}
.card-summary {
    font-size: 1rem;
    color: var(--gray-800);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(1.6em * 4); /* 4行分の高さを固定 */
    margin-bottom: 1rem;
}

/* Case Studies Grid Responsive */
#case-studies-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important; /* ホバー効果用のスペースを増加 */
}

/* Desktop specific rules */
@media (min-width: 769px) {
    #case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
        gap: 2rem !important;
        margin-bottom: 2rem !important; /* ホバー効果用のスペースを増加 */
    }
}

/* Tablet specific rules */
@media (min-width: 481px) and (max-width: 768px) {
    #case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 1.5rem !important;
        margin-bottom: 3rem !important; /* タブレットで十分なスペースを確保 */
    }
}

/* Mobile specific rules */
@media (max-width: 480px) {
    #case-studies-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 4rem !important; /* モバイルで通常時の重なりを防ぐため大幅に増加 */
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-image-wrapper {
        height: 160px;
    }
    
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Legacy responsive adjustments - keep for compatibility */
@media (max-width: 768px) {
    .case-study-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-summary {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        height: calc(1.6em * 3);
    }
}

/* Contact Page specifics */
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }
.contact-card { background-color: var(--white); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow-md); text-align: center; }
.contact-card h3 { margin-top: 0; font-size: 1.5rem; color: var(--gray-900); }
.contact-card p { margin-bottom: 1.5rem; }
.contact-button { text-decoration: none; padding: 0.75rem 1.5rem; border-radius: 6px; font-weight: 600; color: var(--white); display: inline-flex; align-items: center; gap: 0.5rem; transition: opacity 0.2s; }
.contact-button.line { background-color: var(--green-500); }
.contact-button.email { background-color: var(--gray-800); }
.contact-button:hover { opacity: 0.9; }
.contact-form-section { background-color: var(--white); padding: 3rem; border-radius: 8px; margin-top: 4rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.contact-form-section h2 { text-align: center; margin-top: 0; font-size: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem; border: 1px solid var(--gray-200); border-radius: 6px; font-size: 1rem; box-sizing: border-box; }
.form-group select { 
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.form-group select:focus {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
  border-color: var(--orange-500);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500 !important;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin: 0;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.checkbox-label a {
  color: var(--orange-600);
  text-decoration: underline;
}
.checkbox-label a:hover {
  color: var(--orange-700);
}
.faq-section { max-width: 900px; margin: 4rem auto 0; }
.faq-section h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
.faq-item { background: white; padding: 1.5rem; border-radius: 8px; margin-bottom: 1rem; }
.faq-item h4 { margin: 0 0 0.5rem; color: var(--orange-600); }

/* Legal Pages (Privacy, Tokutei) specifics */
.legal-content { max-width: 900px; margin: 0 auto; }
.legal-content h2 { font-size: 1.75rem; color: var(--gray-900); border-bottom: 2px solid var(--orange-100); padding-bottom: 0.5rem; margin-top: 2.5rem; margin-bottom: 1.5rem; }
.legal-content p, .legal-content ul { margin-bottom: 1.5rem; }
.legal-content ul { list-style-position: outside; padding-left: 1.5rem; }
.legal-content li { margin-bottom: 0.75rem; }
.legal-table-container { max-width: 900px; margin: 0 auto; background-color: white; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { text-align: left; padding: 1.25rem; border-bottom: 1px solid var(--gray-200); }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: none; }
.legal-table th { width: 30%; background-color: #f9fafb; font-weight: 600; }

/* --- Component: Modal --- */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-content {
  background-color: var(--white); padding: 2.5rem; border-radius: 8px; box-shadow: var(--shadow-lg);
  width: 90%; max-width: 600px; position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-content h3 { margin-top: 0; font-size: 1.75rem; text-align: center; margin-bottom: 0.5rem; }
.modal-content p { text-align: center; margin-bottom: 2rem; color: var(--gray-600); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  font-size: 2rem; color: var(--gray-600); cursor: pointer; line-height: 1;
}

/* Responsive */
@media (min-width: 768px) {
  .md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .problem-grid { grid-template-columns: 1fr; }
  .solution-section { flex-direction: column; }
  .service-case-grid { grid-template-columns: 1fr; }
  .header-right-panel { display: none; }
  
  /* サービス詳細ページのレスポンシブ対応 */
  .grid[style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  nav.desktop-nav { display: none; }
  .menu-button { display: block; }
  .hero { 
    text-align: center; 
    padding: 4rem 1rem; 
  }
  .hero .container { 
    flex-direction: column; 
    gap: 3rem; 
    padding: 0 1rem;
    text-align: center;
  }
  .hero-text { 
    max-width: 100%; 
    padding: 0;
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }
  .hero h1 { 
    font-size: 2.5rem; 
    text-align: center;
  }
  .hero .subtitle { 
    font-size: 1.25rem; 
    text-align: center;
  }
  .hero p {
    text-align: center;
  }
  .hero-character { width: 250px; max-width: 80%; }
  .representative { flex-direction: column; }
  .representative-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .representative-photo {
    order: -1;
  }
  .representative-img {
    width: 150px;
    height: 150px;
  }
  .contact-options { grid-template-columns: 1fr; }
  .legal-table th { width: 40%; }
  
  /* 新しいレスポンシブ対応 */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-company {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .social-links {
    align-items: center;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-button {
    bottom: 1rem;
    right: 1rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.875rem;
    max-width: 200px;
  }
  
  .bottom-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .bottom-cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
  }
  
  .bottom-cta-banner h2 {
    font-size: 1.75rem;
  }
  .mission-section,
  .message-section {
    padding-left: 0;
    padding-top: 0;
  }
  .section-label-large {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
  }
  .section-number {
    position: static;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  .mission-section h2 {
    text-align: center;
  }
  .representative-content {
    flex-direction: column;
  }
  .representative-message {
    order: 2;
  }
  .representative-img {
    max-width: 200px;
  }
  .representative-profile-section {
    padding: 2rem 1rem;
    margin-top: 2rem;
  }
}

/* モバイルナビゲーション - 600px以下でハンバーガーボタンを表示 */
@media (max-width: 600px) {
  nav.desktop-nav { display: none; }
  .menu-button { 
    display: flex; 
  }
  .header-buttons { display: none; }
}

/* 小さいモバイル対応 (320px - 480px) */
@media (max-width: 480px) {
  /* ヘッダー */
  header .container { 
    height: 60px; 
    padding: 0 0.5rem; /* より小さいパディング */
  }
  
  .logo img { 
    height: 40px; /* より小さく */
  }
  
  /* ハンバーガーボタンの調整 */
  .menu-button {
    margin-right: -12px; /* より大きくマイナスマージン */
    padding: 8px; /* パディングを小さく */
    min-width: 40px;
    min-height: 40px;
  }
  
  .menu-button span {
    width: 20px; /* アイコンサイズを小さく */
    height: 2px;
  }

  /* ヒーロー */
  .hero { 
    padding: 2rem 0.5rem !important; 
    text-align: center !important;
    margin: 0 !important;
  }
  .hero .container {
    padding: 0 0.5rem !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero-text {
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero h1 { 
    font-size: 1.8rem; 
    text-align: center !important;
    margin: 0 auto;
    width: 100%;
  }
  .hero .subtitle { 
    font-size: 1rem; 
    text-align: center !important;
    margin: 0 auto 0.5rem;
    width: 100%;
  }
  .hero p {
    text-align: center !important;
    margin: 1.5rem auto 0;
    width: 100%;
  }
  .hero-cta {
    text-align: center !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .hero-character { width: 180px; }

  /* コンテンツ */
  .content-section { padding: 2.5rem 0.75rem; }
  .content-section h2 { font-size: 1.75rem; }
  
  .problem-card { padding: 1.25rem; }
  
  /* ボタン */
  .btn { 
    padding: 0.7rem 1.5rem; 
    font-size: 1rem;
  }
  
  /* 下部CTAボタンの修正 */
  .bottom-cta-banner {
    padding: 2rem 0.5rem; /* より小さいパディング */
  }
  
  .bottom-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem; /* より小さいパディング */
  }
  
  .bottom-cta-buttons .btn {
    width: 100%;
    max-width: 260px; /* より小さい最大幅 */
    font-size: 0.9rem; /* より小さいフォント */
    padding: 0.6rem 1rem; /* より小さいパディング */
  }

  /* フォーム */
  .form-group input, .form-group textarea { 
    padding: 0.875rem; 
    font-size: 1rem;
  }
}

/* 超小型デバイス対応 (320px以下) */
@media (max-width: 320px) {
  .hero { 
    padding: 1.5rem 0.5rem !important;
    margin: 0 !important;
  }
  .hero .container {
    padding: 0 0.5rem !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero-text {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero h1 { 
    font-size: 1.6rem; 
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero .subtitle {
    padding: 0 !important;
    margin: 0 auto 0.5rem !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero p {
    padding: 0 !important;
    margin: 1rem auto 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero-cta {
    padding: 0 !important;
    margin: 1.5rem auto 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .content-section h2 { font-size: 1.5rem; }
  .hero-character { width: 150px; }
}

/* Case Study Card Tags */
.card-tags {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
}

.case-tag {
    background-color: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.case-tag:hover {
    background-color: var(--orange-100);
    color: var(--orange-700);
}

.case-tag-more {
    background-color: var(--gray-200);
    color: var(--gray-600);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Tag Filter Styles */
.tag-filter-section-wrapper {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 2rem 0;
}

.tag-filter-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-button {
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-button:hover {
    background-color: var(--orange-50);
    border-color: var(--orange-300);
    color: var(--orange-700);
}

.tag-button.active {
    background-color: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--white);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 5rem;
    padding: 2rem 0;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    color: var(--gray-700);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.pagination-btn.active {
    background-color: var(--orange-500);
    color: var(--white);
    border-color: var(--orange-500);
}

.pagination-btn.active:hover {
    background-color: var(--orange-600);
    border-color: var(--orange-600);
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Article Page Tags (for individual case study pages) */
.article-tag {
    background-color: var(--gray-100);
    color: var(--gray-700);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-tag:hover {
    background-color: var(--orange-100);
    color: var(--orange-700);
    text-decoration: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .tag-buttons {
        gap: 0.5rem;
    }
    
    .tag-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .pagination-container {
        gap: 0.25rem;
        padding: 1.5rem 0;
        margin-top: 1rem; /* モバイルでの重なりを完全に防ぐため大幅に削減 */
    }
    
    .pagination-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    .card-tags {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .case-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* お客様の声セクション */
.testimonials-section {
  background-color: var(--white);
  padding: 5rem 1rem;
}

.testimonials-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-900);
}

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

.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--orange-500);
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--orange-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.testimonial-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  color: var(--gray-900);
}

.testimonial-info p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* フローティングボタン */
.floating-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--orange-500);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1000;
  transition: all 0.3s ease;
  max-width: 250px;
}

.floating-button:hover {
  background-color: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.floating-button.hidden {
  display: none;
}

.floating-button-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0;
  line-height: 1;
}

/* Company Profile Section */
.company-profile {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.company-profile h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 2rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--orange-100);
}

.profile-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.profile-table th {
  background-color: var(--gray-50);
  color: var(--gray-800);
  font-weight: 600;
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  vertical-align: top;
  width: 25%;
  border-bottom: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
}

.profile-table td {
  padding: 1.25rem 1.5rem;
  color: var(--gray-800);
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

.profile-table tr:last-child th,
.profile-table tr:last-child td {
  border-bottom: none;
}

.profile-table tr:hover {
  background-color: var(--orange-50);
}

.company-profile h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 2rem 0 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--orange-500);
}

/* Access Map Section */
.access-map-container {
  background-color: var(--gray-50);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.access-map-container iframe {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* Responsive adjustments for company profile */
@media (max-width: 768px) {
  .company-profile {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .profile-table th {
    width: 35%;
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .profile-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .company-profile h2 {
    font-size: 1.75rem;
  }
  
  .company-profile h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .company-profile {
    padding: 1rem;
    margin: 0 0.25rem;
  }
  
  .profile-table {
    font-size: 0.875rem;
  }
  
  .profile-table th,
  .profile-table td {
    padding: 0.75rem;
  }
  
  .profile-table th {
    width: 40%;
  }
}

/* Thank You Page Styles */
.thank-you-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 3rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--gray-200);
}

.thank-you-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.thank-you-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.thank-you-message {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.thank-you-cta .btn {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.2);
}

.thank-you-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(var(--primary-color-rgb), 0.3);
}

.thank-you-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.thank-you-note a {
  color: var(--primary-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .thank-you-container {
    padding: 2rem;
    margin: 2rem 1rem;
  }
  .thank-you-title {
    font-size: 1.5rem;
  }
  .thank-you-message {
    font-size: 1rem;
  }
  .thank-you-cta .btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
  }
}