/* ===================================================
   service.css - サービスディレクトリトップ共通スタイル
   CENTURY21ココカラ
   =================================================== */

/* ===== Page Header ===== */
.page-header {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 0 0;
  text-align: center;
  position: relative;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== Page Header Entrance Animation ===== */
@keyframes pageHeaderFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-header-en,
.page-header-title,
.page-header-desc {
  opacity: 0;
  animation: pageHeaderFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.page-header-en    { animation-delay: 0.3s; }
.page-header-title { animation-delay: 0.5s; }
.page-header-desc  { animation-delay: 0.7s; }
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.page-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--bg-body, #FAFAF8) 0%, transparent 12%),
    linear-gradient(to left,  var(--bg-body, #FAFAF8) 0%, transparent 12%);
  opacity: 0;
  transition: opacity 0.3s;
}
@media (min-width: 1280px) {
  .page-header::after {
    opacity: 1;
  }
}
.page-header .container {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

/* ===== Page Header Content ===== */
.page-header-en {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.page-header-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: #fff;
}
.page-header-desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ===== Breadcrumb (footer上部・右寄せ) ===== */
.breadcrumb {
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb-list li {
  display: flex;
  align-items: center;
}
.breadcrumb-list li + li::before {
  content: ">";
  margin: 0 10px;
  color: #bbb;
  font-size: 11px;
}
.breadcrumb-list a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.3s;
}
.breadcrumb-list a:hover {
  color: var(--accent);
  opacity: 1;
}
.breadcrumb-list .current {
  color: var(--text-main);
  font-weight: 700;
}

/* ===== Service Card Grid ===== */
.service-cards {
  padding: 0 0 120px;
}
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s;
  border: 1px solid rgba(0,0,0,0.04);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  opacity: 1;
}

.service-card-img {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.service-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.4s ease;
  z-index: 1;
}
.service-card:hover .service-card-img::after {
  background: rgba(255,255,255,0.15);
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-card-body {
  padding: 32px;
}
.service-card-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: rgba(199, 186, 140, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.service-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}
.service-card-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.service-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  transition: gap 0.3s;
}
.service-card:hover .service-card-arrow {
  gap: 14px;
}

/* ===== Page Intro (Lead Text with Side Decoration) ===== */
.page-intro {
  padding: 40px 0;
  text-align: center;
}
.page-intro-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 2.2;
  color: var(--text-main);
  font-weight: 500;
  position: relative;
}
.page-intro-text::before,
.page-intro-text::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 30px auto;
}

/* ===== Responsive (Service Pages) ===== */
@media (max-width: 1024px) {
  .page-header {
    min-height: 400px;
  }
  .page-header-title {
    font-size: 32px;
  }
}
@media (max-width: 768px) {
  .page-header {
    min-height: 320px;
    padding: 48px 0 0;
  }
  .page-header-title {
    font-size: 26px;
  }
  .page-header-desc {
    font-size: 14px;
  }
  .breadcrumb {
    padding: 20px 0;
  }
  .breadcrumb-list {
    font-size: 12px;
  }
  .service-cards {
    padding-bottom: 60px;
  }
  .service-card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-card-img {
    height: 180px;
  }
  .service-card-body {
    padding: 24px;
  }
  .service-card-title {
    font-size: 20px;
  }
}
