/* ==========================================================================
   Design System & Custom Properties (OKLCH)
   ========================================================================== */
:root {
  /* Color Palette in OKLCH */
  --bg-primary: oklch(0.99 0.003 240);       /* 雪のような清潔感のある白 */
  --bg-secondary: oklch(0.965 0.005 240);    /* 薄いスレートグレー */
  --bg-dark: oklch(0.15 0.02 240);           /* 深い夜空・スチールのような黒 */
  --bg-dark-accent: oklch(0.18 0.025 240);
  
  --text-primary: oklch(0.22 0.01 240);      /* 視認性の高いスチールブラック */
  --text-secondary: oklch(0.45 0.01 240);    /* 補助用のスレートグレー */
  --text-light: oklch(0.92 0.005 240);       /* 暗背景用のライトグレー */
  
  --brand-primary: oklch(0.32 0.06 240);     /* 信頼のインディゴ・ネイビー */
  --brand-light: oklch(0.42 0.08 240);
  --brand-dark: oklch(0.22 0.04 240);
  
  --accent-color: oklch(0.78 0.13 85);       /* 職人の情熱・温もりを表す琥珀ゴールド */
  --accent-hover: oklch(0.72 0.12 85);
  --accent-text: oklch(0.35 0.07 85);
  
  --success: oklch(0.62 0.15 140);
  --error: oklch(0.58 0.18 25);
  --white: oklch(1 0 0);
  
  /* Typography */
  --font-family: 'Noto Sans JP', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-outfit: 'Outfit', sans-serif;
  
  /* Spacing & Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --header-height-mobile: 70px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px oklch(0 0 0 / 0.05);
  --shadow-md: 0 8px 16px oklch(0 0 0 / 0.08);
  --shadow-lg: 0 16px 32px oklch(0 0 0 / 0.12);
  --shadow-inset: inset 0 2px 4px oklch(0 0 0 / 0.06);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-color);
  color: var(--bg-dark);
  padding: 10px 20px;
  z-index: 9999;
  font-weight: bold;
  border-radius: 0 0 var(--border-radius-sm) 0;
  transition: top 0.2s ease;
}
.skip-link:focus-visible {
  top: 0;
  outline: none;
}

/* ==========================================================================
   Accessibility: Focus States & Reduced Motion
   ========================================================================== */
*:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Layout & Reusable Components
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}
@media (max-width: 768px) {
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

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

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.text-white {
  color: var(--white);
}

.text-amber {
  color: var(--accent-color);
}

.text-gray {
  color: var(--text-secondary);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}
.section-subtitle {
  font-family: var(--font-outfit);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--brand-primary);
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: var(--border-radius-sm);
}
.section-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.bg-dark .section-intro {
  color: var(--text-light);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 40px;
  }
  .section-title {
    font-size: 1.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}
.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--bg-dark);
}
.btn-secondary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-tel {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
  gap: 8px;
}
.btn-tel:hover {
  background-color: var(--white);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-block;
  padding: 3px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
}
.badge-required {
  background-color: var(--error);
  color: var(--white);
  margin-left: 6px;
  vertical-align: middle;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: oklch(0.99 0.003 240 / 0.85); /* 半透明 */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(0.22 0.01 240 / 0.08);
  transition: all var(--transition-normal);
}

#site-header.scrolled {
  height: 70px;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.1;
  letter-spacing: 0.05em;
}
.logo-sub {
  font-family: var(--font-outfit);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}
.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--brand-primary);
  border-radius: var(--border-radius-sm);
  position: absolute;
  transition: all var(--transition-normal);
}
.menu-toggle .bar:nth-child(1) { top: 0; }
.menu-toggle .bar:nth-child(2) { top: 10px; }
.menu-toggle .bar:nth-child(3) { top: 20px; }

#global-nav {
  height: 100%;
}
.nav-list {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}
.nav-list a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  position: relative;
  padding: 10px 0;
  transition: color var(--transition-fast);
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}
.nav-list a:hover {
  color: var(--brand-primary);
}
.nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-contact a::after {
  display: none;
}

