/* ==========================================================
   事業内容ページ (page-service.php) 専用スタイル
   functions.php で is_page('service') のときのみ読み込み
   ========================================================== */

.service-page {
  width: 100%;
  overflow-x: hidden;
  background: #fff;
  color: #2E2A26;
}

.service-page .deco {
  position: absolute;
  pointer-events: none;
}

.service-page .section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.service-page .section-label-bar {
  width: 5px;
  height: 20px;
  background: #F26522;
  border-radius: 3px;
}
.service-page .section-label-text {
  font-weight: 700;
  font-size: 16px;
}

/* ---------- HERO ---------- */
.service-hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 28px 20px;
  overflow: hidden;
}
.deco-hero-burst {
  right: 0;
  top: -10px;
  width: 150px;
  opacity: 0.55;
}
.deco-hero-ring {
  left: -60px;
  top: -40px;
  width: 200px;
  opacity: 0.6;
}
.service-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.service-hero-text {
  flex: 0 0 auto;
  max-width: 340px;
}
.service-hero-text h1 {
  font-size: 38px;
  font-weight: 900;
}
.service-hero-text .eyebrow {
  font-family: 'Poppins', sans-serif;
  color: #F26522;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 13px;
  margin-top: 8px;
}
.service-overview {
  margin-top: 36px;
}
.service-overview-body {
  font-size: 14px;
  line-height: 2;
  color: #4a453f;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-hero-photo-wrap {
  position: relative;
  flex: 1 1 auto;
  max-width: 560px;
  margin-top: 6px;
}
.service-hero-photo {
  border-radius: 46% 54% 58% 42% / 56% 46% 54% 44%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(120, 90, 60, 0.18);
}
.service-hero-photo img {
  width: 100%;
  display: block;
}
.service-hero-caption {
  position: absolute;
  top: -6px;
  right: -14px;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  font-weight: 600;
  color: #F26522;
  transform: rotate(-6deg);
  line-height: 1.2;
}
.deco-hero-blob {
  left: -10px;
  bottom: -34px;
  width: 110px;
  transform: scaleX(-1);
  z-index: 2;
}
.service-hero-mascot {
  right: -10px;
  bottom: 10px;
  width: 150px;
  z-index: 2;
}

/* ---------- 事業部 概要2カラム ---------- */
.service-divisions {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 28px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  overflow: hidden;
}
.deco-divisions-star {
  right: 8%;
  top: -6px;
  width: 34px;
  opacity: 0.85;
}
.deco-divisions-dots {
  left: -20px;
  bottom: -10px;
  width: 130px;
  opacity: 0.5;
}
.division-card {
  background: #FCF5EE;
  border-radius: 28px;
  overflow: hidden;
}
.division-photo {
  width: 100%;
  height: 220px;
}
.division-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.division-body-wrap {
  padding: 26px 28px 30px;
}
.division-title {
  font-size: 19px;
  font-weight: 900;
  color: #F26522;
  margin-bottom: 12px;
}
.division-body {
  font-size: 13.5px;
  line-height: 1.95;
  color: #4a453f;
  font-weight: 500;
  margin-top: 12px;
}
.division-body:first-of-type {
  margin-top: 0;
}

/* ---------- リフォーム事業部(詳細) ---------- */
.service-detail-panel {
  position: relative;
  max-width: 1240px;
  margin: 56px auto 0;
  padding: 56px 40px;
  background: #FCF5EE;
  border-radius: 48px;
  overflow: hidden;
}
.deco-reform-tl {
  left: -16px;
  top: -16px;
  width: 110px;
  opacity: 0.7;
}
.deco-reform-br {
  right: -20px;
  bottom: -20px;
  width: 160px;
  opacity: 0.5;
}
.service-detail-panel-inner {
  position: relative;
  z-index: 1;
}
.service-detail-title {
  font-size: 22px;
  font-weight: 900;
  color: #F26522;
  text-align: center;
}
.service-detail-sub {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
}
.reform-detail-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 36px;
}
.reform-detail-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(120, 90, 60, 0.08);
}
.reform-detail-photo img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.reform-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F26522;
  margin-bottom: 10px;
}
.reform-detail-item-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.reform-detail-item-body {
  font-size: 12.5px;
  line-height: 1.8;
  color: #4a453f;
  font-weight: 500;
}
.reform-detail-divider {
  width: 1px;
  height: 200px;
  background: #F2C79B;
  justify-self: center;
}

/* ---------- ITソリューション事業部(詳細) ---------- */
.service-detail-flat {
  position: relative;
  max-width: 1240px;
  margin: 56px auto 0;
  padding: 0 28px;
  overflow: hidden;
}
.deco-it-flat-ring {
  right: -40px;
  top: -20px;
  width: 140px;
  opacity: 0.5;
}
.deco-it-flat-glow {
  left: -30px;
  bottom: 20px;
  width: 150px;
  opacity: 0.4;
}
.it-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}
.it-detail-photo-wrap {
  position: relative;
}
.it-detail-photo {
  border-radius: 20px;
  overflow: hidden;
}
.it-detail-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.it-detail-icon {
  position: absolute;
  left: 14px;
  bottom: -18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2EC4B6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.it-detail-text {
  padding: 30px 4px 0;
}
.it-detail-item-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.it-detail-item-body {
  font-size: 13px;
  line-height: 1.9;
  color: #4a453f;
  font-weight: 500;
}

/* ---------- CTA ---------- */
.service-cta {
  position: relative;
  background: #F26522;
  padding: 52px 0;
  margin-top: 70px;
  overflow: hidden;
}
.deco-cta-spark {
  top: 20px;
  left: 4%;
  width: 26px;
  opacity: 0.9;
}
.deco-cta-burst {
  bottom: -30px;
  right: 14%;
  width: 120px;
  opacity: 0.25;
  filter: brightness(0) invert(1);
}
.service-cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}
.service-cta .cta-text {
  color: #fff;
  flex: 1;
}
.service-cta .cta-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  opacity: 0.9;
}
.service-cta .cta-text h2 {
  font-size: 32px;
  font-weight: 900;
  margin-top: 6px;
}
.service-cta .cta-sub {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.95;
}
.service-cta .cta-button {
  background: #fff;
  color: #F26522;
  font-weight: 800;
  font-size: 18px;
  padding: 22px 40px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}
.service-cta .cta-button-arrow {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F26522;
  color: #fff;
  align-items: center;
  justify-content: center;
}
.service-cta-mascot {
  width: 130px;
  height: auto;
  margin-bottom: -40px;
  flex: 0 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-hero-inner {
    flex-direction: column;
  }
  .service-hero-photo-wrap {
    width: 100%;
    max-width: 100%;
  }
  .service-divisions {
    grid-template-columns: 1fr;
  }
  .reform-detail-grid {
    grid-template-columns: 1fr;
  }
/* リフォーム詳細カードを写真上・テキスト下の縦積みに */
  .reform-detail-card {
    grid-template-columns: 1fr;
  }
  .reform-detail-photo img {
    height: 200px;
  }
  .reform-detail-divider {
    width: 100%;
    height: 1px;
  }
  .it-detail-grid {
    grid-template-columns: 1fr;
  }
  .service-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}