/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-tertiary: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: calc(16px + (18 - 16) * ((100vw - 320px) / (1200 - 320)));
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Border Radius */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

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

.nav-logo img {
  width: 126px;
  height: 63px;
  object-fit: contain;
  object-position: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--background-secondary);
}

.nav-link-disabled {
  color: #bbb !important;
  pointer-events: none;
  cursor: not-allowed;
  background: none !important;
  text-decoration: none !important;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1101;
}
.hamburger-bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 4px 0;
  background: var(--text-primary, #222);
  border-radius: 2px;
  transition: all 0.3s;
}

/* モバイルナビゲーション */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1100;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.mobile-nav li {
  margin: 3.5rem 0;
}
.mobile-nav a {
  font-size: 2.5rem;
  color: var(--text-primary, #222);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.mobile-nav a:hover {
  color: var(--primary-color, #0ea5e9);
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
  .header-nav {
    display: none;
  }
}
@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
}

/* Hero Section */
.hero {
  padding: calc(70px + var(--spacing-3xl)) 0 var(--spacing-3xl);
  background: linear-gradient(
    135deg,
    var(--background-secondary) 0%,
    var(--background-primary) 100%
  );
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

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

.hero-title-main {
  display: block;
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.hero-title-sub {
  display: block;
  font-size: calc(var(--font-size-4xl) * 1.2);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(37, 99, 235, 0.3);
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
  text-align: left;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
}

.hero-image-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-large);
}

/* フォールバック用のプレースホルダー（画像が読み込めない場合） */
.hero-image-placeholder {
  width: 100%;
  height: 400px;
  background-color: #ccc;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-large);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services {
  padding: var(--spacing-3xl) 0;
  background-color: var(--background-secondary);
}

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

.service-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 30, 30, 0.7);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.service-card:hover .service-card-overlay {
  opacity: 1;
}

.overlay-text-box {
  border: 1px solid #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.service-card .service-icon {
  flex-shrink: 0;
}

.service-icon-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.service-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #333;
  padding: 0 1.5rem;
  text-align: center;
}

.service-card p {
  padding: 0 1.5rem 1.5rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  text-align: center;
}

.service-title {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
}

/* About Section */
.about {
  padding: var(--spacing-3xl) 0;
}

.about-content {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-3xl);
}

.about-image-placeholder {
  width: 100%;
  height: 400px;
  background-color: #ccc;
  border-radius: var(--border-radius-lg);
}

.company-info {
  max-width: 600px;
  margin: 0 auto;
}

.info-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--border-color);
  align-items: start;
}