/* Responsive Header */
@media (max-width: 992px) {
  #site-header {
    height: var(--header-height-mobile);
  }
  .menu-toggle {
    display: block;
  }
  
  #global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 100px 30px 40px 30px;
    transition: right var(--transition-normal);
    z-index: 1050;
    overflow-y: auto;
  }
  #global-nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 20px;
  }
  .nav-list li {
    width: 100%;
  }
  .nav-list a {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    border-bottom: 1px solid oklch(0.22 0.01 240 / 0.05);
    padding: 12px 0;
  }
  .nav-list a::after {
    display: none;
  }
  .nav-list .nav-contact {
    margin-top: 20px;
    border-bottom: none;
  }
  
  /* ハンバーガーアニメーション */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* ヒーロー画像の上にグラデーションを載せてテキストをくっきり見せる */
  background: linear-gradient(
    to right var(--in-oklab),
    oklch(0.15 0.02 240 / 0.9) 0%,
    oklch(0.15 0.02 240 / 0.75) 50%,
    oklch(0.15 0.02 240 / 0.4) 100%
  );
  z-index: 2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.hero-text-wrap {
  max-width: 680px;
  color: var(--white);
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent-color);
  padding-left: 12px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white);
  font-family: var(--font-outfit);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.hero-scroll a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 50px;
  background-color: var(--white);
  margin-top: 8px;
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 768px) {
  #hero {
    min-height: auto;
    padding-top: var(--header-height-mobile);
    padding-bottom: 80px;
  }
  .hero-bg::after {
    background: linear-gradient(
      to bottom var(--in-oklab),
      oklch(0.15 0.02 240 / 0.9) 0%,
      oklch(0.15 0.02 240 / 0.75) 100%
    );
  }
  .hero-content {
    padding: 60px 20px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-scroll {
    display: none;
  }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid oklch(0.22 0.01 240 / 0.04);
  position: relative;
  transition: all var(--transition-normal);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: oklch(0.32 0.06 240 / 0.1);
}

.feature-num {
  font-family: var(--font-outfit);
  font-size: 3rem;
  font-weight: 800;
  color: oklch(0.32 0.06 240 / 0.08);
  line-height: 1;
  margin-bottom: 20px;
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.feature-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-card {
    padding: 30px;
  }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid oklch(0.22 0.01 240 / 0.04);
}

.service-item.img-right {
  grid-template-columns: 1fr 1fr;
}
.service-item.img-right .service-image-wrap {
  order: 2;
}
.service-item.img-right .service-content {
  order: 1;
}

.service-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 380px;
}
.service-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 50px;
}

.service-num {
  font-family: var(--font-outfit);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  display: inline-block;
  background-color: oklch(0.78 0.13 85 / 0.15);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
}

.service-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 20px;
}

.service-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.service-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-points li {
  position: relative;
  padding-left: 24px;
  font-weight: 500;
  font-size: 0.95rem;
}
.service-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-text);
  font-weight: 800;
}

@media (max-width: 992px) {
  .services-list {
    gap: 40px;
  }
  .service-item, .service-item.img-right {
    grid-template-columns: 1fr;
  }
  .service-item.img-right .service-image-wrap {
    order: 0;
  }
  .service-item.img-right .service-content {
    order: 0;
  }
  .service-image-wrap {
    min-height: 250px;
    aspect-ratio: 16/9;
  }
  .service-content {
    padding: 30px;
  }
  .service-content h3 {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Results (施工実績) Section
   ========================================================================== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.result-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid oklch(0.22 0.01 240 / 0.04);
  transition: all var(--transition-normal);
}
.result-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.result-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.result-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.result-card:hover .result-img-wrap img {
  transform: scale(1.05);
}

.result-info {
  padding: 28px;
}

.result-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  background-color: oklch(0.32 0.06 240 / 0.08);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  margin-bottom: 16px;
}

.result-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.result-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.875rem;
}
.result-meta-table tr {
  border-bottom: 1px solid oklch(0.22 0.01 240 / 0.06);
}
.result-meta-table tr:last-child {
  border-bottom: none;
}
.result-meta-table th, .result-meta-table td {
  padding: 8px 0;
  text-align: left;
}
.result-meta-table th {
  color: var(--text-secondary);
  font-weight: 500;
  width: 90px;
}
.result-meta-table td {
  color: var(--text-primary);
  font-weight: 700;
}

.result-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   Flow Section
   ========================================================================== */
.flow-steps {
  max-width: 900px;
  margin: 0 auto;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}

.flow-list::before {
  /* ステップをつなぐ中央の線 */
  content: '';
  position: absolute;
  left: 35px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background-color: var(--brand-primary);
  opacity: 0.2;
}

.flow-list li {
  display: flex;
  gap: 30px;
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid oklch(0.22 0.01 240 / 0.04);
  position: relative;
  z-index: 2;
}

.flow-step-num {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background-color: var(--brand-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-outfit);
  font-size: 1.75rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.flow-step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flow-step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.flow-step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .flow-list::before {
    left: 20px;
  }
  .flow-list li {
    flex-direction: column;
    gap: 15px;
    padding: 24px;
  }
  .flow-step-num {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Recruit Section
   ========================================================================== */
#recruit {
  position: relative;
  overflow: hidden;
}

.recruit-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.recruit-bg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.recruit-bg-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 斜めグラデーション */
  background: linear-gradient(
    135deg var(--in-oklab),
    oklch(0.2 0.05 240 / 0.95) 0%,
    oklch(0.2 0.05 240 / 0.8) 60%,
    oklch(0.2 0.05 240 / 0.5) 100%
  );
}

