/* ===================================
   合同会社BTC - コーポレートサイト CSS
   =================================== */

/* リセットCSS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Meiryo', sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
}

/* コンテナ */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ===================================
   ヘッダー
   =================================== */
.header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-svg {
  width: 40px;
  height: 40px;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.logo-text p {
  font-size: 0.75rem;
  color: #4b5563;
  margin-top: 0.125rem;
}

/* デスクトップナビゲーション */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  color: #374151;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2563eb;
}

/* 連絡先情報 */
.contact-info {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .contact-info {
    display: flex;
  }
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #2563eb;
}

.contact-link svg {
  width: 16px;
  height: 16px;
}

/* モバイルメニューボタン */
.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: #374151;
  border-radius: 0.25rem;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn:hover {
  color: #2563eb;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* モバイルメニュー */
.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  color: #374151;
  font-weight: 500;
  padding: 0.5rem;
  display: block;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #2563eb;
}

.mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
  position: relative;
  background: linear-gradient(to right, #2563eb, #1e40af);
  color: #ffffff;
  padding: 6rem 0;
  overflow: hidden;
  scroll-margin-top: 80px;
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(37, 99, 235, 0.7), rgba(30, 64, 175, 0.7));
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h2 {
    font-size: 3rem;
  }
}

.hero p {
  font-size: 1.25rem;
  color: #dbeafe;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.5rem;
  }
}

/* ===================================
   事業内容セクション
   =================================== */
.services {
  padding: 5rem 0;
  background-color: #f9fafb;
  scroll-margin-top: 80px;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: #111827;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: block;
}

.service-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.service-card:hover .service-title {
  color: #2563eb;
}

.service-image {
  overflow: hidden;
  height: 192px;
}

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

.service-content {
  padding: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.service-description {
  color: #4b5563;
  line-height: 1.75;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb;
  font-weight: 500;
  margin-top: 1rem;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ===================================
   会社概要セクション
   =================================== */
.company {
  position: relative;
  padding: 5rem 0;
  background-color: #ffffff;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.company-bg {
  position: absolute;
  inset: 0;
}

.company-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.company-content {
  position: relative;
}

.company-table-wrapper {
  max-width: 48rem;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

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

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

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

.company-table th {
  text-align: left;
  padding: 1rem 1.5rem;
  background-color: #f3f4f6;
  font-weight: 700;
  color: #374151;
  width: 33.333%;
  vertical-align: top;
}

.company-table td {
  padding: 1rem 1.5rem;
  color: #111827;
}

/* ===================================
   お問い合わせセクション
   =================================== */
.contact {
  padding: 5rem 0;
  background-color: #f9fafb;
  scroll-margin-top: 80px;
}

.contact-cards {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto 4rem;
}

@media (min-width: 768px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: #2563eb;
}

.contact-card h3 {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.75;
}

.contact-card a {
  color: #2563eb;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #1d4ed8;
}

/* お問い合わせフォーム */
.contact-form-wrapper {
  max-width: 48rem;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: #ef4444;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

.form-error {
  font-size: 0.875rem;
  color: #dc2626;
  margin-top: 0.25rem;
  display: none;
}

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

.form-group.error .form-input,
.form-group.error .form-textarea {
  border-color: #dc2626;
}

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

.submit-btn {
  background-color: #2563eb;
  color: #ffffff;
  padding: 1rem 3rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #1d4ed8;
}

.submit-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* 送信成功メッセージ */
.form-success {
  display: none;
  padding: 1rem;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-success.show {
  display: block;
}

.form-success p {
  color: #166534;
  text-align: center;
  font-weight: 500;
}

/* ===================================
   フッター
   =================================== */
.footer {
  background-color: #111827;
  color: #ffffff;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
}

.footer-logo-text p:first-child {
  font-weight: 700;
}

.footer-logo-text p:last-child {
  font-size: 0.75rem;
  color: #9ca3af;
}

.footer-copy {
  font-size: 0.875rem;
  color: #9ca3af;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copy {
    text-align: right;
  }
}

/* ===================================
   サービス詳細ページ
   =================================== */
.service-hero {
  position: relative;
  height: 24rem;
  background-color: #111827;
}

.service-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.service-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-hero-text {
  text-align: center;
  color: #ffffff;
  padding: 0 1rem;
}

.service-hero-text h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .service-hero-text h1 {
    font-size: 3rem;
  }
}

.service-hero-text p {
  font-size: 1.25rem;
  color: #e5e7eb;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .service-hero-text p {
    font-size: 1.5rem;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: color 0.3s ease;
  margin: 2rem 0;
}

.back-link:hover {
  color: #1d4ed8;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.service-details {
  padding: 3rem 0;
}

.service-details-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 3rem;
}

.service-details-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .service-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-card {
  position: relative;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.detail-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.detail-card-bg {
  position: absolute;
  inset: 0;
}

.detail-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.detail-card-content {
  position: relative;
  padding: 2rem;
}

.detail-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.75;
}

/* CTA セクション */
.cta {
  background-color: #2563eb;
  color: #ffffff;
  padding: 4rem 0;
  margin-top: 4rem;
  text-align: center;
}

.cta h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.25rem;
  color: #dbeafe;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-btn {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.cta-btn-primary {
  background-color: #ffffff;
  color: #2563eb;
}

.cta-btn-primary:hover {
  background-color: #f3f4f6;
}

.cta-btn-secondary {
  background-color: #1d4ed8;
  color: #ffffff;
}

.cta-btn-secondary:hover {
  background-color: #1e40af;
}

/* ===================================
   404ページ
   =================================== */
.not-found {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.not-found-content {
  text-align: center;
}

.not-found h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

/* ===================================
   ユーティリティ
   =================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
