/* service.css — 塗装工事・リフォーム工事・お墓まわりのクリーニング 共通 */


/* ===== サービス導入（ヒーロー） ===== */

.svc-intro {
    background: #fff;
}

.svc-intro-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.svc-intro-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,29,136,0.12);
    aspect-ratio: 4/3;
}

.svc-intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.svc-intro-title {
    margin-bottom: 20px;
    padding-left: 18px;
    border-left: 5px solid #f7c400;
}

.svc-intro-subtitle {
    font-size: 0.88rem !important;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.06rem;
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.svc-intro-subtitle i {
    color: #f7c400;
}

.svc-intro-h3 {
    color: #001d88;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.35;
    position: relative;
    width: fit-content;
}

.svc-intro-body p {
    margin-bottom: 16px;
}

.svc-intro-body p:last-of-type {
    margin-bottom: 0;
}


/* ===== サービス種別カード ===== */

.svc-types {
    background: #f5f8ff;
}

.svc-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.svc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,29,136,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,29,136,0.15);
}

.svc-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.svc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.svc-card:hover .svc-card-img img {
    transform: scale(1.06);
}

.svc-card-body {
    padding: 24px 22px;
    border-top: 4px solid #001d88;
}

.svc-card-body h3 {
    color: #001d88;
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.svc-card-body h3 i {
    color: #f7c400;
    font-size: 1rem;
}



/* 2列レイアウト用 */
.svc-types-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}


/* ===== お悩みセクション ===== */

.svc-trouble {
    background: #fff;
}

.svc-trouble-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.trouble-box {
    background: #f5f8ff;
    border-radius: 16px;
    padding: 36px 32px;
    border-left: 6px solid #001d88;
}

.trouble-box h3 {
    color: #001d88;
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trouble-box h3 i {
    color: #f7c400;
}

.trouble-box ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trouble-box li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
    line-height: 1.6;
}

.trouble-box li::before {
    content: "・・・";
    color: #001d88;
    font-size: 0.75rem;
    flex-shrink: 0;
    padding-top: 3px;
}

.solve-box {
    background: #001d88;
    border-radius: 16px;
    padding: 36px 32px;
    color: #fff;
}

.solve-box h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f7c400;
}

.solve-box ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solve-box li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    line-height: 1.6;
}

.solve-box li i {
    color: #f7c400;
    flex-shrink: 0;
    margin-top: 3px;
}


/* ===== 料金案内バナー ===== */

.svc-price-banner {
    background: linear-gradient(135deg, #001d88 0%, #003acc 100%);
    padding: 50px 30px;
    text-align: center;
}

.svc-price-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 0;
}

.svc-price-banner strong {
    color: #f7c400;
    font-size: 1.2rem;
}

.svc-price-banner .price-lead {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    display: block;
}


/* ===== CTA ===== */

.svc-cta {
    background: #f5f8ff;
}

.svc-cta-inner {
    text-align: center;
}

.svc-cta-inner h2 {
    margin: 0 auto 20px;
}

.svc-cta-inner > p {
    color: #555;
    margin-bottom: 36px;
    line-height: 2;
}

.svc-cta-inner > p strong {
    color: #001d88;
}

.svc-cta-btns {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ===== お墓サービス特有 ===== */

.ohaka-flow {
    background: #fff;
}

.ohaka-flow-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: ohaka-step;
}

.ohaka-flow-item {
  background: #f5f8ff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.ohaka-flow-item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -13px;
  transform: translateY(-50%) rotate(-90deg);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #f7c400;
  background: none;
  z-index: -1;
}

.ohaka-flow-item:last-child::after {
  display: none;
}

.ohaka-flow-item::before {
    counter-increment: ohaka-step;
    content: counter(ohaka-step, decimal-leading-zero);
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    font-family: "Roboto", sans-serif;
    color: #001d88;
    line-height: 1;
    margin-bottom: 2px;
}

.ohaka-flow-item h3 {
  color: #001d88;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.ohaka-flow-item p {
  text-align: left;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed;
}

.ohaka-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.ohaka-photos .photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.ohaka-photos .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-intro p span{
  color: #f06400;
  font-weight: 600;
}




/* ===== Responsive ===== */

@media (max-width: 1250px) {

    .svc-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-intro-h3 {
        font-size: 1.6rem;
    }

}

@media (max-width: 1024px) {

  .svc-intro-inner {
    display: flex;
    gap: 30px;
    flex-direction: column-reverse;
  }

  .svc-trouble-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ohaka-flow-list {
    grid-template-columns: 1fr;
    max-width: 77%;
    margin: 0 auto;
  }

  .ohaka-photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .ohaka-flow-item::after {
    top: inherit;
    bottom: -11px;
    right: inherit;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
  }
}

@media (max-width: 768px) {

  .svc-types-grid,
  .svc-types-grid-2 {
      grid-template-columns: 1fr;
  }

  .svc-card-body h3 {
      font-size: 1.05rem;
  }

  .trouble-box,
  .solve-box {
      padding: 24px 20px;
  }

  .svc-cta-btns {
      flex-direction: column;
      align-items: center;
  }

  .ohaka-photos {
      grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {
  .ohaka-flow-list {
    max-width: 100%;
  }
}