.recruit-container {
  position: relative;
  z-index: 2;
}

.recruit-content {
  max-width: 700px;
}

.recruit-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 24px;
}

.recruit-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.recruit-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.recruit-features div {
  background-color: oklch(1 0 0 / 0.08);
  border-left: 4px solid var(--accent-color);
  padding: 16px 24px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  backdrop-filter: blur(4px);
}
.recruit-features dt {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 6px;
}
.recruit-features dd {
  font-size: 0.95rem;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .recruit-content h2 {
    font-size: 1.6rem;
  }
  .recruit-features div {
    padding: 16px;
  }
}

/* ==========================================================================
   Company Profile Section
   ========================================================================== */
.company-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid oklch(0.22 0.01 240 / 0.04);
  overflow: hidden;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th, .company-table td {
  padding: 24px 30px;
  border-bottom: 1px solid oklch(0.22 0.01 240 / 0.06);
  text-align: left;
}
.company-table tr:last-child th, .company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  background-color: var(--bg-secondary);
  color: var(--brand-primary);
  font-weight: 700;
  width: 220px;
  vertical-align: top;
}

.company-table td {
  color: var(--text-primary);
}

.company-table td ul {
  padding-left: 20px;
}
.company-table td li {
  list-style-type: disc;
  margin-bottom: 4px;
}
.company-table td li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .company-table th, .company-table td {
    display: block;
    width: 100%;
    padding: 16px 20px;
  }
  .company-table th {
    background-color: oklch(0.32 0.06 240 / 0.04);
    border-bottom: none;
    padding-bottom: 8px;
  }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-card {
  background-color: var(--bg-dark-accent);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  margin-bottom: 30px;
}
.contact-info-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.tel-desc {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 20px;
}
.tel-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-color);
  font-family: var(--font-outfit);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 24px;
  transition: color var(--transition-fast);
}
.tel-number:hover {
  color: var(--white);
}

.tel-meta {
  width: 100%;
  font-size: 0.9rem;
}
.tel-meta th, .tel-meta td {
  padding: 6px 0;
  text-align: left;
}
.tel-meta th {
  font-weight: 500;
  color: var(--text-light);
  opacity: 0.7;
  width: 90px;
}
.tel-meta td {
  font-weight: 700;
  color: var(--white);
}

.contact-step-notice {
  padding: 0 10px;
}
.contact-step-notice h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  padding-left: 14px;
}
.contact-step-notice h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background-color: var(--accent-color);
  border-radius: var(--border-radius-sm);
}
.contact-step-notice p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.7;
}

/* Form Styling */
.contact-form-wrap {
  background-color: var(--bg-dark-accent);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: var(--border-radius-lg);
  padding: 40px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: oklch(1 0 0 / 0.05);
  border: 1px solid oklch(1 0 0 / 0.15);
  border-radius: var(--border-radius-md);
  padding: 14px 18px;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--white);
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: oklch(1 0 0 / 0.35);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: oklch(1 0 0 / 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  background-color: oklch(1 0 0 / 0.08);
  outline: none;
  box-shadow: 0 0 0 3px oklch(0.78 0.13 85 / 0.25);
}

/* エラー時の表示（アクセシビリティ対応） */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px oklch(0.58 0.18 25 / 0.25);
}
.error-message {
  display: block;
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 6px;
  font-weight: 500;
}

.form-submit {
  margin-top: 10px;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info-card, .contact-form-wrap {
    padding: 30px;
  }
}
@media (max-width: 592px) {
  .tel-number {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
#site-footer {
  background-color: oklch(0.12 0.015 240);
  color: var(--text-light);
  border-top: 1px solid oklch(1 0 0 / 0.05);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.footer-brand {
  max-width: 420px;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}
.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-color);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 0.05);
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 0.85rem;
  opacity: 0.6;
}
.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-sub-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Accessible Modal Dialog
   ========================================================================== */
#success-dialog {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  color: var(--text-primary);
  z-index: 10000;
}

#success-dialog::backdrop {
  background-color: oklch(0.12 0.015 240 / 0.6);
  backdrop-filter: blur(4px);
}

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

.success-icon {
  width: 60px;
  height: 60px;
  background-color: var(--success);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 24px;
}

#success-dialog h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

#success-dialog p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.dialog-tel-prompt {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px !important;
}

.dialog-tel {
  font-family: var(--font-outfit);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 30px !important;
}
.dialog-tel a:hover {
  color: var(--accent-text);
}

#success-dialog button {
  min-width: 150px;
}
