/* Extracted from umj-official/page-service.php */
:root {
  --umj-gradient-primary: linear-gradient(135deg, #F2811D 0%, #E8731F 50%, #1E3A5F 100%);
  --umj-green: #5BA82E;
  --umj-blue: #1E3A5F;
  --umj-red: #F2811D;
  --umj-orange: #F2811D;
  --umj-white: #ffffff;
  --umj-dark: #1a1a2e;
}

/* ===================== */
/* WPテーマの既定ヘッダーを非表示 */
/* ===================== */
.page-header,
.entry-header,
.hero-area,
.post-header,
.single-header {
  display: none !important;
}

/* ===================== */
/* 基本スタイル */
/* ===================== */
body {
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  color: var(--umj-dark);
  font-size: 16px;
  line-height: 1.9;
  background: #fff;
}

/* ===================== */
/* Hero Section */
/* ===================== */
.service-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #17223a;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 29, 55, 0.62) 0%, rgba(21, 36, 63, 0.34) 48%, rgba(31, 43, 74, 0.48) 100%),
    linear-gradient(180deg, rgba(11, 20, 36, 0.28) 0%, rgba(11, 20, 36, 0.38) 100%),
    radial-gradient(circle at 24% 48%, rgba(37,99,235,0.12) 0%, transparent 44%),
    radial-gradient(circle at 78% 76%, rgba(242,129,29,0.14) 0%, transparent 48%);
  z-index: 1;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.78;
}

.service-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(98%) saturate(112%) contrast(102%);
}

.service-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 800px;
}

.service-hero-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.service-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}

.service-hero-description {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 14px rgba(0,0,0,0.38);
}

@media (max-width: 768px) {
  .service-hero {
    min-height: 55vh;
  }
  .service-hero-title {
    font-size: 1.8rem;
  }
}

/* ===================== */
/* セクション共通 */
/* ===================== */
.service-section {
  padding: 100px 40px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--umj-dark);
  background: var(--umj-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 80px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ===================== */
/* 3つのカードグリッド */
/* ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-section {
    padding: 80px 20px;
  }
}

/* ===================== */
/* サービスカード */
/* ===================== */
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.1);
}

/* カード画像 */
.service-card-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f3f4f6;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.08);
}

/* グラデーションオーバーレイ */
.service-card.housing .service-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.3) 0%, rgba(16, 185, 129, 0.2) 100%);
  z-index: 1;
}

.service-card.ai .service-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.3) 0%, rgba(124, 58, 237, 0.2) 100%);
  z-index: 1;
}

.service-card.diversity .service-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(190, 24, 93, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);
  z-index: 1;
}

.service-card.creative .service-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(190, 24, 93, 0.32) 0%, rgba(242, 129, 29, 0.2) 100%);
  z-index: 1;
}

.service-card.possibility .service-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.34) 0%, rgba(91, 168, 46, 0.18) 100%);
  z-index: 1;
}

/* カード本文 */
.service-card-content {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.3s;
}

.service-card.housing .service-card-title {
  color: var(--umj-green);
}

.service-card.ai .service-card-title {
  color: var(--umj-blue);
}

.service-card.diversity .service-card-title {
  color: var(--umj-red);
}

.service-card.creative .service-card-title {
  color: #be185d;
}

.service-card.possibility .service-card-title {
  color: var(--umj-blue);
}

.service-card:hover .service-card-title {
  opacity: 0.8;
}

.service-card-description {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* チェックリスト */
.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex: 1;
}

.service-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 900;
  font-size: 16px;
}

.service-card.housing .service-features li::before {
  color: var(--umj-green);
}

.service-card.ai .service-features li::before {
  color: var(--umj-blue);
}

.service-card.diversity .service-features li::before {
  color: var(--umj-red);
}

.service-card.creative .service-features li::before {
  color: #be185d;
}

.service-card.possibility .service-features li::before {
  color: var(--umj-blue);
}

/* リンク */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: gap 0.3s;
}

.service-card.housing .service-link {
  color: var(--umj-green);
}

.service-card.ai .service-link {
  color: var(--umj-blue);
}

.service-card.diversity .service-link {
  color: var(--umj-red);
}

.service-card.creative .service-link {
  color: #be185d;
}

.service-card.possibility .service-link {
  color: var(--umj-blue);
}

.service-card:hover .service-link {
  gap: 12px;
}

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

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

/* ===================== */
/* メッセージセクション */
/* ===================== */
.service-cta {
  text-align: center;
  padding: 72px 40px;
  background: var(--umj-gradient-primary);
  border-radius: 16px;
  margin: 0 40px;
  color: #fff;
}
.service-cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 16px;
}
.service-cta-text {
  font-size: 15px;
  color: rgba(255,255,255,0.92);
  line-height: 1.9;
  max-width: 620px;
  margin: 0 auto 32px;
}
.service-cta-actions {
  display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.service-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 38px; background: #fff; color: var(--umj-orange);
  font-weight: 800; font-size: 15px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18); transition: transform .25s, box-shadow .25s;
}
.service-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.24); }
.service-cta-link { color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; opacity: .95; }
.service-cta-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .service-cta { margin: 0 20px; padding: 56px 24px; }
}

/* ===================== */
/* フェードイン */
/* ===================== */
/* ===================== */
/* 関連コラム・メディア */
/* ===================== */
.service-posts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
}
.service-post {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid rgba(0,0,0,.07); border-radius: 12px; overflow: hidden;
  text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s;
}
.service-post:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.1); }
.service-post-media { position: relative; aspect-ratio: 16/10; background: #f0eee9; overflow: hidden; }
.service-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.service-post:hover .service-post-media img { transform: scale(1.05); }
.service-post-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #c9b89f; font-weight: 800; letter-spacing: .12em; background: linear-gradient(135deg,#faf7f2,#f0e6da); }
.service-post-cat { position: absolute; top: 10px; left: 10px; background: var(--umj-orange); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.service-post-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-post-title { font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--umj-dark); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.service-post-date { font-size: 12px; color: #999; margin-top: auto; }
.service-media-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; color: var(--umj-orange); text-decoration: none; }
.service-media-more { margin-top:36px; text-align:center; }
.service-media-link:hover { text-decoration: underline; }
@media (max-width: 1024px) { .service-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .service-posts { grid-template-columns: 1fr; padding: 0 20px; } }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
}

.fade-in.is-inview {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Accessibility: stable touch targets and keyboard focus */
.service-card,
.service-link,
.service-cta-btn,
.service-cta-link,
.service-post,
.service-media-link {
  min-height:44px;
}

.service-link,
.service-cta-btn,
.service-cta-link,
.service-media-link {
  display:inline-flex;
  align-items:center;
}

.service-card:focus-visible,
.service-link:focus-visible,
.service-cta-btn:focus-visible,
.service-cta-link:focus-visible,
.service-post:focus-visible,
.service-media-link:focus-visible {
  outline:3px solid rgba(242,129,29,.88);
  outline-offset:4px;
}

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

  .service-page .fade-in,
  .service-page .fade-in.is-inview {
    opacity: 1 !important;
    transform: none !important;
  }
}

