@charset "UTF-8";

/*==========================
 Service Page Specific
==========================*/

.service-page-wrapper {
  background-image: none !important;
  background-color: transparent;
  
  position: relative;
  z-index: 0;
  overflow: hidden;
}

/* --- 擬似要素（ここで薄くして画像を表示） --- */
.service-page-wrapper::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* 画像設定 */
  background-image: url('../images/background_Service_SP.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  opacity: 0.1; 
  
  /* ★最背面に送る */
  z-index: -1; 
}

/* 記事エリアの下余白 */
.article {
    padding-bottom: 100px;
}

/* --- 導入テキスト --- */
.service-intro {
    padding: 0 24px;
    max-width: 1000px;
    margin: 0;
    font-size: 1.6rem;
    line-height: 2;
}

/* --- サービスリスト全体の枠 --- */
.service-list-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 各サービスブロック (article) --- */
.service-item {
    padding-top: 50px;
}

/* 最後のブロックだけ下線を入れる */
.service-item:last-of-type {
    border-bottom: 1px solid #ccc;
    padding-bottom: 50px;
    margin-bottom: 0;
}

/* --- サービス名見出し（平行四辺形デザイン） --- */
.service-header {
    margin-bottom: 30px;
    border: 2px solid var(--main-color__grn);
    background-color: var(--main-color__wht);
    padding: 10px 40px 10px 24px;
    transform: skewX(-20deg);
    margin-left: 15px;
    margin-right: 15px;
}

.service-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2.2px;
    color: var(--main-color__grn, #36684b);
    transform: skewX(20deg);
    padding-left: 0; /* 以前の余白をリセット */
    display: block;
}

.service-name::before {
    content: none;
    display: none;
}

@media screen and (min-width: 769px) {
    .service-page-wrapper {
        background-image: none !important;
    }

    .service-page-wrapper::before {
        background-image: url('../images/background_Service.png');
        background-size: cover;
        background-position: center top;
    }

    .service-header {
        padding: 10px 40px 10px 20px;
    }

    .service-header h4 {
        font-size: 2.6rem;
        font-weight: 800;
        letter-spacing: 2.5px;
    }

    .service-name {
        font-size: 2.0rem;
    }
}

/* --- コンテンツエリア (テキスト+画像) --- */
.service-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* テキスト部分 */
.service-text {
    width: 100%;
}

/* キャッチコピー */
.service-catch {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--main-color__blk);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* 説明文 */
.service-desc {
    font-size: 1.6rem;
    line-height: 2;
}

/* 画像部分 */
.service-img {
    width: 100%;
}

.service-img img {
    width: 100%;
    height: auto;
    border-radius: 6px; /* 角丸 */
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 軽い影 */
}

/* --- 問い合わせボタンエリア --- */
.btn {
    margin-top: 60px;
    text-align: center;
    padding: 0 24px;
}

/*==========================
 Responsive (PC: 769px以上)
==========================*/
@media screen and (min-width: 769px) {

    .service-intro {
        font-size: 1.8rem;
        margin: 40px 0 30px 4%;
    }

    /* 各ブロックの間隔を広げる */
    .service-item {
        margin-bottom: 60px;
        padding-top: 40px;
    }

    .service-item:last-of-type {
        padding-bottom: 60px;
    }

    .service-name {
        font-size: 2.2rem;
    }

    /* --- PCレイアウト：横並び --- */
    .service-body {
        flex-direction: row; 
        align-items: center; 
        justify-content: space-between;
        gap: 60px;
    }

    .service-text {
        width: 55%;
        padding-left: 40px ;
        order: 1;
    }

    .service-img {
        width: 40%;
        order: 2;
    }

    .service-catch {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .service-desc {
        font-size: 1.8rem;
    }

}