.info-label {
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.info-value {
  color: var(--text-primary);
}

.business-content {
  background-color: var(--background-secondary);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
}

.business-title {
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.business-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.business-list li {
  position: relative;
  padding-left: var(--spacing-lg);
  color: var(--text-secondary);
}

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

/* Contact Section */
.contact {
  padding: var(--spacing-3xl) 0;
  background-color: var(--background-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.contact-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.contact-icon .icon-placeholder {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  opacity: 0.1;
}

.contact-details h4 {
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.contact-details p {
  color: var(--text-secondary);
  margin: 0;
}

/* Form Styles */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-label {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  padding: var(--spacing-sm);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
  min-height: 44px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Footer */
.footer {
  background-color: #f8fafc;
  color: var(--text-primary);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-shrink: 0;
}

.footer-logo .logo-text {
  color: var(--text-primary);
}

.footer .logo-img {
  width: 80px;
  height: 40px;
}

/* .footer-info styles removed as address is no longer displayed */

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --font-size-base: 16px;
    --font-size-4xl: 2rem;
    --font-size-5xl: 2.5rem;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo img {
    width: 126px;
    height: 63px;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer-logo .logo-text {
    font-size: var(--font-size-sm);
    white-space: normal;
    line-height: 1.3;
  }

  .footer .logo-img {
    width: 50vw;
    height: 25vw;
    max-width: 120px;
    max-height: 60px;
  }

  .footer-bottom p {
    font-size: 14px;
  }

  .contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-icon .icon-placeholder {
    margin-bottom: var(--spacing-sm);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .header .container {
    padding: 0 var(--spacing-sm);
  }

  .nav-logo img {
    width: 126px;
    height: 63px;
  }

  .hero {
    padding: calc(70px + var(--spacing-xl)) 0 var(--spacing-xl);
  }

  .services,
  .about,
  .contact {
    padding: var(--spacing-xl) 0;
  }

  .business-content {
    padding: var(--spacing-lg);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-secondary: #000000;
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
.form-input:focus,
.form-textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Character Counter */
.char-counter {
  text-align: right;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

/* reCAPTCHA Styles */
.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: var(--spacing-md) 0;
}

/* Loading Button Styles */
.btn-loading {
  display: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover {
  transform: none !important;
  box-shadow: var(--shadow-light) !important;
}

/* Print Styles */
@media print {
  .header,
  .hero-buttons,
  .contact-form,
  .hamburger {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .hero {
    padding: var(--spacing-lg) 0;
  }
}

/* Form Message Improvements */
.form-message {
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-medium);
  border: 1px solid;
  animation: slideIn 0.3s ease-out;
}

.form-message-success {
  background-color: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.form-message-error {
  background-color: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  white-space: pre-line;
}

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

/* Form Validation States */
/* Form Input Validation Styles - Only show validation colors when explicitly set */
.form-input.error,
.form-textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.success,
.form-textarea.success {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Required Field Indicator */
.form-label::after {
  content: "";
}

.form-label:has(+ input[required])::after,
.form-label:has(+ textarea[required])::after {
  content: " *";
  color: #dc2626;
}

/* Field Error Messages */
.field-error {
  color: #dc2626;
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
  display: block;
  line-height: 1.4;
  font-weight: var(--font-weight-normal);
}

/* Mobile reCAPTCHA Adjustments */
@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .form-message-success {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
    border-width: 2px;
  }

  .form-message-error {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
    border-width: 2px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: var(--background-primary);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-large);
  animation: slideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
}

.modal-close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: var(--spacing-lg);
  flex: 1;
  overflow-y: auto;
}

.confirmation-item {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.confirmation-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.confirmation-item strong {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.confirmation-item span,
.confirmation-item div {
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  .hero {
    padding-top: 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: left;
  }

  .hero-image {
    order: -1;
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    width: calc(100% + 2 * var(--spacing-md));
  }

  .hero-image-img {
    height: 33vh;
    max-height: 33vh;
    min-height: 200px;
    width: 100%;
    border-radius: 0;
    object-fit: cover;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-sm);
  }

  .hero-buttons .btn {
    flex: 1;
    max-width: 150px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .service-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    height: auto;
  }

  .service-icon {
    margin-bottom: var(--spacing-sm);
  }

  .service-icon .icon-placeholder {
    min-height: 50px;
    max-height: 70px;
  }

  .service-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
  }

  .service-description {
    font-size: var(--font-size-sm);
    line-height: 1.5;
  }

  .company-info {
    max-width: 100%;
  }

  .info-item {
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-md);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .modal-content {
    margin: 5% auto;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-body {
    max-height: calc(90vh - 200px);
    overflow-y: auto;
  }

  .modal-footer {
    flex-direction: column;
    position: sticky;
    bottom: 0;
    background-color: var(--background-primary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
  }

  .modal-footer .btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .hero-title-sub {
    font-size: var(--font-size-5xl);
  }

  .hero-image {
    margin-left: calc(-1 * var(--spacing-sm));
    margin-right: calc(-1 * var(--spacing-sm));
    width: calc(100% + 2 * var(--spacing-sm));
  }

  .hero-image-img {
    height: 33vh;
    max-height: 33vh;
    min-height: 200px;
    width: 100%;
    object-fit: cover;
  }

  .service-card {
    padding: var(--spacing-sm);
    height: auto;
  }

  .info-item {
    grid-template-columns: 100px 1fr;
    gap: var(--spacing-sm);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 48px;
  height: 48px;
  background-color: #0ea5e9;
  border: 1px solid #0ea5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  color: #fff;
  font-size: 2rem;
}

.back-to-top:hover {
  background-color: #0369a1;
  border-color: #0369a1;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.back-to-top.visible {
  opacity: 0.6;
  visibility: visible;
}

.back-to-top.active {
  opacity: 1;
}

.back-to-top svg {
  transition: transform var(--transition-fast);
}

.back-to-top:hover svg {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
  }

  .back-to-top svg {
    width: 14px;
    height: 14px;
  }
}

/* Address Mobile Break */
.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .mobile-break {
    display: inline;
  }
}

@media print {
  .g-recaptcha,
  .btn-loading,
  .char-counter {
    display: none !important;
  }

  .form-input,
  .form-textarea {
    border: 1px solid #000000 !important;
    background: transparent !important;
  }

  .modal {
    display: none !important;
  }
}

/* 必須項目の説明 */
.required-note {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.required-asterisk {
  color: #e53e3e;
  font-weight: bold;
  margin-right: 0.25em;
}

/* フォーム送信成功メッセージ */
.success-message {
  text-align: center;
  padding: 2rem;
  background: #f0f9ff;
  border: 2px solid #0ea5e9;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.success-message h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.success-message p {
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

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

  .service-icon-img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .service-card {
    padding: 0;
  }

  .service-icon-img {
    height: 160px;
  }
}

/* Service Modal */
.service-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1000;
}

.service-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.service-modal-content {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-modal-overlay.active .service-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.service-modal-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-modal-image-container {
  width: 100%;
  flex-shrink: 0;
}

.service-modal-image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.service-modal-text-container {
  width: 100%;
}

.service-modal-text-container h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: #333;
  font-weight: 600;
}

.service-modal-text-container p {
  line-height: 1.7;
  color: #555;
}

.service-modal-footer {
  margin-top: 2rem;
  text-align: center;
}

.service-modal-footer .btn {
  min-width: 160px;
}

.service-modal-close-btn {
  cursor: pointer;
}

.service-modal-close-btn.top-right {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.service-modal-close-btn.top-right:hover {
  background-color: #f0f0f0;
  color: #000;
  transform: rotate(90deg);
}

/* PC Layout for Modal */
@media (min-width: 768px) {
  .service-modal-body {
    flex-direction: row;
    align-items: flex-start;
  }

  .service-modal-image-container {
    width: 40%;
  }

  .service-modal-text-container {
    width: 60%;
  }
}
