/* ============================================
   Under-Rock Services Page Styles
   ============================================ */

.ur-child-services .ur-services,
.ur-child-services .ur-faq,
.ur-child-services .ur-rehome,
.ur-child-services .ur-magazine {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.ur-child-services .ur-services__background,
.ur-child-services .ur-faq__background,
.ur-child-services .ur-rehome__background,
.ur-child-services .ur-magazine__background {
  position: absolute !important;
  inset: -5px 0 !important;
  z-index: -1 !important;
  background-size: 50% 100% !important;
  background-repeat: repeat-x !important;
  background-position: center !important;
  filter: brightness(1.5) !important;
}

.ur-child-services .ur-services__bg-overlay,
.ur-child-services .ur-rehome__bg-overlay,
.ur-child-services .ur-magazine__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1) !important;
}

.ur-child-services .ur-faq__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55) !important;
}

.ur-child-services .ur-services__container,
.ur-child-services .ur-rehome__container,
.ur-child-services .ur-magazine__container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ur-child-services .ur-faq__container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ur-child-services .ur-section-title {
  font-size: 2.25rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 3rem;
}

.ur-child-services .ur-section-title--light { color: #fff; }
.ur-child-services .ur-section-title__decoration { color: rgba(217,119,6,0.6); }
.ur-child-services .ur-section-title__text { margin: 0 1.5rem; }

/* ============================================
   サービス3列グリッド
   ============================================ */
.ur-child-services .service-grid-original {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.ur-child-services .service-col { color: #fff; }

.ur-child-services .service-col__image {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
  display: block;
}

.ur-child-services a.service-col__image { display: block; }

.ur-child-services .service-col__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ur-child-services .service-col__image:hover img { transform: scale(1.05); }

.ur-child-services .service-col h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; line-height: 1.5; }
.ur-child-services .service-col h4 { font-size: 1rem; font-weight: 500; color: #fff; margin-bottom: 0; }
.ur-child-services .service-col p { font-size: 0.875rem; color: #d1d5db; line-height: 1.8; margin-top: 0.5rem; }

/* click リンク */
.ur-child-services .service-col .click-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #d97706;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}
.ur-child-services .service-col .click-link:hover { color: #f59e0b; text-decoration: underline; }
.ur-child-services .service-col .click-link::before { content: "↑"; margin-right: 0.25rem; }

/* ============================================
   雑誌掲載セクション
   ============================================ */
.ur-child-services .magazine-content {
  max-width: 900px;
  margin: 0 auto;
}

.ur-child-services .magazine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ur-child-services .magazine-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.ur-child-services .magazine-content > p {
  color: #e5e5e5;
  line-height: 1.8;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.ur-child-services .magazine-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  height: 250px;
  overflow: hidden;
}

.ur-child-services .magazine-row img {
  height: 250px;
  object-fit: cover;
  border-radius: 0.25rem;
  display: block;
}

.ur-child-services .magazine-row--top .magazine-cover {
  width: 180px;
  flex-shrink: 0;
  object-position: top center;
}

.ur-child-services .magazine-row--top img:not(.magazine-cover) {
  flex: 1;
  min-width: 0;
  object-position: center;
}

.ur-child-services .magazine-row--bottom img {
  flex: 1;
  min-width: 0;
  object-position: top center;
}

/* ============================================
   FAQ
   ============================================ */
.ur-child-services .ur-faq__title { font-size: 2.25rem; font-weight: 500; text-align: center; color: #fff; margin-bottom: 3rem; }
.ur-child-services .ur-faq-item { border-bottom: 1px solid rgba(255,255,255,0.15); padding: 1.5rem 0; }
.ur-child-services .ur-faq-item:last-child { border-bottom: none; }
.ur-child-services .ur-faq-q { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.ur-child-services .ur-faq-a { display: flex; align-items: flex-start; gap: 1rem; }
.ur-child-services .ur-faq-q .label { font-size: 1.5rem; font-weight: 700; color: #6366f1; flex-shrink: 0; }
.ur-child-services .ur-faq-a .label { font-size: 1.5rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.ur-child-services .ur-faq-q .text { font-size: 1.125rem; font-weight: 500; color: #93c5fd; padding-top: 0.25rem; }
.ur-child-services .ur-faq-a .text { font-size: 1rem; color: #e5e5e5; padding-top: 0.35rem; }

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 767px) {
  .ur-child-services .service-grid-original { grid-template-columns: 1fr !important; }
  .ur-child-services .magazine-header { flex-direction: column; text-align: center; }
  .ur-child-services .magazine-row { flex-direction: column; height: auto; overflow: visible; }
  .ur-child-services .magazine-row img { height: auto; width: 100%; }
  .ur-child-services .magazine-row--top .magazine-cover { width: 100%; }
}
